Skip to content

Commit

Permalink
Merge branch 'gleam-lang:main' into lsp/inlay-hints-on-pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandone authored Jul 3, 2024
2 parents 7894a79 + 5d79df6 commit fe20ce7
Show file tree
Hide file tree
Showing 108 changed files with 1,890 additions and 356 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- os: macos-latest
target: x86_64-apple-darwin
use-cross: false
- os: macos-11
- os: macos-12
target: aarch64-apple-darwin
use-cross: false
- os: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- os: macos-latest
target: x86_64-apple-darwin
use-cross: false
- os: macos-11
- os: macos-12
target: aarch64-apple-darwin
use-cross: false
- os: windows-latest
Expand Down
61 changes: 57 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
# Changelog

## v1.3.0 - Unreleased
## v1.3.0-rc1 - 2024-06-30

### Build tool

- `gleam remove` will now present an error if a package being removed does not
exist as a dependency in the project.
([Changfeng Lou](https://github.com/hnlcf))

- `gleam add` now takes an optional package version specifier,
separated by a `@`, that resolves as follows:

```shell
gleam add [email protected] # "1.2.3"
gleam add [email protected] # ">= 1.2.0 and < 2.0.0"
gleam add lustre@1 # ">= 1.0.0 and < 2.0.0"
```

([Rahul D. Ghosal](https://github.com/rdghosal))

### Compiler

- Added more an informative error message for when attempting to use the `..`
Expand All @@ -31,7 +42,7 @@
match on the start of the list instead.
```

([Antonio Iaccarino])[https://github.com/eingin]
([Antonio Iaccarino](https://github.com/eingin))

- The compiler now emits a warning for redundant function captures in a
pipeline:
Expand Down Expand Up @@ -94,6 +105,33 @@
to JavaScript.
([Ofek Doitch](https://github.com/ofekd))

- Compiler now supports arithmetic operations in guards.
([Danielle Maywood](https://github.com/DanielleMaywood))

- Import cycles now show the location where the import occur.
([Ameen Radwan](https://github.com/Acepie))

- Error messages resulting from unexpected tokens now include information on
the found token's type. This updated message explains how the lexer handled
the token, so as to guide the user towards providing correct syntax.

Following is an example, where the error message indicates that the name of
the provided field conflicts with a keyword:

```
3 │ A(type: String)
│ ^^^^ I was not expecting this
Found the keyword `type`, expected one of:
- `)`
- a constructor argument name
```

([Rahul D. Ghosal](https://github.com/rdghosal))

- When compiling to JavaScript constants will now be annotated as `@__PURE__`.
([Giacomo Cavalieri](https://github.com/giacomocavalieri))

### Formatter

### Language Server
Expand Down Expand Up @@ -121,11 +159,22 @@

- LSP can now suggest completions for values and types from importable modules
and adds the import to the top of the file.
([Ameen Radwan](https://github.com/Acepie)
([Ameen Radwan](https://github.com/Acepie))

- Diagnostics with extra labels now show the diagnostic in all locations
including across multiple files.
([Ameen Radwan](https://github.com/Acepie))

- LSP completions now use the "text_edit" language server API resulting in
better/more accurate insertions.
([Ameen Radwan](https://github.com/Acepie)
([Ameen Radwan](https://github.com/Acepie))

- Completions are no longer provided inside comments.
([Nicky Lim](https://github.com/nicklimmm))

- The language server will now show all the ignored fields when hovering over
`..` in a record pattern.
([Giacomo Cavalieri](https://github.com/giacomocavalieri))

### Bug Fixes

Expand Down Expand Up @@ -158,6 +207,10 @@
matching on strings with an `as` pattern.
([Giacomo Cavalieri](https://github.com/giacomocavalieri))

- Fixed a bug where the compiler would warn that a module alias was unused when
it was only used in case patterns.
([Michael Jones](https://github.com/michaeljones))

## v1.2.1 - 2024-05-30

### Bug Fixes
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/coder">Coder</a> -
<a href="https://github.com/colelawrence">Cole Lawrence</a> -
<a href="https://github.com/insanitybit">Colin</a> -
<a href="https://github.com/CollinBrennan">Collin</a> -
<a href="https://github.com/Comamoca">Comamoca</a> -
<a href="https://github.com/c-manakov">Constantine Manakov</a> -
<a href="https://github.com/cristineguadelupe">Cristine Guadelupe</a> -
<a href="https://github.com/sdaigo">Daigo Shitara</a> -
<a href="https://github.com/dvic">Damir Vandic</a> -
<a href="https://github.com/ddresselhaus">Dan Dresselhaus</a> -
<a href="https://github.com/danielelli">Daniel</a> -
Expand All @@ -116,18 +118,17 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://liberapay.com/erikareads/">erikareads</a> -
<a href="https://github.com/ErikML">ErikML</a> -
<a href="https://github.com/oberernst">Ernesto Malave</a> -
<a href="https://github.com/NineteenPeriod">F. A. Sánchez</a> -
<a href="https://github.com/yerTools">Felix Mayer</a> -
<a href="https://github.com/nandofarias">Fernando Farias</a> -
<a href="https://github.com/ffigiel">Filip Figiel</a> -
<a href="https://github.com/codefionn">Fionn Langhans</a> -
<a href="https://github.com/floriank">Florian Kraft</a> -
<a href="https://github.com/superfly">fly.io</a> -
<a href="https://github.com/hagenek">Georg H. Ekeberg</a> -
<a href="https://github.com/giacomocavalieri">Giacomo Cavalieri</a> -
<a href="https://github.com/obmarg">Graeme Coupar</a> -
<a href="https://github.com/grottohub">grotto</a> -
<a href="https://github.com/nirev">Guilherme de Maio</a> -
<a href="https://github.com/ghivert">Guillaume Hivert</a> -
<a href="https://github.com/hammad-r-javed">Hammad Javed</a> -
<a href="https://github.com/hampuskraft">Hampus Kraft</a> -
<a href="https://github.com/ildorn">Hannes Schnaitter</a> -
Expand All @@ -140,6 +141,7 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/hexpm">Hex</a> -
<a href="https://github.com/human154">human154</a> -
<a href="https://github.com/hpiaia">Humberto Piaia</a> -
<a href="https://github.com/iainh">Iain H</a> -
<a href="https://github.com/Ian-GL">Ian González</a> -
<a href="https://github.com/ianmjones">Ian M. Jones</a> -
<a href="https://github.com/igordsm">Igor Montagner</a> -
Expand Down Expand Up @@ -169,6 +171,7 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/JonasHedEng">Jonas Hedman Engström</a> -
<a href="https://github.com/josefrichter">Josef Richter</a> -
<a href="https://github.com/joshocalico">Joshua Steele</a> -
<a href="https://liberapay.com/d2quadra/">Julian Lukwata</a> -
<a href="https://github.com/schurhammer">Julian Schurhammer</a> -
<a href="https://github.com/justinrassier">Justin Rassier</a> -
<a href="https://github.com/keroami">Kero van Gelder</a> -
Expand All @@ -183,6 +186,7 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/LeartS">Leonardo Donelli</a> -
<a href="https://github.com/defp">lidashuang</a> -
<a href="https://github.com/LighghtEeloo">LighghtEeloo</a> -
<a href="https://github.com/LilyRose2798">Lily Rose</a> -
<a href="https://github.com/wowi42">Loïc Tosser</a> -
<a href="https://github.com/lucaspellegrinelli">Lucas Pellegrinelli</a> -
<a href="https://github.com/lpetic">Lucian Petic</a> -
Expand All @@ -194,7 +198,6 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/mariuskalvo">Marius Kalvø</a> -
<a href="https://github.com/markholmes">Mark Holmes</a> -
<a href="https://github.com/markmark206">Mark Markaryan</a> -
<a href="https://github.com/codebay">Mark Spink</a> -
<a href="https://github.com/Janiczek">Martin Janiczek</a> -
<a href="https://github.com/rechsteiner">Martin Rechsteiner </a> -
<a href="https://github.com/han-tyumi">Matt Champagne</a> -
Expand All @@ -219,11 +222,13 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/nchapman">Nick Chapman</a> -
<a href="https://github.com/ndreynolds">Nick Reynolds</a> -
<a href="https://github.com/NicklasXYZ">Nicklas Sindlev Andersen</a> -
<a href="https://github.com/l1f">Ninaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</a> -
<a href="http://www.ninefx.com">NineFX</a> -
<a href="https://github.com/nomio">Nomio</a> -
<a href="https://github.com/oceanlewis">Ocean Armstrong Lewis</a> -
<a href="https://github.com/OldhamMade">OldhamMade</a> -
<a href="https://github.com/optizio">optizio</a> -
<a href="https://github.com/orvitpng">orvit</a> -
<a href="https://github.com/Davorak">Patrick Wheeler</a> -
<a href="https://github.com/patrik-kuehl">Patrik Kühl</a> -
<a href="https://github.com/giddie">Paul Gideon Dann</a> -
Expand Down Expand Up @@ -293,6 +298,7 @@ Thank you to our sponsors! Gleam would not be possible without you.
<a href="https://github.com/xhh">xhh</a> -
<a href="https://github.com/yamen">Yamen Sader</a> -
<a href="https://github.com/Yasuo-Higano">Yasuo Higano</a> -
<a href="https://github.com/Zhomart">Zhomart Mukhamejanov</a> -
<a href="https://github.com/gasparinzsombor">Zsombor Gasparin</a> -
<a href="https://liberapay.com/~1847917/">~1847917</a>
</p>
2 changes: 1 addition & 1 deletion compiler-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gleam"
version = "1.2.1"
version = "1.3.0-rc1"
authors = ["Louis Pilfold <[email protected]>"]
edition = "2021"
license-file = "LICENCE"
Expand Down
Loading

0 comments on commit fe20ce7

Please sign in to comment.