diff --git a/.changeset/afraid-waves-move.md b/.changeset/afraid-waves-move.md deleted file mode 100644 index 2a36f7c2f7..0000000000 --- a/.changeset/afraid-waves-move.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -unreserve pragma keywords in all versions diff --git a/.changeset/cool-numbers-sneeze.md b/.changeset/cool-numbers-sneeze.md deleted file mode 100644 index a1ab93a7bd..0000000000 --- a/.changeset/cool-numbers-sneeze.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -support dots in yul identifiers from `0.5.8` till `0.7.0` diff --git a/.changeset/cuddly-dodos-exercise.md b/.changeset/cuddly-dodos-exercise.md deleted file mode 100644 index 6f9afd4db0..0000000000 --- a/.changeset/cuddly-dodos-exercise.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -Mark `override` as being a valid attribute only after 0.6.0 diff --git a/.changeset/curvy-donkeys-shout.md b/.changeset/curvy-donkeys-shout.md deleted file mode 100644 index b542ab15cc..0000000000 --- a/.changeset/curvy-donkeys-shout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": minor ---- - -Add tree query implementation as `Query::parse` and `Cursor::query` diff --git a/.changeset/eighty-moons-talk.md b/.changeset/eighty-moons-talk.md deleted file mode 100644 index 9727686c00..0000000000 --- a/.changeset/eighty-moons-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -support unicode characters in string literals up to `0.7.0` diff --git a/.changeset/empty-lies-fetch.md b/.changeset/empty-lies-fetch.md deleted file mode 100644 index d4a6ac3bf8..0000000000 --- a/.changeset/empty-lies-fetch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -fix source locations for unicode characters in error reports diff --git a/.changeset/famous-ants-heal.md b/.changeset/famous-ants-heal.md deleted file mode 100644 index 19408d9633..0000000000 --- a/.changeset/famous-ants-heal.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -parse line breaks without newlines diff --git a/.changeset/flat-papayas-destroy.md b/.changeset/flat-papayas-destroy.md deleted file mode 100644 index 48b72366df..0000000000 --- a/.changeset/flat-papayas-destroy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -fix parsing empty `/**/` comments diff --git a/.changeset/four-cats-bake.md b/.changeset/four-cats-bake.md deleted file mode 100644 index afdb0335c2..0000000000 --- a/.changeset/four-cats-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -prevent parsing multiple literals under `StringExpression` before `0.5.14` diff --git a/.changeset/great-sheep-camp.md b/.changeset/great-sheep-camp.md deleted file mode 100644 index 6e3d5c8c11..0000000000 --- a/.changeset/great-sheep-camp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -prioritize parsing `MultiLineComment` over `MultiLineNatSpecComment` diff --git a/.changeset/happy-pugs-pull.md b/.changeset/happy-pugs-pull.md deleted file mode 100644 index 995b22fdb2..0000000000 --- a/.changeset/happy-pugs-pull.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -add `public` and `internal` to `UnnamedFunctionAttribute` till `0.5.0` diff --git a/.changeset/kind-turkeys-bow.md b/.changeset/kind-turkeys-bow.md deleted file mode 100644 index 1e895683ef..0000000000 --- a/.changeset/kind-turkeys-bow.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -fix parsing `payable` primary expressions diff --git a/.changeset/lemon-badgers-dress.md b/.changeset/lemon-badgers-dress.md deleted file mode 100644 index 0f2ce46b79..0000000000 --- a/.changeset/lemon-badgers-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": minor ---- - -support parsing NatSpec comments diff --git a/.changeset/lemon-knives-fry.md b/.changeset/lemon-knives-fry.md deleted file mode 100644 index 4c45168eae..0000000000 --- a/.changeset/lemon-knives-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -fix selection order of prefix/postfix AST fields diff --git a/.changeset/long-readers-bake.md b/.changeset/long-readers-bake.md deleted file mode 100644 index 339e317f21..0000000000 --- a/.changeset/long-readers-bake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -rename `FieldName` to `NodeLabel` diff --git a/.changeset/modern-rocks-change.md b/.changeset/modern-rocks-change.md deleted file mode 100644 index e705e1359e..0000000000 --- a/.changeset/modern-rocks-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -allow parsing `ColonEqual` as two separate tokens before `0.5.5` diff --git a/.changeset/nine-boxes-vanish.md b/.changeset/nine-boxes-vanish.md deleted file mode 100644 index 8dd6539b10..0000000000 --- a/.changeset/nine-boxes-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -Support `delete` as an expression rather than a statement diff --git a/.changeset/pink-dryers-begin.md b/.changeset/pink-dryers-begin.md deleted file mode 100644 index dc5416d551..0000000000 --- a/.changeset/pink-dryers-begin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": minor ---- - -Add `TokenKind::is_trivia` diff --git a/.changeset/pretty-tigers-search.md b/.changeset/pretty-tigers-search.md deleted file mode 100644 index 6e67d613cc..0000000000 --- a/.changeset/pretty-tigers-search.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -Support view and pure function modifiers only from 0.4.16 diff --git a/.changeset/proud-flowers-march.md b/.changeset/proud-flowers-march.md deleted file mode 100644 index 329d485d9d..0000000000 --- a/.changeset/proud-flowers-march.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -rename `AsciiStringLiteral` to `StringLiteral` diff --git a/.changeset/quick-waves-sniff.md b/.changeset/quick-waves-sniff.md deleted file mode 100644 index fb8ab64f18..0000000000 --- a/.changeset/quick-waves-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -upgrade to rust `1.76.0` diff --git a/.changeset/quiet-points-suffer.md b/.changeset/quiet-points-suffer.md deleted file mode 100644 index f0823c1bf6..0000000000 --- a/.changeset/quiet-points-suffer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": minor ---- - -Add support for constant function modifier removed in 0.5.0 diff --git a/.changeset/rare-kiwis-fix.md b/.changeset/rare-kiwis-fix.md deleted file mode 100644 index e2ab8b2404..0000000000 --- a/.changeset/rare-kiwis-fix.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -add `override` and `virtual` to `ConstructorAttribute` diff --git a/.changeset/shy-pets-attack.md b/.changeset/shy-pets-attack.md deleted file mode 100644 index 99782dc84a..0000000000 --- a/.changeset/shy-pets-attack.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -allow call options as a post-fix expression diff --git a/.changeset/soft-ties-sort.md b/.changeset/soft-ties-sort.md deleted file mode 100644 index 81e7db29a7..0000000000 --- a/.changeset/soft-ties-sort.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": minor ---- - -Flatten the trivia syntax nodes into sibling tokens diff --git a/.changeset/tall-impalas-look.md b/.changeset/tall-impalas-look.md deleted file mode 100644 index e8d6b1d97b..0000000000 --- a/.changeset/tall-impalas-look.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -support Yul label statements before `0.5.0` diff --git a/.changeset/tidy-vans-enjoy.md b/.changeset/tidy-vans-enjoy.md deleted file mode 100644 index e99830abd7..0000000000 --- a/.changeset/tidy-vans-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -support string literals in version pragmas diff --git a/.changeset/two-bears-cover.md b/.changeset/two-bears-cover.md deleted file mode 100644 index 79a11f5d7a..0000000000 --- a/.changeset/two-bears-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -Fix parsing `.member` member access expression diff --git a/.changeset/unlucky-trains-care.md b/.changeset/unlucky-trains-care.md deleted file mode 100644 index 69ea7ef86d..0000000000 --- a/.changeset/unlucky-trains-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -add `private` to `UnnamedFunctionAttribute` till `0.5.0` diff --git a/.changeset/wet-tigers-collect.md b/.changeset/wet-tigers-collect.md deleted file mode 100644 index 4bccb2671e..0000000000 --- a/.changeset/wet-tigers-collect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nomicfoundation/slang": patch ---- - -allow `var` in `TupleDeconstructionStatement` before `0.5.0` diff --git a/CHANGELOG.md b/CHANGELOG.md index 84f91852ad..281152ffdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,71 @@ # changelog +## 0.14.0 + +### Minor Changes + +- [#753](https://github.com/NomicFoundation/slang/pull/753) [`b35c763`](https://github.com/NomicFoundation/slang/commit/b35c7630ab7240304e67a43734700cf359acde0b) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add tree query implementation as `Query::parse` and `Cursor::query` + +- [#755](https://github.com/NomicFoundation/slang/pull/755) [`8c260fc`](https://github.com/NomicFoundation/slang/commit/8c260fcb7e3111191cd33dd527817fb51119eac4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support parsing NatSpec comments + +- [#886](https://github.com/NomicFoundation/slang/pull/886) [`0125717`](https://github.com/NomicFoundation/slang/commit/0125717fb0b48a5342a8452f18080db13e68fb6b) Thanks [@Xanewok](https://github.com/Xanewok)! - Add `TokenKind::is_trivia` + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Add support for constant function modifier removed in 0.5.0 + +- [#885](https://github.com/NomicFoundation/slang/pull/885) [`a9bd8da`](https://github.com/NomicFoundation/slang/commit/a9bd8da018469739832f71e38437caa83087baf0) Thanks [@Xanewok](https://github.com/Xanewok)! - Flatten the trivia syntax nodes into sibling tokens + +### Patch Changes + +- [#801](https://github.com/NomicFoundation/slang/pull/801) [`ecbba49`](https://github.com/NomicFoundation/slang/commit/ecbba49c7ac25e37b8d317fb60fab7340c0628a5) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unreserve pragma keywords in all versions + +- [#869](https://github.com/NomicFoundation/slang/pull/869) [`951b58d`](https://github.com/NomicFoundation/slang/commit/951b58ddb3eaea600ddf44427a82649761c6b651) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support dots in yul identifiers from `0.5.8` till `0.7.0` + +- [#890](https://github.com/NomicFoundation/slang/pull/890) [`1ff8599`](https://github.com/NomicFoundation/slang/commit/1ff85993f25d92b38d0a500baa6ee48669a1b62a) Thanks [@Xanewok](https://github.com/Xanewok)! - Mark `override` as being a valid attribute only after 0.6.0 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support unicode characters in string literals up to `0.7.0` + +- [#797](https://github.com/NomicFoundation/slang/pull/797) [`86f36d7`](https://github.com/NomicFoundation/slang/commit/86f36d71e60a44261ec114339e931dd3d24cd4a4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix source locations for unicode characters in error reports + +- [#854](https://github.com/NomicFoundation/slang/pull/854) [`4b8970b`](https://github.com/NomicFoundation/slang/commit/4b8970b47ef7a2d1d51339cf5020a3e0f168b9aa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - parse line breaks without newlines + +- [#844](https://github.com/NomicFoundation/slang/pull/844) [`f62de9e`](https://github.com/NomicFoundation/slang/commit/f62de9ea3fc2049ee11e5dbeff3dc51eb1ca984e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing empty `/**/` comments + +- [#799](https://github.com/NomicFoundation/slang/pull/799) [`303dda9`](https://github.com/NomicFoundation/slang/commit/303dda95c08b20450d03116765c210ece64a0864) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prevent parsing multiple literals under `StringExpression` before `0.5.14` + +- [#847](https://github.com/NomicFoundation/slang/pull/847) [`6b6f260`](https://github.com/NomicFoundation/slang/commit/6b6f2603e3ba07c0a7dede0f96082369dc1df940) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prioritize parsing `MultiLineComment` over `MultiLineNatSpecComment` + +- [#796](https://github.com/NomicFoundation/slang/pull/796) [`59e1e53`](https://github.com/NomicFoundation/slang/commit/59e1e53e7efa52355c273d7cef1a3974de13d88d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `public` and `internal` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#756](https://github.com/NomicFoundation/slang/pull/756) [`e839817`](https://github.com/NomicFoundation/slang/commit/e8398173f62d48596669628afc7c8b3572a15291) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing `payable` primary expressions + +- [#851](https://github.com/NomicFoundation/slang/pull/851) [`67dfde8`](https://github.com/NomicFoundation/slang/commit/67dfde81a6d00101a9ed133104f15da5d46662b6) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix selection order of prefix/postfix AST fields + +- [#857](https://github.com/NomicFoundation/slang/pull/857) [`f677d5e`](https://github.com/NomicFoundation/slang/commit/f677d5eff40c4bfcf1db2fc4e63cdf37457fe467) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `FieldName` to `NodeLabel` + +- [#852](https://github.com/NomicFoundation/slang/pull/852) [`ca79eca`](https://github.com/NomicFoundation/slang/commit/ca79ecaa522e531420b42ffba67da192c1e5fdb2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow parsing `ColonEqual` as two separate tokens before `0.5.5` + +- [#889](https://github.com/NomicFoundation/slang/pull/889) [`ce5050f`](https://github.com/NomicFoundation/slang/commit/ce5050f95195fdd018a38a0351d8525f7d62073a) Thanks [@Xanewok](https://github.com/Xanewok)! - Support `delete` as an expression rather than a statement + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Support view and pure function modifiers only from 0.4.16 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `AsciiStringLiteral` to `StringLiteral` + +- [#838](https://github.com/NomicFoundation/slang/pull/838) [`ad98d1c`](https://github.com/NomicFoundation/slang/commit/ad98d1c7d9f9f7cb12b4b6184c04c9b680e6d70a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust `1.76.0` + +- [#849](https://github.com/NomicFoundation/slang/pull/849) [`5c42e0e`](https://github.com/NomicFoundation/slang/commit/5c42e0ef5f3afe0355614967cb6d2daa31518ccf) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `override` and `virtual` to `ConstructorAttribute` + +- [#862](https://github.com/NomicFoundation/slang/pull/862) [`5e37ea0`](https://github.com/NomicFoundation/slang/commit/5e37ea0c40e929e0888b6297fa6dd92952d9cd73) Thanks [@Xanewok](https://github.com/Xanewok)! - allow call options as a post-fix expression + +- [#786](https://github.com/NomicFoundation/slang/pull/786) [`0bfa6b7`](https://github.com/NomicFoundation/slang/commit/0bfa6b7397cd25aca713b30628c6d06e761b416a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support Yul label statements before `0.5.0` + +- [#839](https://github.com/NomicFoundation/slang/pull/839) [`2d698eb`](https://github.com/NomicFoundation/slang/commit/2d698ebe469110b85f539d6e0c75b503cd4ce57e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support string literals in version pragmas + +- [#891](https://github.com/NomicFoundation/slang/pull/891) [`70c9d7d`](https://github.com/NomicFoundation/slang/commit/70c9d7deebddb0f22114b7b05ddc85da6dcceaaf) Thanks [@Xanewok](https://github.com/Xanewok)! - Fix parsing `.member` member access expression + +- [#842](https://github.com/NomicFoundation/slang/pull/842) [`2069126`](https://github.com/NomicFoundation/slang/commit/20691263fb6967195bee30fba92abdfb06daa6fa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `private` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#840](https://github.com/NomicFoundation/slang/pull/840) [`7fb0d20`](https://github.com/NomicFoundation/slang/commit/7fb0d20655024daf71c872a6ef95aa30277a1366) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow `var` in `TupleDeconstructionStatement` before `0.5.0` + ## 0.13.1 ### Patch Changes diff --git a/Cargo.lock b/Cargo.lock index 83022c585d..9887b5124d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -312,7 +312,7 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "codegen_ebnf" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "codegen_language_definition", @@ -322,7 +322,7 @@ dependencies = [ [[package]] name = "codegen_grammar" -version = "0.13.1" +version = "0.14.0" dependencies = [ "codegen_language_definition", "indexmap", @@ -332,7 +332,7 @@ dependencies = [ [[package]] name = "codegen_language_definition" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "codegen_language_internal_macros", @@ -350,7 +350,7 @@ dependencies = [ [[package]] name = "codegen_language_internal_macros" -version = "0.13.1" +version = "0.14.0" dependencies = [ "itertools", "proc-macro2", @@ -360,14 +360,14 @@ dependencies = [ [[package]] name = "codegen_language_macros" -version = "0.13.1" +version = "0.14.0" dependencies = [ "codegen_language_definition", ] [[package]] name = "codegen_language_tests" -version = "0.13.1" +version = "0.14.0" dependencies = [ "codegen_language_definition", "codegen_language_macros", @@ -379,7 +379,7 @@ dependencies = [ [[package]] name = "codegen_parser_generator" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "anyhow", @@ -396,7 +396,7 @@ dependencies = [ [[package]] name = "codegen_parser_runtime" -version = "0.13.1" +version = "0.14.0" dependencies = [ "ariadne", "napi", @@ -409,7 +409,7 @@ dependencies = [ [[package]] name = "codegen_spec" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "anyhow", @@ -422,7 +422,7 @@ dependencies = [ [[package]] name = "codegen_testing" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "anyhow", @@ -934,7 +934,7 @@ dependencies = [ [[package]] name = "infra_cli" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "clap", @@ -952,7 +952,7 @@ dependencies = [ [[package]] name = "infra_utils" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "anyhow", @@ -1752,7 +1752,7 @@ dependencies = [ [[package]] name = "slang_solidity" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "ariadne", @@ -1771,7 +1771,7 @@ dependencies = [ [[package]] name = "slang_solidity_node_addon" -version = "0.13.1" +version = "0.14.0" dependencies = [ "ariadne", "napi", @@ -1788,7 +1788,7 @@ dependencies = [ [[package]] name = "slang_testlang" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "ariadne", @@ -1805,7 +1805,7 @@ dependencies = [ [[package]] name = "slang_testlang_node_addon" -version = "0.13.1" +version = "0.14.0" dependencies = [ "ariadne", "napi", @@ -1851,7 +1851,7 @@ dependencies = [ [[package]] name = "solidity_cargo_tests" -version = "0.13.1" +version = "0.14.0" dependencies = [ "Inflector", "anyhow", @@ -1867,7 +1867,7 @@ dependencies = [ [[package]] name = "solidity_language" -version = "0.13.1" +version = "0.14.0" dependencies = [ "codegen_language_definition", "codegen_language_macros", @@ -1876,7 +1876,7 @@ dependencies = [ [[package]] name = "solidity_npm_package" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "codegen_parser_generator", @@ -1886,7 +1886,7 @@ dependencies = [ [[package]] name = "solidity_spec" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "codegen_spec", @@ -1896,7 +1896,7 @@ dependencies = [ [[package]] name = "solidity_testing_sanctuary" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "clap", @@ -1915,11 +1915,11 @@ dependencies = [ [[package]] name = "solidity_testing_snapshots" -version = "0.13.1" +version = "0.14.0" [[package]] name = "solidity_testing_solc" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "ariadne", @@ -2057,7 +2057,7 @@ dependencies = [ [[package]] name = "testlang_cargo_tests" -version = "0.13.1" +version = "0.14.0" dependencies = [ "semver", "slang_testlang", @@ -2065,7 +2065,7 @@ dependencies = [ [[package]] name = "testlang_language" -version = "0.13.1" +version = "0.14.0" dependencies = [ "codegen_language_definition", "codegen_language_macros", @@ -2074,7 +2074,7 @@ dependencies = [ [[package]] name = "testlang_npm_package" -version = "0.13.1" +version = "0.14.0" dependencies = [ "anyhow", "codegen_parser_generator", diff --git a/Cargo.toml b/Cargo.toml index 5abcad0b97..19a4f88148 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [workspace.package] -version = "0.13.1" +version = "0.14.0" rust-version = "1.76.0" # __RUST_STABLE_VERSION_MARKER__ (keep in sync) edition = "2021" publish = false diff --git a/crates/solidity/outputs/cargo/slang_solidity/CHANGELOG.md b/crates/solidity/outputs/cargo/slang_solidity/CHANGELOG.md index 84f91852ad..281152ffdd 100644 --- a/crates/solidity/outputs/cargo/slang_solidity/CHANGELOG.md +++ b/crates/solidity/outputs/cargo/slang_solidity/CHANGELOG.md @@ -1,5 +1,71 @@ # changelog +## 0.14.0 + +### Minor Changes + +- [#753](https://github.com/NomicFoundation/slang/pull/753) [`b35c763`](https://github.com/NomicFoundation/slang/commit/b35c7630ab7240304e67a43734700cf359acde0b) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add tree query implementation as `Query::parse` and `Cursor::query` + +- [#755](https://github.com/NomicFoundation/slang/pull/755) [`8c260fc`](https://github.com/NomicFoundation/slang/commit/8c260fcb7e3111191cd33dd527817fb51119eac4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support parsing NatSpec comments + +- [#886](https://github.com/NomicFoundation/slang/pull/886) [`0125717`](https://github.com/NomicFoundation/slang/commit/0125717fb0b48a5342a8452f18080db13e68fb6b) Thanks [@Xanewok](https://github.com/Xanewok)! - Add `TokenKind::is_trivia` + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Add support for constant function modifier removed in 0.5.0 + +- [#885](https://github.com/NomicFoundation/slang/pull/885) [`a9bd8da`](https://github.com/NomicFoundation/slang/commit/a9bd8da018469739832f71e38437caa83087baf0) Thanks [@Xanewok](https://github.com/Xanewok)! - Flatten the trivia syntax nodes into sibling tokens + +### Patch Changes + +- [#801](https://github.com/NomicFoundation/slang/pull/801) [`ecbba49`](https://github.com/NomicFoundation/slang/commit/ecbba49c7ac25e37b8d317fb60fab7340c0628a5) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unreserve pragma keywords in all versions + +- [#869](https://github.com/NomicFoundation/slang/pull/869) [`951b58d`](https://github.com/NomicFoundation/slang/commit/951b58ddb3eaea600ddf44427a82649761c6b651) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support dots in yul identifiers from `0.5.8` till `0.7.0` + +- [#890](https://github.com/NomicFoundation/slang/pull/890) [`1ff8599`](https://github.com/NomicFoundation/slang/commit/1ff85993f25d92b38d0a500baa6ee48669a1b62a) Thanks [@Xanewok](https://github.com/Xanewok)! - Mark `override` as being a valid attribute only after 0.6.0 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support unicode characters in string literals up to `0.7.0` + +- [#797](https://github.com/NomicFoundation/slang/pull/797) [`86f36d7`](https://github.com/NomicFoundation/slang/commit/86f36d71e60a44261ec114339e931dd3d24cd4a4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix source locations for unicode characters in error reports + +- [#854](https://github.com/NomicFoundation/slang/pull/854) [`4b8970b`](https://github.com/NomicFoundation/slang/commit/4b8970b47ef7a2d1d51339cf5020a3e0f168b9aa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - parse line breaks without newlines + +- [#844](https://github.com/NomicFoundation/slang/pull/844) [`f62de9e`](https://github.com/NomicFoundation/slang/commit/f62de9ea3fc2049ee11e5dbeff3dc51eb1ca984e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing empty `/**/` comments + +- [#799](https://github.com/NomicFoundation/slang/pull/799) [`303dda9`](https://github.com/NomicFoundation/slang/commit/303dda95c08b20450d03116765c210ece64a0864) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prevent parsing multiple literals under `StringExpression` before `0.5.14` + +- [#847](https://github.com/NomicFoundation/slang/pull/847) [`6b6f260`](https://github.com/NomicFoundation/slang/commit/6b6f2603e3ba07c0a7dede0f96082369dc1df940) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prioritize parsing `MultiLineComment` over `MultiLineNatSpecComment` + +- [#796](https://github.com/NomicFoundation/slang/pull/796) [`59e1e53`](https://github.com/NomicFoundation/slang/commit/59e1e53e7efa52355c273d7cef1a3974de13d88d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `public` and `internal` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#756](https://github.com/NomicFoundation/slang/pull/756) [`e839817`](https://github.com/NomicFoundation/slang/commit/e8398173f62d48596669628afc7c8b3572a15291) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing `payable` primary expressions + +- [#851](https://github.com/NomicFoundation/slang/pull/851) [`67dfde8`](https://github.com/NomicFoundation/slang/commit/67dfde81a6d00101a9ed133104f15da5d46662b6) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix selection order of prefix/postfix AST fields + +- [#857](https://github.com/NomicFoundation/slang/pull/857) [`f677d5e`](https://github.com/NomicFoundation/slang/commit/f677d5eff40c4bfcf1db2fc4e63cdf37457fe467) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `FieldName` to `NodeLabel` + +- [#852](https://github.com/NomicFoundation/slang/pull/852) [`ca79eca`](https://github.com/NomicFoundation/slang/commit/ca79ecaa522e531420b42ffba67da192c1e5fdb2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow parsing `ColonEqual` as two separate tokens before `0.5.5` + +- [#889](https://github.com/NomicFoundation/slang/pull/889) [`ce5050f`](https://github.com/NomicFoundation/slang/commit/ce5050f95195fdd018a38a0351d8525f7d62073a) Thanks [@Xanewok](https://github.com/Xanewok)! - Support `delete` as an expression rather than a statement + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Support view and pure function modifiers only from 0.4.16 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `AsciiStringLiteral` to `StringLiteral` + +- [#838](https://github.com/NomicFoundation/slang/pull/838) [`ad98d1c`](https://github.com/NomicFoundation/slang/commit/ad98d1c7d9f9f7cb12b4b6184c04c9b680e6d70a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust `1.76.0` + +- [#849](https://github.com/NomicFoundation/slang/pull/849) [`5c42e0e`](https://github.com/NomicFoundation/slang/commit/5c42e0ef5f3afe0355614967cb6d2daa31518ccf) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `override` and `virtual` to `ConstructorAttribute` + +- [#862](https://github.com/NomicFoundation/slang/pull/862) [`5e37ea0`](https://github.com/NomicFoundation/slang/commit/5e37ea0c40e929e0888b6297fa6dd92952d9cd73) Thanks [@Xanewok](https://github.com/Xanewok)! - allow call options as a post-fix expression + +- [#786](https://github.com/NomicFoundation/slang/pull/786) [`0bfa6b7`](https://github.com/NomicFoundation/slang/commit/0bfa6b7397cd25aca713b30628c6d06e761b416a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support Yul label statements before `0.5.0` + +- [#839](https://github.com/NomicFoundation/slang/pull/839) [`2d698eb`](https://github.com/NomicFoundation/slang/commit/2d698ebe469110b85f539d6e0c75b503cd4ce57e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support string literals in version pragmas + +- [#891](https://github.com/NomicFoundation/slang/pull/891) [`70c9d7d`](https://github.com/NomicFoundation/slang/commit/70c9d7deebddb0f22114b7b05ddc85da6dcceaaf) Thanks [@Xanewok](https://github.com/Xanewok)! - Fix parsing `.member` member access expression + +- [#842](https://github.com/NomicFoundation/slang/pull/842) [`2069126`](https://github.com/NomicFoundation/slang/commit/20691263fb6967195bee30fba92abdfb06daa6fa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `private` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#840](https://github.com/NomicFoundation/slang/pull/840) [`7fb0d20`](https://github.com/NomicFoundation/slang/commit/7fb0d20655024daf71c872a6ef95aa30277a1366) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow `var` in `TupleDeconstructionStatement` before `0.5.0` + ## 0.13.1 ### Patch Changes diff --git a/crates/solidity/outputs/npm/package/CHANGELOG.md b/crates/solidity/outputs/npm/package/CHANGELOG.md index 84f91852ad..281152ffdd 100644 --- a/crates/solidity/outputs/npm/package/CHANGELOG.md +++ b/crates/solidity/outputs/npm/package/CHANGELOG.md @@ -1,5 +1,71 @@ # changelog +## 0.14.0 + +### Minor Changes + +- [#753](https://github.com/NomicFoundation/slang/pull/753) [`b35c763`](https://github.com/NomicFoundation/slang/commit/b35c7630ab7240304e67a43734700cf359acde0b) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add tree query implementation as `Query::parse` and `Cursor::query` + +- [#755](https://github.com/NomicFoundation/slang/pull/755) [`8c260fc`](https://github.com/NomicFoundation/slang/commit/8c260fcb7e3111191cd33dd527817fb51119eac4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support parsing NatSpec comments + +- [#886](https://github.com/NomicFoundation/slang/pull/886) [`0125717`](https://github.com/NomicFoundation/slang/commit/0125717fb0b48a5342a8452f18080db13e68fb6b) Thanks [@Xanewok](https://github.com/Xanewok)! - Add `TokenKind::is_trivia` + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Add support for constant function modifier removed in 0.5.0 + +- [#885](https://github.com/NomicFoundation/slang/pull/885) [`a9bd8da`](https://github.com/NomicFoundation/slang/commit/a9bd8da018469739832f71e38437caa83087baf0) Thanks [@Xanewok](https://github.com/Xanewok)! - Flatten the trivia syntax nodes into sibling tokens + +### Patch Changes + +- [#801](https://github.com/NomicFoundation/slang/pull/801) [`ecbba49`](https://github.com/NomicFoundation/slang/commit/ecbba49c7ac25e37b8d317fb60fab7340c0628a5) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unreserve pragma keywords in all versions + +- [#869](https://github.com/NomicFoundation/slang/pull/869) [`951b58d`](https://github.com/NomicFoundation/slang/commit/951b58ddb3eaea600ddf44427a82649761c6b651) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support dots in yul identifiers from `0.5.8` till `0.7.0` + +- [#890](https://github.com/NomicFoundation/slang/pull/890) [`1ff8599`](https://github.com/NomicFoundation/slang/commit/1ff85993f25d92b38d0a500baa6ee48669a1b62a) Thanks [@Xanewok](https://github.com/Xanewok)! - Mark `override` as being a valid attribute only after 0.6.0 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support unicode characters in string literals up to `0.7.0` + +- [#797](https://github.com/NomicFoundation/slang/pull/797) [`86f36d7`](https://github.com/NomicFoundation/slang/commit/86f36d71e60a44261ec114339e931dd3d24cd4a4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix source locations for unicode characters in error reports + +- [#854](https://github.com/NomicFoundation/slang/pull/854) [`4b8970b`](https://github.com/NomicFoundation/slang/commit/4b8970b47ef7a2d1d51339cf5020a3e0f168b9aa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - parse line breaks without newlines + +- [#844](https://github.com/NomicFoundation/slang/pull/844) [`f62de9e`](https://github.com/NomicFoundation/slang/commit/f62de9ea3fc2049ee11e5dbeff3dc51eb1ca984e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing empty `/**/` comments + +- [#799](https://github.com/NomicFoundation/slang/pull/799) [`303dda9`](https://github.com/NomicFoundation/slang/commit/303dda95c08b20450d03116765c210ece64a0864) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prevent parsing multiple literals under `StringExpression` before `0.5.14` + +- [#847](https://github.com/NomicFoundation/slang/pull/847) [`6b6f260`](https://github.com/NomicFoundation/slang/commit/6b6f2603e3ba07c0a7dede0f96082369dc1df940) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prioritize parsing `MultiLineComment` over `MultiLineNatSpecComment` + +- [#796](https://github.com/NomicFoundation/slang/pull/796) [`59e1e53`](https://github.com/NomicFoundation/slang/commit/59e1e53e7efa52355c273d7cef1a3974de13d88d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `public` and `internal` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#756](https://github.com/NomicFoundation/slang/pull/756) [`e839817`](https://github.com/NomicFoundation/slang/commit/e8398173f62d48596669628afc7c8b3572a15291) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing `payable` primary expressions + +- [#851](https://github.com/NomicFoundation/slang/pull/851) [`67dfde8`](https://github.com/NomicFoundation/slang/commit/67dfde81a6d00101a9ed133104f15da5d46662b6) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix selection order of prefix/postfix AST fields + +- [#857](https://github.com/NomicFoundation/slang/pull/857) [`f677d5e`](https://github.com/NomicFoundation/slang/commit/f677d5eff40c4bfcf1db2fc4e63cdf37457fe467) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `FieldName` to `NodeLabel` + +- [#852](https://github.com/NomicFoundation/slang/pull/852) [`ca79eca`](https://github.com/NomicFoundation/slang/commit/ca79ecaa522e531420b42ffba67da192c1e5fdb2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow parsing `ColonEqual` as two separate tokens before `0.5.5` + +- [#889](https://github.com/NomicFoundation/slang/pull/889) [`ce5050f`](https://github.com/NomicFoundation/slang/commit/ce5050f95195fdd018a38a0351d8525f7d62073a) Thanks [@Xanewok](https://github.com/Xanewok)! - Support `delete` as an expression rather than a statement + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Support view and pure function modifiers only from 0.4.16 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `AsciiStringLiteral` to `StringLiteral` + +- [#838](https://github.com/NomicFoundation/slang/pull/838) [`ad98d1c`](https://github.com/NomicFoundation/slang/commit/ad98d1c7d9f9f7cb12b4b6184c04c9b680e6d70a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust `1.76.0` + +- [#849](https://github.com/NomicFoundation/slang/pull/849) [`5c42e0e`](https://github.com/NomicFoundation/slang/commit/5c42e0ef5f3afe0355614967cb6d2daa31518ccf) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `override` and `virtual` to `ConstructorAttribute` + +- [#862](https://github.com/NomicFoundation/slang/pull/862) [`5e37ea0`](https://github.com/NomicFoundation/slang/commit/5e37ea0c40e929e0888b6297fa6dd92952d9cd73) Thanks [@Xanewok](https://github.com/Xanewok)! - allow call options as a post-fix expression + +- [#786](https://github.com/NomicFoundation/slang/pull/786) [`0bfa6b7`](https://github.com/NomicFoundation/slang/commit/0bfa6b7397cd25aca713b30628c6d06e761b416a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support Yul label statements before `0.5.0` + +- [#839](https://github.com/NomicFoundation/slang/pull/839) [`2d698eb`](https://github.com/NomicFoundation/slang/commit/2d698ebe469110b85f539d6e0c75b503cd4ce57e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support string literals in version pragmas + +- [#891](https://github.com/NomicFoundation/slang/pull/891) [`70c9d7d`](https://github.com/NomicFoundation/slang/commit/70c9d7deebddb0f22114b7b05ddc85da6dcceaaf) Thanks [@Xanewok](https://github.com/Xanewok)! - Fix parsing `.member` member access expression + +- [#842](https://github.com/NomicFoundation/slang/pull/842) [`2069126`](https://github.com/NomicFoundation/slang/commit/20691263fb6967195bee30fba92abdfb06daa6fa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `private` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#840](https://github.com/NomicFoundation/slang/pull/840) [`7fb0d20`](https://github.com/NomicFoundation/slang/commit/7fb0d20655024daf71c872a6ef95aa30277a1366) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow `var` in `TupleDeconstructionStatement` before `0.5.0` + ## 0.13.1 ### Patch Changes diff --git a/crates/solidity/outputs/npm/package/package.json b/crates/solidity/outputs/npm/package/package.json index 86db518d10..15a3bc39e2 100644 --- a/crates/solidity/outputs/npm/package/package.json +++ b/crates/solidity/outputs/npm/package/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang", - "version": "0.13.1", + "version": "0.14.0", "description": "A modular set of compiler APIs empowering the next generation of Solidity code analysis and developer tooling. Written in Rust and distributed in multiple languages.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", @@ -32,15 +32,15 @@ "@napi-rs/cli": "2.18.0" }, "optionalDependencies": { - "@nomicfoundation/slang-darwin-arm64": "0.13.1", - "@nomicfoundation/slang-win32-arm64-msvc": "0.13.1", - "@nomicfoundation/slang-linux-arm64-gnu": "0.13.1", - "@nomicfoundation/slang-linux-arm64-musl": "0.13.1", - "@nomicfoundation/slang-win32-ia32-msvc": "0.13.1", - "@nomicfoundation/slang-darwin-x64": "0.13.1", - "@nomicfoundation/slang-win32-x64-msvc": "0.13.1", - "@nomicfoundation/slang-linux-x64-gnu": "0.13.1", - "@nomicfoundation/slang-linux-x64-musl": "0.13.1" + "@nomicfoundation/slang-darwin-arm64": "0.14.0", + "@nomicfoundation/slang-win32-arm64-msvc": "0.14.0", + "@nomicfoundation/slang-linux-arm64-gnu": "0.14.0", + "@nomicfoundation/slang-linux-arm64-musl": "0.14.0", + "@nomicfoundation/slang-win32-ia32-msvc": "0.14.0", + "@nomicfoundation/slang-darwin-x64": "0.14.0", + "@nomicfoundation/slang-win32-x64-msvc": "0.14.0", + "@nomicfoundation/slang-linux-x64-gnu": "0.14.0", + "@nomicfoundation/slang-linux-x64-musl": "0.14.0" }, "napi": { "triples": { diff --git a/crates/solidity/outputs/npm/package/platforms/darwin-arm64/package.json b/crates/solidity/outputs/npm/package/platforms/darwin-arm64/package.json index 6f984d2713..b3a3e04496 100644 --- a/crates/solidity/outputs/npm/package/platforms/darwin-arm64/package.json +++ b/crates/solidity/outputs/npm/package/platforms/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-darwin-arm64", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/darwin-x64/package.json b/crates/solidity/outputs/npm/package/platforms/darwin-x64/package.json index 8bec648cae..522be756e8 100644 --- a/crates/solidity/outputs/npm/package/platforms/darwin-x64/package.json +++ b/crates/solidity/outputs/npm/package/platforms/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-darwin-x64", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/linux-arm64-gnu/package.json b/crates/solidity/outputs/npm/package/platforms/linux-arm64-gnu/package.json index 8315b32766..7449f7d6ef 100644 --- a/crates/solidity/outputs/npm/package/platforms/linux-arm64-gnu/package.json +++ b/crates/solidity/outputs/npm/package/platforms/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-linux-arm64-gnu", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/linux-arm64-musl/package.json b/crates/solidity/outputs/npm/package/platforms/linux-arm64-musl/package.json index c1c407bd6a..83df1957c4 100644 --- a/crates/solidity/outputs/npm/package/platforms/linux-arm64-musl/package.json +++ b/crates/solidity/outputs/npm/package/platforms/linux-arm64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-linux-arm64-musl", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/linux-x64-gnu/package.json b/crates/solidity/outputs/npm/package/platforms/linux-x64-gnu/package.json index 5442df346f..0341766d4d 100644 --- a/crates/solidity/outputs/npm/package/platforms/linux-x64-gnu/package.json +++ b/crates/solidity/outputs/npm/package/platforms/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-linux-x64-gnu", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/linux-x64-musl/package.json b/crates/solidity/outputs/npm/package/platforms/linux-x64-musl/package.json index 4b27c4b893..945a0ad4b6 100644 --- a/crates/solidity/outputs/npm/package/platforms/linux-x64-musl/package.json +++ b/crates/solidity/outputs/npm/package/platforms/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-linux-x64-musl", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/win32-arm64-msvc/package.json b/crates/solidity/outputs/npm/package/platforms/win32-arm64-msvc/package.json index 293684216a..460ddc92a7 100644 --- a/crates/solidity/outputs/npm/package/platforms/win32-arm64-msvc/package.json +++ b/crates/solidity/outputs/npm/package/platforms/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-win32-arm64-msvc", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/win32-ia32-msvc/package.json b/crates/solidity/outputs/npm/package/platforms/win32-ia32-msvc/package.json index 347faf9e8b..ee6f4b4500 100644 --- a/crates/solidity/outputs/npm/package/platforms/win32-ia32-msvc/package.json +++ b/crates/solidity/outputs/npm/package/platforms/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-win32-ia32-msvc", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/solidity/outputs/npm/package/platforms/win32-x64-msvc/package.json b/crates/solidity/outputs/npm/package/platforms/win32-x64-msvc/package.json index f760970874..cd2f49a768 100644 --- a/crates/solidity/outputs/npm/package/platforms/win32-x64-msvc/package.json +++ b/crates/solidity/outputs/npm/package/platforms/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/slang-win32-x64-msvc", - "version": "0.13.1", + "version": "0.14.0", "description": "Platform-specific binaries for @nomicfoundation/slang.", "homepage": "https://nomicfoundation.github.io/slang/", "license": "MIT", diff --git a/crates/testlang/outputs/npm/package/CHANGELOG.md b/crates/testlang/outputs/npm/package/CHANGELOG.md index e69de29bb2..281152ffdd 100644 --- a/crates/testlang/outputs/npm/package/CHANGELOG.md +++ b/crates/testlang/outputs/npm/package/CHANGELOG.md @@ -0,0 +1,298 @@ +# changelog + +## 0.14.0 + +### Minor Changes + +- [#753](https://github.com/NomicFoundation/slang/pull/753) [`b35c763`](https://github.com/NomicFoundation/slang/commit/b35c7630ab7240304e67a43734700cf359acde0b) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add tree query implementation as `Query::parse` and `Cursor::query` + +- [#755](https://github.com/NomicFoundation/slang/pull/755) [`8c260fc`](https://github.com/NomicFoundation/slang/commit/8c260fcb7e3111191cd33dd527817fb51119eac4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support parsing NatSpec comments + +- [#886](https://github.com/NomicFoundation/slang/pull/886) [`0125717`](https://github.com/NomicFoundation/slang/commit/0125717fb0b48a5342a8452f18080db13e68fb6b) Thanks [@Xanewok](https://github.com/Xanewok)! - Add `TokenKind::is_trivia` + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Add support for constant function modifier removed in 0.5.0 + +- [#885](https://github.com/NomicFoundation/slang/pull/885) [`a9bd8da`](https://github.com/NomicFoundation/slang/commit/a9bd8da018469739832f71e38437caa83087baf0) Thanks [@Xanewok](https://github.com/Xanewok)! - Flatten the trivia syntax nodes into sibling tokens + +### Patch Changes + +- [#801](https://github.com/NomicFoundation/slang/pull/801) [`ecbba49`](https://github.com/NomicFoundation/slang/commit/ecbba49c7ac25e37b8d317fb60fab7340c0628a5) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unreserve pragma keywords in all versions + +- [#869](https://github.com/NomicFoundation/slang/pull/869) [`951b58d`](https://github.com/NomicFoundation/slang/commit/951b58ddb3eaea600ddf44427a82649761c6b651) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support dots in yul identifiers from `0.5.8` till `0.7.0` + +- [#890](https://github.com/NomicFoundation/slang/pull/890) [`1ff8599`](https://github.com/NomicFoundation/slang/commit/1ff85993f25d92b38d0a500baa6ee48669a1b62a) Thanks [@Xanewok](https://github.com/Xanewok)! - Mark `override` as being a valid attribute only after 0.6.0 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support unicode characters in string literals up to `0.7.0` + +- [#797](https://github.com/NomicFoundation/slang/pull/797) [`86f36d7`](https://github.com/NomicFoundation/slang/commit/86f36d71e60a44261ec114339e931dd3d24cd4a4) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix source locations for unicode characters in error reports + +- [#854](https://github.com/NomicFoundation/slang/pull/854) [`4b8970b`](https://github.com/NomicFoundation/slang/commit/4b8970b47ef7a2d1d51339cf5020a3e0f168b9aa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - parse line breaks without newlines + +- [#844](https://github.com/NomicFoundation/slang/pull/844) [`f62de9e`](https://github.com/NomicFoundation/slang/commit/f62de9ea3fc2049ee11e5dbeff3dc51eb1ca984e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing empty `/**/` comments + +- [#799](https://github.com/NomicFoundation/slang/pull/799) [`303dda9`](https://github.com/NomicFoundation/slang/commit/303dda95c08b20450d03116765c210ece64a0864) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prevent parsing multiple literals under `StringExpression` before `0.5.14` + +- [#847](https://github.com/NomicFoundation/slang/pull/847) [`6b6f260`](https://github.com/NomicFoundation/slang/commit/6b6f2603e3ba07c0a7dede0f96082369dc1df940) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - prioritize parsing `MultiLineComment` over `MultiLineNatSpecComment` + +- [#796](https://github.com/NomicFoundation/slang/pull/796) [`59e1e53`](https://github.com/NomicFoundation/slang/commit/59e1e53e7efa52355c273d7cef1a3974de13d88d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `public` and `internal` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#756](https://github.com/NomicFoundation/slang/pull/756) [`e839817`](https://github.com/NomicFoundation/slang/commit/e8398173f62d48596669628afc7c8b3572a15291) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix parsing `payable` primary expressions + +- [#851](https://github.com/NomicFoundation/slang/pull/851) [`67dfde8`](https://github.com/NomicFoundation/slang/commit/67dfde81a6d00101a9ed133104f15da5d46662b6) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix selection order of prefix/postfix AST fields + +- [#857](https://github.com/NomicFoundation/slang/pull/857) [`f677d5e`](https://github.com/NomicFoundation/slang/commit/f677d5eff40c4bfcf1db2fc4e63cdf37457fe467) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `FieldName` to `NodeLabel` + +- [#852](https://github.com/NomicFoundation/slang/pull/852) [`ca79eca`](https://github.com/NomicFoundation/slang/commit/ca79ecaa522e531420b42ffba67da192c1e5fdb2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow parsing `ColonEqual` as two separate tokens before `0.5.5` + +- [#889](https://github.com/NomicFoundation/slang/pull/889) [`ce5050f`](https://github.com/NomicFoundation/slang/commit/ce5050f95195fdd018a38a0351d8525f7d62073a) Thanks [@Xanewok](https://github.com/Xanewok)! - Support `delete` as an expression rather than a statement + +- [#887](https://github.com/NomicFoundation/slang/pull/887) [`dff1201`](https://github.com/NomicFoundation/slang/commit/dff12011c549d68b20ecd54251af764643fb72db) Thanks [@Xanewok](https://github.com/Xanewok)! - Support view and pure function modifiers only from 0.4.16 + +- [#800](https://github.com/NomicFoundation/slang/pull/800) [`d1827ff`](https://github.com/NomicFoundation/slang/commit/d1827ff7e1010493ff5487532a5ee0c77d355aa2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `AsciiStringLiteral` to `StringLiteral` + +- [#838](https://github.com/NomicFoundation/slang/pull/838) [`ad98d1c`](https://github.com/NomicFoundation/slang/commit/ad98d1c7d9f9f7cb12b4b6184c04c9b680e6d70a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust `1.76.0` + +- [#849](https://github.com/NomicFoundation/slang/pull/849) [`5c42e0e`](https://github.com/NomicFoundation/slang/commit/5c42e0ef5f3afe0355614967cb6d2daa31518ccf) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `override` and `virtual` to `ConstructorAttribute` + +- [#862](https://github.com/NomicFoundation/slang/pull/862) [`5e37ea0`](https://github.com/NomicFoundation/slang/commit/5e37ea0c40e929e0888b6297fa6dd92952d9cd73) Thanks [@Xanewok](https://github.com/Xanewok)! - allow call options as a post-fix expression + +- [#786](https://github.com/NomicFoundation/slang/pull/786) [`0bfa6b7`](https://github.com/NomicFoundation/slang/commit/0bfa6b7397cd25aca713b30628c6d06e761b416a) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support Yul label statements before `0.5.0` + +- [#839](https://github.com/NomicFoundation/slang/pull/839) [`2d698eb`](https://github.com/NomicFoundation/slang/commit/2d698ebe469110b85f539d6e0c75b503cd4ce57e) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support string literals in version pragmas + +- [#891](https://github.com/NomicFoundation/slang/pull/891) [`70c9d7d`](https://github.com/NomicFoundation/slang/commit/70c9d7deebddb0f22114b7b05ddc85da6dcceaaf) Thanks [@Xanewok](https://github.com/Xanewok)! - Fix parsing `.member` member access expression + +- [#842](https://github.com/NomicFoundation/slang/pull/842) [`2069126`](https://github.com/NomicFoundation/slang/commit/20691263fb6967195bee30fba92abdfb06daa6fa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `private` to `UnnamedFunctionAttribute` till `0.5.0` + +- [#840](https://github.com/NomicFoundation/slang/pull/840) [`7fb0d20`](https://github.com/NomicFoundation/slang/commit/7fb0d20655024daf71c872a6ef95aa30277a1366) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - allow `var` in `TupleDeconstructionStatement` before `0.5.0` + +## 0.13.1 + +### Patch Changes + +- [#748](https://github.com/NomicFoundation/slang/pull/748) [`c289cbf7`](https://github.com/NomicFoundation/slang/commit/c289cbf7e22118881818b82d0ffc5933a424a7aa) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Properly parse EVM built-ins up till Paris/Solidity 0.8.18 + +## 0.13.0 + +### Minor Changes + +- [#710](https://github.com/NomicFoundation/slang/pull/710) [`2025b6cb`](https://github.com/NomicFoundation/slang/commit/2025b6cb23dc320b413b482ed1fe8455229b7d84) Thanks [@Xanewok](https://github.com/Xanewok)! - CST children nodes are now named + +- [#723](https://github.com/NomicFoundation/slang/pull/723) [`b3dc6bcd`](https://github.com/NomicFoundation/slang/commit/b3dc6bcdc1834d266a87d483927894617bf8e817) Thanks [@Xanewok](https://github.com/Xanewok)! - Properly parse unreserved keywords in an identifier position, i.e. `from`, `emit`, `global` etc. + +- [#728](https://github.com/NomicFoundation/slang/pull/728) [`662a672c`](https://github.com/NomicFoundation/slang/commit/662a672cd661b9f1bf4c18587acf68111fd1f2e8) Thanks [@Xanewok](https://github.com/Xanewok)! - Remove Language#scan API; use the parser API instead + +- [#719](https://github.com/NomicFoundation/slang/pull/719) [`1ad6bb37`](https://github.com/NomicFoundation/slang/commit/1ad6bb37337aa28d9344380c5c9eb1945e908271) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - introduce strong types for all Solidity non terminals in the TypeScript API. + +### Patch Changes + +- [#719](https://github.com/NomicFoundation/slang/pull/719) [`1ad6bb37`](https://github.com/NomicFoundation/slang/commit/1ad6bb37337aa28d9344380c5c9eb1945e908271) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - unify Rust/TypeScript node helpers: `*_with_kind()`, `*_with_kinds()`, `*_is_kind()`), ... + +- [#731](https://github.com/NomicFoundation/slang/pull/731) [`3deaea2e`](https://github.com/NomicFoundation/slang/commit/3deaea2eb82ce33dbccc54d1a79b9cf5657385ac) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add `RuleNode.unparse()` to the TypeScript API + +## 0.12.0 + +### Minor Changes + +- [#699](https://github.com/NomicFoundation/slang/pull/699) [`ddfebfe9`](https://github.com/NomicFoundation/slang/commit/ddfebfe988345136007431f8ea2efac19fd7e887) Thanks [@Xanewok](https://github.com/Xanewok)! - Remove `ProductionKind` in favor of `RuleKind` + +- [#699](https://github.com/NomicFoundation/slang/pull/699) [`ddfebfe9`](https://github.com/NomicFoundation/slang/commit/ddfebfe988345136007431f8ea2efac19fd7e887) Thanks [@Xanewok](https://github.com/Xanewok)! - Allow parsing individual precedence expressions, like `ShiftExpression` + +- [#665](https://github.com/NomicFoundation/slang/pull/665) [`4b5f8b46`](https://github.com/NomicFoundation/slang/commit/4b5f8b467d4cbab72cf27a539bb5ca8c71090dd6) Thanks [@Xanewok](https://github.com/Xanewok)! - Remove the CST Visitor API in favor of the Cursor API + +- [#666](https://github.com/NomicFoundation/slang/pull/666) [`0434b68c`](https://github.com/NomicFoundation/slang/commit/0434b68c9ef9cd1d1dcc07d7ed50e6d63645319b) Thanks [@Xanewok](https://github.com/Xanewok)! - Add `Node::unparse()` that allows to reconstruct the source code from the CST node + +- [#675](https://github.com/NomicFoundation/slang/pull/675) [`daea4b7f`](https://github.com/NomicFoundation/slang/commit/daea4b7f954ff1e918b9191aff40ee95c10a4db2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `Cursor`'s `pathRuleNodes()` to `ancestors()` in the NodeJS API. + +- [#676](https://github.com/NomicFoundation/slang/pull/676) [`b496d361`](https://github.com/NomicFoundation/slang/commit/b496d36120700347bcbcc25b948eb46814fd5412) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Fix NAPI `cursor` types and expose `cursor.depth`. + +### Patch Changes + +- [#685](https://github.com/NomicFoundation/slang/pull/685) [`b5fca94a`](https://github.com/NomicFoundation/slang/commit/b5fca94af917a2f0418c224b3101885c02e5cb9c) Thanks [@Xanewok](https://github.com/Xanewok)! - `bytes` is now properly recognized as a reserved word + +- [#660](https://github.com/NomicFoundation/slang/pull/660) [`97028991`](https://github.com/NomicFoundation/slang/commit/9702899164f0540a49f2e0f7f19d82fbd04b1d1b) Thanks [@Xanewok](https://github.com/Xanewok)! - Drop List suffix from collection grammar rule names + +## 0.11.0 + +### Minor Changes + +- [#625](https://github.com/NomicFoundation/slang/pull/625) [`7bb650b`](https://github.com/NomicFoundation/slang/commit/7bb650b12ae793a318dc5b7839fb93915c88828e) Thanks [@Xanewok](https://github.com/Xanewok)! - The CST Cursor now implements the Iterator trait as part of the Rust API + +- [#647](https://github.com/NomicFoundation/slang/pull/647) [`b1dced3`](https://github.com/NomicFoundation/slang/commit/b1dced355ce83f3bd858c02837d67665f7ef281d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Require specifying an initial offset when creating a CST cursor. + +### Patch Changes + +- [#648](https://github.com/NomicFoundation/slang/pull/648) [`2327bf5`](https://github.com/NomicFoundation/slang/commit/2327bf5d8c40d85edd0cc80fe9e36d367a1a3336) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Support Solidity v0.8.22. + +- [#623](https://github.com/NomicFoundation/slang/pull/623) [`80114a8`](https://github.com/NomicFoundation/slang/commit/80114a833dc8249447c382bf457215b1a4d9e5ae) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Correct the types in the TS api by adding the correct namespaces to type references + +## 0.10.1 + +### Patch Changes + +- [#615](https://github.com/NomicFoundation/slang/pull/615) [`06cbbe8`](https://github.com/NomicFoundation/slang/commit/06cbbe88bc68928ad44046a96c31ad6e53fbf76c) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - `cursor` method is now exposed in Typescript API + +## 0.10.0 + +### Minor Changes + +- [#595](https://github.com/NomicFoundation/slang/pull/595) [`1a258c4`](https://github.com/NomicFoundation/slang/commit/1a258c49432eac06dac7055bc427e68af1fa3875) Thanks [@Xanewok](https://github.com/Xanewok)! - Attempt error recovery when parsing incomplete lists + +- [#564](https://github.com/NomicFoundation/slang/pull/564) [`e326a06`](https://github.com/NomicFoundation/slang/commit/e326a064da559c974fbb7a199090e9e5a313abb8) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Parsing operators with missing operands should no longer panic + +- [#564](https://github.com/NomicFoundation/slang/pull/564) [`e326a06`](https://github.com/NomicFoundation/slang/commit/e326a064da559c974fbb7a199090e9e5a313abb8) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Inline parse rules are no longer exposed to the API. + +- [#564](https://github.com/NomicFoundation/slang/pull/564) [`e326a06`](https://github.com/NomicFoundation/slang/commit/e326a064da559c974fbb7a199090e9e5a313abb8) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Scanners are no longer available as methods - use next_token instead + +- [#564](https://github.com/NomicFoundation/slang/pull/564) [`e326a06`](https://github.com/NomicFoundation/slang/commit/e326a064da559c974fbb7a199090e9e5a313abb8) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Scanners are now grouped into contexts to deal with contextual scanning + +### Patch Changes + +- [#601](https://github.com/NomicFoundation/slang/pull/601) [`cbd2a79`](https://github.com/NomicFoundation/slang/commit/cbd2a79658849c0029bb6a5ccc0b086564c28fe0) Thanks [@Xanewok](https://github.com/Xanewok)! - Attempt parser error recovery between bracket delimiters + +- [#599](https://github.com/NomicFoundation/slang/pull/599) [`4bbad48`](https://github.com/NomicFoundation/slang/commit/4bbad48d45ae7bde8a22198b33f790b7c792b319) Thanks [@Xanewok](https://github.com/Xanewok)! - Use correct versions for the `revert` and `global` keywords + +- [#561](https://github.com/NomicFoundation/slang/pull/561) [`cb6a138`](https://github.com/NomicFoundation/slang/commit/cb6a1384cb6f04926def3e4c1fe7a0b12a67143c) Thanks [@Xanewok](https://github.com/Xanewok)! - Add preliminary documentation for the `solidity_language` Rust package + +- [#603](https://github.com/NomicFoundation/slang/pull/603) [`be59a10`](https://github.com/NomicFoundation/slang/commit/be59a10c937542f0413a34fd84d84ec4d4400f6d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust 1.72.0 + +## 0.9.0 + +### Minor Changes + +- [#540](https://github.com/NomicFoundation/slang/pull/540) [`0d04f95`](https://github.com/NomicFoundation/slang/commit/0d04f959bf1f5831c912d5109de3d933cfaa6266) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add a Rust Cursor API and refactor the Rust Visitor API to run on top of it. + +- [#540](https://github.com/NomicFoundation/slang/pull/540) [`0d04f95`](https://github.com/NomicFoundation/slang/commit/0d04f959bf1f5831c912d5109de3d933cfaa6266) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Move Visitor et al to node:: namespace, which is where Cursor is. + +- [#540](https://github.com/NomicFoundation/slang/pull/540) [`0d04f95`](https://github.com/NomicFoundation/slang/commit/0d04f959bf1f5831c912d5109de3d933cfaa6266) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Rename `range` functions that return a TextRange to `text_range` + +### Patch Changes + +- [#543](https://github.com/NomicFoundation/slang/pull/543) [`7a34599`](https://github.com/NomicFoundation/slang/commit/7a34599f6b237b03a0f8ba92755cae6107589e37) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Move `syntax::parser::ProductionKind` to `syntax::nodes` namespace. + +- [#540](https://github.com/NomicFoundation/slang/pull/540) [`0d04f95`](https://github.com/NomicFoundation/slang/commit/0d04f959bf1f5831c912d5109de3d933cfaa6266) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add TokenNode.text to the TS API. + +- [#540](https://github.com/NomicFoundation/slang/pull/540) [`0d04f95`](https://github.com/NomicFoundation/slang/commit/0d04f959bf1f5831c912d5109de3d933cfaa6266) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Add first pass of Typescript binding to the Cursor API, but no TS Visitor yet. + +- [#545](https://github.com/NomicFoundation/slang/pull/545) [`e73658a`](https://github.com/NomicFoundation/slang/commit/e73658ae4e777e78a01e213f213e2a5dc13e5cba) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - render EBNF grammar on top of each `ProductionKind`, `RuleKind`, and `TokenKind`. + +- [#558](https://github.com/NomicFoundation/slang/pull/558) [`95bbc50`](https://github.com/NomicFoundation/slang/commit/95bbc5025fbf63b8d4e07f7652a70a7f66363db6) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Correct versioning for `SourceUnitMember` and `ContractMember` children. + +## 0.8.0 + +### Minor Changes + +- [#513](https://github.com/NomicFoundation/slang/pull/513) [`7e01250`](https://github.com/NomicFoundation/slang/commit/7e012501c04e639b54cd150e3736683ee2c2606f) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Typescript API now has TextIndex and TextRange types that are returned from the appropriate methods rather than tuples. + +### Patch Changes + +- [#527](https://github.com/NomicFoundation/slang/pull/527) [`7ccca87`](https://github.com/NomicFoundation/slang/commit/7ccca87beaa9cb96ad294d1af8a02f115481b71a) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Fix pratt parser behavior in the face of error correction +- [#531](https://github.com/NomicFoundation/slang/pull/531) [`e3450be4`](https://github.com/NomicFoundation/slang/commit/e3450be4722845bcfce7a9ec3b3046ba6eb6961d) Thanks [@alcuadrado](https://github.com/alcuadrado)! - Make ESM named imports work in Node.js. + +## 0.7.0 + +### Minor Changes + +- [#502](https://github.com/NomicFoundation/slang/pull/502) [`c383238`](https://github.com/NomicFoundation/slang/commit/c383238c1f51157b37ec63bc99e63fb85c1bc224) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Added error recovery i.e. a CST is _always_ produced, even if there are errors. The erroneous/skipped text is in the CST as a `TokenKind::SKIPPED` token. + +- [#501](https://github.com/NomicFoundation/slang/pull/501) [`cb221fe`](https://github.com/NomicFoundation/slang/commit/cb221fed784e8a2eb59f17907412149c7b415ed8) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - generate typescript string enums for CST kinds + +- [#517](https://github.com/NomicFoundation/slang/pull/517) [`8bd5446`](https://github.com/NomicFoundation/slang/commit/8bd544695a6dd4880a00d0cecf8d13ad79b238d3) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - extract inlined and sub-expressions in language grammar + +- [#518](https://github.com/NomicFoundation/slang/pull/518) [`b3b562b`](https://github.com/NomicFoundation/slang/commit/b3b562be6365fab25b97e54746a7500b9e7bd595) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fill in missing CST node names + +- [#515](https://github.com/NomicFoundation/slang/pull/515) [`f24e873`](https://github.com/NomicFoundation/slang/commit/f24e873a93cbcef53aad1fa5eed1ea9ab1af1c04) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - switch over the NPM package to use CommonJS modules instead of ES modules. + +- [#498](https://github.com/NomicFoundation/slang/pull/498) [`44f1ff7`](https://github.com/NomicFoundation/slang/commit/44f1ff70100d6e2f8afe54c7ff87e24a8479e4b9) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - flatten unnamed CST nodes into parent nodes + +- [#502](https://github.com/NomicFoundation/slang/pull/502) [`c383238`](https://github.com/NomicFoundation/slang/commit/c383238c1f51157b37ec63bc99e63fb85c1bc224) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Use the Rowan model for the CST i.e. TokenNodes contain the string content, and RuleNodes contain only the combined _length_ of their children's text. + +- [#499](https://github.com/NomicFoundation/slang/pull/499) [`1582d60`](https://github.com/NomicFoundation/slang/commit/1582d60c7ef81a785db0b9e3cb4d074d9cb6d442) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - preserve correct ranges on empty rule nodes + +- [#500](https://github.com/NomicFoundation/slang/pull/500) [`73ddac9`](https://github.com/NomicFoundation/slang/commit/73ddac9ca972f80aa9a0321de7f94c47b505d7a6) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - inlining CST nodes that offer no additional syntactic information + +- [#512](https://github.com/NomicFoundation/slang/pull/512) [`72dc3d3`](https://github.com/NomicFoundation/slang/commit/72dc3d3d90bc6a02d36836cc1fed17f5be5de2fb) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Expression productions now correctly wrap the recursive 'calls' in a rule node + +## 0.6.0 + +### Minor Changes + +- [#490](https://github.com/NomicFoundation/slang/pull/490) [`ea8e7e7`](https://github.com/NomicFoundation/slang/commit/ea8e7e771fef7fd9195bcc3004b08fc132c8990d) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - provide API to list supported language versions + +- [#489](https://github.com/NomicFoundation/slang/pull/489) [`15c34a7`](https://github.com/NomicFoundation/slang/commit/15c34a7bb0268bf26eaa6535dd637f73349596c8) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - replace panics with JS exceptions in npm package + +### Patch Changes + +- [#488](https://github.com/NomicFoundation/slang/pull/488) [`d7f171c`](https://github.com/NomicFoundation/slang/commit/d7f171cf1e2da375a7ededd034a62fc6b723d44d) Thanks [@DaniPopes](https://github.com/DaniPopes)! - introduce a `cli` Cargo feature to compile the CLI binary + +## 0.5.0 + +### Minor Changes + +- [#475](https://github.com/NomicFoundation/slang/pull/475) [`0cdfe86`](https://github.com/NomicFoundation/slang/commit/0cdfe86037bfe2f1f8be66a69e8e7d7bdbf06364) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - match TypeScript and Rust API namespaces + +- [#477](https://github.com/NomicFoundation/slang/pull/477) [`13c85a2`](https://github.com/NomicFoundation/slang/commit/13c85a2a3e4e97894d9f24a3e2886a08ffe6e569) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - move expression operators into separate nodes + +- [#481](https://github.com/NomicFoundation/slang/pull/481) [`0269f2b`](https://github.com/NomicFoundation/slang/commit/0269f2b9de3f6711055119e1f40c3f036fe3a81f) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix grammar versions of individual keywords + +- [#473](https://github.com/NomicFoundation/slang/pull/473) [`11d8cb0`](https://github.com/NomicFoundation/slang/commit/11d8cb0658e01f16b7afd808f31d1da88e967679) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - upgrade to rust 1.69.0 + +## 0.4.0 + +### Minor Changes + +- [#458](https://github.com/NomicFoundation/slang/pull/458) [`c0fc7e9`](https://github.com/NomicFoundation/slang/commit/c0fc7e95b87eb1ddca4f9e0003136fcbe74f5798) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Record both character and byte offsets for input positions + +- [#463](https://github.com/NomicFoundation/slang/pull/463) [`0958d6b`](https://github.com/NomicFoundation/slang/commit/0958d6baadba3295df9307e421ddd0a41ef3aaa0) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - use `number` and getters in npm public API + +## 0.3.0 + +### Minor Changes + +- [#457](https://github.com/NomicFoundation/slang/pull/457) [`b7aae2a`](https://github.com/NomicFoundation/slang/commit/b7aae2ad891f940ee764365ac12c75fd1cb47687) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - minor grammar fixes + +- [#453](https://github.com/NomicFoundation/slang/pull/453) [`0f2f9ab`](https://github.com/NomicFoundation/slang/commit/0f2f9abec3f2525640d25bf1f288b769917fbc61) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - move Rust's `syntax::Parser::Language` API to root module + +- [#454](https://github.com/NomicFoundation/slang/pull/454) [`85dec01`](https://github.com/NomicFoundation/slang/commit/85dec0196eafa337065233de03c30d36211b03cf) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - moving to Rust version 1.65.0 + +- [#456](https://github.com/NomicFoundation/slang/pull/456) [`c6d1041`](https://github.com/NomicFoundation/slang/commit/c6d10417da440f15e1c074b7d8b5d13d38e95519) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - expose `ParseError` API + +- [#451](https://github.com/NomicFoundation/slang/pull/451) [`78f633c`](https://github.com/NomicFoundation/slang/commit/78f633cb5977d358b4bcc468151359a4301089b2) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - rename `VisitorExitResponse::StepIn` to `VisitorExitResponse::Continue` + +## 0.2.1 + +### Patch Changes + +- [#444](https://github.com/NomicFoundation/slang/pull/444) [`a858e2c`](https://github.com/NomicFoundation/slang/commit/a858e2c842db3b2183821fb92ed26af6b433e823) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - Fix HexLiteral cannot have NumberUnit + +## 0.2.0 + +### Minor Changes + +- [#435](https://github.com/NomicFoundation/slang/pull/435) [`2a5b193`](https://github.com/NomicFoundation/slang/commit/2a5b1930b20024359fbaf06b6e9748585d7423ff) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - support user defined operators + +### Patch Changes + +- [#416](https://github.com/NomicFoundation/slang/pull/416) [`fb977a5`](https://github.com/NomicFoundation/slang/commit/fb977a52b152a1ce8d8ce92db4bb00fcfb5881c1) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix primary expressions parser order + +- [#434](https://github.com/NomicFoundation/slang/pull/434) [`beb3708`](https://github.com/NomicFoundation/slang/commit/beb3708218ec797614ba283a13f1854d5f3c7239) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix UnicodeStringLiteral versioning + +- [#430](https://github.com/NomicFoundation/slang/pull/430) [`8b7492e`](https://github.com/NomicFoundation/slang/commit/8b7492e65ec7261176e444dca2563a82603b43b0) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - update READMEs with links to packages and user guides. + +- [#425](https://github.com/NomicFoundation/slang/pull/425) [`9b49b3d`](https://github.com/NomicFoundation/slang/commit/9b49b3d827536e707d78a6bc349fc82698237b75) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - add user guides to rust crate and npm packages. + +- [#432](https://github.com/NomicFoundation/slang/pull/432) [`1d1a8bb`](https://github.com/NomicFoundation/slang/commit/1d1a8bb5503c510a470bb99a18632c3e51a587ec) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - fix FunctionCallOptions versioning + +- [#427](https://github.com/NomicFoundation/slang/pull/427) [`1103916`](https://github.com/NomicFoundation/slang/commit/11039163ac3a3b66a74fa85683bde1c380a519f4) Thanks [@AntonyBlakey](https://github.com/AntonyBlakey)! - fix VariableDeclarationStatement versioning + +## 0.1.1 + +### Patch Changes + +- [#412](https://github.com/NomicFoundation/slang/pull/412) [`9cac1a04`](https://github.com/NomicFoundation/slang/commit/9cac1a04670fa870c15cee1bd20e0e78c1d213db) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - publish npm packages + +## 0.1.0 + +### Minor Changes + +- [#396](https://github.com/NomicFoundation/slang/pull/396) [`621b338`](https://github.com/NomicFoundation/slang/commit/621b33838c74415c46ab157205068008e05c5b9b) Thanks [@OmarTawfik](https://github.com/OmarTawfik)! - Initial release. diff --git a/package-lock.json b/package-lock.json index dc51738f18..83882370a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -33,7 +33,7 @@ }, "crates/solidity/outputs/npm/package": { "name": "@nomicfoundation/slang", - "version": "0.13.1", + "version": "0.14.0", "license": "MIT", "devDependencies": { "@napi-rs/cli": "2.18.0" @@ -42,15 +42,15 @@ "node": ">= 10" }, "optionalDependencies": { - "@nomicfoundation/slang-darwin-arm64": "0.13.1", - "@nomicfoundation/slang-darwin-x64": "0.13.1", - "@nomicfoundation/slang-linux-arm64-gnu": "0.13.1", - "@nomicfoundation/slang-linux-arm64-musl": "0.13.1", - "@nomicfoundation/slang-linux-x64-gnu": "0.13.1", - "@nomicfoundation/slang-linux-x64-musl": "0.13.1", - "@nomicfoundation/slang-win32-arm64-msvc": "0.13.1", - "@nomicfoundation/slang-win32-ia32-msvc": "0.13.1", - "@nomicfoundation/slang-win32-x64-msvc": "0.13.1" + "@nomicfoundation/slang-darwin-arm64": "0.14.0", + "@nomicfoundation/slang-darwin-x64": "0.14.0", + "@nomicfoundation/slang-linux-arm64-gnu": "0.14.0", + "@nomicfoundation/slang-linux-arm64-musl": "0.14.0", + "@nomicfoundation/slang-linux-x64-gnu": "0.14.0", + "@nomicfoundation/slang-linux-x64-musl": "0.14.0", + "@nomicfoundation/slang-win32-arm64-msvc": "0.14.0", + "@nomicfoundation/slang-win32-ia32-msvc": "0.14.0", + "@nomicfoundation/slang-win32-x64-msvc": "0.14.0" } }, "crates/solidity/outputs/npm/tests": { @@ -2307,141 +2307,6 @@ "resolved": "crates/solidity/outputs/npm/package", "link": true }, - "node_modules/@nomicfoundation/slang-darwin-arm64": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-arm64/-/slang-darwin-arm64-0.13.1.tgz", - "integrity": "sha512-1TBJM9NIVox/eR1WOszoJpJR2KcBcQ7dwWnO5Zt9v/XQnDdIYj3BxootWOuyQQGrGccKYCX0VivTQNMPnxHmAA==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-darwin-x64": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-darwin-x64/-/slang-darwin-x64-0.13.1.tgz", - "integrity": "sha512-jOj9703Q71ShKuMR09B0dmmkBRFXfSj8zy1PG1tJcSWqrDfyvlOFQDszhxA0zs4/mYDmyHVhKjzkUoq0tl/GYw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-linux-arm64-gnu": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-gnu/-/slang-linux-arm64-gnu-0.13.1.tgz", - "integrity": "sha512-CQVrCAqHAGBstvIhoeTabWXjUsH/XIzisALbU9crC8zZCacKaYwaqQUgLo894HIWPBQKTxMec03UzFwO56QyQQ==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-linux-arm64-musl": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-arm64-musl/-/slang-linux-arm64-musl-0.13.1.tgz", - "integrity": "sha512-ILGuXf1+qtPE2noN5T+T1Pd5i93mDrh42k53/6fUGLJ/THs16fhxD55A+EpbLSgnnQMAnK6P+DlKFf4wGI/jlw==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-linux-x64-gnu": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-gnu/-/slang-linux-x64-gnu-0.13.1.tgz", - "integrity": "sha512-djxpqYNtKQB4sT22G0QbSX5c/QdnU7mUmvX+SDh5EZeA+TqeumODZQhUsF/n9I8F28XL/fmLygCf5aFbAX3Egg==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-linux-x64-musl": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-linux-x64-musl/-/slang-linux-x64-musl-0.13.1.tgz", - "integrity": "sha512-TugHmWIGgeXirbn5PlSACJ9E7/08bp3fiDrnj6ufGBiW6LLJG74Hn6fxwDURa3wtFiLy4lbt+dWZ5/YnuY+QOw==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-win32-arm64-msvc": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-arm64-msvc/-/slang-win32-arm64-msvc-0.13.1.tgz", - "integrity": "sha512-EDyO3AaVuR6E/omAzmCgXHrm0XNLvQk2RoW1AKr5VOayR3TITDTCvnubpr17AAWOzRH5dc/90esnFbqa0cHX2g==", - "cpu": [ - "arm64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-win32-ia32-msvc": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-ia32-msvc/-/slang-win32-ia32-msvc-0.13.1.tgz", - "integrity": "sha512-5ypLao+OGoXcoHS/3LTJSRHHHMSZ5/aLtOOYby3Qe7sG6gdfp2n7OWQYjS1uZ6SA591z1sXbYsKkHi7Aej8nJQ==", - "cpu": [ - "ia32" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, - "node_modules/@nomicfoundation/slang-win32-x64-msvc": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/@nomicfoundation/slang-win32-x64-msvc/-/slang-win32-x64-msvc-0.13.1.tgz", - "integrity": "sha512-XDQCE81ToyHeRxdznwacXZiH3dMoTtlrFrrHhU/Zdas2p8F1fkLVuzXBKlrB7fMVd7cIDByG3d9iWdDy/SQIwA==", - "cpu": [ - "x64" - ], - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">= 10" - } - }, "node_modules/@octokit/auth-token": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",