From f23bdf9d5c4384230d19c5d853de4c2ac6c722bf Mon Sep 17 00:00:00 2001 From: Dunqing <29533304+Dunqing@users.noreply.github.com> Date: Wed, 18 Dec 2024 03:39:26 +0000 Subject: [PATCH] release(crates): v0.42.0 --- Cargo.lock | 44 +++++------ Cargo.toml | 44 +++++------ crates/oxc/CHANGELOG.md | 6 ++ crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 29 ++++++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 19 +++++ crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_data_structures/CHANGELOG.md | 11 +++ crates/oxc_data_structures/Cargo.toml | 2 +- crates/oxc_diagnostics/CHANGELOG.md | 6 ++ crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_ecmascript/CHANGELOG.md | 18 +++++ crates/oxc_ecmascript/Cargo.toml | 2 +- crates/oxc_estree/Cargo.toml | 2 +- crates/oxc_isolated_declarations/CHANGELOG.md | 10 +++ crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/CHANGELOG.md | 6 ++ crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/CHANGELOG.md | 21 ++++++ crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_napi/CHANGELOG.md | 10 +++ crates/oxc_napi/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 18 +++++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/CHANGELOG.md | 10 +++ crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 33 +++++++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_span/CHANGELOG.md | 14 ++++ crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/CHANGELOG.md | 13 ++++ crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 74 +++++++++++++++++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/CHANGELOG.md | 14 ++++ crates/oxc_traverse/Cargo.toml | 2 +- napi/transform/CHANGELOG.md | 14 ++++ 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/CHANGELOG.md | 6 ++ wasm/parser/package.json | 2 +- 47 files changed, 402 insertions(+), 70 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0091bbd911816..33961783c9cd1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1373,7 +1373,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.41.0" +version = "0.42.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1435,7 +1435,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.41.0" +version = "0.42.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1445,7 +1445,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.41.0" +version = "0.42.0" dependencies = [ "bitflags 2.6.0", "cow-utils", @@ -1463,7 +1463,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.41.0" +version = "0.42.0" dependencies = [ "proc-macro2", "quote", @@ -1511,7 +1511,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.41.0" +version = "0.42.0" dependencies = [ "bitflags 2.6.0", "itertools", @@ -1524,7 +1524,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.41.0" +version = "0.42.0" dependencies = [ "assert-unchecked", "base64", @@ -1585,7 +1585,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.41.0" +version = "0.42.0" dependencies = [ "assert-unchecked", "ropey", @@ -1593,7 +1593,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.41.0" +version = "0.42.0" dependencies = [ "oxc-miette", "rustc-hash", @@ -1601,7 +1601,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.41.0" +version = "0.42.0" dependencies = [ "num-bigint", "num-traits", @@ -1612,7 +1612,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.41.0" +version = "0.42.0" dependencies = [ "serde", ] @@ -1629,7 +1629,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.41.0" +version = "0.42.0" dependencies = [ "bitflags 2.6.0", "insta", @@ -1728,7 +1728,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.41.0" +version = "0.42.0" dependencies = [ "itertools", "oxc_ast", @@ -1739,7 +1739,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.41.0" +version = "0.42.0" dependencies = [ "cow-utils", "insta", @@ -1787,7 +1787,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.41.0" +version = "0.42.0" dependencies = [ "napi", "napi-derive", @@ -1796,7 +1796,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.41.0" +version = "0.42.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -1877,7 +1877,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.41.0" +version = "0.42.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1911,7 +1911,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.41.0" +version = "0.42.0" dependencies = [ "assert-unchecked", "indexmap", @@ -1953,7 +1953,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.41.0" +version = "0.42.0" dependencies = [ "compact_str", "oxc-miette", @@ -1966,7 +1966,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.41.0" +version = "0.42.0" dependencies = [ "assert-unchecked", "bitflags 2.6.0", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.41.0" +version = "0.42.0" dependencies = [ "napi", "napi-build", @@ -2037,7 +2037,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.41.0" +version = "0.42.0" dependencies = [ "base64", "compact_str", @@ -2070,7 +2070,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.41.0" +version = "0.42.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index a708240e503aa..27b326ab7dbbf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -78,28 +78,28 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -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" } +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" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/CHANGELOG.md b/crates/oxc/CHANGELOG.md index 7f3afcb0f5916..9008dd6b4188d 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/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.42.0] - 2024-12-18 + +### Refactor + +- 1314c97 minifier: Expose dce as an API instead of an option (#7957) (Boshen) + ## [0.39.0] - 2024-12-04 - 8a788b8 parser: [**BREAKING**] Build `ModuleRecord` directly in parser (#7546) (Boshen) diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 917603e26669b..0fdb9f195bc57 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.41.0" +version = "0.42.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 734a55d641bd9..ff524d718d3fb 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.41.0" +version = "0.42.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 63578427d5ca9..c521fff529c9d 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/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.42.0] - 2024-12-18 + +### Features + +- 8b7c5ae ast: Add `AstBuilder::atom_from_cow` (#7974) (overlookmotel) +- c30a982 span: Add `impl From for Atom` (#7973) (overlookmotel) +- 6bc530d transformer/class-properties: Transform super call expression that is inside static prop initializer (#7831) (Dunqing) + +### Bug Fixes + +- 3659e6d cfg: Include export default code in CFG instructions (#7862) (Jan Olaf Martin) + +### Performance + +- a5f04a7 ast: Faster `Comment::is_jsdoc` (#7905) (overlookmotel) + +### Documentation + +- e49de81 ast: Document `Expression::is_*` methods (#7853) (overlookmotel) + +### Refactor + +- beb982a ast: Use exhaustive match for `Argument` to `ArrayExpressionElement` conversion (#7848) (overlookmotel) +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 - fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index da68eefd0bc8e..6c3b41bd24a8b 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.41.0" +version = "0.42.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 97b5ee6de949a..d8054434d685c 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.41.0" +version = "0.42.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 3461ad6e40c8e..6901dedffce76 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.41.0" +version = "0.42.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 366b32d9bdd1d..ba44e446b4af1 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,25 @@ 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.42.0] - 2024-12-18 + +### Bug Fixes + +- 850dd43 codegen: Missing `,` when generating type parameters with jsx (#7929) (Dunqing) + +### Performance + +- 4b24335 codegen: Improve printing of statement comments (#7857) (Boshen) +- 71a40a2 codegen: Guard comment printing comments when there are no comments (#7856) (Boshen) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 ### Performance diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index bdcf35f2c564f..2fe0b8457fd14 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_data_structures/CHANGELOG.md b/crates/oxc_data_structures/CHANGELOG.md index b10850bf9bbe3..032bccc074318 100644 --- a/crates/oxc_data_structures/CHANGELOG.md +++ b/crates/oxc_data_structures/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.42.0] - 2024-12-18 + +### Features + +- 46e2e27 data_structures: Implement `Default` for `NonEmptyStack` (#7946) (overlookmotel) + +### Styling + +- fb897f6 data_structures: Add line break (#7882) (overlookmotel) +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.40.0] - 2024-12-10 ### Features diff --git a/crates/oxc_data_structures/Cargo.toml b/crates/oxc_data_structures/Cargo.toml index 83d4b34769692..660e6962a3e13 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.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/CHANGELOG.md b/crates/oxc_diagnostics/CHANGELOG.md index 3d3e9db9c7492..cc8cbfdc222c4 100644 --- a/crates/oxc_diagnostics/CHANGELOG.md +++ b/crates/oxc_diagnostics/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.42.0] - 2024-12-18 + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.40.0] - 2024-12-10 ### Features diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index c19c1f6d749c8..02d7ac904113f 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ecmascript/CHANGELOG.md b/crates/oxc_ecmascript/CHANGELOG.md index 8257e23c0bd52..92d6f3c50003b 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/CHANGELOG.md @@ -4,6 +4,24 @@ 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.42.0] - 2024-12-18 + +### Features + +- 075bd16 minifier: Fold bitwise operation (#7908) (翠 / green) + +### Bug Fixes + +- 4799471 minfier: Bigint bitwise operation only works with bigint (#7937) (Boshen) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.39.0] - 2024-12-04 - b0e1c03 ast: [**BREAKING**] Add `StringLiteral::raw` field (#7393) (Boshen) diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 84ba0aa333074..25e687b761073 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.41.0" +version = "0.42.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 3d9e6ad11d098..0c63a065bc270 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.41.0" +version = "0.42.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 09ea6b664dff7..91b8bfec38953 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/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.42.0] - 2024-12-18 + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 - fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index a8793766e9149..682c2d7bf8fe6 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.41.0" +version = "0.42.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 8d9ca9d3e8195..fd6bea9528a95 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/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.42.0] - 2024-12-18 + +### Features + +- db9e93b mangler: Mangle top level variables (#7907) (翠 / green) + ## [0.33.0] - 2024-10-24 ### Refactor diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 16519ab37bfa9..11ec430babde1 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_minifier/CHANGELOG.md b/crates/oxc_minifier/CHANGELOG.md index b30983628413e..1c62e5f2b1b3d 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/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.42.0] - 2024-12-18 + +### Features + +- db9e93b mangler: Mangle top level variables (#7907) (翠 / green) +- 075bd16 minifier: Fold bitwise operation (#7908) (翠 / green) + +### Bug Fixes + +- 4799471 minfier: Bigint bitwise operation only works with bigint (#7937) (Boshen) +- de8a86e minifier: Incorrect minification in `try_fold_left_child_op` (#7949) (翠 / green) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) +- 1314c97 minifier: Expose dce as an API instead of an option (#7957) (Boshen) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.40.0] - 2024-12-10 - ebc80f6 ast: [**BREAKING**] Change 'raw' from &str to Option (#7547) (Song Gao) diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 584f0e85fcb83..b0bb8d9e29c77 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/CHANGELOG.md b/crates/oxc_napi/CHANGELOG.md index db1ca92bd0d6f..8f460178c1ba7 100644 --- a/crates/oxc_napi/CHANGELOG.md +++ b/crates/oxc_napi/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.42.0] - 2024-12-18 + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.40.1] - 2024-12-10 ### Bug Fixes diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index 40ebfe874dfb8..3df095ea9891a 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.41.0" +version = "0.42.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 a03b2ad22b65e..e8fd0016088d4 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,24 @@ 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.42.0] - 2024-12-18 + +### Features + +- 81eedb1 parser: 'readonly' type modifier is only permitted on array and tuple literal types. (#7880) (Boshen) + +### Bug Fixes + +- 111dc52 parser: Include export token in spans of TSNamespaceExportDeclaration (#7963) (branchseer) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 - fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index c7aa4a65acd07..4badc9f3f0f34 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_regular_expression/CHANGELOG.md b/crates/oxc_regular_expression/CHANGELOG.md index fdc6dc82b6b5f..fbf7c5c98c5cf 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/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.42.0] - 2024-12-18 + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.38.0] - 2024-11-26 ### Features diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 0653c24063b82..b8b20234589c7 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.41.0" +version = "0.42.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 5d97be26c375d..37a2129e47c84 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/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.42.0] - 2024-12-18 + +- c071494 semantic: [**BREAKING**] Remove `SymbolTable::rename` method (#7868) (overlookmotel) + +### Features + +- b9322c6 semantic: Re-export all flags and ID types (#7886) (overlookmotel) + +### Bug Fixes + +- 3659e6d cfg: Include export default code in CFG instructions (#7862) (Jan Olaf Martin) +- 14c51ff semantic: Remove inherting `ScopeFlags::Modifier` from parent scope (#7932) (Dunqing) +- 596aead semantic: Reset references flags when resolved (#7923) (Dunqing) +- 4924073 semantic: `ScopeTree::rename_binding` preserve order of bindings (#7870) (overlookmotel) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) +- 6551dfe semantic: Pass `&str` instead of `Cow` (#7972) (overlookmotel) +- b8d2bd2 semantic: Move determining references flags for export specifier to `visit_export_named_declaration` (#7924) (Dunqing) +- 98d7946 semantic: Import flags and ID types from `oxc_syntax` (#7887) (overlookmotel) +- 1cf8f8f semantic: `SymbolTable::set_name` return old name (#7869) (overlookmotel) +- 5d42df8 semantic: Use `Expression::is_super` (#7851) (overlookmotel) +- 8cf9766 semantic, syntax, wasm: Remove `#![allow(non_snake_case)]` (#7863) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + +### Testing + +- 523d48c transformer: Move named test to exports folder (#7922) (Dunqing) + ## [0.41.0] - 2024-12-13 - 96a26d3 ast: [**BREAKING**] Rename `is_strict` methods to `has_use_strict_directive` (#7783) (overlookmotel) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 48a734dfb59fb..09466b26b9475 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.41.0" +version = "0.42.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 b30c6c2b4e764..ed85108217b47 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/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.42.0] - 2024-12-18 + +### Features + +- c30a982 span: Add `impl From for Atom` (#7973) (overlookmotel) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 ### Features diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 1f3b46cf80940..9dab1ae6f17a5 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.41.0" +version = "0.42.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 384a83bb91e80..e336da229ca25 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/CHANGELOG.md @@ -4,6 +4,19 @@ 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.42.0] - 2024-12-18 + +- 84b75a0 semantic: [**BREAKING**] Remove `ScopeFlags::Modifiers` (#7935) (overlookmotel) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) +- 8cf9766 semantic, syntax, wasm: Remove `#![allow(non_snake_case)]` (#7863) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 ### Refactor diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index c2daec87cb179..676ba5ed7bb87 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.41.0" +version = "0.42.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 39f9b6fe75929..264e444af9e99 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,80 @@ 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.42.0] - 2024-12-18 + +- c071494 semantic: [**BREAKING**] Remove `SymbolTable::rename` method (#7868) (overlookmotel) + +### Features + +- c16a851 napi/transform: Add `jsx: 'preserve'` option (#7965) (Boshen) +- c30a982 span: Add `impl From for Atom` (#7973) (overlookmotel) +- 02b653c transformer/class-properties: Do not create temp var for template literal computed key (#7919) (overlookmotel) +- feac02e transformer/class-properties: Only rename symbols if necessary (#7896) (overlookmotel) +- 6bc530d transformer/class-properties: Transform super call expression that is inside static prop initializer (#7831) (Dunqing) +- 53e2bc0 traverse: Add `TraverseScoping::rename_symbol` method (#7871) (overlookmotel) + +### Bug Fixes + +- 9a30910 oxc_transformer: Inject_global_variables should considering string imported name (#7768) (IWANABETHATGUY) +- 4924073 semantic: `ScopeTree::rename_binding` preserve order of bindings (#7870) (overlookmotel) +- bb38065 transformer/class-properties: Do not transform `super.prop` in nested method within static prop initializer (#7978) (overlookmotel) +- e76fbb0 transformer/class-properties: Fix symbol clashes in instance prop initializers (#7872) (overlookmotel) +- c0576fa transformer/class-properties: Use UID for `args` in created class constructor (#7866) (overlookmotel) +- d660d8d transformer/optional-chaining: Do not create unused reference when `noDocumentAll` assumption (#7847) (overlookmotel) +- 4920c6a transformer/optional-chaining: Avoid creating a useless reference when `noDocumentAll` is true (#7832) (Dunqing) + +### Performance + +- b31f123 transformer/class-properties: Do not re-generate same method key (#7915) (overlookmotel) +- 8ca8fce transformer/class-properties: Reduce work updating scopes when transforming static prop initializers (#7904) (overlookmotel) +- 80d0b3e transformer/class-properties: Fast path for instance prop initializer scope re-parenting (#7901) (overlookmotel) +- 38aafa2 transformer/class-properties: Reduce size of `transform_call_expression_for_super_member_expr` (#7859) (overlookmotel) + +### Documentation + +- 10a86b9 transformer: Fix comments (#7925) (overlookmotel) +- f4cb5d3 transformer: Clarify comment (#7918) (overlookmotel) +- 41a1456 transformer/class-properties: Correct doc comments (#7966) (overlookmotel) +- 18441af transformer/class-properties: Remove oudated todo for assignment expression (#7955) (Dunqing) +- 1317c00 transformer/class-properties: Clarify doc comments (#7914) (overlookmotel) +- 9989b58 transformer/class-properties: Re-order file list in doc comment (#7911) (overlookmotel) +- 7390048 transformer/class-properties: Reformat doc comment (#7909) (overlookmotel) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) +- d59bbae transformer: Remove unneeded lint `#[allow]` (#7971) (overlookmotel) +- 2c94236 transformer: Improve encapsulation of transforms (#7888) (overlookmotel) +- 34091b2 transformer: Use `Expression::is_super` (#7852) (overlookmotel) +- d4d7bc0 transformer/async-to-generator: Avoid allocating unnecessary `Atom`s (#7975) (overlookmotel) +- 2e5ffd3 transformer/class-properties: Store `temp_var_is_created` on `ClassBindings` (#7981) (overlookmotel) +- 27cc6da transformer/class-properties: Store `is_declaration` only on `ClassDetails` (#7980) (overlookmotel) +- ee282f8 transformer/class-properties: Remove `move_expression`s (#7979) (overlookmotel) +- 94b376a transformer/class-properties: Simplify logic for when to create temp binding (#7977) (overlookmotel) +- ff9d1b3 transformer/class-properties: Comments about shorter output (#7976) (overlookmotel) +- 6fc40f0 transformer/class-properties: Pass `BoundIdentifier`s by reference (#7968) (overlookmotel) +- 69eeeea transformer/class-properties: Methods take `&self` where possible (#7967) (overlookmotel) +- 98340bb transformer/class-properties: Use stack of `ClassDetails` (#7947) (overlookmotel) +- 088dd48 transformer/class-properties: Shorten code (#7913) (overlookmotel) +- 544ffbf transformer/class-properties: Split up code into multiple files (#7912) (overlookmotel) +- dcaf674 transformer/class-properties: Rename file (#7910) (overlookmotel) +- 6243980 transformer/class-properties: Instance prop inits visitor use `Visit` (#7867) (overlookmotel) +- eb47d43 transformer/class-properties: Re-use existing `Vec` (#7854) (overlookmotel) +- 1380b7b transformer/class-properties: Reduce visibility of method (#7858) (overlookmotel) +- 0f5e078 transformer/class-properties: Rename `*_owner` to `owned_*` (#7855) (Dunqing) +- 4ea90d4 transformer/react-refresh: Calculate signature key once (#7970) (Dunqing) +- 15b9bff transformer/typescript: Reuse `Atom` (#7969) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + +### Testing + +- e766051 transformer: Skip test which uses filesystem under miri (#7874) (overlookmotel) +- f39e65e transformer: Prevent lint error when running miri (#7873) (overlookmotel) + ## [0.41.0] - 2024-12-13 - fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index ab2c423644ab5..59e1cabad7e09 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.41.0" +version = "0.42.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 748c5a6ac3044..2c044dab6400c 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/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.42.0] - 2024-12-18 + +### Features + +- 53e2bc0 traverse: Add `TraverseScoping::rename_symbol` method (#7871) (overlookmotel) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.41.0] - 2024-12-13 - fb325dc ast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index bf923999cd6bb..fd5da804c6afa 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.41.0" +version = "0.42.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index c1e94244df96f..e1fbda0d0e5a4 100644 --- a/napi/transform/CHANGELOG.md +++ b/napi/transform/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.42.0] - 2024-12-18 + +### Features + +- c16a851 napi/transform: Add `jsx: 'preserve'` option (#7965) (Boshen) + +### Refactor + +- 3858221 global: Sort imports (#7883) (overlookmotel) + +### Styling + +- 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) + ## [0.40.1] - 2024-12-10 ### Bug Fixes diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 3bad7d3b0f509..c3c438d0ba8b5 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.41.0" +version = "0.42.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 2b9ffd7ecd43b..47cee86d61018 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.41.0", + "version": "0.42.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 3f0cf75e66ed2..fefa2e9d17390 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.41.0", + "version": "0.42.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index ef0f61e2aa173..dd5c9e4b69f86 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.41.0", + "version": "0.42.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/CHANGELOG.md b/wasm/parser/CHANGELOG.md index ae340a12a9ed1..c6a2a1e0e1082 100644 --- a/wasm/parser/CHANGELOG.md +++ b/wasm/parser/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.42.0] - 2024-12-18 + +### Refactor + +- 8cf9766 semantic, syntax, wasm: Remove `#![allow(non_snake_case)]` (#7863) (overlookmotel) + ## [0.35.0] - 2024-11-04 ### Bug Fixes diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 9d26dbb033cd4..45be7260e5fdb 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.41.0", + "version": "0.42.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",