-
-
Notifications
You must be signed in to change notification settings - Fork 799
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gleam-lang:main' into lsp/inlay-hints-on-pipe
- Loading branch information
Showing
108 changed files
with
1,890 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 `..` | ||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
Oops, something went wrong.