Skip to content

Commit e232488

Browse files
Bump Slang Version (#1394)
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/slang@1.3.0 ### Minor Changes - [#1396](#1396) [`d568dec`](d568dec) Thanks [@beta-ziliani](https://github.com/beta-ziliani)! - Add a rewriter API, allowing the transformation of CSTs by extending the `BaseRewriter` type, overriding the appropriate methods ([User Guide](https://nomicfoundation.github.io/slang/1.3.0/user-guide/08-examples/06-inject-logging/)). - [#1440](#1440) [`4438fc8`](4438fc8) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `TextIndexExtensions.zero()` utility to create an index at offset zero, which is useful for creating cursors from child nodes where parent offset is not needed. - [#1390](#1390) [`6a0f598`](6a0f598) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Add new TypeScript APIs for creating nodes and edges: - `NonterminalNode.create(kind: NonterminalKind, children: Edge[]): NonterminalNode` - `TerminalNode.create(kind: TerminalKind, text: string): TerminalNode` - `createEdge(label: EdgeLabel, node: Node): Edge` - `Edge.createWithNonterminal(label: EdgeLabel, node: NonterminalNode): Edge` - `Edge.createWithTerminal(label: EdgeLabel, node: TerminalNode): Edge` ### Patch Changes - [#1424](#1424) [`d54a35c`](d54a35c) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Resolve identifiers in assembly blocks to locally imported symbols - [#1388](#1388) [`4607e6a`](4607e6a) Thanks [@beta-ziliani](https://github.com/beta-ziliani)! - Fixed the pragma grammar and CST nodes: - `pragma abicoder <version>`: - Only enabled starting Solidity `0.7.5`. - `<version>` is restricted to new keywords (`v1` and `v2`). - `pragma experimental <flag>`: - Only enabled starting Solidity `0.4.16`. - `<flag>` is restricted to be a string, or new keywords representing `ABIEncoderV2` and `SMTChecker`. - [#1431](#1431) [`a62c857`](a62c857) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix CST query matches to return an empty array for unmatched named captures, instead of `undefined`. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Omar Tawfik <15987992+OmarTawfik@users.noreply.github.com>
1 parent b382cc6 commit e232488

File tree

14 files changed

+168
-118
lines changed

14 files changed

+168
-118
lines changed

.changeset/eleven-parents-look.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/free-peaches-jump.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.changeset/green-poets-bow.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/many-rivers-attack.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tall-towns-tan.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/tricky-streets-marry.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,36 @@
11
# changelog
22

3+
## 1.3.0
4+
5+
### Minor Changes
6+
7+
- [#1396](https://github.com/NomicFoundation/slang/pull/1396) [`d568dec`](https://github.com/NomicFoundation/slang/commit/d568dec155a38b659680145bda1f6c5ff7b8e53c) Thanks [@beta-ziliani](https://github.com/beta-ziliani)! - Add a rewriter API, allowing the transformation of CSTs by extending the `BaseRewriter` type, overriding the appropriate methods ([User Guide](https://nomicfoundation.github.io/slang/1.3.0/user-guide/08-examples/06-inject-logging/)).
8+
9+
- [#1440](https://github.com/NomicFoundation/slang/pull/1440) [`4438fc8`](https://github.com/NomicFoundation/slang/commit/4438fc8e6e01c5d86ac166d24d16c8a6206bd851) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `TextIndexExtensions.zero()` utility to create an index at offset zero, which is useful for creating cursors from child nodes where parent offset is not needed.
10+
11+
- [#1390](https://github.com/NomicFoundation/slang/pull/1390) [`6a0f598`](https://github.com/NomicFoundation/slang/commit/6a0f598fc93a85e125f48869f8d882d52392fdb7) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Add new TypeScript APIs for creating nodes and edges:
12+
13+
- `NonterminalNode.create(kind: NonterminalKind, children: Edge[]): NonterminalNode`
14+
- `TerminalNode.create(kind: TerminalKind, text: string): TerminalNode`
15+
- `createEdge(label: EdgeLabel, node: Node): Edge`
16+
- `Edge.createWithNonterminal(label: EdgeLabel, node: NonterminalNode): Edge`
17+
- `Edge.createWithTerminal(label: EdgeLabel, node: TerminalNode): Edge`
18+
19+
### Patch Changes
20+
21+
- [#1424](https://github.com/NomicFoundation/slang/pull/1424) [`d54a35c`](https://github.com/NomicFoundation/slang/commit/d54a35c9507709e921b0e5cf46c25fc7d62bc9c6) Thanks [@ggiraldez](https://github.com/ggiraldez)! - Resolve identifiers in assembly blocks to locally imported symbols
22+
23+
- [#1388](https://github.com/NomicFoundation/slang/pull/1388) [`4607e6a`](https://github.com/NomicFoundation/slang/commit/4607e6a548b5454718202374cddfc8d0ccfdb661) Thanks [@beta-ziliani](https://github.com/beta-ziliani)! - Fixed the pragma grammar and CST nodes:
24+
25+
- `pragma abicoder <version>`:
26+
- Only enabled starting Solidity `0.7.5`.
27+
- `<version>` is restricted to new keywords (`v1` and `v2`).
28+
- `pragma experimental <flag>`:
29+
- Only enabled starting Solidity `0.4.16`.
30+
- `<flag>` is restricted to be a string, or new keywords representing `ABIEncoderV2` and `SMTChecker`.
31+
32+
- [#1431](https://github.com/NomicFoundation/slang/pull/1431) [`a62c857`](https://github.com/NomicFoundation/slang/commit/a62c8571a3285fc41a65d2d8e0b7367e6c24127f) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix CST query matches to return an empty array for unmatched named captures, instead of `undefined`.
33+
334
## 1.2.1
435

536
### Patch Changes

Cargo.lock

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)