Skip to content

Commit

Permalink
Bump Slang Version (NomicFoundation#1098)
Browse files Browse the repository at this point in the history
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @nomicfoundation/[email protected]

### Minor Changes

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - migrate NAPI
front-end to WASM and ESM

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add
`TerminalKindExtensions.is_valid()` API to distinguish correctly-parsed
and erroneous nodes

- [NomicFoundation#1117](NomicFoundation#1117)
[`be7bb79`](NomicFoundation@be7bb79)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `Language`
API to `Parser`, in preparation for introducing a multi-file compilation
API.

- [NomicFoundation#1116](NomicFoundation#1116)
[`c88f9b5`](NomicFoundation@c88f9b5)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - merge `language`,
`parse_error`, `parse_output` namespaces into the `parser` namespace.

- [NomicFoundation#1115](NomicFoundation#1115)
[`96df645`](NomicFoundation@96df645)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - merge `cursor`,
`kinds`, `query`, and `text_index` namespaces into the `cst` namespace.

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unify API methods
on `TerminalNode` and `NonTerminalNode`, and add type assertions and
guards to both types

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - expose edges and
edge labels on CST nodes via `Node.children()` method. This allows
distinguishing between children of the same node based on their
label/role in the parent, even if they have the same kind.

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add
`TerminalNode.id` and `Nonterminal.id` properties to get a numeric ID
that can be used in indexing/comparison at runtime.

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add
`TerminalKindExtensions.is_trivia()` API to distinguish between trivia
nodes and other contentful nodes

### Patch Changes

- [NomicFoundation#1096](NomicFoundation#1096)
[`15c437c`](NomicFoundation@15c437c)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for
Solidity `0.8.27`.

- [NomicFoundation#1120](NomicFoundation#1120)
[`25eef3e`](NomicFoundation@25eef3e)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - change
`Parser::new()` constructor to `Parser::create()` static method.

- [NomicFoundation#1097](NomicFoundation#1097)
[`e17af22`](NomicFoundation@e17af22)
Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Fix the grammar
of keywords (`blobbasefee`, `blobhash`, `mcopy`, `tload`, `tstore`)
added in `0.8.24`, as they were actually reserved in `0.8.25`.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Oct 9, 2024
1 parent 25eef3e commit 81a8f61
Show file tree
Hide file tree
Showing 24 changed files with 307 additions and 132 deletions.
5 changes: 0 additions & 5 deletions .changeset/calm-ghosts-melt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cold-emus-arrive.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cool-jobs-know.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/friendly-timers-beam.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lucky-fireants-design.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/many-forks-hope.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/poor-tomatoes-report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silver-cherries-punch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/spotty-pigs-beg.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stale-spoons-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/unlucky-tables-carry.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wicked-jobs-rest.md

This file was deleted.

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# changelog

## 0.18.0

### Minor Changes

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - migrate NAPI front-end to WASM and ESM

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `TerminalKindExtensions.is_valid()` API to distinguish correctly-parsed and erroneous nodes

- [#1117](https://github.com/NomicFoundation/slang/pull/1117) [`be7bb79`](https://github.com/NomicFoundation/slang/commit/be7bb79c8f497e5283674878dacaa0fd1ec6e68a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `Language` API to `Parser`, in preparation for introducing a multi-file compilation API.

- [#1116](https://github.com/NomicFoundation/slang/pull/1116) [`c88f9b5`](https://github.com/NomicFoundation/slang/commit/c88f9b5d50dabe111b9d1b6cb4e6b6b9e276f1da) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - merge `language`, `parse_error`, `parse_output` namespaces into the `parser` namespace.

- [#1115](https://github.com/NomicFoundation/slang/pull/1115) [`96df645`](https://github.com/NomicFoundation/slang/commit/96df64514ffec22ac41af38cc9f91e7b1e260a25) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - merge `cursor`, `kinds`, `query`, and `text_index` namespaces into the `cst` namespace.

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unify API methods on `TerminalNode` and `NonTerminalNode`, and add type assertions and guards to both types

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - expose edges and edge labels on CST nodes via `Node.children()` method. This allows distinguishing between children of the same node based on their label/role in the parent, even if they have the same kind.

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `TerminalNode.id` and `Nonterminal.id` properties to get a numeric ID that can be used in indexing/comparison at runtime.

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `TerminalKindExtensions.is_trivia()` API to distinguish between trivia nodes and other contentful nodes

### Patch Changes

- [#1096](https://github.com/NomicFoundation/slang/pull/1096) [`15c437c`](https://github.com/NomicFoundation/slang/commit/15c437c6c4902cd43e0027f750ba59e8f22f47f9) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add support for Solidity `0.8.27`.

- [#1120](https://github.com/NomicFoundation/slang/pull/1120) [`25eef3e`](https://github.com/NomicFoundation/slang/commit/25eef3e8c64aa03e195aefbba0867bfa7646b821) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - change `Parser::new()` constructor to `Parser::create()` static method.

- [#1097](https://github.com/NomicFoundation/slang/pull/1097) [`e17af22`](https://github.com/NomicFoundation/slang/commit/e17af22cc4c1d373be751e525963f45ddf4dd3c3) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Fix the grammar of keywords (`blobbasefee`, `blobhash`, `mcopy`, `tload`, `tstore`) added in `0.8.24`, as they were actually reserved in `0.8.25`.

## 0.17.0

### Minor Changes
Expand Down
64 changes: 32 additions & 32 deletions Cargo.lock

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

Loading

0 comments on commit 81a8f61

Please sign in to comment.