diff --git a/Cargo.lock b/Cargo.lock index c64176f6a0d55..139e791cc1f78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1501,7 +1501,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.48.1" +version = "0.48.2" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1563,7 +1563,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.48.1" +version = "0.48.2" dependencies = [ "allocator-api2", "bumpalo", @@ -1576,7 +1576,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.48.1" +version = "0.48.2" dependencies = [ "bitflags 2.7.0", "cow-utils", @@ -1594,7 +1594,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.48.1" +version = "0.48.2" dependencies = [ "proc-macro2", "quote", @@ -1644,7 +1644,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.48.1" +version = "0.48.2" dependencies = [ "bitflags 2.7.0", "itertools", @@ -1657,7 +1657,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.48.1" +version = "0.48.2" dependencies = [ "assert-unchecked", "base64", @@ -1721,7 +1721,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.48.1" +version = "0.48.2" dependencies = [ "assert-unchecked", "ropey", @@ -1729,7 +1729,7 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.48.1" +version = "0.48.2" dependencies = [ "cow-utils", "oxc-miette", @@ -1737,7 +1737,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.48.1" +version = "0.48.2" dependencies = [ "num-bigint", "num-traits", @@ -1748,7 +1748,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.48.1" +version = "0.48.2" dependencies = [ "serde", ] @@ -1765,7 +1765,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.48.1" +version = "0.48.2" dependencies = [ "bitflags 2.7.0", "insta", @@ -1863,7 +1863,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.48.1" +version = "0.48.2" dependencies = [ "fixedbitset", "itertools", @@ -1877,7 +1877,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.48.1" +version = "0.48.2" dependencies = [ "cow-utils", "insta", @@ -1933,7 +1933,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.48.1" +version = "0.48.2" dependencies = [ "napi", "napi-derive", @@ -1942,7 +1942,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.48.1" +version = "0.48.2" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -1965,7 +1965,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.48.1" +version = "0.48.2" dependencies = [ "napi", "napi-build", @@ -2026,7 +2026,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.48.1" +version = "0.48.2" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -2061,7 +2061,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.48.1" +version = "0.48.2" dependencies = [ "assert-unchecked", "insta", @@ -2101,7 +2101,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.48.1" +version = "0.48.2" dependencies = [ "compact_str", "oxc-miette", @@ -2114,7 +2114,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.48.1" +version = "0.48.2" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -2173,7 +2173,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.48.1" +version = "0.48.2" dependencies = [ "napi", "napi-build", @@ -2186,7 +2186,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.48.1" +version = "0.48.2" dependencies = [ "base64", "compact_str", @@ -2219,7 +2219,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.48.1" +version = "0.48.2" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index a47df4006f7b7..0972fc43442d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.48.1", path = "crates/oxc" } -oxc_allocator = { version = "0.48.1", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.48.1", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.48.1", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.48.1", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.48.1", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.48.1", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.48.1", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.48.1", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.48.1", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.48.1", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.48.1", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.48.1", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.48.1", path = "crates/oxc_napi" } -oxc_parser = { version = "0.48.1", path = "crates/oxc_parser" } -oxc_parser_napi = { version = "0.48.1", path = "napi/parser" } -oxc_regular_expression = { version = "0.48.1", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.48.1", path = "crates/oxc_semantic" } -oxc_span = { version = "0.48.1", path = "crates/oxc_span" } -oxc_syntax = { version = "0.48.1", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.48.1", path = "napi/transform" } -oxc_transformer = { version = "0.48.1", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.48.1", path = "crates/oxc_traverse" } +oxc = { version = "0.48.2", path = "crates/oxc" } +oxc_allocator = { version = "0.48.2", path = "crates/oxc_allocator" } +oxc_ast = { version = "0.48.2", path = "crates/oxc_ast" } +oxc_ast_macros = { version = "0.48.2", path = "crates/oxc_ast_macros" } +oxc_cfg = { version = "0.48.2", path = "crates/oxc_cfg" } +oxc_codegen = { version = "0.48.2", path = "crates/oxc_codegen" } +oxc_data_structures = { version = "0.48.2", path = "crates/oxc_data_structures" } +oxc_diagnostics = { version = "0.48.2", path = "crates/oxc_diagnostics" } +oxc_ecmascript = { version = "0.48.2", path = "crates/oxc_ecmascript" } +oxc_estree = { version = "0.48.2", path = "crates/oxc_estree" } +oxc_isolated_declarations = { version = "0.48.2", path = "crates/oxc_isolated_declarations" } +oxc_mangler = { version = "0.48.2", path = "crates/oxc_mangler" } +oxc_minifier = { version = "0.48.2", path = "crates/oxc_minifier" } +oxc_napi = { version = "0.48.2", path = "crates/oxc_napi" } +oxc_parser = { version = "0.48.2", path = "crates/oxc_parser" } +oxc_parser_napi = { version = "0.48.2", path = "napi/parser" } +oxc_regular_expression = { version = "0.48.2", path = "crates/oxc_regular_expression" } +oxc_semantic = { version = "0.48.2", path = "crates/oxc_semantic" } +oxc_span = { version = "0.48.2", path = "crates/oxc_span" } +oxc_syntax = { version = "0.48.2", path = "crates/oxc_syntax" } +oxc_transform_napi = { version = "0.48.2", path = "napi/transform" } +oxc_transformer = { version = "0.48.2", path = "crates/oxc_transformer" } +oxc_traverse = { version = "0.48.2", 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 37383672c0049..95897149d8bfb 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.48.2] - 2025-02-02 + +### Refactor + +- 6aa2dde codegen: Accept SymbolTable instead of Mangler (#8829) (Daniel Bulant) + ## [0.47.0] - 2025-01-18 - 4ce6329 semantic: [**BREAKING**] Ensure program outlives semantic (#8455) (Valentinas Janeiko) diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 02e0dbd4497c0..6513a59349a34 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 5aa0a7fbf6af4..e85776aab8151 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index 24f8aa91ac78d..ce7cbfcd36b32 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/CHANGELOG.md @@ -4,6 +4,32 @@ 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.48.2] - 2025-02-02 + +### Features + +- d553318 minifier: Complete `MangleIf` (#8810) (Boshen) +- e353a01 minifier: Compress `a != null ? a.b : undefined` to `a?.b` (#8802) (sapphi-red) + +### Documentation + +- 57b7ca8 ast: Add documentation for all remaining JS AST methods (#8820) (Cam McHenry) +- b00b8c8 ast: Correct documentation for `JSXExpression::EmptyExpression` (#8816) (Dunqing) +- c63291a ast: Add more docs for JS expressions, declarations, and module AST types (#8800) (Cam McHenry) +- fb5b1fa ast: Reformat `AstBuilder` doc comments (#8774) (overlookmotel) + +### Refactor + +- 0568210 ast: Remove excess line breaks from generated code (#8830) (overlookmotel) +- 30eec26 ast: Make generated code for `Visit` more understandable (#8825) (overlookmotel) +- d4eee50 ast: Comments for enums with no `AstKind` in generated code for `Visit` trait (#8796) (overlookmotel) +- 87a7711 ast: Shorten generated code for `VisitMut` (#8795) (overlookmotel) +- 70ad879 ast: Remove unnecessary lint from generated code for `AstKind` (#8794) (overlookmotel) +- beeda9a ast: Alter comments in generated `Visit` trait (#8793) (overlookmotel) +- 8cf9d34 ast: Rename `#[estree(type)]` attr on struct fields to `#[estree(ts_type)]` (#8767) (overlookmotel) +- a316b10 ast: Rename `#[estree(type)]` attr on types to `#[estree(rename)]` (#8766) (overlookmotel) +- a861d93 minifier: Port esbuild's `mangleStmts` (#8770) (Boshen) + ## [0.48.1] - 2025-01-26 ### Features diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 44b26ebbe0fa4..d0690fd8839cd 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.48.1" +version = "0.48.2" 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 6828389b874eb..b357ec8fa6e49 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.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index a645143cc444e..38457b07714f2 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index 1444d82230c11..9045cda6e5ab4 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/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.48.2] - 2025-02-02 + +### Bug Fixes + +- 0928a19 codegen: Emit this parameters of class methods (#8834) (michaelm) + +### Performance + +- d8fac6d codegen: Avoid a heap allocation when printing floats (#8807) (Boshen) + +### Refactor + +- 6aa2dde codegen: Accept SymbolTable instead of Mangler (#8829) (Daniel Bulant) + ## [0.48.1] - 2025-01-26 ### Bug Fixes diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 6620dee2d34d8..bbf975448eb17 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.48.1" +version = "0.48.2" 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 8e9351ce7bb25..054b75ae358d9 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.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/CHANGELOG.md b/crates/oxc_diagnostics/CHANGELOG.md index 0f75ab058efcb..fe733d4ba477f 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.48.2] - 2025-02-02 + +### Testing + +- ad35e82 linter: Use snapshot testing instead of LintResult (#8711) (Sysix) + ## [0.48.1] - 2025-01-26 ### Refactor diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index c4b3f1fe1862d..7d849d4a38648 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ecmascript/CHANGELOG.md b/crates/oxc_ecmascript/CHANGELOG.md index bfff225a7f3fe..97b7d8244460a 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/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.48.2] - 2025-02-02 + +### Bug Fixes + +- ae7f670 minifier: Avoid minifying `+void unknown` to `NaN` and fix typo (#8784) (7086cmd) + ## [0.48.1] - 2025-01-26 ### Refactor diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 9c4c126a3ebc3..b87ee655a4ae6 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index 79e6bffa4edf8..8f7f1d6f7a387 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.48.1" +version = "0.48.2" 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 2613bca0beb65..fa90e5f3d7eda 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.48.2] - 2025-02-02 + +### Bug Fixes + +- 0928a19 codegen: Emit this parameters of class methods (#8834) (michaelm) + +### Documentation + +- 57b7ca8 ast: Add documentation for all remaining JS AST methods (#8820) (Cam McHenry) + ## [0.48.0] - 2025-01-24 ### Features diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index d44ba465bc3f2..c71fe6be8efb4 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.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/CHANGELOG.md b/crates/oxc_mangler/CHANGELOG.md index 5e9e987cbc6a4..db6f3fa0e0775 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/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.48.2] - 2025-02-02 + +### Features + +- 86b6219 mangler: Use characters in the order of their likely frequency (#8771) (sapphi-red) + +### Performance + +- 2e4ff91 manger: Revert "perf(manger): remove useless tmp_bindings (#8735)" (#8741) (Dunqing) + +### Refactor + +- 6aa2dde codegen: Accept SymbolTable instead of Mangler (#8829) (Daniel Bulant) + ## [0.48.1] - 2025-01-26 ### Features diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 90b0ef2181d0c..b5835ff64a034 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_minifier/CHANGELOG.md b/crates/oxc_minifier/CHANGELOG.md index 6d78e9e0c5765..1474b9d6a16de 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,58 @@ 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.48.2] - 2025-02-02 + +### Features + +- 86b6219 mangler: Use characters in the order of their likely frequency (#8771) (sapphi-red) +- d553318 minifier: Complete `MangleIf` (#8810) (Boshen) +- 5cfea76 minifier: Compress `(a = _a) != null ? a : b` and `(a = _a) != null ? a.b() : undefined` (#8823) (sapphi-red) +- f02d9e9 minifier: Merge single var declarations without init into for-of (#8813) (sapphi-red) +- 99b47ed minifier: Merge single var declarations without init into for-in (#8812) (sapphi-red) +- d9f1d0d minifier: Merge expressions in for-in statement head (#8811) (sapphi-red) +- 18f1b15 minifier: Implement known method `Array.of` (#8805) (7086cmd) +- e525e60 minifier: Compress `a != null ? a.b : undefined` to `a?.b` (#8802) (#8808) (Boshen) +- e353a01 minifier: Compress `a != null ? a.b : undefined` to `a?.b` (#8802) (sapphi-red) +- 72d74a2 minifier: Compress `a != null ? a : b` into `a ?? b` (#8801) (sapphi-red) +- 249895f minifier: Implement variadic Math methods in known methods (#8783) (Ethan Goh) +- 7ea99f4 minifier: Compress array of string literals to `'str1,str2'.split(',')` (#8786) (sapphi-red) +- 6c627df minifier: Implement unary Math functions in known methods (#8781) (7086cmd) +- ad14403 minifier: Compress `typeof a.b === 'undefined'` to `a.b === void 0` (#8751) (sapphi-red) +- f7f2d2f minifier: Compress `a == null && b` to `a ?? b` when return value is ignored (#8749) (sapphi-red) +- 3c1c92c minifier: Support `a[0]` and `this.a` in `has_no_side_effect_for_evaluation_same_target` (#8748) (sapphi-red) +- 29417dd minifier: Minimize `!(a, b)` -> `a, !b` (#8746) (Boshen) +- 3ece991 minifier: Remove unused `import.meta` statement (#8744) (Boshen) +- 3ef980a minifier: Remove unreachable statements after `break` and `continue` (#8743) (Boshen) + +### Bug Fixes + +- 831928d minifier: Mark as changed when `else if` was converted to `if` (#8837) (翠 / green) +- f8548ec minifier: Unreachable error when compressing string literal arrays with `.split()` (#8806) (sapphi-red) +- 2eac9c0 minifier: Fix `var undefined = 1; foo === null || foo === undefined` should not be compressed (#8803) (sapphi-red) +- ae7f670 minifier: Avoid minifying `+void unknown` to `NaN` and fix typo (#8784) (7086cmd) +- 8781537 minifier: `{ let foo; const bar = undefined; }` -> `{ let foo, bar; }` (#8764) (Boshen) +- 8a6ae8a minifier: Do not change `const` to `let` if assignment to constant variable. (#8761) (Boshen) +- 66c33ed minifier: Remove incorrect not + conditional expression compression (#8759) (翠 / green) +- a3b078a minifier: Fix crash with `[]['concat'](1)` (#8750) (sapphi-red) + +### Refactor + +- 6aa2dde codegen: Accept SymbolTable instead of Mangler (#8829) (Daniel Bulant) +- 3abf2f7 minifier: Extract `extract_id_or_assign_to_id` method (#8822) (sapphi-red) +- a861d93 minifier: Port esbuild's `mangleStmts` (#8770) (Boshen) +- 0fcff20 minifier: Remove `EmptyStatement` in a single place (#8745) (Boshen) + +### Testing + +- dc4c388 minifier: Fail tests when parse fails (#8836) (sapphi-red) +- 3ac5020 minifier: Enable more passed esbuild tests (#8804) (Boshen) +- 0c4c739 minifier: Cleanup some tests in substitute_alternate_syntax (#8768) (sapphi-red) +- 79d5481 minifier: Add and enable some tests in fold_constants (#8769) (sapphi-red) +- ef55e7c minifier: Check idempotency for all tests (#8754) (Boshen) +- d072f09 minifier: Enable more ignored tests (#8753) (Boshen) +- e78e468 minifier: Cleanup some tests in minimize_conditions (#8752) (sapphi-red) + ## [0.48.1] - 2025-01-26 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index d0f85b2ac84d9..1472a4b936ade 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index 01af588090b61..28fb892427c90 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index c8879376db753..e5f72f1234a57 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.48.1" +version = "0.48.2" 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 8d397a5ff9e6d..251d2fa3bd338 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.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index f47424b166d95..ec98418e7bafe 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/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.48.2] - 2025-02-02 + +### Features + +- 256ae78 semantic: Report error for empty JSX attribute expression (#8815) (Dunqing) + +### Refactor + +- 6aa2dde codegen: Accept SymbolTable instead of Mangler (#8829) (Daniel Bulant) + ## [0.48.1] - 2025-01-26 ### Features diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 6e4cedec119d5..3af1cd812b3b2 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/CHANGELOG.md b/crates/oxc_span/CHANGELOG.md index fcc0b3f575dd4..063c292292649 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.48.2] - 2025-02-02 + +### Refactor + +- 0568210 ast: Remove excess line breaks from generated code (#8830) (overlookmotel) + ## [0.48.0] - 2025-01-24 - 54d0fac span: [**BREAKING**] Remove `PartialEq` impl for `&Atom` (#8642) (overlookmotel) diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 396edb1ce4967..13f7ed4dc6ee4 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_syntax/CHANGELOG.md b/crates/oxc_syntax/CHANGELOG.md index b9b450948de94..0d659a6f98641 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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.48.2] - 2025-02-02 + +### Bug Fixes + +- 8a6ae8a minifier: Do not change `const` to `let` if assignment to constant variable. (#8761) (Boshen) + +### Refactor + +- 0568210 ast: Remove excess line breaks from generated code (#8830) (overlookmotel) + ## [0.48.0] - 2025-01-24 ### Refactor diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 2dcfa99db67cf..1bcc1caa3e165 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index a250e34da0fd6..87f84b643036c 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/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.48.2] - 2025-02-02 + +### Features + +- 3bc05fa transformer: Implement jsx spread child (#8763) (Boshen) + +### Documentation + +- 57b7ca8 ast: Add documentation for all remaining JS AST methods (#8820) (Cam McHenry) + ## [0.48.1] - 2025-01-26 ### Bug Fixes diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 5603bb16efb37..4c2c543b41765 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index af433477a0658..68017949e07de 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 43cff9f9af723..5ce6af0460e7d 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 051220e631b36..ff073aba5ba56 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.48.1" +version = "0.48.2" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-minify/package.json b/npm/oxc-minify/package.json index d6d2359913f5b..591b0bff94fa4 100644 --- a/npm/oxc-minify/package.json +++ b/npm/oxc-minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.48.1", + "version": "0.48.2", "description": "Oxc minify Node API", "keywords": [ "minify" diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index 03784beba399d..6c3cb3f1c5eb0 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.48.1", + "version": "0.48.2", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index f5b60c938f71b..8daefc9cd639d 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.48.1", + "version": "0.48.2", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index dabb0b41d485d..d0bfb5c23c610 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.48.1", + "version": "0.48.2", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index cc9905f174cd0..a888a91563c7f 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.48.1", + "version": "0.48.2", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",