diff --git a/Cargo.lock b/Cargo.lock index 9de0afbbb564b..e3a5aa0cb8cea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1469,7 +1469,7 @@ checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.47.1" +version = "0.48.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1531,7 +1531,7 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.47.1" +version = "0.48.0" dependencies = [ "allocator-api2", "bumpalo", @@ -1544,7 +1544,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.47.1" +version = "0.48.0" dependencies = [ "bitflags 2.7.0", "cow-utils", @@ -1562,7 +1562,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.47.1" +version = "0.48.0" dependencies = [ "proc-macro2", "quote", @@ -1612,7 +1612,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.47.1" +version = "0.48.0" dependencies = [ "bitflags 2.7.0", "itertools", @@ -1625,7 +1625,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.47.1" +version = "0.48.0" dependencies = [ "assert-unchecked", "base64", @@ -1688,7 +1688,7 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.47.1" +version = "0.48.0" dependencies = [ "assert-unchecked", "ropey", @@ -1696,14 +1696,14 @@ dependencies = [ [[package]] name = "oxc_diagnostics" -version = "0.47.1" +version = "0.48.0" dependencies = [ "oxc-miette", ] [[package]] name = "oxc_ecmascript" -version = "0.47.1" +version = "0.48.0" dependencies = [ "num-bigint", "num-traits", @@ -1714,7 +1714,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.47.1" +version = "0.48.0" dependencies = [ "serde", ] @@ -1731,7 +1731,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.47.1" +version = "0.48.0" dependencies = [ "bitflags 2.7.0", "insta", @@ -1831,7 +1831,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.47.1" +version = "0.48.0" dependencies = [ "itertools", "oxc_allocator", @@ -1844,7 +1844,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.47.1" +version = "0.48.0" dependencies = [ "cow-utils", "insta", @@ -1900,7 +1900,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.47.1" +version = "0.48.0" dependencies = [ "napi", "napi-derive", @@ -1909,7 +1909,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.47.1" +version = "0.48.0" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -1932,7 +1932,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.47.1" +version = "0.48.0" dependencies = [ "napi", "napi-build", @@ -1992,7 +1992,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.47.1" +version = "0.48.0" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -2026,7 +2026,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.47.1" +version = "0.48.0" dependencies = [ "assert-unchecked", "insta", @@ -2066,7 +2066,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.47.1" +version = "0.48.0" dependencies = [ "compact_str", "oxc-miette", @@ -2079,7 +2079,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.47.1" +version = "0.48.0" dependencies = [ "assert-unchecked", "bitflags 2.7.0", @@ -2138,7 +2138,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.47.1" +version = "0.48.0" dependencies = [ "napi", "napi-build", @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.47.1" +version = "0.48.0" dependencies = [ "base64", "compact_str", @@ -2184,7 +2184,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.47.1" +version = "0.48.0" dependencies = [ "compact_str", "itoa", diff --git a/Cargo.toml b/Cargo.toml index d49fae04eea2e..ee8568d694859 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,29 +79,29 @@ doc_lazy_continuation = "allow" # FIXME [workspace.dependencies] # publish = true -oxc = { version = "0.47.1", path = "crates/oxc" } -oxc_allocator = { version = "0.47.1", path = "crates/oxc_allocator" } -oxc_ast = { version = "0.47.1", path = "crates/oxc_ast" } -oxc_ast_macros = { version = "0.47.1", path = "crates/oxc_ast_macros" } -oxc_cfg = { version = "0.47.1", path = "crates/oxc_cfg" } -oxc_codegen = { version = "0.47.1", path = "crates/oxc_codegen" } -oxc_data_structures = { version = "0.47.1", path = "crates/oxc_data_structures" } -oxc_diagnostics = { version = "0.47.1", path = "crates/oxc_diagnostics" } -oxc_ecmascript = { version = "0.47.1", path = "crates/oxc_ecmascript" } -oxc_estree = { version = "0.47.1", path = "crates/oxc_estree" } -oxc_isolated_declarations = { version = "0.47.1", path = "crates/oxc_isolated_declarations" } -oxc_mangler = { version = "0.47.1", path = "crates/oxc_mangler" } -oxc_minifier = { version = "0.47.1", path = "crates/oxc_minifier" } -oxc_napi = { version = "0.47.1", path = "crates/oxc_napi" } -oxc_parser = { version = "0.47.1", path = "crates/oxc_parser" } -oxc_parser_napi = { version = "0.47.1", path = "napi/parser" } -oxc_regular_expression = { version = "0.47.1", path = "crates/oxc_regular_expression" } -oxc_semantic = { version = "0.47.1", path = "crates/oxc_semantic" } -oxc_span = { version = "0.47.1", path = "crates/oxc_span" } -oxc_syntax = { version = "0.47.1", path = "crates/oxc_syntax" } -oxc_transform_napi = { version = "0.47.1", path = "napi/transform" } -oxc_transformer = { version = "0.47.1", path = "crates/oxc_transformer" } -oxc_traverse = { version = "0.47.1", path = "crates/oxc_traverse" } +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" } # publish = false oxc_linter = { path = "crates/oxc_linter" } diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 4437b9e434ee2..f4f163c1e9b64 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.47.1" +version = "0.48.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 4a14502a1fb8b..5b7bb7ff4fbcb 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/CHANGELOG.md @@ -4,6 +4,29 @@ 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.0] - 2025-01-24 + +### Features + +- 2a2ad53 allocator: Add `Allocator::capacity` and `used_bytes` methods (#8621) (overlookmotel) +- 6801c81 allocator: Add `Allocator::new` and `with_capacity` methods (#8620) (overlookmotel) + +### Performance + +- 787aaad allocator: Make `String` non-drop (#8617) (overlookmotel) + +### Documentation + +- c1d243b allocator: Improve docs for `Allocator` (#8623) (overlookmotel) +- 01a5e5d allocator: Improve docs for `HashMap` (#8616) (overlookmotel) +- 87568a1 allocator: Reformat docs (#8615) (overlookmotel) + +### Refactor + +- ae8db53 allocator: Move `Allocator` into own module (#8656) (overlookmotel) +- 0f85bc6 allocator: Reduce repeat code to prevent `Drop` types in arena (#8655) (overlookmotel) +- de76eb1 allocator: Reorder `Box` methods (#8654) (overlookmotel) + ## [0.47.0] - 2025-01-18 - fae4cd2 allocator: [**BREAKING**] Remove `Vec::into_string` (#8571) (overlookmotel) diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index d7b6513d4cf9f..d076ff2fd6344 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.47.1" +version = "0.48.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 fb81fec488c61..d101e8ea4b37c 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.0] - 2025-01-24 + +### Refactor + +- 997859c ast: Align `#[estree(via)]` behavior (#8599) (sapphi-red) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 - 19d3677 ast: [**BREAKING**] Always return `Array` for `ImportDeclaration.specifiers` (#8560) (sapphi-red) diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index c235d519a6240..c8aa1a3b10fe6 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.47.1" +version = "0.48.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index ceca16fce73c2..64d313b7c89dc 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.47.1" +version = "0.48.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 812ca90c0b4bf..638c322f391c0 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.47.1" +version = "0.48.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 b74e0f1c2535e..b3d803327cf9b 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,27 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.48.0] - 2025-01-24 + +### Features + +- 99607d3 codegen: Print comments in `TSTypeLiteral` (#8679) (Boshen) + +### Performance + +- d966e0a codegen: Do not check for comments if turned off (#8598) (Boshen) + +### Refactor + +- db863a3 codegen: Use `Stack` for `binary_expr_stack` (#8663) (Boshen) +- 8cce69a codegen: Remove `match_member_expression` (#8597) (Boshen) +- a3dc4c3 crates: Clean up snapshot files (#8680) (Boshen) +- 23b49a6 linter: Use `cow_to_ascii_lowercase` instead `cow_to_lowercase` (#8678) (Boshen) + +### Testing + +- 39dbd2d codegen: Fix snapshot file (#8685) (Boshen) + ## [0.47.0] - 2025-01-18 ### Bug Fixes diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index 511871af228a3..6cd624d66a461 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.47.1" +version = "0.48.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 a5a60aa381212..101008fc13ea3 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.47.1" +version = "0.48.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 d3a598768cc32..c7c97fe431931 100644 --- a/crates/oxc_diagnostics/CHANGELOG.md +++ b/crates/oxc_diagnostics/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.0] - 2025-01-24 + +### Features + +- 4ae568e linter: Add DiagnosticResult to the Reporters for receiving a sub part result (#8666) (Alexander S.) + +### Bug Fixes + +- 40316af linter: Fix github `endColumn` output (#8647) (Alexander S.) + ## [0.47.0] - 2025-01-18 ### Refactor diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index c4313f060831d..ebfa5c770ddaa 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.47.1" +version = "0.48.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 95eae86e68cb4..49faa80bf5de7 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/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.0] - 2025-01-24 + +### Bug Fixes + +- 4ff6e85 minifier: Remove expression statement `void 0` (#8602) (Boshen) + +### Performance + +- 9953ac7 minifier: Add `LatePeepholeOptimizations` (#8651) (Boshen) + ## [0.47.1] - 2025-01-19 ### Bug Fixes diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index eb3d81d912c98..e7a1baf5d95cb 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.47.1" +version = "0.48.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 51df139ed5d7b..4b4c1cfdcb405 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.47.1" +version = "0.48.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_isolated_declarations/CHANGELOG.md b/crates/oxc_isolated_declarations/CHANGELOG.md index 822eb68ab0800..2613bca0beb65 100644 --- a/crates/oxc_isolated_declarations/CHANGELOG.md +++ b/crates/oxc_isolated_declarations/CHANGELOG.md @@ -4,6 +4,23 @@ 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.0] - 2025-01-24 + +### Features + +- 99607d3 codegen: Print comments in `TSTypeLiteral` (#8679) (Boshen) + +### Refactor + +- a3dc4c3 crates: Clean up snapshot files (#8680) (Boshen) +- e66da9f isolated_declarations, linter, minifier, prettier, semantic, transformer: Remove unnecessary `ref` / `ref mut` syntax (#8643) (overlookmotel) +- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + +### Testing + +- 39dbd2d codegen: Fix snapshot file (#8685) (Boshen) + ## [0.46.0] - 2025-01-14 ### Bug Fixes diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 13e929e7faf30..6ad0602fdf097 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.47.1" +version = "0.48.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 230a8872c2716..da1ba2c3f5003 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.48.0] - 2025-01-24 + +### Refactor + +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 ### Performance diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 5ad09399cbed4..f13471dc27ce2 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.47.1" +version = "0.48.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 54e0a1c51232b..1a9339b209f86 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,50 @@ 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.0] - 2025-01-24 + +### Features + +- 343690e minifier: Replace `Number.*_SAFE_INTEGER`/`Number.EPSILON` (#8682) (sapphi-red) +- 0c5bb30 minifier: Replace `Number.POSITIVE_INFINITY`/`Number.NEGATIVE_INFINITY`/`Number.NaN` (#8681) (sapphi-red) +- 835b258 minifier: Compress `typeof foo === 'object' && foo !== null` to `typeof foo == 'object' && !!foo` (#8638) (sapphi-red) +- 2bcbed2 minifier: Compress `(a = b) === null || a === undefined` to `(a = b) == null` (#8637) (sapphi-red) + +### Bug Fixes + +- 883d25b minifier: Keep esm in dce (#8677) (Boshen) +- 878ce10 minifier: `void 0` equals to `undefined` (#8673) (Boshen) +- ba201a6 minifier: Remove "non esbuild optimizations" which is incorrect (#8668) (Boshen) +- 8c8b5fa minifier: Avoid minifing `String(a)` into `"" + a` for symbols (#8612) (翠 / green) +- 4ff6e85 minifier: Remove expression statement `void 0` (#8602) (Boshen) +- 93d643e minifier: Keep side effects when folding const conditional exprs (#8591) (camc314) + +### Performance + +- 9953ac7 minifier: Add `LatePeepholeOptimizations` (#8651) (Boshen) +- 00dc63f minifier: Only substitute typed array constructor once (#8649) (Boshen) +- 3e19e4e minifier: Remove the useless empty statement removal code in statement fusion (#8646) (Boshen) +- 5b3c412 minifier: Only run optimizations on local changes (#8644) (Boshen) + +### Refactor + +- e66da9f isolated_declarations, linter, minifier, prettier, semantic, transformer: Remove unnecessary `ref` / `ref mut` syntax (#8643) (overlookmotel) +- ce2b9da minifier: Remove `wrap_to_avoid_ambiguous_else` (#8676) (Boshen) +- 75a579b minifier: Clean up `has_no_side_effect_for_evaluation_same_target` (#8675) (Boshen) +- 1bb2539 minifier: Move more code into `minimize_conditions` local loop (#8671) (Boshen) +- 13e4a45 minifier: Move conditional assignment to `minimize_conditions` (#8669) (Boshen) +- ae895d8 minifier: Use `NonEmptyStack` for function stack (#8661) (Boshen) +- 3802d28 minifier: Clean up `try_minimize_conditional` (#8660) (Boshen) +- dcc1f2b minifier: Rename `ast_passes` to `peephole` (#8635) (Boshen) +- 52458de minifier: Remove unused code and traits (#8632) (Boshen) +- 6f95cd5 minifier: Remove all the unnecessary fake ast passes (#8618) (Boshen) +- 712cae0 minifier: Run the compressor on all test cases (#8604) (Boshen) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + +### Testing + +- d9f5e7f minifier: Enable passed esbuild tests (Boshen) + ## [0.47.1] - 2025-01-19 ### Bug Fixes diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 68d12eab1198b..48b0b16e8e358 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.47.1" +version = "0.48.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 53c85af6fd94c..e7e9941cd1a08 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.47.1" +version = "0.48.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 7b129d147e0b7..a0aaa1a40ae17 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,27 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0. +## [0.48.0] - 2025-01-24 + +### Bug Fixes + +- 178c232 parser: Parse `intrinsic` TS keyword (#8627) (Kevin Deng 三咲智子) +- 48717ab parser: Parse `true` as `TSLiteralType` (#8626) (Kevin Deng 三咲智子) + +### Performance + +- 3fa87ff lexer: Peak 2 bytes after `!` (#8662) (Boshen) + +### Documentation + +- 3be0392 lexer: Fix doc comment (#8664) (overlookmotel) + +### Refactor + +- 864b8ef parser: Shorten code (#8640) (overlookmotel) +- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 ### Features diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 9997be16182e5..1f471a3ff74c9 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.47.1" +version = "0.48.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 6c6c212a2f5de..2b656d128496f 100644 --- a/crates/oxc_regular_expression/CHANGELOG.md +++ b/crates/oxc_regular_expression/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.0] - 2025-01-24 + +### Refactor + +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 - 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 1ca1fc960b448..05c55614b96e2 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.47.1" +version = "0.48.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 5448263f03f80..cd2eecba3cb7f 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/CHANGELOG.md @@ -4,6 +4,23 @@ 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.0] - 2025-01-24 + +### Bug Fixes + +- d1c5dc4 semantic: Fix const assertions in `UnresolvedReferencesStack` (#8653) (overlookmotel) + +### Documentation + +- 5029547 semantic: Fix and reformat doc comments (#8652) (overlookmotel) + +### Refactor + +- a3dc4c3 crates: Clean up snapshot files (#8680) (Boshen) +- e66da9f isolated_declarations, linter, minifier, prettier, semantic, transformer: Remove unnecessary `ref` / `ref mut` syntax (#8643) (overlookmotel) +- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 - 4ce6329 semantic: [**BREAKING**] Ensure program outlives semantic (#8455) (Valentinas Janeiko) diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 5e8efdacebd01..1adc046a80796 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.47.1" +version = "0.48.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 c2d0977dff49c..fcc0b3f575dd4 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/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.0] - 2025-01-24 + +- 54d0fac span: [**BREAKING**] Remove `PartialEq` impl for `&Atom` (#8642) (overlookmotel) + +### Refactor + +- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel) +- 20f52b1 span: Remove unnecessary lifetimes on `Atom` impls (#8639) (overlookmotel) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 - 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index e6b6d4a2fb73d..667c9f88d0e97 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.47.1" +version = "0.48.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 3a92354ad2467..b9b450948de94 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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.0] - 2025-01-24 + +### Refactor + +- 23b49a6 linter: Use `cow_to_ascii_lowercase` instead `cow_to_lowercase` (#8678) (Boshen) +- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel) + ## [0.47.0] - 2025-01-18 - 7066d1c ast, span, syntax, regular_expression: [**BREAKING**] Remove `ContentHash` (#8512) (overlookmotel) diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 5f2039ff0a795..a899f22b1fd5a 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.47.1" +version = "0.48.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 39cf96423b7fb..1d0c345481c44 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/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.0] - 2025-01-24 + +### Refactor + +- a3dc4c3 crates: Clean up snapshot files (#8680) (Boshen) +- e66da9f isolated_declarations, linter, minifier, prettier, semantic, transformer: Remove unnecessary `ref` / `ref mut` syntax (#8643) (overlookmotel) +- b8d9a51 span: Deal only in owned `Atom`s (#8641) (overlookmotel) +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) +- a730f99 transformer: Move `create_prototype_member` to utils module (#8657) (Dunqing) +- 61d96fd transformer/class-properties: Correct comments (#8636) (overlookmotel) + ## [0.47.1] - 2025-01-19 ### Bug Fixes diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index 4ceeb0ff31b43..9482f926d9b22 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.47.1" +version = "0.48.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 83aa7c3eacc91..826f7b657318e 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/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.0] - 2025-01-24 + +### Refactor + +- ac4f98e span: Derive `Copy` on `Atom` (#8596) (branchseer) + ## [0.47.0] - 2025-01-18 ### Refactor diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index 528d4d5cbb2af..b2b0bcf76bff4 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.47.1" +version = "0.48.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 13c025d79b4fe..68da46fbb3a26 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.47.1" +version = "0.48.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 85060b7972f6e..f461bddfadb9c 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.47.1" +version = "0.48.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/npm/oxc-minify/package.json b/npm/oxc-minify/package.json index d8f6116deca8d..cdd7359850a4d 100644 --- a/npm/oxc-minify/package.json +++ b/npm/oxc-minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.47.1", + "version": "0.48.0", "description": "Oxc minify Node API", "keywords": [ "minify" diff --git a/npm/oxc-parser/package.json b/npm/oxc-parser/package.json index f0d1c40f5c238..fc5e9d58f48fd 100644 --- a/npm/oxc-parser/package.json +++ b/npm/oxc-parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.47.1", + "version": "0.48.0", "description": "Oxc Parser Node API", "keywords": [ "Parser" diff --git a/npm/oxc-transform/package.json b/npm/oxc-transform/package.json index 54c91924bc6b3..7f8e78cad1537 100644 --- a/npm/oxc-transform/package.json +++ b/npm/oxc-transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.47.1", + "version": "0.48.0", "description": "Oxc transform Node API", "keywords": [ "transform" diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index eae6ab57f6a18..fd89efa48e20e 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.47.1", + "version": "0.48.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/wasm/parser/package.json b/wasm/parser/package.json index 2c8bd19876d9b..88c2d4d1bd105 100644 --- a/wasm/parser/package.json +++ b/wasm/parser/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-parser/wasm", - "version": "0.47.1", + "version": "0.48.0", "description": "Wasm target for the oxc parser.", "keywords": [ "JavaScript",