From b0809b612aeeffc2cde85a51d84ab9a0b809f065 Mon Sep 17 00:00:00 2001 From: Boshen <1430279+Boshen@users.noreply.github.com> Date: Fri, 13 Dec 2024 13:01:36 +0000 Subject: [PATCH] release(crates): v0.41.0 --- Cargo.lock | 44 +++++++++---------- Cargo.toml | 44 +++++++++---------- crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 14 ++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 7 +++ crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_data_structures/Cargo.toml | 2 +- crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_ecmascript/Cargo.toml | 2 +- crates/oxc_estree/Cargo.toml | 2 +- crates/oxc_isolated_declarations/CHANGELOG.md | 7 +++ crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_napi/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 11 +++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 15 +++++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_span/CHANGELOG.md | 6 +++ crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 6 +++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 32 ++++++++++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 7 +++ crates/oxc_traverse/Cargo.toml | 2 +- napi/transform/Cargo.toml | 2 +- npm/oxc-parser/package.json | 2 +- npm/oxc-transform/package.json | 2 +- npm/oxc-types/package.json | 2 +- wasm/parser/package.json | 2 +- 37 files changed, 175 insertions(+), 70 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d3cd6715dd986..3f7236bd07b3b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1373,7 +1373,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.40.1" +version = "0.41.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1435,7 +1435,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.40.1" +version = "0.41.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1445,7 +1445,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.40.1" +version = "0.41.0" dependencies = [ "bitflags 2.6.0", "cow-utils", @@ -1463,7 +1463,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.40.1" +version = "0.41.0" dependencies = [ "proc-macro2", "quote", @@ -1511,7 +1511,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.40.1" +version = "0.41.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1524,7 +1524,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.40.1" +version = "0.41.0" dependencies = [ "assert-unchecked", "base64", @@ -1585,7 +1585,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.40.1" +version = "0.41.0" dependencies = [ "assert-unchecked", "ropey", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.40.1" +version = "0.41.0" dependencies = [ "oxc-miette", "rustc-hash", @@ -1601,7 +1601,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.40.1" +version = "0.41.0" dependencies = [ "num-bigint", "num-traits", @@ -1612,7 +1612,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.40.1" +version = "0.41.0" dependencies = [ "serde", ] @@ -1629,7 +1629,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.40.1" +version = "0.41.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1728,7 +1728,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.40.1" +version = "0.41.0" dependencies = [ "itertools", "oxc_ast", @@ -1739,7 +1739,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.40.1" +version = "0.41.0" dependencies = [ "cow-utils", "insta", @@ -1787,7 +1787,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.40.1" +version = "0.41.0" dependencies = [ "napi", "napi-derive", @@ -1796,7 +1796,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.40.1" +version = "0.41.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1877,7 +1877,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.40.1" +version = "0.41.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1911,7 +1911,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.40.1" +version = "0.41.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1953,7 +1953,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.40.1" +version = "0.41.0" dependencies = [ "compact_str", "oxc-miette", @@ -1966,7 +1966,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.40.1" +version = "0.41.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.40.1" +version = "0.41.0" dependencies = [ "napi", "napi-build", @@ -2037,7 +2037,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.40.1" +version = "0.41.0" dependencies = [ "base64", "compact_str", @@ -2070,7 +2070,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.40.1" +version = "0.41.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index 9eb0430312c3c..a708240e503aa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,28 +78,28 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.40.1", path = "crates/oxc" } -oxc_allocator = { version = "0.40.1", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.40.1", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.40.1", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.40.1", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.40.1", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.40.1", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.40.1", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.40.1", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.40.1", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.40.1", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.40.1", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.40.1", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.40.1", path = "crates/oxc_napi" } -oxc_parser = { version = "0.40.1", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.40.1", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.40.1", path = "crates/oxc_semantic" } -oxc_span = { version = "0.40.1", path = "crates/oxc_span" } -oxc_syntax = { version = "0.40.1", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.40.1", path = "napi/transform" } -oxc_transformer = { version = "0.40.1", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.40.1", path = "crates/oxc_traverse" } +oxc = { version = "0.41.0", path = "crates/oxc" } +oxc_allocator = { version = "0.41.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.41.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.41.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.41.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.41.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.41.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.41.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.41.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.41.0", path = "crates/oxc_estree" } +oxc_isolated_declarations = { version = "0.41.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.41.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.41.0", path = "crates/oxc_minifier" } +oxc_napi = { version = "0.41.0", path = "crates/oxc_napi" } +oxc_parser = { version = "0.41.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.41.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.41.0", path = "crates/oxc_semantic" } +oxc_span = { version = "0.41.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.41.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.41.0", path = "napi/transform" } +oxc_transformer = { version = "0.41.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.41.0", path = "crates/oxc_traverse" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 9c91637835850..917603e26669b 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index b20f7db7ee4c3..734a55d641bd9 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index 4b66399865ca1..63578427d5ca9 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,20 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +- fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) + +- 96a26d3 ast: [**BREAKING**] Rename `is_strict` methods to `has_use_strict_directive` (#7783) (overlookmotel) + +### Features + +- 8991f33 ast: Add `visit_span` to `Visit` and `VisitMut` (#7816) (overlookmotel) +- f7900ab ast: Add `ArrowFunctionExpression::has_use_strict_directive` method (#7784) (overlookmotel) + +### Refactor + + ## [0.40.0] - 2024-12-10 - 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 1bb3fa117b76d..da68eefd0bc8e 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 705fe073efbc9..97b5ee6de949a 100644 --- a/crates/oxc_ast_macros/Cargo.toml +++ b/crates/oxc_ast_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast_macros" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index f94e4707d286d..3461ad6e40c8e 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index d826ee00f5e31..366b32d9bdd1d 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +### Performance + +- 4448b63 codegen: Faster writing indentation (#7820) (overlookmotel) +- afaaffa codegen: Fast path for `options.print_comments()` (#7806) (Boshen) + ## [0.40.0] - 2024-12-10 - 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 87c8c865ee1a7..bdcf35f2c564f 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index 6459f49998b84..83d4b34769692 100644 --- a/crates/oxc_data_structures/Cargo.toml +++ b/crates/oxc_data_structures/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_data_structures" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 3e9f06701d444..c19c1f6d749c8 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 02f8f63d0800b..84ba0aa333074 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index fa5b62fdb7037..3d9e6ad11d098 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_isolated_declarations/CHANGELOG.md b/crates/oxc_isolated_declarations/CHANGELOG.md index 5909a922afe99..09ea6b664dff7 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +- fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) + +### Refactor + + ## [0.40.0] - 2024-12-10 - 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 07fcbdd2e3f8a..a8793766e9149 100644 --- a/crates/oxc_isolated_declarations/Cargo.toml +++ b/crates/oxc_isolated_declarations/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_isolated_declarations" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 6bffb6df5f853..16519ab37bfa9 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 411fcb3061fa9..584f0e85fcb83 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index 930919077a940..40ebfe874dfb8 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index d5e2622ed0f00..a03b2ad22b65e 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,17 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +- fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) + +### Bug Fixes + +- 7610dc1 parser: Parse `import source from 'mod'` (#7833) (Boshen) + +### Refactor + + ## [0.40.0] - 2024-12-10 - 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 09b4f8cb40e90..c7aa4a65acd07 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 85f91b7e7a3d3..0653c24063b82 100644 --- a/crates/oxc_regular_expression/Cargo.toml +++ b/crates/oxc_regular_expression/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_regular_expression" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index 524f102e30124..5d97be26c375d 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +- 96a26d3 ast: [**BREAKING**] Rename `is_strict` methods to `has_use_strict_directive` (#7783) (overlookmotel) + +### Bug Fixes + +- 9479e2b semantic: Missing references when `export {}` references a type-only binding and a normal (#7812) (Yunfei He) +- 7a83230 semantic: Missing reference when `export default` references a type alias binding (#7813) (Dunqing) +- 4a3bca8 semantic: Fix identifying strict mode arrow functions (#7785) (overlookmotel) + +### Refactor + +- 0f367e5 semantic: Improve the logic of resolving references to be cleaner (#7829) (Dunqing) +- 5710950 semantic: Move export-related reference flags logic to visit functions (#7828) (Dunqing) + ## [0.40.0] - 2024-12-10 - 72eab6c parser: [**BREAKING**] Stage 3 `import source` and `import defer` (#7706) (Boshen) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 1ab11a84496d2..48a734dfb59fb 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/CHANGELOG.md b/crates/oxc_span/CHANGELOG.md index 3e3aa24ddd850..b30c6c2b4e764 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +### Features + +- 8991f33 ast: Add `visit_span` to `Visit` and `VisitMut` (#7816) (overlookmotel) + ## [0.39.0] - 2024-12-04 ### Bug Fixes diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 8b5ff3c268606..1f3b46cf80940 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_syntax/CHANGELOG.md b/crates/oxc_syntax/CHANGELOG.md index a1e476774b2aa..384a83bb91e80 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +### Refactor + +- 0f367e5 semantic: Improve the logic of resolving references to be cleaner (#7829) (Dunqing) + ## [0.40.0] - 2024-12-10 ### Features diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index f45d54d648a00..c2daec87cb179 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index 169d570833fd3..39f9b6fe75929 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,38 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +- fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) + +### Features + +- e727ae9 transformer/class-properties: Transform super member expressions that are inside static prop initializer (#7815) (Dunqing) + +### Bug Fixes + +- 5b7e1ad transformer: Remove span of define value (#7811) (Hiroshi Ogawa) +- 14896cb transformer/class-properties: Create temp vars in correct scope (#7824) (overlookmotel) +- 25bb6da transformer/class-properties: Fix `ScopeId`s in instance prop initializers (#7823) (overlookmotel) +- 65b109a transformer/class-properties: No `raw` for generated `StringLiteral` (#7825) (overlookmotel) +- 2964a61 transformer/class-properties: Unwrap failed when private field expression doesn't contain optional expression in `ChainExpression` (#7798) (Dunqing) +- 6fa6785 transformer/class-properties: Panic when the callee or member is `ParenthesisExpression` or TS-syntax expressions. (#7795) (Dunqing) +- bb22c67 transformer/class-properties: Fix `ScopeId`s in static prop initializers (#7791) (overlookmotel) +- caa57f1 transformer/class-properties: Fix scope flags in static prop initializers (#7786) (overlookmotel) + +### Refactor + +- b290ebd transformer: Handle `` in test runner (#7799) (Dunqing) +- e70deb9 transformer/class-properties: Locate instance props insertion location in separate step (#7819) (overlookmotel) +- afc5f1e transformer/class-properties: De-deduplicate code (#7805) (overlookmotel) +- 47a91d2 transformer/class-properties: Shorten code (#7804) (overlookmotel) +- 54ef2b9 transformer/class-properties: Rename `debug_assert_expr_is_not_parenthesis_or_typescript_syntax` (#7803) (overlookmotel) +- 3cdc47c transformer/class-properties: `#[inline(always)]` on `assert_expr_neither_parenthesis_nor_typescript_syntax` (#7802) (overlookmotel) + +### Testing + +- d72c888 transformer/replace-global-defines: Remove panicking test (#7838) (overlookmotel) + ## [0.40.0] - 2024-12-10 - 5913200 transformer/class-properties: [**BREAKING**] Rename `ClassPropertiesOptions::loose` (#7716) (overlookmotel) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 2c0904f4253f8..ab2c423644ab5 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_traverse/CHANGELOG.md b/crates/oxc_traverse/CHANGELOG.md index 6c2e764a238e9..748c5a6ac3044 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.41.0] - 2024-12-13 + +- fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) + +### Refactor + + ## [0.40.0] - 2024-12-10 - 5d6fa25 traverse: [**BREAKING**] Remove `TraverseCtx::is_static` (#7760) (overlookmotel) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 60dceb256e1d7..bf923999cd6bb 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index ba5e4fce48b11..3bad7d3b0f509 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.40.1" +version = "0.41.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 2446b50c5a117..2b9ffd7ecd43b 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.40.1", + "version": "0.41.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 080f4bf4ba910..3f0cf75e66ed2 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.40.1", + "version": "0.41.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index fca611c25753f..ef0f61e2aa173 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.40.1", + "version": "0.41.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 2aee9e381820f..9d26dbb033cd4 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.40.1", + "version": "0.41.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",