Skip to content

Commit

Permalink
Update to Gleam v1.5.0 (#26)
Browse files Browse the repository at this point in the history
* Use older version of release upload action

* Fix crash

* Fix go to definition for unqualified functions

* Add `no-print-progress` flag to `run` and `build`

* Changes!

* Fix confusing `There must be a let to bind variable to value` error

* Fix CI

* Fix CI

* Fix CI

* Address review

* Address review

* Update changelog

* Fix another compiler crash for duplicate constructor definition

* Changelog

* Add missing @internal

* Do not create intermediate vector in `pipe.infer_each_expression`

Looks like that line is no longer needed. I am not sure if compiler optimizes this or not, so why not be specific?

* Fix JS generation bug

* Clippy

* Fix tag generation URL in docs for some VCSs

* Changes!

* Correct name

* Use `ast` type aliases where possible

* Fix CI

* Refactor: use `not_in_tail_position` in `javascript/expression.rs`

* Allow to omit utf8 option in literal string bit array segments

* Add term printer

* Implement `ValueNames` struct

* Fix term printing for shadowed constructors

* Tweak wording

* Remove debug

* Help to infer unannotated `fn` args from the call context

* One more test

* More tests!

* Add readme note

* Replace `typ` with `type_`

* Use `SpannedString` alias where possible

* Fix bug with code generation

* Improve lambda functions inference in pipes

* One more test

* Update build.rs

instead of using to_string, i used String::from for initial module assignment for better readability.

* Update build.rs

* formatting fix build.rs

this might fix formatting issue. Removed the unnecessary blank line after names.sort();.

After making these changes, try running cargo fmt --all -- --check again to verify that the formatting is now correct.

* Improve readability

* Deprecate record pattern matching syntax

* Improve error message when accessing module aliases as names

* Address review

* Tweak error wording

* Clippy

* Fix function calls inference in pipes

* Add a hint for a non-module-level named function

* Fix lint

* Add changelog entry

* fix #3497

* Compiler progress in stderr

* Remove unused

* CHANGELOG

* Correct typo in CHANGELOG.md

* Fix typo in error message

* Improve error message on discarded names in case patterns and assignments

* Address review

* feat: code action to assign `_` to unused value

* add tests

* chore: clean logs

* chore: clean logs

* update comments

* rework tests

* I like the new test features!

* fix: only show for inner most span

* add changelogs!

* Fix several bit_array tests on js to expect a compilation error on supported features

* Fix CI

* Add a hint about placing functions into types

* Fix CI

* Also add a hint for `pub fn`

* Tweak wording

* CHANGELOG

* Do not perform analysis if running main of dependency package

* Add test

* Address review comments

* Do not load modules if skipping analysis

* Review comment

* CHANGELOG

* Move to build tool section

* Fix new line bug

* Fix warning new line bug

* Updates test

* Removed new line complexity

* chore: html sidebar module name styling

* feat: add padding right and indent

* fix REBAR_BARE_COMPILER_OUTPUT_DIR path

Signed-off-by: Gustavo Inacio <incio.gusta@gmail.com>

* add changelog and test

Signed-off-by: Gustavo Inacio <incio.gusta@gmail.com>

* document ezstd dep

Signed-off-by: Gustavo Inacio <incio.gusta@gmail.com>

* update ci with windows and non-windows test

Signed-off-by: Gustavo Inacio <incio.gusta@gmail.com>

* Implement code action to import modules

* Change "import module" code action to read from diagnostics,
Add hint to import modules when a module exists with the same name

* Add hint for typos in module names

* Improve code action to import modules

* Address review comments

* cleanup unused import

* Improve completion test format

* Improve error reporting for inexhaustive case expressions

* Changelog

* Fix comments

* Address review comments

* Tweak

* Print correct missing patterns for inexhaustive case expressions with multiple subjects

* Make errors consistent

* Document errors

* Improved error printing

* Add file attributes

* Improve stack printing

* Oops, snapshots

* Handle windows file attributes in test

* Update panic messages

* stderr

* Try again!

* Clippy!

* Changes!

* More error printing

* Improve errors more

* Print linked process exits nicely

* Changes!

* Bump wasm-bindgen from 0.2.92 to 0.2.93

Bumps [wasm-bindgen](https://github.com/rustwasm/wasm-bindgen) from 0.2.92 to 0.2.93.
- [Release notes](https://github.com/rustwasm/wasm-bindgen/releases)
- [Changelog](https://github.com/rustwasm/wasm-bindgen/blob/main/CHANGELOG.md)
- [Commits](rustwasm/wasm-bindgen@0.2.92...0.2.93)

---
updated-dependencies:
- dependency-name: wasm-bindgen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump reqwest from 0.12.5 to 0.12.7

Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.12.5 to 0.12.7.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](seanmonstar/reqwest@v0.12.5...v0.12.7)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump thiserror from 1.0.59 to 1.0.63

Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.59 to 1.0.63.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@1.0.59...1.0.63)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump clap from 4.5.13 to 4.5.16

Bumps [clap](https://github.com/clap-rs/clap) from 4.5.13 to 4.5.16.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.5.13...clap_complete-v4.5.16)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump getrandom from 0.2.12 to 0.2.15

Bumps [getrandom](https://github.com/rust-random/getrandom) from 0.2.12 to 0.2.15.
- [Changelog](https://github.com/rust-random/getrandom/blob/master/CHANGELOG.md)
- [Commits](rust-random/getrandom@v0.2.12...v0.2.15)

---
updated-dependencies:
- dependency-name: getrandom
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add code action to fill missing patterns

* Improve generated code for missing case patterns code action

* Improve generated code for case expressions with empty lines and no clauses

* Account for case when the case expression doesn't begin the line

* Clippy

* Fix typo in `binaryFromSlice` type def

* Fix bug for importing modules from pattern constructors

* Check target support when a value is imported

* Changelog

* Bump quinn-proto from 0.11.3 to 0.11.8

Bumps [quinn-proto](https://github.com/quinn-rs/quinn) from 0.11.3 to 0.11.8.
- [Release notes](https://github.com/quinn-rs/quinn/releases)
- [Commits](quinn-rs/quinn@quinn-proto-0.11.3...quinn-proto-0.11.8)

---
updated-dependencies:
- dependency-name: quinn-proto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat: better external target error

* chore:add changelog

* add test for unknown external target

* fix clippy warnings

* report unused qualified constructors

* update CHANGELOG

* add todo after incomplete use expression

* remove additional newline from error message

* Add completions for prelude values

* improve error title for unknown module value

* add helpful error message

* Infer minimum required version

* Add required_version to PackageInterface

* Little fix

* Add version inference tests

* remove useless file

* more tests!

* Use version range instead of string in PackageConfiguration

* add warning for gleam version range that is too permissive

* refactor feature usage tracking

* do not allow to publish packages with wrong version range

* tests

* track location of externals to provide better error message

* keep track of internal annotation location

* clippy!

* rename field

* comments

* fix minimum required version

* print something

* clippy

* CHANGELOG

* switch from arc to rc for the warning emitter

* Print what is changed by fix

* use actual function's name and module

* add external implementations to functions

* fix erlang codegen for external functions

* make sure to use external definitions and inline the call

* rebase gone wrong

* changelog

* snapshot test all the things

* include file names in snapshot

* fix tests on windows

* review comments

* Report non-byte aligned bit array patterns as compile errors for JS target

* make the default minimum version 0.1.0

* make sure added version constraint is >=1.x

* feat: add function argument and variables suggestions

* feat: add test case for function argument completion

* feat: refactor code and add doc to improve clarity

* fix: remove unused snapshots

* feat: update changelog

* fix: change visibility of method inside visitor

* Fix shadowed variable suggestions

* v1.5.0-rc1

* fix tuple formatting bug

* CHANGELOG

* Fix accessor bug

Closes https://github.com/gleam-lang/gleam/issues/

* Appease Clippy

* v1.5.0-rc2

* v1.5.0

* rename tests

* fix enough to compile nix

* fix constructor in const codegen bug

same as was fixed in JS

* update panic messages in Nix

match new JS messages

* fix binary names in CI

* add missing external nix information

adapt gleam#3613 to Glistix

* assert nix error

* some extra bit array tests

still missing some

* add nix to invalid target error

* clippy

* update flake hash

* update compiler version

* Fix clippy warnings for 1.83

* temp fix is_some_and

* fix clippy warnings for nix

* fix macos flake ci

---------

Co-authored-by: Louis Pilfold <louis@lpil.uk>
Co-authored-by: GearsDatapacks <surya@seriousinfinitude.com>
Co-authored-by: Ankit Goel <ankitgoel616@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Giacomo Cavalieri <giacomo.cavalieri@icloud.com>
Co-authored-by: Manav <manavrj.07@gmail.com>
Co-authored-by: vkobinski <victorkobinski@outlook.com>
Co-authored-by: Paul Kuruvilla <rohitpaulk@gmail.com>
Co-authored-by: Frank Wang <1454884738@qq.com>
Co-authored-by: Gustavo Inacio <incio.gusta@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Darse <code@mathieudarse.fr>
Co-authored-by: Richard Viney <richard.viney@gmail.com>
Co-authored-by: ezegrosfeld <grosfeldezekiel@gmail.com>
  • Loading branch information
15 people authored Dec 21, 2024
1 parent 891d4d5 commit ccdefd1
Show file tree
Hide file tree
Showing 833 changed files with 15,525 additions and 12,147 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,19 @@ jobs:
working-directory: ./test/project_erlang_windows
if: ${{ runner.os == 'Windows' && matrix.run-integration-tests }}

- name: test/project_erlang export package-interface
- name: test/project_erlang export package-interface (non-windows)
run: |
glistix export package-interface --out="interface.json"
cat interface.json
working-directory: ./test/project_erlang
if: ${{ matrix.run-integration-tests }}
if: ${{ runner.os != 'Windows' && matrix.run-integration-tests }}

- name: test/project_erlang export package-interface (windows)
run: |
glistix export package-interface --out="interface.json"
cat interface.json
working-directory: ./test/project_erlang_windows
if: ${{ runner.os == 'Windows' && matrix.run-integration-tests }}

- name: test/external_only_javascript
run: ./test.sh
Expand All @@ -188,6 +195,13 @@ jobs:
env:
GLEAM_COMMAND: glistix

- name: test/root_package_not_compiled_when_running_dep
run: ./test.sh
working-directory: ./test/root_package_not_compiled_when_running_dep
if: ${{ matrix.run-integration-tests }}
env:
GLEAM_COMMAND: glistix

- name: test/project_javascript
run: |
glistix run
Expand Down Expand Up @@ -365,7 +379,7 @@ jobs:
target: aarch64-unknown-linux-gnu
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
- os: macos-12 # intel
- os: macos-13 # intel (macos-14 only supports aarch64)
target: x86_64-apple-darwin
- os: macos-14 # aarch64
target: aarch64-apple-darwin
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ jobs:
esac
- name: Upload release archive
uses: softprops/action-gh-release@v2
# https://github.com/softprops/action-gh-release/issues/445
# uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@0bd7e8b279c9b5b36661d552472fbbfe671fe26e
with:
draft: true
prerelease: false
Expand Down
Loading

0 comments on commit ccdefd1

Please sign in to comment.