From 2fb08b9e9c898af8621a1301736c54291e6482c1 Mon Sep 17 00:00:00 2001 From: oxc-bot Date: Sun, 26 Jan 2025 22:20:13 +0800 Subject: [PATCH] release(crates): v0.48.1 (#8738) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [0.48.1] - 2025-01-26 ### Features - b7f13e6 ast: Implement utf8 to utf16 span converter (#8687) (Boshen) - 6589c3b mangler: Reuse variable names (#8562) (翠 / green) - 29bd215 minifier: Minimize `Infinity.toString(radix)` to `'Infinity'` (#8732) (Boshen) - e0117db minifier: Replace `const` with `let` for non-exported read-only variables (#8733) (sapphi-red) - 9e32f55 minifier: Evaluate `Math.sqrt` and `Math.cbrt` (#8731) (sapphi-red) - 360d49e minifier: Replace `Math.pow` with `**` (#8730) (sapphi-red) - 2e9a560 minifier: `NaN.toString(radix)` is always `NaN` (#8727) (Boshen) - cbe0e82 minifier: Minimize `foo(...[])` -> `foo()` (#8726) (Boshen) - e9fb5fe minifier: Dce pure expressions such as `new Map()` (#8725) (Boshen) ### Bug Fixes - 0944758 codegen: Remove parens from `new (import(''), function() {})` (#8707) (Boshen) - 33de70a mangler: Handle cases where a var is declared in a block scope (#8706) (翠 / green) - d982cdb minifier: `Unknown.fromCharCode` should not be treated as `String.fromCharCode` (#8709) (sapphi-red) - e7ab96c transformer/jsx: Incorrect `isStaticChildren` argument for `Fragment` with multiple children (#8713) (Dunqing) - 3e509e1 transformer/typescript: Enum merging when same name declared in outer scope (#8691) (branchseer) ### Performance - dc0b0f2 manger: Remove useless `tmp_bindings` (#8735) (Dunqing) - e472ced mangler: Optimize handling of collecting lived scope ids (#8724) (Dunqing) - 8587965 minifier: Normalize `undefined` to `void 0` before everything else (#8699) (Boshen) ### Refactor - 58002e2 ecmascript: Remove the lifetime annotation on `MayHaveSideEffects` (#8717) (Boshen) - 10e5920 linter: Move finishing default diagnostic message to `GraphicalReporter` (#8683) (Sysix) - 52a37d0 mangler: Simplify initialization of `slots` (#8734) (Dunqing) - 6bc906c minifier: Allow mutating arguments in methods called from `try_fold_known_string_methods` (#8729) (sapphi-red) - bf8be23 minifier: Use `Ctx` (#8716) (Boshen) - 0af0267 minifier: Side effect detection needs symbols resolution (#8715) (Boshen) - 32e0e47 minifier: Clean up `Normalize` (#8700) (Boshen) - c792068 semantic: Simplify `ScopeTree::iter_bindings` (#8723) (Dunqing) ### Testing - 03229c5 minifier: Fix broken tests (#8722) (Boshen) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com> --- Cargo.lock | 46 ++++++++++----------- Cargo.toml | 46 ++++++++++----------- crates/oxc/Cargo.toml | 2 +- crates/oxc_allocator/Cargo.toml | 2 +- crates/oxc_ast/CHANGELOG.md | 7 ++++ crates/oxc_ast/Cargo.toml | 2 +- crates/oxc_ast_macros/Cargo.toml | 2 +- crates/oxc_cfg/Cargo.toml | 2 +- crates/oxc_codegen/CHANGELOG.md | 6 +++ crates/oxc_codegen/Cargo.toml | 2 +- crates/oxc_data_structures/Cargo.toml | 2 +- crates/oxc_diagnostics/CHANGELOG.md | 6 +++ crates/oxc_diagnostics/Cargo.toml | 2 +- crates/oxc_ecmascript/CHANGELOG.md | 11 +++++ crates/oxc_ecmascript/Cargo.toml | 2 +- crates/oxc_estree/Cargo.toml | 2 +- crates/oxc_isolated_declarations/Cargo.toml | 2 +- crates/oxc_mangler/CHANGELOG.md | 19 +++++++++ crates/oxc_mangler/Cargo.toml | 2 +- crates/oxc_minifier/CHANGELOG.md | 35 ++++++++++++++++ crates/oxc_minifier/Cargo.toml | 2 +- crates/oxc_napi/Cargo.toml | 2 +- crates/oxc_parser/CHANGELOG.md | 6 +++ crates/oxc_parser/Cargo.toml | 2 +- crates/oxc_regular_expression/Cargo.toml | 2 +- crates/oxc_semantic/CHANGELOG.md | 10 +++++ crates/oxc_semantic/Cargo.toml | 2 +- crates/oxc_span/Cargo.toml | 2 +- crates/oxc_syntax/Cargo.toml | 2 +- crates/oxc_transformer/CHANGELOG.md | 7 ++++ crates/oxc_transformer/Cargo.toml | 2 +- crates/oxc_traverse/Cargo.toml | 2 +- napi/parser/Cargo.toml | 2 +- napi/transform/Cargo.toml | 2 +- npm/oxc-minify/package.json | 2 +- npm/oxc-parser/package.json | 2 +- npm/oxc-transform/package.json | 2 +- npm/oxc-types/package.json | 2 +- wasm/parser/package.json | 2 +- 39 files changed, 181 insertions(+), 74 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bd3d63e2eda0e..7819c4d95f613 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1469,7 +1469,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.48.0" +version = "0.48.1" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1531,7 +1531,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.48.0" +version = "0.48.1" dependencies = [ "allocator-api2", "bumpalo", @@ -1544,7 +1544,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.48.0" +version = "0.48.1" dependencies = [ "bitflags 2.7.0", "cow-utils", @@ -1562,7 +1562,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.48.0" +version = "0.48.1" dependencies = [ "proc-macro2", "quote", @@ -1612,7 +1612,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.48.0" +version = "0.48.1" dependencies = [ "bitflags 2.7.0", "itertools", @@ -1625,7 +1625,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.48.0" +version = "0.48.1" dependencies = [ "assert-unchecked", "base64", @@ -1688,7 +1688,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.48.0" +version = "0.48.1" dependencies = [ "assert-unchecked", "ropey", @@ -1696,14 +1696,14 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.48.0" +version = "0.48.1" dependencies = [ "oxc-miette", ] [[package]] name = "oxc_ecmascript" -version = "0.48.0" +version = "0.48.1" dependencies = [ "num-bigint", "num-traits", @@ -1714,7 +1714,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.48.0" +version = "0.48.1" dependencies = [ "serde", ] @@ -1731,7 +1731,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.48.0" +version = "0.48.1" dependencies = [ "bitflags 2.7.0", "insta", @@ -1831,7 +1831,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.48.0" +version = "0.48.1" dependencies = [ "fixedbitset", "itertools", @@ -1845,7 +1845,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.48.0" +version = "0.48.1" dependencies = [ "cow-utils", "insta", @@ -1901,7 +1901,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.48.0" +version = "0.48.1" dependencies = [ "napi", "napi-derive", @@ -1910,7 +1910,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.48.0" +version = "0.48.1" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -1933,7 +1933,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.48.0" +version = "0.48.1" dependencies = [ "napi", "napi-build", @@ -1993,7 +1993,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.48.0" +version = "0.48.1" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -2027,7 +2027,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.48.0" +version = "0.48.1" dependencies = [ "assert-unchecked", "insta", @@ -2067,7 +2067,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.48.0" +version = "0.48.1" dependencies = [ "compact_str", "oxc-miette", @@ -2080,7 +2080,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.48.0" +version = "0.48.1" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -2139,7 +2139,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.48.0" +version = "0.48.1" dependencies = [ "napi", "napi-build", @@ -2152,7 +2152,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.48.0" +version = "0.48.1" dependencies = [ "base64", "compact_str", @@ -2185,7 +2185,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.48.0" +version = "0.48.1" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index 974c802bf7723..5ac78639e3da7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.48.0", path = "crates/oxc" } -oxc_allocator = { version = "0.48.0", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.48.0", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.48.0", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.48.0", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.48.0", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.48.0", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.48.0", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.48.0", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.48.0", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.48.0", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.48.0", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.48.0", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.48.0", path = "crates/oxc_napi" } -oxc_parser = { version = "0.48.0", path = "crates/oxc_parser" } -oxc_parser_napi = { version = "0.48.0", path = "napi/parser" } -oxc_regular_expression = { version = "0.48.0", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.48.0", path = "crates/oxc_semantic" } -oxc_span = { version = "0.48.0", path = "crates/oxc_span" } -oxc_syntax = { version = "0.48.0", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.48.0", path = "napi/transform" } -oxc_transformer = { version = "0.48.0", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.48.0", path = "crates/oxc_traverse" } +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" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index f4f163c1e9b64..02e0dbd4497c0 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index d076ff2fd6344..5aa0a7fbf6af4 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast/CHANGELOG.md b/crates/oxc_ast/CHANGELOG.md index d101e8ea4b37c..24f8aa91ac78d 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/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.48.1] - 2025-01-26 + +### Features + +- b7f13e6 ast: Implement utf8 to utf16 span converter (#8687) (Boshen) +- e0117db minifier: Replace `const` with `let` for non-exported read-only variables (#8733) (sapphi-red) + ## [0.48.0] - 2025-01-24 ### Refactor diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index c8aa1a3b10fe6..44b26ebbe0fa4 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.48.0" +version = "0.48.1" 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 64d313b7c89dc..6828389b874eb 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.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index 638c322f391c0..a645143cc444e 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_codegen/CHANGELOG.md b/crates/oxc_codegen/CHANGELOG.md index b3d803327cf9b..1444d82230c11 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.48.1] - 2025-01-26 + +### Bug Fixes + +- 0944758 codegen: Remove parens from `new (import(''), function() {})` (#8707) (Boshen) + ## [0.48.0] - 2025-01-24 ### Features diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 6cd624d66a461..f8207d39635ad 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.48.0" +version = "0.48.1" 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 101008fc13ea3..8e9351ce7bb25 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.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/CHANGELOG.md b/crates/oxc_diagnostics/CHANGELOG.md index c7c97fe431931..0f75ab058efcb 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.1] - 2025-01-26 + +### Refactor + +- 10e5920 linter: Move finishing default diagnostic message to `GraphicalReporter` (#8683) (Sysix) + ## [0.48.0] - 2025-01-24 ### Features diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index ebfa5c770ddaa..41f16b778cfd1 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ecmascript/CHANGELOG.md b/crates/oxc_ecmascript/CHANGELOG.md index 49faa80bf5de7..bfff225a7f3fe 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/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.48.1] - 2025-01-26 + +### Refactor + +- 58002e2 ecmascript: Remove the lifetime annotation on `MayHaveSideEffects` (#8717) (Boshen) +- 0af0267 minifier: Side effect detection needs symbols resolution (#8715) (Boshen) + +### Testing + +- 03229c5 minifier: Fix broken tests (#8722) (Boshen) + ## [0.48.0] - 2025-01-24 ### Bug Fixes diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index e7a1baf5d95cb..9c4c126a3ebc3 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree/Cargo.toml b/crates/oxc_estree/Cargo.toml index 4b4c1cfdcb405..79e6bffa4edf8 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.48.0" +version = "0.48.1" 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 6ad0602fdf097..d44ba465bc3f2 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.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/CHANGELOG.md b/crates/oxc_mangler/CHANGELOG.md index da1ba2c3f5003..5e9e987cbc6a4 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/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.48.1] - 2025-01-26 + +### Features + +- 6589c3b mangler: Reuse variable names (#8562) (翠 / green) + +### Bug Fixes + +- 33de70a mangler: Handle cases where a var is declared in a block scope (#8706) (翠 / green) + +### Performance + +- dc0b0f2 manger: Remove useless `tmp_bindings` (#8735) (Dunqing) +- e472ced mangler: Optimize handling of collecting lived scope ids (#8724) (Dunqing) + +### Refactor + +- 52a37d0 mangler: Simplify initialization of `slots` (#8734) (Dunqing) + ## [0.48.0] - 2025-01-24 ### Refactor diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index dd3988f77123a..90b0ef2181d0c 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_minifier/CHANGELOG.md b/crates/oxc_minifier/CHANGELOG.md index 1a9339b209f86..6d78e9e0c5765 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,41 @@ 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.1] - 2025-01-26 + +### Features + +- 6589c3b mangler: Reuse variable names (#8562) (翠 / green) +- 29bd215 minifier: Minimize `Infinity.toString(radix)` to `'Infinity'` (#8732) (Boshen) +- e0117db minifier: Replace `const` with `let` for non-exported read-only variables (#8733) (sapphi-red) +- 9e32f55 minifier: Evaluate `Math.sqrt` and `Math.cbrt` (#8731) (sapphi-red) +- 360d49e minifier: Replace `Math.pow` with `**` (#8730) (sapphi-red) +- 2e9a560 minifier: `NaN.toString(radix)` is always `NaN` (#8727) (Boshen) +- cbe0e82 minifier: Minimize `foo(...[])` -> `foo()` (#8726) (Boshen) +- e9fb5fe minifier: Dce pure expressions such as `new Map()` (#8725) (Boshen) + +### Bug Fixes + +- 33de70a mangler: Handle cases where a var is declared in a block scope (#8706) (翠 / green) +- d982cdb minifier: `Unknown.fromCharCode` should not be treated as `String.fromCharCode` (#8709) (sapphi-red) + +### Performance + +- e472ced mangler: Optimize handling of collecting lived scope ids (#8724) (Dunqing) +- 8587965 minifier: Normalize `undefined` to `void 0` before everything else (#8699) (Boshen) + +### Refactor + +- 58002e2 ecmascript: Remove the lifetime annotation on `MayHaveSideEffects` (#8717) (Boshen) +- 6bc906c minifier: Allow mutating arguments in methods called from `try_fold_known_string_methods` (#8729) (sapphi-red) +- bf8be23 minifier: Use `Ctx` (#8716) (Boshen) +- 0af0267 minifier: Side effect detection needs symbols resolution (#8715) (Boshen) +- 32e0e47 minifier: Clean up `Normalize` (#8700) (Boshen) + +### Testing + +- 03229c5 minifier: Fix broken tests (#8722) (Boshen) + ## [0.48.0] - 2025-01-24 ### Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 48b0b16e8e358..d0f85b2ac84d9 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index e7e9941cd1a08..01af588090b61 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_parser/CHANGELOG.md b/crates/oxc_parser/CHANGELOG.md index a0aaa1a40ae17..54133e00ca377 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_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.48.1] - 2025-01-26 + +### Features + +- b7f13e6 ast: Implement utf8 to utf16 span converter (#8687) (Boshen) + ## [0.48.0] - 2025-01-24 ### Bug Fixes diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 1f471a3ff74c9..c8879376db753 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.48.0" +version = "0.48.1" 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 05c55614b96e2..8d397a5ff9e6d 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.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/CHANGELOG.md b/crates/oxc_semantic/CHANGELOG.md index cd2eecba3cb7f..f47424b166d95 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.1] - 2025-01-26 + +### Features + +- 6589c3b mangler: Reuse variable names (#8562) (翠 / green) + +### Refactor + +- c792068 semantic: Simplify `ScopeTree::iter_bindings` (#8723) (Dunqing) + ## [0.48.0] - 2025-01-24 ### Bug Fixes diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 1adc046a80796..6e4cedec119d5 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 667c9f88d0e97..396edb1ce4967 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index a899f22b1fd5a..2dcfa99db67cf 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_transformer/CHANGELOG.md b/crates/oxc_transformer/CHANGELOG.md index 1d0c345481c44..a250e34da0fd6 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/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.48.1] - 2025-01-26 + +### Bug Fixes + +- e7ab96c transformer/jsx: Incorrect `isStaticChildren` argument for `Fragment` with multiple children (#8713) (Dunqing) +- 3e509e1 transformer/typescript: Enum merging when same name declared in outer scope (#8691) (branchseer) + ## [0.48.0] - 2025-01-24 ### Refactor diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 9482f926d9b22..5603bb16efb37 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index b2b0bcf76bff4..af433477a0658 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 68da46fbb3a26..43cff9f9af723 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index f461bddfadb9c..051220e631b36 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.48.0" +version = "0.48.1" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-minify/package.json b/npm/oxc-minify/package.json index cdd7359850a4d..d6d2359913f5b 100644 --- a/npm/oxc-minify/package.json +++ b/npm/oxc-minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.48.0", + "version": "0.48.1", "description": "Oxc minify Node API", "keywords": [ "minify" diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index fc5e9d58f48fd..03784beba399d 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.48.0", + "version": "0.48.1", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 7f8e78cad1537..f5b60c938f71b 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.48.0", + "version": "0.48.1", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index fd89efa48e20e..dabb0b41d485d 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.48.0", + "version": "0.48.1", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 88c2d4d1bd105..cc9905f174cd0 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.48.0", + "version": "0.48.1", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",