From d69de3629deba1abdc5bb83cc7a48ac9bb3c782b Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Sat, 21 Dec 2024 15:07:21 +0800 Subject: [PATCH] release(crates): v0.43.0 (#8054) ## [0.43.0] - 2024-12-21 - de4c772 traverse: [**BREAKING**] Rename `Ancestor::is_via_*` methods to `is_parent_of_*` (#8031) (overlookmotel) - ed75e42 semantic: [**BREAKING**] Make SymbolTable fields `pub(crate)` instead of `pub` (#7999) (Boshen) ### Features - 75b775c allocator: `Vec::into_string` (#8017) (overlookmotel) - 8547e02 ast: Implement `allocator_api2` for `Allocator` (#8043) (Boshen) - 63a95e4 ast: Add `AstBulder::move_property_key` (#7998) (overlookmotel) - 897a1a8 transformer/class-properties: Exit faster from super replacement visitor (#8028) (overlookmotel) - 3ea4109 transformer/class-properties: Transform super update expressions within static prop initializer (#7997) (Dunqing) - cc57db3 transformer/class-properties: Transform super assignment expressions within static prop initializer (#7991) (Dunqing) - 6b6444b traverse: Record current block scope (#8007) (overlookmotel) ### Bug Fixes - 043252d transformer/class-properties: Replace `this` and class name in static blocks (#8035) (overlookmotel) - 273795d transformer/class-properties: Run other transforms on static properties, static blocks, and computed keys (#7982) (overlookmotel) ### Performance - c0dd3f8 ast: `move_expression` and `move_statement` produce dummy with no span (#7995) (overlookmotel) - 862838f codegen: Remove useless to_owned (#8014) (Dunqing) - 2736657 semantic: Allocate `UnresolvedReferences` in allocator (#8046) (Boshen) - 2e8872c semantic: Allocate child scope in allocator (#8045) (Boshen) - 414e828 semantic: Allocate symbol data in Allocator (#8012) (Boshen) - 7aebed0 semantic: Allocate `Bindings` in allocator (#8021) (Boshen) - 0f9308f transformer/react-refresh: Reduce allocations (#8018) (overlookmotel) - 0deb9e6 transformer/react-refresh: Reserve capacity in hook key string (#8016) (overlookmotel) - 7b70347 transformer/react-refresh: Avoid allocating string in each hook call (#8013) (Dunqing) ### Documentation - df5c341 ast: Improve docs for `AstBuilder::move_*` methods (#7994) (overlookmotel) ### Refactor - f1adf9f semantic: `ScopeTree::rename_binding` remove old binding first (#8020) (overlookmotel) - 02f968d semantic: Change `Bindings` to a plain `FxHashMap` (#8019) (Boshen) - e7476a1 semantic: Remove `serialize` (#8015) (Boshen) - 1cf7b83 semantic: Simplify handling namespace stack (#7987) (Dunqing) - 48cb52b semantic: Remove resetting `current_reference_flags` in visit functions (#7986) (Dunqing) - 3250a47 semantic: Remove unused current_symbol_flags (#7985) (Dunqing) - efe96ec semantic: Use `Stack` for function stack node ids (#7984) (Dunqing) - ac097e9 transformer/class-properties: Rename file (#8036) (overlookmotel) - 059a5dd transformer/class-properties: Do not pass `ScopeId` into `insert_instance_inits` (#8001) (overlookmotel) - 0a38eea transformer/class-properties: Use `temp_var_name_base` to generate temp var names for `super` transform (#8004) (overlookmotel) - d1b7181 transformer/class-properties: Rename var (#8006) (overlookmotel) - 5a23d72 transformer/class-properties: Remove outdated comment (#8000) (overlookmotel) - b3a5f3e transformer/class-properties: Mark `transform_assignment_expression_if_super_member_assignment_target` as inline (#7993) (Dunqing) ### Testing - bcb33c0 semantic: Add a test for catch parameters reference (#7988) (Dunqing) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> --- Cargo.lock | 44 ++++++++++----------- Cargo.toml | 44 ++++++++++----------- crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/CHANGELOG.md | 11 ++++++ 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 | 6 +++ 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/Cargo.toml | 2 +- crates/oxc_mangler/CHANGELOG.md | 10 +++++ crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_napi/Cargo.toml | 2 +- crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 29 ++++++++++++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 6 +++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 33 ++++++++++++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 21 ++++++++++ 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 +- 36 files changed, 200 insertions(+), 70 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b0446737852f1..c67658cd8e130 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1384,7 +1384,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.42.0" +version = "0.43.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1446,7 +1446,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.42.0" +version = "0.43.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1457,7 +1457,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.42.0" +version = "0.43.0" dependencies = [ "bitflags 2.6.0", "cow-utils", @@ -1475,7 +1475,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.42.0" +version = "0.43.0" dependencies = [ "proc-macro2", "quote", @@ -1523,7 +1523,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.42.0" +version = "0.43.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1536,7 +1536,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.42.0" +version = "0.43.0" dependencies = [ "assert-unchecked", "base64", @@ -1597,7 +1597,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.42.0" +version = "0.43.0" dependencies = [ "assert-unchecked", "ropey", @@ -1605,7 +1605,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.42.0" +version = "0.43.0" dependencies = [ "oxc-miette", "rustc-hash", @@ -1613,7 +1613,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.42.0" +version = "0.43.0" dependencies = [ "num-bigint", "num-traits", @@ -1624,7 +1624,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.42.0" +version = "0.43.0" dependencies = [ "serde", ] @@ -1641,7 +1641,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.42.0" +version = "0.43.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1740,7 +1740,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.42.0" +version = "0.43.0" dependencies = [ "itertools", "oxc_ast", @@ -1751,7 +1751,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.42.0" +version = "0.43.0" dependencies = [ "cow-utils", "insta", @@ -1799,7 +1799,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.42.0" +version = "0.43.0" dependencies = [ "napi", "napi-derive", @@ -1808,7 +1808,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.42.0" +version = "0.43.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1889,7 +1889,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.42.0" +version = "0.43.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1923,7 +1923,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.42.0" +version = "0.43.0" dependencies = [ "assert-unchecked", "hashbrown 0.15.2", @@ -1964,7 +1964,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.42.0" +version = "0.43.0" dependencies = [ "compact_str", "oxc-miette", @@ -1977,7 +1977,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.42.0" +version = "0.43.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2035,7 +2035,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.42.0" +version = "0.43.0" dependencies = [ "napi", "napi-build", @@ -2048,7 +2048,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.42.0" +version = "0.43.0" dependencies = [ "base64", "compact_str", @@ -2081,7 +2081,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.42.0" +version = "0.43.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index d0af07feddeaa..8c41dff011293 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,28 +78,28 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.42.0", path = "crates/oxc" } -oxc_allocator = { version = "0.42.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.42.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.42.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.42.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.42.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.42.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.42.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.42.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.42.0", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.42.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.42.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.42.0", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.42.0", path = "crates/oxc_napi" } -oxc_parser = { version = "0.42.0", path = "crates/oxc_parser" } -oxc_regular_expression = { version = "0.42.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.42.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.42.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.42.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.42.0", path = "napi/transform" } -oxc_transformer = { version = "0.42.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.42.0", path = "crates/oxc_traverse" } +oxc = { version = "0.43.0", path = "crates/oxc" } +oxc_allocator = { version = "0.43.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.43.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.43.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.43.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.43.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.43.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.43.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.43.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.43.0", path = "crates/oxc_estree" } +oxc_isolated_declarations = { version = "0.43.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.43.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.43.0", path = "crates/oxc_minifier" } +oxc_napi = { version = "0.43.0", path = "crates/oxc_napi" } +oxc_parser = { version = "0.43.0", path = "crates/oxc_parser" } +oxc_regular_expression = { version = "0.43.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.43.0", path = "crates/oxc_semantic" } +oxc_span = { version = "0.43.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.43.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.43.0", path = "napi/transform" } +oxc_transformer = { version = "0.43.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.43.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 0fdb9f195bc57..8b72f7782a120 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.42.0" +version = "0.43.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/CHANGELOG.md b/crates/oxc_allocator/CHANGELOG.md index 2e22a97bdc113..20ac24f203191 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/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.43.0] - 2024-12-21 + +### Features + +- 75b775c allocator: `Vec::into_string` (#8017) (overlookmotel) +- 8547e02 ast: Implement `allocator_api2` for `Allocator` (#8043) (Boshen) + +### Performance + +- 414e828 semantic: Allocate symbol data in Allocator (#8012) (Boshen) + ## [0.39.0] - 2024-12-04 ### Bug Fixes diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 734ba63d3ba49..7949cdcd32a3e 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.42.0" +version = "0.43.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 c521fff529c9d..3a82de3741aa8 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.43.0] - 2024-12-21 + +### Features + +- 63a95e4 ast: Add `AstBulder::move_property_key` (#7998) (overlookmotel) + +### Performance + +- c0dd3f8 ast: `move_expression` and `move_statement` produce dummy with no span (#7995) (overlookmotel) + +### Documentation + +- df5c341 ast: Improve docs for `AstBuilder::move_*` methods (#7994) (overlookmotel) + ## [0.42.0] - 2024-12-18 ### Features diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 6c3b41bd24a8b..bef862fbe6fd7 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.42.0" +version = "0.43.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 d8054434d685c..ec2058aa62b35 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.42.0" +version = "0.43.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 6901dedffce76..2f98dc83cfb52 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.42.0" +version = "0.43.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 ba44e446b4af1..09385c7ead209 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/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.43.0] - 2024-12-21 + +### Performance + +- 862838f codegen: Remove useless to_owned (#8014) (Dunqing) + ## [0.42.0] - 2024-12-18 ### Bug Fixes diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 2fe0b8457fd14..8f589f63126cf 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.42.0" +version = "0.43.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 660e6962a3e13..68cc03592a3f3 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.42.0" +version = "0.43.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 02d7ac904113f..066668e3fa2af 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.42.0" +version = "0.43.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 25e687b761073..9ad61b109d81c 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.42.0" +version = "0.43.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 0c63a065bc270..b374b90e9cefa 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.42.0" +version = "0.43.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 682c2d7bf8fe6..fdaa95e0e8796 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.42.0" +version = "0.43.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/CHANGELOG.md b/crates/oxc_mangler/CHANGELOG.md index fd6bea9528a95..8a100a56d7461 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/CHANGELOG.md @@ -4,6 +4,16 @@ 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.43.0] - 2024-12-21 + +### Performance + +- 414e828 semantic: Allocate symbol data in Allocator (#8012) (Boshen) + +### Refactor + +- 02f968d semantic: Change `Bindings` to a plain `FxHashMap` (#8019) (Boshen) + ## [0.42.0] - 2024-12-18 ### Features diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 11ec430babde1..6119fd9aa6bcd 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.42.0" +version = "0.43.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 b0bb8d9e29c77..f5a3ef76a2c1a 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.42.0" +version = "0.43.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 3df095ea9891a..4cff316a4c8f2 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.42.0" +version = "0.43.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 4badc9f3f0f34..01c66f867f436 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.42.0" +version = "0.43.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 b8b20234589c7..4842f7566696f 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.42.0" +version = "0.43.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 37a2129e47c84..d11a6c9918c35 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,35 @@ 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.43.0] - 2024-12-21 + +- ed75e42 semantic: [**BREAKING**] Make SymbolTable fields `pub(crate)` instead of `pub` (#7999) (Boshen) + +### Features + +- 8547e02 ast: Implement `allocator_api2` for `Allocator` (#8043) (Boshen) + +### Performance + +- 2736657 semantic: Allocate `UnresolvedReferences` in allocator (#8046) (Boshen) +- 2e8872c semantic: Allocate child scope in allocator (#8045) (Boshen) +- 414e828 semantic: Allocate symbol data in Allocator (#8012) (Boshen) +- 7aebed0 semantic: Allocate `Bindings` in allocator (#8021) (Boshen) + +### Refactor + +- f1adf9f semantic: `ScopeTree::rename_binding` remove old binding first (#8020) (overlookmotel) +- 02f968d semantic: Change `Bindings` to a plain `FxHashMap` (#8019) (Boshen) +- e7476a1 semantic: Remove `serialize` (#8015) (Boshen) +- 1cf7b83 semantic: Simplify handling namespace stack (#7987) (Dunqing) +- 48cb52b semantic: Remove resetting `current_reference_flags` in visit functions (#7986) (Dunqing) +- 3250a47 semantic: Remove unused current_symbol_flags (#7985) (Dunqing) +- efe96ec semantic: Use `Stack` for function stack node ids (#7984) (Dunqing) + +### Testing + +- bcb33c0 semantic: Add a test for catch parameters reference (#7988) (Dunqing) + ## [0.42.0] - 2024-12-18 - c071494 semantic: [**BREAKING**] Remove `SymbolTable::rename` method (#7868) (overlookmotel) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 9158d130690e8..4d77bab61bb95 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.42.0" +version = "0.43.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 9dab1ae6f17a5..cd5b6670aadce 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.42.0" +version = "0.43.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 e336da229ca25..1dbd6924035e8 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.43.0] - 2024-12-21 + +### Refactor + +- e7476a1 semantic: Remove `serialize` (#8015) (Boshen) + ## [0.42.0] - 2024-12-18 - 84b75a0 semantic: [**BREAKING**] Remove `ScopeFlags::Modifiers` (#7935) (overlookmotel) diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 676ba5ed7bb87..58cf0e511e6fd 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.42.0" +version = "0.43.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 264e444af9e99..dcbc406cba4b1 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,39 @@ 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.43.0] - 2024-12-21 + +- de4c772 traverse: [**BREAKING**] Rename `Ancestor::is_via_*` methods to `is_parent_of_*` (#8031) (overlookmotel) + +- ed75e42 semantic: [**BREAKING**] Make SymbolTable fields `pub(crate)` instead of `pub` (#7999) (Boshen) + +### Features + +- 897a1a8 transformer/class-properties: Exit faster from super replacement visitor (#8028) (overlookmotel) +- 3ea4109 transformer/class-properties: Transform super update expressions within static prop initializer (#7997) (Dunqing) +- cc57db3 transformer/class-properties: Transform super assignment expressions within static prop initializer (#7991) (Dunqing) + +### Bug Fixes + +- 043252d transformer/class-properties: Replace `this` and class name in static blocks (#8035) (overlookmotel) +- 273795d transformer/class-properties: Run other transforms on static properties, static blocks, and computed keys (#7982) (overlookmotel) + +### Performance + +- 2736657 semantic: Allocate `UnresolvedReferences` in allocator (#8046) (Boshen) +- 0f9308f transformer/react-refresh: Reduce allocations (#8018) (overlookmotel) +- 0deb9e6 transformer/react-refresh: Reserve capacity in hook key string (#8016) (overlookmotel) +- 7b70347 transformer/react-refresh: Avoid allocating string in each hook call (#8013) (Dunqing) + +### Refactor + +- ac097e9 transformer/class-properties: Rename file (#8036) (overlookmotel) +- 059a5dd transformer/class-properties: Do not pass `ScopeId` into `insert_instance_inits` (#8001) (overlookmotel) +- 0a38eea transformer/class-properties: Use `temp_var_name_base` to generate temp var names for `super` transform (#8004) (overlookmotel) +- d1b7181 transformer/class-properties: Rename var (#8006) (overlookmotel) +- 5a23d72 transformer/class-properties: Remove outdated comment (#8000) (overlookmotel) +- b3a5f3e transformer/class-properties: Mark `transform_assignment_expression_if_super_member_assignment_target` as inline (#7993) (Dunqing) + ## [0.42.0] - 2024-12-18 - c071494 semantic: [**BREAKING**] Remove `SymbolTable::rename` method (#7868) (overlookmotel) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 59e1cabad7e09..cd71689681bd5 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.42.0" +version = "0.43.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 2c044dab6400c..8a6c9af3598ae 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,27 @@ 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.43.0] - 2024-12-21 + +- de4c772 traverse: [**BREAKING**] Rename `Ancestor::is_via_*` methods to `is_parent_of_*` (#8031) (overlookmotel) + +- ed75e42 semantic: [**BREAKING**] Make SymbolTable fields `pub(crate)` instead of `pub` (#7999) (Boshen) + +### Features + +- 6b6444b traverse: Record current block scope (#8007) (overlookmotel) + +### Performance + +- 2736657 semantic: Allocate `UnresolvedReferences` in allocator (#8046) (Boshen) +- 2e8872c semantic: Allocate child scope in allocator (#8045) (Boshen) +- 414e828 semantic: Allocate symbol data in Allocator (#8012) (Boshen) +- 7aebed0 semantic: Allocate `Bindings` in allocator (#8021) (Boshen) + +### Refactor + +- f1adf9f semantic: `ScopeTree::rename_binding` remove old binding first (#8020) (overlookmotel) + ## [0.42.0] - 2024-12-18 ### Features diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index fd5da804c6afa..4b7e0dcadea87 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.42.0" +version = "0.43.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index c3c438d0ba8b5..af3e3995d8c0a 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.42.0" +version = "0.43.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 47cee86d61018..febdc43390ce0 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.42.0", + "version": "0.43.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index fefa2e9d17390..2e30f577fc978 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.42.0", + "version": "0.43.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index dd5c9e4b69f86..9905ae4ab936b 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.42.0", + "version": "0.43.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 45be7260e5fdb..6e04776bd7dbf 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.42.0", + "version": "0.43.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",