diff --git a/Cargo.lock b/Cargo.lock index c4e937386a2f3..1aebad4fd26df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1590,7 +1590,7 @@ checksum = "9c6901729fa79e91a0913333229e9ca5dc725089d1c363b2f4b4760709dc4a52" [[package]] name = "oxc" -version = "0.119.0" +version = "0.120.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1671,7 +1671,7 @@ checksum = "42c447978900c2436dac665912cd298d3f9f6d4cac2551080328729ea52f840f" [[package]] name = "oxc_allocator" -version = "0.119.0" +version = "0.120.0" dependencies = [ "allocator-api2", "hashbrown 0.16.1", @@ -1685,7 +1685,7 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "oxc_allocator", @@ -1700,7 +1700,7 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.119.0" +version = "0.120.0" dependencies = [ "phf", "proc-macro2", @@ -1745,7 +1745,7 @@ dependencies = [ [[package]] name = "oxc_ast_visit" -version = "0.119.0" +version = "0.120.0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1781,7 +1781,7 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "itertools", @@ -1793,7 +1793,7 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "cow-utils", @@ -1815,7 +1815,7 @@ dependencies = [ [[package]] name = "oxc_compat" -version = "0.119.0" +version = "0.120.0" dependencies = [ "cow-utils", "oxc-browserslist", @@ -1865,14 +1865,14 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.119.0" +version = "0.120.0" dependencies = [ "ropey", ] [[package]] name = "oxc_diagnostics" -version = "0.119.0" +version = "0.120.0" dependencies = [ "cow-utils", "oxc-miette", @@ -1881,7 +1881,7 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.119.0" +version = "0.120.0" dependencies = [ "cow-utils", "num-bigint", @@ -1895,7 +1895,7 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.119.0" +version = "0.120.0" dependencies = [ "dragonbox_ecma", "itoa", @@ -1904,7 +1904,7 @@ dependencies = [ [[package]] name = "oxc_estree_tokens" -version = "0.119.0" +version = "0.120.0" dependencies = [ "itoa", "oxc_ast", @@ -1952,7 +1952,7 @@ dependencies = [ [[package]] name = "oxc_isolated_declarations" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "insta", @@ -1970,7 +1970,7 @@ dependencies = [ [[package]] name = "oxc_jsdoc" -version = "0.119.0" +version = "0.120.0" dependencies = [ "oxc_ast", "oxc_span", @@ -2069,7 +2069,7 @@ dependencies = [ [[package]] name = "oxc_mangler" -version = "0.119.0" +version = "0.120.0" dependencies = [ "itertools", "oxc_allocator", @@ -2085,7 +2085,7 @@ dependencies = [ [[package]] name = "oxc_minifier" -version = "0.119.0" +version = "0.120.0" dependencies = [ "cow-utils", "insta", @@ -2114,7 +2114,7 @@ dependencies = [ [[package]] name = "oxc_minify_napi" -version = "0.119.0" +version = "0.120.0" dependencies = [ "mimalloc-safe", "napi", @@ -2153,7 +2153,7 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.119.0" +version = "0.120.0" dependencies = [ "napi", "napi-build", @@ -2167,7 +2167,7 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "cow-utils", @@ -2190,7 +2190,7 @@ dependencies = [ [[package]] name = "oxc_parser_napi" -version = "0.119.0" +version = "0.120.0" dependencies = [ "mimalloc-safe", "napi", @@ -2242,7 +2242,7 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "insta", @@ -2296,7 +2296,7 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.119.0" +version = "0.120.0" dependencies = [ "insta", "itertools", @@ -2335,7 +2335,7 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.119.0" +version = "0.120.0" dependencies = [ "compact_str", "oxc-miette", @@ -2349,7 +2349,7 @@ dependencies = [ [[package]] name = "oxc_str" -version = "0.119.0" +version = "0.120.0" dependencies = [ "compact_str", "hashbrown 0.16.1", @@ -2361,7 +2361,7 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.119.0" +version = "0.120.0" dependencies = [ "bitflags", "cow-utils", @@ -2432,7 +2432,7 @@ dependencies = [ [[package]] name = "oxc_transform_napi" -version = "0.119.0" +version = "0.120.0" dependencies = [ "mimalloc-safe", "napi", @@ -2446,7 +2446,7 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.119.0" +version = "0.120.0" dependencies = [ "base64", "compact_str", @@ -2477,7 +2477,7 @@ dependencies = [ [[package]] name = "oxc_transformer_plugins" -version = "0.119.0" +version = "0.120.0" dependencies = [ "cow-utils", "insta", @@ -2503,7 +2503,7 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.119.0" +version = "0.120.0" dependencies = [ "itoa", "oxc_allocator", diff --git a/Cargo.toml b/Cargo.toml index fb11cc4faac48..8fcfdfde66dd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -105,38 +105,38 @@ multiple_crate_versions = "allow" [workspace.dependencies] # publish = true -oxc = { version = "0.119.0", path = "crates/oxc" } # Main entry point -oxc_allocator = { version = "0.119.0", path = "crates/oxc_allocator" } # Memory management -oxc_ast = { version = "0.119.0", path = "crates/oxc_ast" } # AST definitions -oxc_ast_macros = { version = "0.119.0", path = "crates/oxc_ast_macros" } # AST proc macros -oxc_ast_visit = { version = "0.119.0", path = "crates/oxc_ast_visit" } # AST visitor pattern -oxc_cfg = { version = "0.119.0", path = "crates/oxc_cfg" } # Control flow graph -oxc_codegen = { version = "0.119.0", path = "crates/oxc_codegen", default-features = false } # Code generation -oxc_compat = { version = "0.119.0", path = "crates/oxc_compat" } # Browser compatibility -oxc_data_structures = { version = "0.119.0", path = "crates/oxc_data_structures" } # Shared data structures -oxc_diagnostics = { version = "0.119.0", path = "crates/oxc_diagnostics" } # Error reporting -oxc_ecmascript = { version = "0.119.0", path = "crates/oxc_ecmascript" } # ECMAScript operations -oxc_estree = { version = "0.119.0", path = "crates/oxc_estree" } # ESTree format -oxc_estree_tokens = { version = "0.119.0", path = "crates/oxc_estree_tokens" } # ESTree token conversion -oxc_isolated_declarations = { version = "0.119.0", path = "crates/oxc_isolated_declarations" } # TS declaration generation -oxc_jsdoc = { version = "0.119.0", path = "crates/oxc_jsdoc" } # JSDoc parsing -oxc_mangler = { version = "0.119.0", path = "crates/oxc_mangler" } # Name mangling -oxc_minifier = { version = "0.119.0", path = "crates/oxc_minifier" } # Code minification -oxc_minify_napi = { version = "0.119.0", path = "napi/minify" } # Node.js minifier binding -oxc_napi = { version = "0.119.0", path = "crates/oxc_napi" } # NAPI utilities -oxc_parser = { version = "0.119.0", path = "crates/oxc_parser", features = [ +oxc = { version = "0.120.0", path = "crates/oxc" } # Main entry point +oxc_allocator = { version = "0.120.0", path = "crates/oxc_allocator" } # Memory management +oxc_ast = { version = "0.120.0", path = "crates/oxc_ast" } # AST definitions +oxc_ast_macros = { version = "0.120.0", path = "crates/oxc_ast_macros" } # AST proc macros +oxc_ast_visit = { version = "0.120.0", path = "crates/oxc_ast_visit" } # AST visitor pattern +oxc_cfg = { version = "0.120.0", path = "crates/oxc_cfg" } # Control flow graph +oxc_codegen = { version = "0.120.0", path = "crates/oxc_codegen", default-features = false } # Code generation +oxc_compat = { version = "0.120.0", path = "crates/oxc_compat" } # Browser compatibility +oxc_data_structures = { version = "0.120.0", path = "crates/oxc_data_structures" } # Shared data structures +oxc_diagnostics = { version = "0.120.0", path = "crates/oxc_diagnostics" } # Error reporting +oxc_ecmascript = { version = "0.120.0", path = "crates/oxc_ecmascript" } # ECMAScript operations +oxc_estree = { version = "0.120.0", path = "crates/oxc_estree" } # ESTree format +oxc_estree_tokens = { version = "0.120.0", path = "crates/oxc_estree_tokens" } # ESTree token conversion +oxc_isolated_declarations = { version = "0.120.0", path = "crates/oxc_isolated_declarations" } # TS declaration generation +oxc_jsdoc = { version = "0.120.0", path = "crates/oxc_jsdoc" } # JSDoc parsing +oxc_mangler = { version = "0.120.0", path = "crates/oxc_mangler" } # Name mangling +oxc_minifier = { version = "0.120.0", path = "crates/oxc_minifier" } # Code minification +oxc_minify_napi = { version = "0.120.0", path = "napi/minify" } # Node.js minifier binding +oxc_napi = { version = "0.120.0", path = "crates/oxc_napi" } # NAPI utilities +oxc_parser = { version = "0.120.0", path = "crates/oxc_parser", features = [ "regular_expression", ] } # JS/TS parser -oxc_parser_napi = { version = "0.119.0", path = "napi/parser" } # Node.js parser binding -oxc_regular_expression = { version = "0.119.0", path = "crates/oxc_regular_expression" } # Regex parser -oxc_semantic = { version = "0.119.0", path = "crates/oxc_semantic" } # Semantic analysis -oxc_span = { version = "0.119.0", path = "crates/oxc_span" } # Source positions -oxc_str = { version = "0.119.0", path = "crates/oxc_str" } # String types -oxc_syntax = { version = "0.119.0", path = "crates/oxc_syntax" } # Syntax utilities -oxc_transform_napi = { version = "0.119.0", path = "napi/transform" } # Node.js transformer binding -oxc_transformer = { version = "0.119.0", path = "crates/oxc_transformer" } # Code transformation -oxc_transformer_plugins = { version = "0.119.0", path = "crates/oxc_transformer_plugins" } # Transformer plugins -oxc_traverse = { version = "0.119.0", path = "crates/oxc_traverse" } # AST traversal +oxc_parser_napi = { version = "0.120.0", path = "napi/parser" } # Node.js parser binding +oxc_regular_expression = { version = "0.120.0", path = "crates/oxc_regular_expression" } # Regex parser +oxc_semantic = { version = "0.120.0", path = "crates/oxc_semantic" } # Semantic analysis +oxc_span = { version = "0.120.0", path = "crates/oxc_span" } # Source positions +oxc_str = { version = "0.120.0", path = "crates/oxc_str" } # String types +oxc_syntax = { version = "0.120.0", path = "crates/oxc_syntax" } # Syntax utilities +oxc_transform_napi = { version = "0.120.0", path = "napi/transform" } # Node.js transformer binding +oxc_transformer = { version = "0.120.0", path = "crates/oxc_transformer" } # Code transformation +oxc_transformer_plugins = { version = "0.120.0", path = "crates/oxc_transformer_plugins" } # Transformer plugins +oxc_traverse = { version = "0.120.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 fb54ca4328c77..34462bd322ca8 100644 --- a/crates/oxc/Cargo.toml +++ b/crates/oxc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_allocator/Cargo.toml b/crates/oxc_allocator/Cargo.toml index 94feda6f2a30f..b2f29e7b2cec4 100644 --- a/crates/oxc_allocator/Cargo.toml +++ b/crates/oxc_allocator/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_allocator" -version = "0.119.0" +version = "0.120.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 7524b23a35c32..f8b55256484d7 100644 --- a/crates/oxc_ast/CHANGELOG.md +++ b/crates/oxc_ast/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.120.0] - 2026-03-16 + +### 🐛 Bug Fixes + +- f8fbd6e linter/plugins: Remove `hashbang` property from AST (#20365) (overlookmotel) + +### ⚡ Performance + +- 9cd612f linter/plugins: Recycle comment objects (#20362) (overlookmotel) + ## [0.114.0] - 2026-02-16 ### 🚀 Features diff --git a/crates/oxc_ast/Cargo.toml b/crates/oxc_ast/Cargo.toml index 9427e24e0f33d..c073e3f0edf83 100644 --- a/crates/oxc_ast/Cargo.toml +++ b/crates/oxc_ast/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ast" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_macros/Cargo.toml b/crates/oxc_ast_macros/Cargo.toml index 6859111d4b0cc..fbc98eae45ac1 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.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_ast_visit/Cargo.toml b/crates/oxc_ast_visit/Cargo.toml index d7e1c2bc7cee4..39f48d5138da6 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.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_cfg/Cargo.toml b/crates/oxc_cfg/Cargo.toml index ca37e3d107806..5f6294f9c4531 100644 --- a/crates/oxc_cfg/Cargo.toml +++ b/crates/oxc_cfg/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_cfg" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_codegen/Cargo.toml b/crates/oxc_codegen/Cargo.toml index f48240a787dae..9ede4cfce59e0 100644 --- a/crates/oxc_codegen/Cargo.toml +++ b/crates/oxc_codegen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_codegen" -version = "0.119.0" +version = "0.120.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 cdadf5d98258e..172107a3641e4 100644 --- a/crates/oxc_compat/Cargo.toml +++ b/crates/oxc_compat/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_compat" -version = "0.119.0" +version = "0.120.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 9a81bbf13c3bf..132f3ce75ebf8 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.119.0" +version = "0.120.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 2d5324bab49a4..2f9723a14e982 100644 --- a/crates/oxc_diagnostics/Cargo.toml +++ b/crates/oxc_diagnostics/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_diagnostics" -version = "0.119.0" +version = "0.120.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 3b2690b38bacf..01f444fd5399a 100644 --- a/crates/oxc_ecmascript/CHANGELOG.md +++ b/crates/oxc_ecmascript/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.120.0] - 2026-03-16 + +### 🐛 Bug Fixes + +- edb8677 ecmascript: Treat collection constructor with variable arg as side-effectful (#20383) (Dunqing) +- e62524d minifier: Treat object spread of getters as having side effects (#20380) (Boshen) + ## [0.119.0] - 2026-03-14 ### 🚀 Features diff --git a/crates/oxc_ecmascript/Cargo.toml b/crates/oxc_ecmascript/Cargo.toml index f012556292d89..028cf9d44414a 100644 --- a/crates/oxc_ecmascript/Cargo.toml +++ b/crates/oxc_ecmascript/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_ecmascript" -version = "0.119.0" +version = "0.120.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 b9895ffd80fc0..e42297e3e3fae 100644 --- a/crates/oxc_estree/Cargo.toml +++ b/crates/oxc_estree/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_estree_tokens/Cargo.toml b/crates/oxc_estree_tokens/Cargo.toml index 27b1eb5212614..7ed29c0b49501 100644 --- a/crates/oxc_estree_tokens/Cargo.toml +++ b/crates/oxc_estree_tokens/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_estree_tokens" -version = "0.119.0" +version = "0.120.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 6dd2ceb191ce1..6d7e08e55e569 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.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_jsdoc/Cargo.toml b/crates/oxc_jsdoc/Cargo.toml index 0b413b0da5e06..0d52a795c8acf 100644 --- a/crates/oxc_jsdoc/Cargo.toml +++ b/crates/oxc_jsdoc/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_jsdoc" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_mangler/Cargo.toml b/crates/oxc_mangler/Cargo.toml index 3043b77952329..dbf89d688c665 100644 --- a/crates/oxc_mangler/Cargo.toml +++ b/crates/oxc_mangler/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_mangler" -version = "0.119.0" +version = "0.120.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 a7e3ffa6017a0..b1513d76e5d58 100644 --- a/crates/oxc_minifier/CHANGELOG.md +++ b/crates/oxc_minifier/CHANGELOG.md @@ -4,6 +4,18 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.120.0] - 2026-03-16 + +### 🐛 Bug Fixes + +- edb8677 ecmascript: Treat collection constructor with variable arg as side-effectful (#20383) (Dunqing) +- e62524d minifier: Treat object spread of getters as having side effects (#20380) (Boshen) + +### ⚡ Performance + +- 30a2b0f minifier: Use atom_from_strs_array for template literal concat (#20386) (Boshen) +- 690ce17 minifier: Use Vec::with_capacity for inline template expressions (#20389) (Boshen) + ## [0.119.0] - 2026-03-14 ### 🚀 Features diff --git a/crates/oxc_minifier/Cargo.toml b/crates/oxc_minifier/Cargo.toml index 30b7c480f0851..82f15ba4280f8 100644 --- a/crates/oxc_minifier/Cargo.toml +++ b/crates/oxc_minifier/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minifier" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_napi/Cargo.toml b/crates/oxc_napi/Cargo.toml index 409a2c7d88ff9..a6e4e48fec7f4 100644 --- a/crates/oxc_napi/Cargo.toml +++ b/crates/oxc_napi/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_napi" -version = "0.119.0" +version = "0.120.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 245d0c02829e5..e3aa3ba2d1f60 100644 --- a/crates/oxc_parser/CHANGELOG.md +++ b/crates/oxc_parser/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.120.0] - 2026-03-16 + +### 🐛 Bug Fixes + +- ed5a7fb parser: Report syntax error for `new super()` (#20384) (Boshen) + ## [0.119.0] - 2026-03-14 ### 🐛 Bug Fixes diff --git a/crates/oxc_parser/Cargo.toml b/crates/oxc_parser/Cargo.toml index 5db9b14f9f5fa..ad2a8dd8c5dfe 100644 --- a/crates/oxc_parser/Cargo.toml +++ b/crates/oxc_parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_regular_expression/Cargo.toml b/crates/oxc_regular_expression/Cargo.toml index 601e04d3dbc42..479ccd3b2ed37 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.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_semantic/Cargo.toml b/crates/oxc_semantic/Cargo.toml index c5064a4c48483..63b6f04cd4b28 100644 --- a/crates/oxc_semantic/Cargo.toml +++ b/crates/oxc_semantic/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_semantic" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_span/Cargo.toml b/crates/oxc_span/Cargo.toml index 6a87bf18078ee..43719238efc64 100644 --- a/crates/oxc_span/Cargo.toml +++ b/crates/oxc_span/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_span" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_str/Cargo.toml b/crates/oxc_str/Cargo.toml index f92515942b4a6..95a32d2c0fccc 100644 --- a/crates/oxc_str/Cargo.toml +++ b/crates/oxc_str/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_str" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_syntax/Cargo.toml b/crates/oxc_syntax/Cargo.toml index 3449624ab78df..a84128936b78e 100644 --- a/crates/oxc_syntax/Cargo.toml +++ b/crates/oxc_syntax/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_syntax" -version = "0.119.0" +version = "0.120.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 dc7a8b4d71299..dc5918013994e 100644 --- a/crates/oxc_transformer/CHANGELOG.md +++ b/crates/oxc_transformer/CHANGELOG.md @@ -4,6 +4,13 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.120.0] - 2026-03-16 + +### 🐛 Bug Fixes + +- 1f65c3f transformer: Emit design:paramtypes when class has static anonymous class expression (#20382) (bab) +- fa70d5c transformer: Use implementation signature for design:paramtypes when constructor is overloaded (#20394) (bab) + ## [0.119.0] - 2026-03-14 ### 🐛 Bug Fixes diff --git a/crates/oxc_transformer/Cargo.toml b/crates/oxc_transformer/Cargo.toml index e69c5c604e950..7dc8f8ae2a6f1 100644 --- a/crates/oxc_transformer/Cargo.toml +++ b/crates/oxc_transformer/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transformer" -version = "0.119.0" +version = "0.120.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 d22d0120a58b5..965c0303bf322 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.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/crates/oxc_traverse/Cargo.toml b/crates/oxc_traverse/Cargo.toml index f1b67b94b6a02..6439d8615be0e 100644 --- a/crates/oxc_traverse/Cargo.toml +++ b/crates/oxc_traverse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_traverse" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/minify/Cargo.toml b/napi/minify/Cargo.toml index 2a8ac44877eaf..9e9b6f43a1026 100644 --- a/napi/minify/Cargo.toml +++ b/napi/minify/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_minify_napi" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/minify/index.js b/napi/minify/index.js index 7fe9768a868ee..ee515d132f250 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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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 1e24fba71f6f9..88f557fc04adc 100644 --- a/napi/minify/package.json +++ b/napi/minify/package.json @@ -1,6 +1,6 @@ { "name": "oxc-minify", - "version": "0.119.0", + "version": "0.120.0", "description": "Oxc Minifier Node API", "keywords": [ "javascript", diff --git a/napi/parser/CHANGELOG.md b/napi/parser/CHANGELOG.md index 5adc1b1839af2..c6c508aea7972 100644 --- a/napi/parser/CHANGELOG.md +++ b/napi/parser/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this package will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0). +## [0.120.0] - 2026-03-16 + +### ⚡ Performance + +- 9cd612f linter/plugins: Recycle comment objects (#20362) (overlookmotel) + ## [0.119.0] - 2026-03-14 ### 📚 Documentation diff --git a/napi/parser/Cargo.toml b/napi/parser/Cargo.toml index 454fa78979ba8..d789ad7955047 100644 --- a/napi/parser/Cargo.toml +++ b/napi/parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_parser_napi" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/parser/package.json b/napi/parser/package.json index 5d85ff8cf75d9..2a90e711925d4 100644 --- a/napi/parser/package.json +++ b/napi/parser/package.json @@ -1,6 +1,6 @@ { "name": "oxc-parser", - "version": "0.119.0", + "version": "0.120.0", "description": "Oxc Parser Node API", "keywords": [ "ast", diff --git a/napi/parser/src-js/bindings.js b/napi/parser/src-js/bindings.js index c85beb456a276..081ea25ee4005 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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) } return binding } catch (e) { diff --git a/napi/transform/Cargo.toml b/napi/transform/Cargo.toml index 56e7bffd029f1..6da8e1aff561b 100644 --- a/napi/transform/Cargo.toml +++ b/napi/transform/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "oxc_transform_napi" -version = "0.119.0" +version = "0.120.0" authors.workspace = true categories.workspace = true edition.workspace = true diff --git a/napi/transform/index.js b/napi/transform/index.js index a5837e7cb2722..dc8f94e832fd8 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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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.119.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.119.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`) + if (bindingPackageVersion !== '0.120.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.120.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 187fd0439dc12..cb062bcb8dd2f 100644 --- a/napi/transform/package.json +++ b/napi/transform/package.json @@ -1,6 +1,6 @@ { "name": "oxc-transform", - "version": "0.119.0", + "version": "0.120.0", "description": "Oxc Transformer Node API", "keywords": [ "babel", diff --git a/npm/oxc-types/package.json b/npm/oxc-types/package.json index a9f3995634da7..ed124006e31cc 100644 --- a/npm/oxc-types/package.json +++ b/npm/oxc-types/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/types", - "version": "0.119.0", + "version": "0.120.0", "description": "Types for Oxc AST nodes", "keywords": [ "AST", diff --git a/npm/runtime/package.json b/npm/runtime/package.json index e67c6069ce7e9..96a75064c9927 100644 --- a/npm/runtime/package.json +++ b/npm/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@oxc-project/runtime", - "version": "0.119.0", + "version": "0.120.0", "description": "Oxc's modular runtime helpers", "homepage": "https://oxc.rs", "license": "MIT",