Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Gleam 1.3.0 #8

Merged
merged 72 commits into from
Jul 28, 2024
Merged

Update to Gleam 1.3.0 #8

merged 72 commits into from
Jul 28, 2024

Commits on Jun 13, 2024

  1. Configuration menu
    Copy the full SHA
    a93ea78 View commit details
    Browse the repository at this point in the history
  2. CHANGELOG!

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    3ce57eb View commit details
    Browse the repository at this point in the history
  3. Add test

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    482941a View commit details
    Browse the repository at this point in the history
  4. fix-3210

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    e3d8958 View commit details
    Browse the repository at this point in the history
  5. Bump vec1 from 1.12.0 to 1.12.1

    Bumps [vec1](https://github.com/rustonaut/vec1) from 1.12.0 to 1.12.1.
    - [Changelog](https://github.com/rustonaut/vec1/blob/nightly/CHANGELOG.md)
    - [Commits](https://github.com/rustonaut/vec1/commits/v1.12.1)
    
    ---
    updated-dependencies:
    - dependency-name: vec1
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    5705674 View commit details
    Browse the repository at this point in the history
  6. Bump insta from 1.38.0 to 1.39.0

    Bumps [insta](https://github.com/mitsuhiko/insta) from 1.38.0 to 1.39.0.
    - [Release notes](https://github.com/mitsuhiko/insta/releases)
    - [Changelog](https://github.com/mitsuhiko/insta/blob/master/CHANGELOG.md)
    - [Commits](mitsuhiko/insta@1.38.0...1.39.0)
    
    ---
    updated-dependencies:
    - dependency-name: insta
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    c3088d3 View commit details
    Browse the repository at this point in the history
  7. Bump spdx from 0.10.4 to 0.10.6

    Bumps [spdx](https://github.com/EmbarkStudios/spdx) from 0.10.4 to 0.10.6.
    - [Release notes](https://github.com/EmbarkStudios/spdx/releases)
    - [Changelog](https://github.com/EmbarkStudios/spdx/blob/main/CHANGELOG.md)
    - [Commits](EmbarkStudios/spdx@0.10.4...0.10.6)
    
    ---
    updated-dependencies:
    - dependency-name: spdx
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    dependabot[bot] authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    d9b3c5a View commit details
    Browse the repository at this point in the history
  8. Update annoyances

    lpil authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    d14fcda View commit details
    Browse the repository at this point in the history
  9. wip warn for redundant capture

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    f404100 View commit details
    Browse the repository at this point in the history
  10. move code to its own function

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    3cfbae4 View commit details
    Browse the repository at this point in the history
  11. CHANGELOG!

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    4f6d7a9 View commit details
    Browse the repository at this point in the history
  12. clippy!

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    b3f762f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    934298b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    f7bf44d View commit details
    Browse the repository at this point in the history
  15. Add maybe as a reserved word for Erlang compile target

    `maybe` is reserved as of Erlang/OTP 27.
    See https://www.erlang.org/doc/system/expressions.html#maybe for more info.
    barszcz authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    ff68836 View commit details
    Browse the repository at this point in the history
  16. update test snapshot

    barszcz authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    a3cf8a7 View commit details
    Browse the repository at this point in the history
  17. changelog

    barszcz authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    e3cdc09 View commit details
    Browse the repository at this point in the history
  18. Changes!

    lpil authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    c0331eb View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    d233fb5 View commit details
    Browse the repository at this point in the history
  20. CHANGELOG

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    bd3cff6 View commit details
    Browse the repository at this point in the history
  21. Use better names

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    272648e View commit details
    Browse the repository at this point in the history
  22. Fix bug with offset

    giacomocavalieri authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    02f1fc0 View commit details
    Browse the repository at this point in the history
  23. fix excessive gleam.mjs generation

    This patch fixes excessive generation by checking if `modules` is empty.
    
    Two other possible solutions have been ruled out:
    
    - Checking for file existence may result in not updating outdated files
    - Comparing contents is slow
    Ofek Doitch authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    4b38c0e View commit details
    Browse the repository at this point in the history
  24. Revert "fix excessive gleam.mjs generation"

    This reverts commit 50d7a90b3328298b3d370190abea9b8f49c83fde.
    lpil authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    e61b914 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    c54bd1d View commit details
    Browse the repository at this point in the history
  26. Add fix to changelog

    GearsDatapacks authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    ae1b62c View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    4c3b060 View commit details
    Browse the repository at this point in the history
  28. Format

    lpil authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    631f45b View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    3afe08c View commit details
    Browse the repository at this point in the history
  30. changelog

    Acepie authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    e34585f View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    8ea7d12 View commit details
    Browse the repository at this point in the history
  32. Add module name to completion

    lpil authored and PgBiel committed Jun 13, 2024
    Configuration menu
    Copy the full SHA
    352def9 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. completions now always include text edits and use previous word to im…

    …prove suggestions
    
    take into account phrase following cursor
    
    changelog
    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    4b1ad4b View commit details
    Browse the repository at this point in the history
  2. feedback

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    39eca0c View commit details
    Browse the repository at this point in the history
  3. snapshot tests

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    eb11eda View commit details
    Browse the repository at this point in the history
  4. lints

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    38479d8 View commit details
    Browse the repository at this point in the history
  5. move completions out to own module

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    40b03e5 View commit details
    Browse the repository at this point in the history
  6. lifetimes

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    25643af View commit details
    Browse the repository at this point in the history
  7. fix bug with module names

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    103d252 View commit details
    Browse the repository at this point in the history
  8. use equality and fix bugs for module select

    Acepie authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    2a0230b View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    deb8b1e View commit details
    Browse the repository at this point in the history
  10. Minor Fixes and more unit tests

    omprakaash authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    bb19a81 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    6d3c1d4 View commit details
    Browse the repository at this point in the history
  12. Clean up docs and names

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f5de337 View commit details
    Browse the repository at this point in the history
  13. Extract TypeNames struct

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e21c976 View commit details
    Browse the repository at this point in the history
  14. Move type name finding to TypeNames

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e0e2873 View commit details
    Browse the repository at this point in the history
  15. Simplify interface

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ff99bfe View commit details
    Browse the repository at this point in the history
  16. Simplify API more

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ef07ca7 View commit details
    Browse the repository at this point in the history
  17. Simplify, qualify types not in scope

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    76aa883 View commit details
    Browse the repository at this point in the history
  18. Create functional interface

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    da0852c View commit details
    Browse the repository at this point in the history
  19. Fix collision bug

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    1db67a4 View commit details
    Browse the repository at this point in the history
  20. Clippy

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    b593d67 View commit details
    Browse the repository at this point in the history
  21. Rename

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    5c3dd60 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    f04d14f View commit details
    Browse the repository at this point in the history
  23. Fix #3279

    Changfeng Lou authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    f74d0fb View commit details
    Browse the repository at this point in the history
  24. Return error when package not exist

    Changfeng Lou authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    e3d8f91 View commit details
    Browse the repository at this point in the history
  25. Remove unused function

    Changfeng Lou authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    d5211e4 View commit details
    Browse the repository at this point in the history
  26. Format

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    b064c70 View commit details
    Browse the repository at this point in the history
  27. Tweak wording

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    c344b27 View commit details
    Browse the repository at this point in the history
  28. Changes!

    lpil authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    1d4468d View commit details
    Browse the repository at this point in the history
  29. Try to compile time error when trying to make non byte aligned array …

    …on js
    
    Try to detect when someone tries to make a non byte aligned array on Javascript.
    This compile time error still fails to trigger if the size value is a variable though.
    So we still need the runtime error in the Javascript template too.
    
    Fixes #1591
    Pi-Cla authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ac99242 View commit details
    Browse the repository at this point in the history
  30. Log the change

    Pi-Cla authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    30289ab View commit details
    Browse the repository at this point in the history
  31. Add Tests for Negative Sized Bit Arrays

    It seems our current behaviour is to assume a negative size really means a size of 0 so might as well document this with some tests
    Pi-Cla authored and PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    815bef5 View commit details
    Browse the repository at this point in the history
  32. rename tests

    PgBiel committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    ee91ae6 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. gleam 1.3.0

    feat: add error message for trying to match after a spread
    
    
    fix: typo
    
    chore: add changelog
    
    fix: pr changes
    
    chore: update changelog
    
    fix: handle the parsing better to fully match a list pattern
    
    chore: update changelog
    
    fix: change test case and cleanup
    
    Changes!
    
    Alter error copy
    
    basic statement level fault tolerance
    
    changelog
    
    more tests
    
    handle patterns
    
    fix for unsupported public function
    
    Changes!
    
    Fix JS const bug
    
    Closes gleam-lang/gleam#3294
    
    Further tests
    
    Snaps
    
    wip warn for deprecated prepend syntax
    
    fix-3108
    
    CHANGELOG!
    
    Add missing contributor to changelog
    
    Fix wrong warning wording
    
    Remove additional fields from list
    
    Remove additional fields from list pattern
    
    Prepare things before big refactoring
    
    Emit parsing warnings
    
    Rephrase changelog entry
    
    Use better name for parser function
    
    Use WarningEmitter instead of TypeWarningEmitter
    
    Fix #3288
    
    fix excessive `gleam.mjs` generation
    
    This patch fixes excessive generation by checking for file existence.
    
    An earlier attempt (#3238) had done this by checking for empty `modules`,
    noting in its commit message that file existence checks will cause old
    `gleam.mjs` to never be updated when a new version is available. I have
    since learned that that was incorrect, as new versions of `gleam` delete
    `build` folders created by previous versions.
    
    closes #3178
    
    Changes!
    
    Add else to Erlang's reserved keywords
    
    Rename method
    
    fix-3250
    
    Support arithmetic in guards
    
    Add to CHANGELOG.md
    
    Add failing test for module import alias used in case expr
    
    It is failing but it shouldn't. It is used so there shouldn't be any
    warnings.
    
    Remove module alias from 'unused' when used
    
    This comes up in case-expressions. Without this case we get a warning
    as covered by the test in the last commit.
    
    This change is a best guess and it fixes the test. It is not based on
    any understanding of the code base.
    
    Add changelog entry
    
    Adjust test name and add link to original issue
    
    For clarity. I'm not sure that previous name was particularly clear.
    
    feat: handle pubgrub compatible versions at package download
    
    feat: update version parser at package download to use @ as delimiter and map to pubgrub ranges
    
    test: error handling of version specifier parser
    
    fix: typo in err msg of InvalidVersionFormat
    
    refac: rename hex requirement parser
    
    refac: break down multiple asserts for parse_hex_requirement into separate tests
    
    refac: address clippy errors on indexing_slicing
    
    chore: update changelog
    
    Use @1 in README
    
    improved lsp rendering of extra labels and added locations to cycled imports
    
    changelog
    
    move diagnostics to be subdiagnostic
    
    move diagnostics to be subdiagnostic
    
    write dependency srcspans to metadata
    
    restructure to Vec1 of tuple
    
    feedback
    
    Wrap text
    
    Do not autocomplete if cursor is in a comment
    
    Add tests
    
    Do not provide completions on empty comment
    
    Move comment context detection for ignoring autocompletion to `is_within_comment`
    
    Changes!
    
    Add Information About Found Token in UnexpectedToken Error Type (#3299)
    
    
    Alter error
    
    Annotate javascript constants as pure
    
    Make sure lists constructors are annotated as pure
    
    Replace with_spread with spread location
    
    Display missing fields
    
    clippy!
    
    CHANGELOG!
    
    Avoid needless clones
    
    v1.3.0-rc1
    
    Remove unclear example
    
    Update to macos-12 in release-nightly and release
    
    macos-11 was deprecated 2 days ago leaving the nightly release job
    hanging with no error message lol.
    
    mentioned in 2 places, apparently:
    - https://github.blog/changelog/2024-05-20-actions-upcoming-changes-to-github-hosted-macos-runners/
    - https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job
    
    Fix typo in changelog
    Remove all foo-bar-baz from code
    
    Turn LS tests into snapshot tests
    
    replace raw Positions with PositionFinder
    
    allow assert_hover macro to accept literal string
    
    Remove references to the term 'pointer'
    
    Fix wrong formatting of case subjects
    
    bump all macos runners to latest compatible versions
    
    macos 13 for x64
    
    Bump oven-sh/setup-bun from 1 to 2
    
    Bumps [oven-sh/setup-bun](https://github.com/oven-sh/setup-bun) from 1 to 2.
    - [Release notes](https://github.com/oven-sh/setup-bun/releases)
    - [Commits](oven-sh/setup-bun@v1...v2)
    
    ---
    updated-dependencies:
    - dependency-name: oven-sh/setup-bun
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Bump docker/build-push-action from 5 to 6
    
    Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
    - [Release notes](https://github.com/docker/build-push-action/releases)
    - [Commits](docker/build-push-action@v5...v6)
    
    ---
    updated-dependencies:
    - dependency-name: docker/build-push-action
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Fixed spelling mistake in function get_module_inferface -> get_module_interface
    
    Make sure all constants inside a module constant definition are marked as pure
    
    CHANGELOG!
    
    Review comments
    
    v1.3.0-rc3
    
    Correct message
    
    v1.3.0
    
    Co-authored-by: Ace <[email protected]>
    Co-authored-by: Ameen Radwan <[email protected]>
    Co-authored-by: Antonio Iaccarino <[email protected]>
    Co-authored-by: Danielle Maywood <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: djaruun <[email protected]>
    Co-authored-by: GearsDatapacks <[email protected]>
    Co-authored-by: Giacomo Cavalieri <[email protected]>
    Co-authored-by: graphiteisaac <[email protected]>
    Co-authored-by: Louis Pilfold <[email protected]>
    Co-authored-by: Michael Jones <[email protected]>
    Co-authored-by: Nicky Lim <[email protected]>
    Co-authored-by: Ofek Doitch <[email protected]>
    Co-authored-by: Rahul D. Ghosal <[email protected]>
    Co-authored-by: Rahul Ghosal <[email protected]>
    Co-authored-by: Robert Attard <[email protected]>
    Co-authored-by: TankorSmash <[email protected]>
    18 people committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    363a6b3 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2024

  1. fix compilation of nix modules

    PgBiel committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    cde25a3 View commit details
    Browse the repository at this point in the history
  2. foo -> wibble, bar -> wobble

    PgBiel committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    809f04c View commit details
    Browse the repository at this point in the history
  3. update flake hash

    PgBiel committed Jul 24, 2024
    Configuration menu
    Copy the full SHA
    1972db0 View commit details
    Browse the repository at this point in the history

Commits on Jul 27, 2024

  1. Configuration menu
    Copy the full SHA
    4a4be09 View commit details
    Browse the repository at this point in the history
  2. Update deps to fix build for new Rust

    lpil authored and PgBiel committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    b6146b5 View commit details
    Browse the repository at this point in the history
  3. update cargo lock hash

    PgBiel committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    9c0bd78 View commit details
    Browse the repository at this point in the history
  4. alright clippy

    PgBiel committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    4f918a8 View commit details
    Browse the repository at this point in the history