diff --git a/Cargo.lock b/Cargo.lock index 9312e7d7b1cd3..c7cd787fae9a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1477,7 +1477,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.46.0" +version = "0.47.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1539,7 +1539,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.46.0" +version = "0.47.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1552,7 +1552,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.46.0" +version = "0.47.0" dependencies = [ "bitflags 2.7.0", "cow-utils", @@ -1570,7 +1570,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.46.0" +version = "0.47.0" dependencies = [ "proc-macro2", "quote", @@ -1620,7 +1620,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.46.0" +version = "0.47.0" dependencies = [ "bitflags 2.7.0", "itertools", @@ -1633,7 +1633,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.46.0" +version = "0.47.0" dependencies = [ "assert-unchecked", "base64", @@ -1695,7 +1695,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.46.0" +version = "0.47.0" dependencies = [ "assert-unchecked", "ropey", @@ -1703,14 +1703,14 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.46.0" +version = "0.47.0" dependencies = [ "oxc-miette", ] [[package]] name = "oxc_ecmascript" -version = "0.46.0" +version = "0.47.0" dependencies = [ "num-bigint", "num-traits", @@ -1721,7 +1721,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.46.0" +version = "0.47.0" dependencies = [ "serde", ] @@ -1738,7 +1738,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.46.0" +version = "0.47.0" dependencies = [ "bitflags 2.7.0", "insta", @@ -1838,7 +1838,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.46.0" +version = "0.47.0" dependencies = [ "itertools", "oxc_allocator", @@ -1851,7 +1851,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.46.0" +version = "0.47.0" dependencies = [ "cow-utils", "insta", @@ -1906,7 +1906,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.46.0" +version = "0.47.0" dependencies = [ "napi", "napi-derive", @@ -1915,7 +1915,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.46.0" +version = "0.47.0" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -1938,7 +1938,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.46.0" +version = "0.47.0" dependencies = [ "napi", "napi-build", @@ -1997,7 +1997,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.46.0" +version = "0.47.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -2031,7 +2031,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.46.0" +version = "0.47.0" dependencies = [ "assert-unchecked", "insta", @@ -2071,7 +2071,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.46.0" +version = "0.47.0" dependencies = [ "compact_str", "oxc-miette", @@ -2084,7 +2084,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.46.0" +version = "0.47.0" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -2143,7 +2143,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.46.0" +version = "0.47.0" dependencies = [ "napi", "napi-build", @@ -2156,7 +2156,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.46.0" +version = "0.47.0" dependencies = [ "base64", "compact_str", @@ -2189,7 +2189,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.46.0" +version = "0.47.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index fc2aea119a9d5..39152cbab27ae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.46.0", path = "crates/oxc" } -oxc_allocator = { version = "0.46.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.46.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.46.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.46.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.46.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.46.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.46.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.46.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.46.0", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.46.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.46.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.46.0", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.46.0", path = "crates/oxc_napi" } -oxc_parser = { version = "0.46.0", path = "crates/oxc_parser" } -oxc_parser_napi = { version = "0.46.0", path = "napi/parser" } -oxc_regular_expression = { version = "0.46.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.46.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.46.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.46.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.46.0", path = "napi/transform" } -oxc_transformer = { version = "0.46.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.46.0", path = "crates/oxc_traverse" } +oxc = { version = "0.47.0", path = "crates/oxc" } +oxc_allocator = { version = "0.47.0", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.47.0", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.47.0", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.47.0", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.47.0", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.47.0", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.47.0", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.47.0", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.47.0", path = "crates/oxc_estree" } +oxc_isolated_declarations = { version = "0.47.0", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.47.0", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.47.0", path = "crates/oxc_minifier" } +oxc_napi = { version = "0.47.0", path = "crates/oxc_napi" } +oxc_parser = { version = "0.47.0", path = "crates/oxc_parser" } +oxc_parser_napi = { version = "0.47.0", path = "napi/parser" } +oxc_regular_expression = { version = "0.47.0", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.47.0", path = "crates/oxc_semantic" } +oxc_span = { version = "0.47.0", path = "crates/oxc_span" } +oxc_syntax = { version = "0.47.0", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.47.0", path = "napi/transform" } +oxc_transformer = { version = "0.47.0", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.47.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 9008dd6b4188d..37383672c0049 100644 --- a/crates/oxc/CHANGELOG.md +++ b/crates/oxc/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.47.0] - 2025-01-18 + +- 4ce6329 semantic: [**BREAKING**] Ensure program outlives semantic (#8455) (Valentinas Janeiko) + +### Bug Fixes + + ## [0.42.0] - 2024-12-18 ### Refactor diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 5dd05d3289f39..3ae13607cf673 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.46.0" +version = "0.47.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 2c6d7d3160114..4a14502a1fb8b 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/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.47.0] - 2025-01-18 + +- fae4cd2 allocator: [**BREAKING**] Remove `Vec::into_string` (#8571) (overlookmotel) + +- 95bc0d7 allocator: [**BREAKING**] `Allocator` do not deref to `bumpalo::Bump` (#8569) (overlookmotel) + +### Features + +- bf4e5e1 allocator: Add `HashMap` (#8553) (overlookmotel) + +### Bug Fixes + +- e87c001 allocator: Statically prevent memory leaks in allocator (#8570) (overlookmotel) + +### Performance + +- 76ea52b allocator: Inline `Box` methods (#8572) (overlookmotel) +- 93df57f allocator: `#[inline(always)]` methods of `Vec` which just delegate to `allocator_api2` (#8567) (overlookmotel) +- 5a28d68 allocator: `#[inline(always)]` methods of `HashMap` which just delegate to `hashbrown` (#8565) (overlookmotel) + +### Documentation + +- fa1a6d5 allocator: Update docs for `Vec` (#8555) (overlookmotel) + +### Refactor + +- ac05134 allocator: `String` type (#8568) (overlookmotel) +- 68fab81 allocator: Rename inner `Vec` type (#8566) (overlookmotel) + ## [0.45.0] - 2025-01-11 ### Features diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 93c9ed3b85c12..cc746110ebd53 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.46.0" +version = "0.47.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 efd3583679820..fb81fec488c61 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,30 @@ 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.47.0] - 2025-01-18 + +- 19d3677 ast: [**BREAKING**] Always return `Array` for `ImportDeclaration.specifiers` (#8560) (sapphi-red) + +- 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) + +### Features + +- a6d71f8 ast: Add `AstKind::ty` method (#8521) (overlookmotel) + +### Bug Fixes + +- 855c839 codegen: Shorthand assignment target identifier consider mangled names (#8536) (Boshen) + +### Performance + +- 3fff7d2 span: Align `Span` same as `usize` (#8298) (overlookmotel) + +### Refactor + +- ac05134 allocator: `String` type (#8568) (overlookmotel) +- fcbca32 ast: Rename `#[estree(with)]` to `#[estree(via)]` (#8564) (overlookmotel) +- 007e8c0 ast, regular_expression: Shorten `ContentEq` implementations (#8519) (overlookmotel) + ## [0.46.0] - 2025-01-14 - 7eb6ccd ast: [**BREAKING**] Remove unused and not useful `ContentHash` (#8483) (Boshen) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index eb5fb98f820f1..126d7359d49f3 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.46.0" +version = "0.47.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/CHANGELOG.md b/crates/oxc_ast_macros/CHANGELOG.md index b1ea0fcb11915..306c908981a74 100644 --- a/crates/oxc_ast_macros/CHANGELOG.md +++ b/crates/oxc_ast_macros/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.47.0] - 2025-01-18 + +- 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) + +### Features + + ## [0.38.0] - 2024-11-26 ### Features diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index d26acc5beb20a..1b3c44ddf7e45 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.46.0" +version = "0.47.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 8d07faf12294d..a20fc335efdb3 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.46.0" +version = "0.47.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 a3082601838ef..b74e0f1c2535e 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.47.0] - 2025-01-18 + +### Bug Fixes + +- 855c839 codegen: Shorthand assignment target identifier consider mangled names (#8536) (Boshen) + ## [0.46.0] - 2025-01-14 ### Refactor diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 9bab7eddd5d4f..0c1e132667d40 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.46.0" +version = "0.47.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 cfa89a90597f0..adc286ea3c143 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.46.0" +version = "0.47.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 cc8cbfdc222c4..d3a598768cc32 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.47.0] - 2025-01-18 + +### Refactor + +- b4c87e2 linter: Move DiagnosticsReporters to oxlint (#8454) (Alexander S.) + ## [0.42.0] - 2024-12-18 ### Styling diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 88ba53002b0ee..837e6646957ef 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.46.0" +version = "0.47.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 ecdf21ecfb3e5..e3c880a376ccb 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/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.47.0] - 2025-01-18 + +### Features + +- 927f43f minifier: Improve `.charCodeAt(arg)` when arg is valid (#8534) (Boshen) + +### Bug Fixes + +- b1d0186 minifier: Do not fold `!!void b` (#8533) (Boshen) + +### Refactor + +- 8f57929 minifier: Merge `try_compress_type_of_equal_string` into `try_minimize_binary` (#8561) (sapphi-red) + ## [0.46.0] - 2025-01-14 ### Bug Fixes diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 5d93bb2781bbd..e05f967cc3648 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.46.0" +version = "0.47.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 582497adcf879..73d3119979ac3 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.46.0" +version = "0.47.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 f0656f5d5ef47..5ed99a149e1f9 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.46.0" +version = "0.47.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 0d419d2d85be1..230a8872c2716 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/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.47.0] - 2025-01-18 + +### Performance + +- d17021c mangler: Optimize `base54` function (#8557) (overlookmotel) +- 6b52d7a mangler: Use a single allocation space for temporary vecs (#8495) (Boshen) + ## [0.46.0] - 2025-01-14 ### Performance diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 82f7acc69d3d8..501e60cda1b16 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.46.0" +version = "0.47.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 e48b73626e154..faf20a22735c3 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,40 @@ 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.47.0] - 2025-01-18 + +### Features + +- 4d4e805 minifier: Collapse if stmt with empty consequent (#8577) (camc314) +- 991a22f minifier: Fold `Array::concat` into literal (#8442) (sapphi-red) +- 3dc2d8b minifier: Fold string concat chaining (#8441) (sapphi-red) +- a4ae450 minifier: Fold array concat chaining (#8440) (sapphi-red) +- 7cc81ef minifier: Fold invalid typeof comparisons (#8550) (camc314) +- 927f43f minifier: Improve `.charCodeAt(arg)` when arg is valid (#8534) (Boshen) +- 06f14d5 minifier: Remove empty class static block `class Foo { static {} }` (#8525) (Boshen) +- 1860411 minifier: Remove last redundant return statement (#8523) (Boshen) + +### Bug Fixes + +- 65c596d minifer: Keep idents if not in scope when minimizing array exprs (#8551) (camc314) +- f57aac2 minifier: Incorrect folding of expr in bool ctx (#8542) (camc314) +- 946ad76 minifier: `(-Infinity).toString()` -> `'-Infinity'` (#8535) (Boshen) +- b1d0186 minifier: Do not fold `!!void b` (#8533) (Boshen) +- 53adde5 minifier: `x['-2147483648']` -> `x[-2147483648]` (#8528) (Boshen) +- 405b73d minifier: Do not change `delete undefined` to `delete void 0` (#8527) (Boshen) +- 92e44cb minifier: Do not remove `undefined` in `var x = undefined` (#8526) (Boshen) +- 209e313 minifier: `class C { ['-1']() {} }` cannot be minifized (#8516) (Boshen) +- 6585463 minifier: Always keep the last value of sequence expression (#8490) (Boshen) + +### Refactor + +- 8f57929 minifier: Merge `try_compress_type_of_equal_string` into `try_minimize_binary` (#8561) (sapphi-red) + +### Testing + +- e0f5d6c minifier: Update esbuild test (Boshen) +- 629c417 minifier: Port esbuild minification tests (#8497) (Boshen) + ## [0.46.0] - 2025-01-14 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index dfa05132af9d4..076becef2b927 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.46.0" +version = "0.47.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 137324187c5af..298c3d5e0b63b 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.46.0" +version = "0.47.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 523b5ff1b5fbb..7b129d147e0b7 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.47.0] - 2025-01-18 + +### Features + +- c479a58 napi/parser: Expose dynamic import expressions (#8540) (Boshen) + +### Refactor + +- 2857ae1 parser: Refactor visitor in regexp example (#8524) (overlookmotel) +- b5ed58e span: All methods take owned `Span` (#8297) (overlookmotel) + ## [0.45.0] - 2025-01-11 ### Features diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index feb86f2dae816..b3144a9a10de3 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.46.0" +version = "0.47.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 83cc16ba1cd78..6c6c212a2f5de 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/CHANGELOG.md @@ -4,6 +4,18 @@ 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.47.0] - 2025-01-18 + +- 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) + +### Features + + +### Refactor + +- 007e8c0 ast, regular_expression: Shorten `ContentEq` implementations (#8519) (overlookmotel) +- b5ed58e span: All methods take owned `Span` (#8297) (overlookmotel) + ## [0.46.0] - 2025-01-14 - 7eb6ccd ast: [**BREAKING**] Remove unused and not useful `ContentHash` (#8483) (Boshen) diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index fd64fb8725a57..7cc11d3706fff 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.46.0" +version = "0.47.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 e327d9b0b91ad..5448263f03f80 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.47.0] - 2025-01-18 + +- 4ce6329 semantic: [**BREAKING**] Ensure program outlives semantic (#8455) (Valentinas Janeiko) + +### Bug Fixes + + +### Performance + +- 30a869e semantic: Use `oxc_allocator::HashMap` in `ScopeTree` (#8554) (overlookmotel) + +### Refactor + +- b5ed58e span: All methods take owned `Span` (#8297) (overlookmotel) + ## [0.45.0] - 2025-01-11 ### Features diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 101c96d6d1cde..cfb2adfd6a31b 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.46.0" +version = "0.47.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 a022976725f0a..c2d0977dff49c 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/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.47.0] - 2025-01-18 + +- 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) + +### Features + + +### Performance + +- 63eb298 span: Compare `Span`s as single `u64`s (#8300) (overlookmotel) +- a43560c span: Hash `Span` as a single `u64` (#8299) (overlookmotel) +- 3fff7d2 span: Align `Span` same as `usize` (#8298) (overlookmotel) + +### Refactor + +- ac05134 allocator: `String` type (#8568) (overlookmotel) +- b5ed58e span: All methods take owned `Span` (#8297) (overlookmotel) + ## [0.46.0] - 2025-01-14 ### Features diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 4246a915e72e1..c8eccf5377869 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.46.0" +version = "0.47.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 4db81428ef783..3a92354ad2467 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/CHANGELOG.md @@ -4,6 +4,14 @@ 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.47.0] - 2025-01-18 + +- 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) + +### Features + +- c479a58 napi/parser: Expose dynamic import expressions (#8540) (Boshen) + ## [0.46.0] - 2025-01-14 - 7eb6ccd ast: [**BREAKING**] Remove unused and not useful `ContentHash` (#8483) (Boshen) diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 53f4166a91729..84813fb77bbcd 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.46.0" +version = "0.47.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 4e13eaf47cd5d..29e5fb4515e2d 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.47.0] - 2025-01-18 + +- fae4cd2 allocator: [**BREAKING**] Remove `Vec::into_string` (#8571) (overlookmotel) + +### Features + +- f413bb5 transformer/optional-chaining: Change parent scope for expression when it wrapped with an arrow function (#8511) (Dunqing) + +### Bug Fixes + +- b552f5c transformer: `wrap_in_arrow_function_iife` take span of input `Expression` (#8547) (overlookmotel) +- 9963533 transformer/arrow-functions: Visit arguments to `super()` call (#8494) (overlookmotel) +- 06ccb51 transformer/async-to-generator: Move parameters to the inner generator function when they could throw errors (#8500) (Dunqing) +- 356f0c1 transformer/class-properties: Handle nested `super()` calls (#8506) (overlookmotel) +- a048337 transformer/class-static-blocks: Static block converted to IIFE use span of original block (#8549) (overlookmotel) + +### Performance + +- 53ef263 transformer/arrow-functions: Bail out of visiting early when inserting `_this = this` after `super()` (#8482) (overlookmotel) + +### Refactor + +- 712633f transformer: `wrap_statements_in_arrow_function_iife` utility function (#8548) (overlookmotel) +- 5206c6a transformer: Rename `wrap_in_arrow_function_iife` (#8546) (overlookmotel) +- 61077ca transformer: `wrap_arrow_function_iife` receive an owned `Expression` (#8545) (overlookmotel) +- 6820d24 transformer: Move `wrap_arrow_function_iife` to root utils module (#8529) (Dunqing) +- 52bd0b1 transformer: Move common utils functions to the root module (#8513) (Dunqing) +- c30654a transformer/arrow-function: Wrapping arrow function iife by using `wrap_arrow_function_iife` (#8530) (Dunqing) +- 2bc5175 transformer/arrow-functions: Rename method (#8481) (overlookmotel) +- 72f425f transformer/class-properties: Fix lint warning in release mode (#8539) (overlookmotel) +- 7e61b23 transformer/typescript: Shorten code (#8504) (overlookmotel) + ## [0.46.0] - 2025-01-14 ### Bug Fixes diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index dd0a8a5cd13cb..b877508b2f773 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.46.0" +version = "0.47.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 27845984ed6b8..83aa7c3eacc91 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.47.0] - 2025-01-18 + +### Refactor + +- 04bc259 traverse: Remove unnecessary `#[allow]` (#8518) (overlookmotel) +- a368726 traverse: Harden soundness of `Traverse` and document safety invariants better (#8507) (overlookmotel) + ## [0.45.0] - 2025-01-11 ### Features diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 63c2357394107..8506e1a1014eb 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.46.0" +version = "0.47.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/CHANGELOG.md b/napi/parser/CHANGELOG.md index 5ac77a51394ca..0cacade992ab7 100644 --- a/napi/parser/CHANGELOG.md +++ b/napi/parser/CHANGELOG.md @@ -4,3 +4,9 @@ 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.47.0] - 2025-01-18 + +### Features + +- c479a58 napi/parser: Expose dynamic import expressions (#8540) (Boshen) + diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index c1437f0c473e7..e426efedfbf08 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.46.0" +version = "0.47.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 893fbbf368c80..e6e28efea1bbd 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.46.0" +version = "0.47.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-minify/CHANGELOG.md b/npm/oxc-minify/CHANGELOG.md new file mode 100644 index 0000000000000..5241a82c0e24d --- /dev/null +++ b/npm/oxc-minify/CHANGELOG.md @@ -0,0 +1,12 @@ +# Changelog + +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.47.0] - 2025-01-18 + +### Features + +- 2f0314e npm/oxc-minify: Npm package and publish script (#8579) (Boshen) + diff --git a/npm/oxc-minify/package.json b/npm/oxc-minify/package.json index 0d73f15c8ae9e..8dd88489308d6 100644 --- a/npm/oxc-minify/package.json +++ b/npm/oxc-minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.46.0", + "version": "0.47.0", "description": "Oxc minify Node API", "keywords": [ "minify" diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 6449ab1d3ec8f..58d24c6ee3b77 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.46.0", + "version": "0.47.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 730e1d0723d9d..7b6501ce86d1e 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.46.0", + "version": "0.47.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/CHANGELOG.md b/npm/oxc-types/CHANGELOG.md index fda0c301cb417..729f1c1df0ea8 100644 --- a/npm/oxc-types/CHANGELOG.md +++ b/npm/oxc-types/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.47.0] - 2025-01-18 + +- 19d3677 ast: [**BREAKING**] Always return `Array` for `ImportDeclaration.specifiers` (#8560) (sapphi-red) + +### Bug Fixes + + ## [0.44.0] - 2024-12-25 - ad2a620 ast: [**BREAKING**] Add missing `AssignmentTargetProperty::computed` (#8097) (Boshen) diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index 2cdb1e249cd20..2e27af168a529 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.46.0", + "version": "0.47.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index aa88744e7a594..4e78d57bcc576 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.46.0", + "version": "0.47.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",