diff --git a/Cargo.lock b/Cargo.lock index aced3b9d55072..80187f194d089 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1599,7 +1599,7 @@ checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52" [[package]] name = "oxc" -version = "0.108.0" +version = "0.109.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1683,7 +1683,7 @@ checksum = "42c447978900c2436dac665912cd298d3f9f6d4cac2551080328729ea52f840f" [[package]] name = "oxc_allocator" -version = "0.108.0" +version = "0.109.0" dependencies = [ "allocator-api2", "hashbrown 0.16.1", @@ -1697,7 +1697,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "oxc_allocator", @@ -1712,7 +1712,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.108.0" +version = "0.109.0" dependencies = [ "phf", "proc-macro2", @@ -1757,7 +1757,7 @@ dependencies = [ [[package]] name = "oxc_ast_visit" -version = "0.108.0" +version = "0.109.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1792,7 +1792,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "itertools", @@ -1804,7 +1804,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "cow-utils", @@ -1826,7 +1826,7 @@ dependencies = [ [[package]] name = "oxc_compat" -version = "0.108.0" +version = "0.109.0" dependencies = [ "cow-utils", "oxc-browserslist", @@ -1879,14 +1879,14 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.108.0" +version = "0.109.0" dependencies = [ "ropey", ] [[package]] name = "oxc_diagnostics" -version = "0.108.0" +version = "0.109.0" dependencies = [ "cow-utils", "oxc-miette", @@ -1895,7 +1895,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.108.0" +version = "0.109.0" dependencies = [ "cow-utils", "num-bigint", @@ -1909,7 +1909,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.108.0" +version = "0.109.0" dependencies = [ "dragonbox_ecma", "itoa", @@ -1951,7 +1951,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "insta", @@ -2056,7 +2056,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.108.0" +version = "0.109.0" dependencies = [ "itertools", "oxc_allocator", @@ -2072,7 +2072,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.108.0" +version = "0.109.0" dependencies = [ "cow-utils", "insta", @@ -2099,7 +2099,7 @@ dependencies = [ [[package]] name = "oxc_minify_napi" -version = "0.108.0" +version = "0.109.0" dependencies = [ "mimalloc-safe", "napi", @@ -2138,7 +2138,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.108.0" +version = "0.109.0" dependencies = [ "napi", "napi-build", @@ -2152,7 +2152,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "cow-utils", @@ -2175,7 +2175,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.108.0" +version = "0.109.0" dependencies = [ "mimalloc-safe", "napi", @@ -2226,7 +2226,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "insta", @@ -2280,7 +2280,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.108.0" +version = "0.109.0" dependencies = [ "insta", "itertools", @@ -2320,7 +2320,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.108.0" +version = "0.109.0" dependencies = [ "compact_str", "oxc-miette", @@ -2333,7 +2333,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.108.0" +version = "0.109.0" dependencies = [ "bitflags", "cow-utils", @@ -2406,7 +2406,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.108.0" +version = "0.109.0" dependencies = [ "mimalloc-safe", "napi", @@ -2420,7 +2420,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.108.0" +version = "0.109.0" dependencies = [ "base64", "compact_str", @@ -2451,7 +2451,7 @@ dependencies = [ [[package]] name = "oxc_transformer_plugins" -version = "0.108.0" +version = "0.109.0" dependencies = [ "cow-utils", "insta", @@ -2478,7 +2478,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.108.0" +version = "0.109.0" dependencies = [ "itoa", "oxc_allocator", diff --git a/Cargo.toml b/Cargo.toml index 349655f858366..fc0b575c111e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -103,35 +103,35 @@ multiple_crate_versions = "allow" [workspace.dependencies] # publish = true -oxc = { version = "0.108.0", path = "crates/oxc" } # Main entry point -oxc_allocator = { version = "0.108.0", path = "crates/oxc_allocator" } # Memory management -oxc_ast = { version = "0.108.0", path = "crates/oxc_ast" } # AST definitions -oxc_ast_macros = { version = "0.108.0", path = "crates/oxc_ast_macros" } # AST proc macros -oxc_ast_visit = { version = "0.108.0", path = "crates/oxc_ast_visit" } # AST visitor pattern -oxc_cfg = { version = "0.108.0", path = "crates/oxc_cfg" } # Control flow graph -oxc_codegen = { version = "0.108.0", path = "crates/oxc_codegen", default-features = false } # Code generation -oxc_compat = { version = "0.108.0", path = "crates/oxc_compat" } # Browser compatibility -oxc_data_structures = { version = "0.108.0", path = "crates/oxc_data_structures" } # Shared data structures -oxc_diagnostics = { version = "0.108.0", path = "crates/oxc_diagnostics" } # Error reporting -oxc_ecmascript = { version = "0.108.0", path = "crates/oxc_ecmascript" } # ECMAScript operations -oxc_estree = { version = "0.108.0", path = "crates/oxc_estree" } # ESTree format -oxc_isolated_declarations = { version = "0.108.0", path = "crates/oxc_isolated_declarations" } # TS declaration generation -oxc_mangler = { version = "0.108.0", path = "crates/oxc_mangler" } # Name mangling -oxc_minifier = { version = "0.108.0", path = "crates/oxc_minifier" } # Code minification -oxc_minify_napi = { version = "0.108.0", path = "napi/minify" } # Node.js minifier binding -oxc_napi = { version = "0.108.0", path = "crates/oxc_napi" } # NAPI utilities -oxc_parser = { version = "0.108.0", path = "crates/oxc_parser", features = [ +oxc = { version = "0.109.0", path = "crates/oxc" } # Main entry point +oxc_allocator = { version = "0.109.0", path = "crates/oxc_allocator" } # Memory management +oxc_ast = { version = "0.109.0", path = "crates/oxc_ast" } # AST definitions +oxc_ast_macros = { version = "0.109.0", path = "crates/oxc_ast_macros" } # AST proc macros +oxc_ast_visit = { version = "0.109.0", path = "crates/oxc_ast_visit" } # AST visitor pattern +oxc_cfg = { version = "0.109.0", path = "crates/oxc_cfg" } # Control flow graph +oxc_codegen = { version = "0.109.0", path = "crates/oxc_codegen", default-features = false } # Code generation +oxc_compat = { version = "0.109.0", path = "crates/oxc_compat" } # Browser compatibility +oxc_data_structures = { version = "0.109.0", path = "crates/oxc_data_structures" } # Shared data structures +oxc_diagnostics = { version = "0.109.0", path = "crates/oxc_diagnostics" } # Error reporting +oxc_ecmascript = { version = "0.109.0", path = "crates/oxc_ecmascript" } # ECMAScript operations +oxc_estree = { version = "0.109.0", path = "crates/oxc_estree" } # ESTree format +oxc_isolated_declarations = { version = "0.109.0", path = "crates/oxc_isolated_declarations" } # TS declaration generation +oxc_mangler = { version = "0.109.0", path = "crates/oxc_mangler" } # Name mangling +oxc_minifier = { version = "0.109.0", path = "crates/oxc_minifier" } # Code minification +oxc_minify_napi = { version = "0.109.0", path = "napi/minify" } # Node.js minifier binding +oxc_napi = { version = "0.109.0", path = "crates/oxc_napi" } # NAPI utilities +oxc_parser = { version = "0.109.0", path = "crates/oxc_parser", features = [ "regular_expression", ] } # JS/TS parser -oxc_parser_napi = { version = "0.108.0", path = "napi/parser" } # Node.js parser binding -oxc_regular_expression = { version = "0.108.0", path = "crates/oxc_regular_expression" } # Regex parser -oxc_semantic = { version = "0.108.0", path = "crates/oxc_semantic" } # Semantic analysis -oxc_span = { version = "0.108.0", path = "crates/oxc_span" } # Source positions -oxc_syntax = { version = "0.108.0", path = "crates/oxc_syntax" } # Syntax utilities -oxc_transform_napi = { version = "0.108.0", path = "napi/transform" } # Node.js transformer binding -oxc_transformer = { version = "0.108.0", path = "crates/oxc_transformer" } # Code transformation -oxc_transformer_plugins = { version = "0.108.0", path = "crates/oxc_transformer_plugins" } # Transformer plugins -oxc_traverse = { version = "0.108.0", path = "crates/oxc_traverse" } # AST traversal +oxc_parser_napi = { version = "0.109.0", path = "napi/parser" } # Node.js parser binding +oxc_regular_expression = { version = "0.109.0", path = "crates/oxc_regular_expression" } # Regex parser +oxc_semantic = { version = "0.109.0", path = "crates/oxc_semantic" } # Semantic analysis +oxc_span = { version = "0.109.0", path = "crates/oxc_span" } # Source positions +oxc_syntax = { version = "0.109.0", path = "crates/oxc_syntax" } # Syntax utilities +oxc_transform_napi = { version = "0.109.0", path = "napi/transform" } # Node.js transformer binding +oxc_transformer = { version = "0.109.0", path = "crates/oxc_transformer" } # Code transformation +oxc_transformer_plugins = { version = "0.109.0", path = "crates/oxc_transformer_plugins" } # Transformer plugins +oxc_traverse = { version = "0.109.0", path = "crates/oxc_traverse" } # AST traversal # publish = false oxc_formatter = { path = "crates/oxc_formatter" } # Code formatting diff --git a/crates/oxc/Cargo.toml b/crates/oxc/Cargo.toml index 6d156585df3f2..65462441422e1 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.108.0" +version = "0.109.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 3d9b72dc1e1b3..0bc7bacd66cb6 100644 --- a/crates/oxc_allocator/CHANGELOG.md +++ b/crates/oxc_allocator/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). +## [0.109.0] - 2026-01-19 + +### ⚡ Performance + +- 46cd73d allocator: Add #[cold] annotations to error handling functions (#18181) (Boshen) +- 8da684e allocator: Type-erase RawVec::finish_grow inner function (#18175) (Boshen) + ## [0.106.0] - 2025-12-29 ### 🚀 Features diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 62bf8dad8d435..47fe78840cda3 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.108.0" +version = "0.109.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 11271b817c25c..32e4bb86d3f3d 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + ## [0.108.0] - 2026-01-12 ### ⚡ Performance diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 58c4157b6312b..4676b2b1c7623 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/CHANGELOG.md b/crates/oxc_ast_macros/CHANGELOG.md index b6cd3f8c78e28..dde130e4f213b 100644 --- a/crates/oxc_ast_macros/CHANGELOG.md +++ b/crates/oxc_ast_macros/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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + +### 🐛 Bug Fixes + +- 7a0ca99 linter/plugins: Use correct ScriptKind for tokens (#17185) (Peter Wagenet) + ## [0.104.0] - 2025-12-19 ### ⚡ Performance diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 25006677f4a29..1fe9d499bcb99 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.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_visit/CHANGELOG.md b/crates/oxc_ast_visit/CHANGELOG.md index 49227a6d23ee0..02227843a15d7 100644 --- a/crates/oxc_ast_visit/CHANGELOG.md +++ b/crates/oxc_ast_visit/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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + ## [0.103.0] - 2025-12-15 ### 🚀 Features diff --git a/crates/oxc_ast_visit/Cargo.toml b/crates/oxc_ast_visit/Cargo.toml index e10d0180a1c19..2c8f6bd871b5d 100644 --- a/crates/oxc_ast_visit/Cargo.toml +++ b/crates/oxc_ast_visit/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast_visit" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/CHANGELOG.md b/crates/oxc_cfg/CHANGELOG.md index 0094d1a8ddae2..b6180b56c6093 100644 --- a/crates/oxc_cfg/CHANGELOG.md +++ b/crates/oxc_cfg/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). +## [0.109.0] - 2026-01-19 + +### 🐛 Bug Fixes + +- 2aae4fc linter: Fix stack overflow in `no-unreachable` rule on large files (#18077) (Boshen) + ## [0.96.0] - 2025-10-30 ### 📚 Documentation diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index 032776996b23e..e00073aff3376 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.108.0" +version = "0.109.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 a1a9be2973404..7d701d652df90 100644 --- a/crates/oxc_codegen/CHANGELOG.md +++ b/crates/oxc_codegen/CHANGELOG.md @@ -4,6 +4,15 @@ 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). +## [0.109.0] - 2026-01-19 + +### 🐛 Bug Fixes + +- 4c16ae7 codegen: Remove spaces around `=` in minified type parameter defaults (#17989) (Boshen) +- 06bd17b codegen: Remove unnecessary double parentheses from satisfies expressions (#17986) (Boshen) +- 1874765 codegen: Fix inconsistent multiline EOF comment formatting (#17983) (Boshen) +- 2619c66 codegen: Remove leading whitespace from export statements after comments (#17982) (Boshen) + ## [0.108.0] - 2026-01-12 ### 🚀 Features diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index d71131f38d525..d7d7096befba5 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_compat/Cargo.toml b/crates/oxc_compat/Cargo.toml index ea3c863187aac..98bb8ef678575 100644 --- a/crates/oxc_compat/Cargo.toml +++ b/crates/oxc_compat/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_compat" -version = "0.108.0" +version = "0.109.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 421716be95ca4..65ec1bbb96772 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.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_diagnostics/Cargo.toml b/crates/oxc_diagnostics/Cargo.toml index 2dfb58de011a0..934f0042f2e0a 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.108.0" +version = "0.109.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 9ce9ec3d60407..1d4f1736215ab 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). +## [0.109.0] - 2026-01-19 + +### 🐛 Bug Fixes + +- 38e4b53 minifier: Validate RegExp patterns before marking as pure (#18125) (Boshen) + ## [0.107.0] - 2026-01-05 ### 🐛 Bug Fixes diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index 64457c2e6a0f6..3bc177f91a018 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.108.0" +version = "0.109.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 c50136713d1d0..2cff61689e13c 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_isolated_declarations/Cargo.toml b/crates/oxc_isolated_declarations/Cargo.toml index 0db451e4a80d1..0c65ce6a8fd2f 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.108.0" +version = "0.109.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 e4ed8ccede1f2..01fd07f61a256 100644 --- a/crates/oxc_mangler/CHANGELOG.md +++ b/crates/oxc_mangler/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). +## [0.109.0] - 2026-01-19 + +### 🐛 Bug Fixes + +- f69b6da mangler: Reserve names from eval-containing scopes (#18037) (camc314) + +### ⚡ Performance + +- 91c143f mangler: Remove `frequencies` items if they are unused (#18183) (Dunqing) +- 9af52c6 mangler: Turn off `scope_tree_child_ids` for `SemanticBuilder` (#18122) (Dunqing) + ## [0.107.0] - 2026-01-05 ### 🚀 Features diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 0ee95f795e2e5..321fe2ff4e233 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.108.0" +version = "0.109.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 777dfd1e11a8d..5233131abdcb8 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- d1016b9 minifier: Do not flip if/else when it would produce longer result (#17556) (Armano) +- 9c6e344 minifier: Prune empty `case` before trailing `default` (#17994) (Boshen) + +### 🐛 Bug Fixes + +- 38e4b53 minifier: Validate RegExp patterns before marking as pure (#18125) (Boshen) +- 01d7b13 oxc_minifier: Enable sourcemap feature in dev mode (#18131) (Armano) +- f69b6da mangler: Reserve names from eval-containing scopes (#18037) (camc314) +- c8f847e minifier: Preserve return value of `@__PURE__` IIFE in return statements (#18036) (camc314) +- ee353e6 minifier: Skip inlining constant in scopes with eval (#17926) (camc314) + +### ⚡ Performance + +- 91c143f mangler: Remove `frequencies` items if they are unused (#18183) (Dunqing) + ## [0.108.0] - 2026-01-12 ### ⚡ Performance diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 0d997731f879d..02db85395e0ab 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/CHANGELOG.md b/crates/oxc_napi/CHANGELOG.md index f89012733b538..469a40699a7cd 100644 --- a/crates/oxc_napi/CHANGELOG.md +++ b/crates/oxc_napi/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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- 6e8fa80 napi/parser, napi/transform: Accept `sourceType: "commonjs"` (#18197) (overlookmotel) +- 66b8c02 parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen) + ## [0.103.0] - 2025-12-15 ### 💥 BREAKING CHANGES diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index a251db0bae24e..fd173bbaf866e 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.108.0" +version = "0.109.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 ba3e49d41f0cd..cd15644a9259e 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,26 @@ 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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- 8a1cbbd parser: Add syntax errors for constructor declarations (#18220) (Boshen) +- 175b73a parser: Add ts error 1257 for `TSTupleElement` (#18146) (Sysix) +- fa2ffe2 parser: Add ts error 1266 for `TSTupleElement` (#18145) (Sysix) +- acf1aba parser: Add ts error 1265 for `TSTupleElement` (#18144) (Sysix) +- 92e27b4 parser: Reparse await expressions in unambiguous mode when ESM detected (#18139) (Boshen) +- 66b8c02 parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen) +- 08dad63 span: Add `sourceType: 'commonjs'` support (#18089) (Boshen) + +### 🐛 Bug Fixes + +- 37482eb parser: Respect optional `TSNamedTupleMember` for ts error 1266 &1257 (#18178) (Sysix) +- 2c6966d parser: Correct precedence handling for private-in expression (#18169) (Boshen) +- 91126a0 parser: Reparse all statements with await identifier in unambiguous mode (#18163) (Boshen) +- c98e5b7 parser: Parse `for (using of = ...)` as using declaration (#18142) (Boshen) +- a412103 parser: Improve diagnostics for double `export` (#17992) (Boshen) + ## [0.108.0] - 2026-01-12 ### 🐛 Bug Fixes diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 3a4e7a4a09e58..2474c2b25d937 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.108.0" +version = "0.109.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 1acdf7539b8bb..2cb6cb00a5034 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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- 830b757 regular_expression: Add Unicode 17.0 script properties (#18140) (Boshen) + ## [0.105.0] - 2025-12-22 ### 🚀 Features diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 4ba4d853d9179..bbe28f70d15e0 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.108.0" +version = "0.109.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 995242966edfc..6f82c6db5b546 100644 --- a/crates/oxc_semantic/CHANGELOG.md +++ b/crates/oxc_semantic/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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + +### 🚀 Features + +- e2221e6 semantic: Store `scope_id` in `Reference` (#18053) (Dunqing) +- 66b8c02 parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen) +- 08dad63 span: Add `sourceType: 'commonjs'` support (#18089) (Boshen) +- 6b29bd1 semantic/example: Add detailed references info (#17938) (camc314) + +### 🐛 Bug Fixes + +- 1b199af semantic: Report TS18019 for abstract modifier with private identifier (#18173) (Boshen) +- fb181cc semantic: Error on `using` at top level in scripts (#18090) (Boshen) +- 4d9582d semantic: Allow `arguments`/`eval` as binding identifier names and identifier reference names in `.d.ts` (#17910) (Dunqing) + +### 📚 Documentation + +- 06a96da semantic: Document `with` statement limitation in `is_global_reference` (#17996) (Boshen) + ## [0.108.0] - 2026-01-12 ### 🚀 Features diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index 4a727ef29b179..e6b8994f43b79 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.108.0" +version = "0.109.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 25c73a9803b08..a8ef805a3f46e 100644 --- a/crates/oxc_span/CHANGELOG.md +++ b/crates/oxc_span/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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- ba9c750 span: [**BREAKING**] Use `ModuleKind::CommonJS` for `.cjs` and `.cts` file extensions (#18117) (Boshen) + +### 🚀 Features + +- 66b8c02 parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen) +- 08dad63 span: Add `sourceType: 'commonjs'` support (#18089) (Boshen) + ## [0.104.0] - 2025-12-19 ### 🚀 Features diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 76070e30ba31e..54da184d9641a 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.108.0" +version = "0.109.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 894942ebea1e6..9c49311749ac4 100644 --- a/crates/oxc_syntax/CHANGELOG.md +++ b/crates/oxc_syntax/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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- e2221e6 semantic: Store `scope_id` in `Reference` (#18053) (Dunqing) + ## [0.103.0] - 2025-12-15 ### 🚀 Features diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 71d04e687884b..c9a042086028f 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.108.0" +version = "0.109.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 cbaa5883e050d..06a6ae0c76dea 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,22 @@ 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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + +### 🚀 Features + +- 08dad63 span: Add `sourceType: 'commonjs'` support (#18089) (Boshen) + +### ⚡ Performance + +- 837edf6 transformer/typescript: Reduce `scope_id()` calls (#18097) (overlookmotel) +- 8ee6f80 transformer/tagged-template: Add `#[cold]` hint to unlikely path (#18034) (overlookmotel) +- 23449e0 transformer/tagged-template-transform: Improve performance (#15834) (Dunqing) + ## [0.107.0] - 2026-01-05 ### ⚡ Performance diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index c68c7c0389a7a..254546a93f7e8 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_transformer_plugins/Cargo.toml b/crates/oxc_transformer_plugins/Cargo.toml index dc6f67fbe6411..f909dfa65e340 100644 --- a/crates/oxc_transformer_plugins/Cargo.toml +++ b/crates/oxc_transformer_plugins/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer_plugins" -version = "0.108.0" +version = "0.109.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 a17482c0be740..38f1cfa8133ff 100644 --- a/crates/oxc_traverse/CHANGELOG.md +++ b/crates/oxc_traverse/CHANGELOG.md @@ -4,6 +4,21 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + +### 🚀 Features + +- e2221e6 semantic: Store `scope_id` in `Reference` (#18053) (Dunqing) +- 3f83ded traverse: Add into_state and into_state_and_scoping methods to ReusableTraverseCtx (#18010) (Cole Leavitt) + +### 📚 Documentation + +- 17406b6 traverse: Update comment (#18079) (overlookmotel) + ## [0.104.0] - 2025-12-19 ### 📚 Documentation diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index e1326b12f3512..5e522f67ce3a3 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/minify/Cargo.toml b/napi/minify/Cargo.toml index 372a99c6d15cf..8b8bc444c7ab0 100644 --- a/napi/minify/Cargo.toml +++ b/napi/minify/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minify_napi" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/minify/index.js b/napi/minify/index.js index 93c2a2feb85fb..3cf39dbfc9d7d 100644 --- a/napi/minify/index.js +++ b/napi/minify/index.js @@ -81,8 +81,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-android-arm64') const bindingPackageVersion = require('@oxc-minify/binding-android-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -97,8 +97,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-android-arm-eabi') const bindingPackageVersion = require('@oxc-minify/binding-android-arm-eabi/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -118,8 +118,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-win32-x64-gnu') const bindingPackageVersion = require('@oxc-minify/binding-win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -134,8 +134,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-win32-x64-msvc') const bindingPackageVersion = require('@oxc-minify/binding-win32-x64-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -151,8 +151,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-win32-ia32-msvc') const bindingPackageVersion = require('@oxc-minify/binding-win32-ia32-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -167,8 +167,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-win32-arm64-msvc') const bindingPackageVersion = require('@oxc-minify/binding-win32-arm64-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -186,8 +186,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-darwin-universal') const bindingPackageVersion = require('@oxc-minify/binding-darwin-universal/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -202,8 +202,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-darwin-x64') const bindingPackageVersion = require('@oxc-minify/binding-darwin-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -218,8 +218,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-darwin-arm64') const bindingPackageVersion = require('@oxc-minify/binding-darwin-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -238,8 +238,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-freebsd-x64') const bindingPackageVersion = require('@oxc-minify/binding-freebsd-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -254,8 +254,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-freebsd-arm64') const bindingPackageVersion = require('@oxc-minify/binding-freebsd-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -275,8 +275,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-x64-musl') const bindingPackageVersion = require('@oxc-minify/binding-linux-x64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -291,8 +291,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-x64-gnu') const bindingPackageVersion = require('@oxc-minify/binding-linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -309,8 +309,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-arm64-musl') const bindingPackageVersion = require('@oxc-minify/binding-linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -325,8 +325,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-arm64-gnu') const bindingPackageVersion = require('@oxc-minify/binding-linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -343,8 +343,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-arm-musleabihf') const bindingPackageVersion = require('@oxc-minify/binding-linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -359,8 +359,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-arm-gnueabihf') const bindingPackageVersion = require('@oxc-minify/binding-linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -377,8 +377,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-loong64-musl') const bindingPackageVersion = require('@oxc-minify/binding-linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -393,8 +393,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-loong64-gnu') const bindingPackageVersion = require('@oxc-minify/binding-linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -411,8 +411,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-riscv64-musl') const bindingPackageVersion = require('@oxc-minify/binding-linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -427,8 +427,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-riscv64-gnu') const bindingPackageVersion = require('@oxc-minify/binding-linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -444,8 +444,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-ppc64-gnu') const bindingPackageVersion = require('@oxc-minify/binding-linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -460,8 +460,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-linux-s390x-gnu') const bindingPackageVersion = require('@oxc-minify/binding-linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -480,8 +480,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-openharmony-arm64') const bindingPackageVersion = require('@oxc-minify/binding-openharmony-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -496,8 +496,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-openharmony-x64') const bindingPackageVersion = require('@oxc-minify/binding-openharmony-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -512,8 +512,8 @@ function requireNative() { try { const binding = require('@oxc-minify/binding-openharmony-arm') const bindingPackageVersion = require('@oxc-minify/binding-openharmony-arm/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/napi/minify/package.json b/napi/minify/package.json index 2d13b9b5febd7..2c588c9485b56 100644 --- a/napi/minify/package.json +++ b/napi/minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.108.0", + "version": "0.109.0", "description": "Oxc Minifier Node API", "keywords": [ "minify", diff --git a/napi/parser/CHANGELOG.md b/napi/parser/CHANGELOG.md index 9e6ffdd778c07..8578719a804e6 100644 --- a/napi/parser/CHANGELOG.md +++ b/napi/parser/CHANGELOG.md @@ -4,6 +4,22 @@ 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). +## [0.109.0] - 2026-01-19 + +### 💥 BREAKING CHANGES + +- 9135b0b ast: [**BREAKING**] Move scope from `TSEnumDeclaration` to `TSEnumBody` (#18058) (Boshen) + +### 🚀 Features + +- 6e8fa80 napi/parser, napi/transform: Accept `sourceType: "commonjs"` (#18197) (overlookmotel) +- 66b8c02 parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen) +- 08dad63 span: Add `sourceType: 'commonjs'` support (#18089) (Boshen) + +### 🐛 Bug Fixes + +- 7a0ca99 linter/plugins: Use correct ScriptKind for tokens (#17185) (Peter Wagenet) + ## [0.105.0] - 2025-12-22 ### ⚡ Performance diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index b0c4f04466585..1a584012bed54 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/package.json b/napi/parser/package.json index 3e79807ac3b41..be6e6b6a69018 100644 --- a/napi/parser/package.json +++ b/napi/parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.108.0", + "version": "0.109.0", "description": "Oxc Parser Node API", "keywords": [ "oxc", diff --git a/napi/parser/src-js/bindings.js b/napi/parser/src-js/bindings.js index e01f43ea78ce1..e940f5a0df92f 100644 --- a/napi/parser/src-js/bindings.js +++ b/napi/parser/src-js/bindings.js @@ -81,8 +81,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-android-arm64') const bindingPackageVersion = require('@oxc-parser/binding-android-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -97,8 +97,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-android-arm-eabi') const bindingPackageVersion = require('@oxc-parser/binding-android-arm-eabi/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -118,8 +118,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-win32-x64-gnu') const bindingPackageVersion = require('@oxc-parser/binding-win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -134,8 +134,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-win32-x64-msvc') const bindingPackageVersion = require('@oxc-parser/binding-win32-x64-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -151,8 +151,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-win32-ia32-msvc') const bindingPackageVersion = require('@oxc-parser/binding-win32-ia32-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -167,8 +167,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-win32-arm64-msvc') const bindingPackageVersion = require('@oxc-parser/binding-win32-arm64-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -186,8 +186,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-darwin-universal') const bindingPackageVersion = require('@oxc-parser/binding-darwin-universal/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -202,8 +202,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-darwin-x64') const bindingPackageVersion = require('@oxc-parser/binding-darwin-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -218,8 +218,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-darwin-arm64') const bindingPackageVersion = require('@oxc-parser/binding-darwin-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -238,8 +238,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-freebsd-x64') const bindingPackageVersion = require('@oxc-parser/binding-freebsd-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -254,8 +254,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-freebsd-arm64') const bindingPackageVersion = require('@oxc-parser/binding-freebsd-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -275,8 +275,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-x64-musl') const bindingPackageVersion = require('@oxc-parser/binding-linux-x64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -291,8 +291,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-x64-gnu') const bindingPackageVersion = require('@oxc-parser/binding-linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -309,8 +309,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-arm64-musl') const bindingPackageVersion = require('@oxc-parser/binding-linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -325,8 +325,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-arm64-gnu') const bindingPackageVersion = require('@oxc-parser/binding-linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -343,8 +343,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-arm-musleabihf') const bindingPackageVersion = require('@oxc-parser/binding-linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -359,8 +359,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-arm-gnueabihf') const bindingPackageVersion = require('@oxc-parser/binding-linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -377,8 +377,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-loong64-musl') const bindingPackageVersion = require('@oxc-parser/binding-linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -393,8 +393,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-loong64-gnu') const bindingPackageVersion = require('@oxc-parser/binding-linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -411,8 +411,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-riscv64-musl') const bindingPackageVersion = require('@oxc-parser/binding-linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -427,8 +427,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-riscv64-gnu') const bindingPackageVersion = require('@oxc-parser/binding-linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -444,8 +444,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-ppc64-gnu') const bindingPackageVersion = require('@oxc-parser/binding-linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -460,8 +460,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-linux-s390x-gnu') const bindingPackageVersion = require('@oxc-parser/binding-linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -480,8 +480,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-openharmony-arm64') const bindingPackageVersion = require('@oxc-parser/binding-openharmony-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -496,8 +496,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-openharmony-x64') const bindingPackageVersion = require('@oxc-parser/binding-openharmony-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -512,8 +512,8 @@ function requireNative() { try { const binding = require('@oxc-parser/binding-openharmony-arm') const bindingPackageVersion = require('@oxc-parser/binding-openharmony-arm/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/napi/transform/CHANGELOG.md b/napi/transform/CHANGELOG.md index 9a0f58d494643..f66f3d3f0cd57 100644 --- a/napi/transform/CHANGELOG.md +++ b/napi/transform/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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- 6e8fa80 napi/parser, napi/transform: Accept `sourceType: "commonjs"` (#18197) (overlookmotel) +- 66b8c02 parser: Implement unambiguous module parsing for JS/TS files (#18124) (Boshen) + ## [0.102.0] - 2025-12-08 ### 💥 BREAKING CHANGES diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 7cfde3db25006..2690292c5b6fd 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.108.0" +version = "0.109.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/index.js b/napi/transform/index.js index b36b368f434fe..5e9100ee93176 100644 --- a/napi/transform/index.js +++ b/napi/transform/index.js @@ -81,8 +81,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-android-arm64') const bindingPackageVersion = require('@oxc-transform/binding-android-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -97,8 +97,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-android-arm-eabi') const bindingPackageVersion = require('@oxc-transform/binding-android-arm-eabi/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -118,8 +118,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-win32-x64-gnu') const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -134,8 +134,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-win32-x64-msvc') const bindingPackageVersion = require('@oxc-transform/binding-win32-x64-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -151,8 +151,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-win32-ia32-msvc') const bindingPackageVersion = require('@oxc-transform/binding-win32-ia32-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -167,8 +167,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-win32-arm64-msvc') const bindingPackageVersion = require('@oxc-transform/binding-win32-arm64-msvc/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -186,8 +186,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-darwin-universal') const bindingPackageVersion = require('@oxc-transform/binding-darwin-universal/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -202,8 +202,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-darwin-x64') const bindingPackageVersion = require('@oxc-transform/binding-darwin-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -218,8 +218,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-darwin-arm64') const bindingPackageVersion = require('@oxc-transform/binding-darwin-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -238,8 +238,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-freebsd-x64') const bindingPackageVersion = require('@oxc-transform/binding-freebsd-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -254,8 +254,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-freebsd-arm64') const bindingPackageVersion = require('@oxc-transform/binding-freebsd-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -275,8 +275,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-x64-musl') const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -291,8 +291,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-x64-gnu') const bindingPackageVersion = require('@oxc-transform/binding-linux-x64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -309,8 +309,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-arm64-musl') const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -325,8 +325,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-arm64-gnu') const bindingPackageVersion = require('@oxc-transform/binding-linux-arm64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -343,8 +343,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-arm-musleabihf') const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-musleabihf/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -359,8 +359,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-arm-gnueabihf') const bindingPackageVersion = require('@oxc-transform/binding-linux-arm-gnueabihf/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -377,8 +377,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-loong64-musl') const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -393,8 +393,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-loong64-gnu') const bindingPackageVersion = require('@oxc-transform/binding-linux-loong64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -411,8 +411,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-riscv64-musl') const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-musl/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -427,8 +427,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-riscv64-gnu') const bindingPackageVersion = require('@oxc-transform/binding-linux-riscv64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -444,8 +444,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-ppc64-gnu') const bindingPackageVersion = require('@oxc-transform/binding-linux-ppc64-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -460,8 +460,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-linux-s390x-gnu') const bindingPackageVersion = require('@oxc-transform/binding-linux-s390x-gnu/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -480,8 +480,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-openharmony-arm64') const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -496,8 +496,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-openharmony-x64') const bindingPackageVersion = require('@oxc-transform/binding-openharmony-x64/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { @@ -512,8 +512,8 @@ function requireNative() { try { const binding = require('@oxc-transform/binding-openharmony-arm') const bindingPackageVersion = require('@oxc-transform/binding-openharmony-arm/package.json').version - if (bindingPackageVersion !== '0.108.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { - throw new Error(`Native binding package version mismatch, expected 0.108.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.109.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') { + throw new Error(`Native binding package version mismatch, expected 0.109.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/napi/transform/package.json b/napi/transform/package.json index df31463f71070..498184320eebf 100644 --- a/napi/transform/package.json +++ b/napi/transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.108.0", + "version": "0.109.0", "description": "Oxc Transformer Node API", "keywords": [ "oxc", diff --git a/npm/oxc-types/CHANGELOG.md b/npm/oxc-types/CHANGELOG.md index 84f7af0849d93..b80ed0d7f0359 100644 --- a/npm/oxc-types/CHANGELOG.md +++ b/npm/oxc-types/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). +## [0.109.0] - 2026-01-19 + +### 🚀 Features + +- 08dad63 span: Add `sourceType: 'commonjs'` support (#18089) (Boshen) + ## [0.100.0] - 2025-12-01 ### 🐛 Bug Fixes diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index 8842a94d43275..0e1ab5a696a50 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.108.0", + "version": "0.109.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/npm/runtime/package.json b/npm/runtime/package.json index 4e8174bb368e5..46ac171279199 100644 --- a/npm/runtime/package.json +++ b/npm/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/runtime", - "version": "0.108.0", + "version": "0.109.0", "description": "Oxc's modular runtime helpers", "homepage": "https://oxc.rs", "license": "MIT",