diff --git a/Cargo.lock b/Cargo.lock index dcdd788aa2..ec57d3242a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -988,9 +988,9 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaf8c5fa53291fec5f52e179974cc58cd002e45eab0defdbdfb6b36a1809c9ef" +checksum = "fff8d79a61ccac3b777cc79317a3f1b8afdaa86489532d427c7eb42e1370790a" dependencies = [ "allocator-api2", "hashbrown 0.17.1", @@ -1065,9 +1065,9 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc5ac049e885e553878688ca583184cc2b8de02177914328f59616e59ffc224f" +checksum = "a343abb24d332d5b4cb71cb73ebec6844bb52e18d35e7e96395a09cbd55e27bc" dependencies = [ "bitflags", "oxc_allocator", @@ -1083,9 +1083,9 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb36e1df5e540ebd898865ed79ffd8d8f9e06310521dc0d8e5b9cc4567fc6739" +checksum = "19676b79dfb20271f963e1e66becb6532e7ba87b888d0542a7e20a79cf037fbe" dependencies = [ "phf 0.14.0", "proc-macro2", @@ -1095,9 +1095,9 @@ dependencies = [ [[package]] name = "oxc_ast_visit" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a019293646229f79954cf7c5d022a13324c84e1b874e8ce030c8e7c0a56e5b0f" +checksum = "28c94c27823c5f321eb4e9bf51bec581cf0d22522b6ac6e42276cb5cda0729d0" dependencies = [ "oxc_allocator", "oxc_ast", @@ -1107,9 +1107,9 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56802bea7d890e3c36215a28efc7623390c67abb4011d0d7c0be4e63c4e7411" +checksum = "bfd23bfa766e8f74bdd02783a09bc6bc8ad22bb11cb69b44969473cc40606576" dependencies = [ "bitflags", "cow-utils", @@ -1129,9 +1129,9 @@ dependencies = [ [[package]] name = "oxc_compat" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e1c101b66996fc42e0eb1185936398b06bc83761926ea745e736cbf58103bd4e" +checksum = "87fee33b02c0aac10d95e82528d83a18de80b36eb3089735553fc46e9a02f6cc" dependencies = [ "cow-utils", "oxc-browserslist", @@ -1142,18 +1142,18 @@ dependencies = [ [[package]] name = "oxc_data_structures" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8932e4c5ad3c6973548bf2f7750b778315012ecd7086617721d23f17b43e5a55" +checksum = "829101f9ff612a0a01f66bd0d92ae42841c124317b2cd067e00e358588e2380f" dependencies = [ "ropey", ] [[package]] name = "oxc_diagnostics" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "901588f26a8f1e7a0a8f7ebab60bf311bc9a1d22935e740a1b545c33b020f29f" +checksum = "867139409477751e9bb583922d335357948a3797ed425db7ed76a3f314f1e5b4" dependencies = [ "bytecount", "cow-utils", @@ -1169,9 +1169,9 @@ dependencies = [ [[package]] name = "oxc_ecmascript" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4127c1685ec3e85c34bcbe9b4055b1ce34bc0e2614c4bf5cf56c52a5424c7fc5" +checksum = "dbccdfc89f27c4121dcd58bde8065fc786e044adb02bf72e3597eff3eb12eab4" dependencies = [ "itoa", "memchr", @@ -1187,9 +1187,9 @@ dependencies = [ [[package]] name = "oxc_estree" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00c806bed591dc97e36678eeaaccb6e85ecc21766eaf6f8a77e7a261a4457a2c" +checksum = "50a08e107a7d8406ed92b6c6b5fe52091486797e9c403c28a8ecc9f656ff070e" dependencies = [ "itoa", "oxc_data_structures", @@ -1208,9 +1208,9 @@ dependencies = [ [[package]] name = "oxc_napi" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "628b6d819149d66ddd4d54dfa36ecb5a8b645b301ba36f1937259b8d574c1286" +checksum = "bbe778ee6075fcae13c3a01c8d3c557529164bad04faacd3d309b0fca4c868b7" dependencies = [ "napi", "napi-build", @@ -1224,9 +1224,9 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fd93cb9811da8634acfd28a864889d1bf68bce2c546a52372205afabd4a63e7" +checksum = "2bba04afea1b900540dd4e2cd75d86ffff57f9e4c1dcfe68702314c9a81841da" dependencies = [ "bitflags", "cow-utils", @@ -1248,9 +1248,9 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85fe16e0f852ba1b1085f08efec7b9d611ecaba1851ca6fecb7f91b09631714" +checksum = "6418c95b350802b0696d4ce7aa498c5b6be62ee15d1668956d1d350eff095d49" dependencies = [ "bitflags", "oxc_allocator", @@ -1293,9 +1293,9 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61b34d4fb57e1f91ed099708e09b7450960d34d3a706ee84be55f821da27021" +checksum = "7faadf1ec0cc8f88f04a7a79d80cfeeeb7e550e3fef50449680b185aa98b478a" dependencies = [ "itertools 0.15.0", "memchr", @@ -1342,9 +1342,9 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0bb9aed024358d262b9daab20b7aa7ae89b42946e549b52ff92ddfef033d0e1" +checksum = "109cc73d34598dd5f93f5cfcbca2c4ab139b78aec59cece5ff65212ece878f92" dependencies = [ "oxc_allocator", "oxc_ast_macros", @@ -1354,9 +1354,9 @@ dependencies = [ [[package]] name = "oxc_str" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b51303dd938569998ad07110fff48d76da59cfe47748a39833c4652424babb4" +checksum = "d4f292499ebd8bfdd7259a34e8156b8d00a4f555718d527f4858eb5db8847ec2" dependencies = [ "compact_str", "hashbrown 0.17.1", @@ -1369,9 +1369,9 @@ dependencies = [ [[package]] name = "oxc_syntax" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f832591474dac1e451b6619d9e9d6187f08445d9d73c47b331dedc34439eb81" +checksum = "9af4778625a495c0460feb876b5f206436405e5acb5831b7a77c6a5317c547d3" dependencies = [ "bitflags", "cow-utils", @@ -1390,9 +1390,9 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85e22f92c0a7005978913a68a8dd6af050bc5f1323724211452e46c6ac1e10e1" +checksum = "51c86f0003be3a4daa5bc917b383e4cbe2e6f4df054abda9392501215d09e7a1" dependencies = [ "base64", "compact_str", @@ -1416,13 +1416,14 @@ dependencies = [ "rustc-hash", "serde", "serde_json", + "smallvec", ] [[package]] name = "oxc_traverse" -version = "0.159.0" +version = "0.160.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87d49160912ade6eb58b7889a4be7b52df22397aef044de51a2dad7c66801d42" +checksum = "677f431956f85e2b471252642b38b820957b39ce074203287e3d2ea55a4c00fe" dependencies = [ "itoa", "oxc_allocator", diff --git a/Cargo.toml b/Cargo.toml index 3d41adce5c..8e00eb2bf9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,19 +87,19 @@ multiple_crate_versions = "allow" [workspace.dependencies] # External oxc crates from crates.io -oxc_allocator = "0.159" -oxc_ast = "0.159" -oxc_ast_visit = "0.159" -oxc_diagnostics = "0.159" -oxc_napi = "0.159" -oxc_parser = "0.159" -oxc_semantic = "0.159" -oxc_span = "0.159" -oxc_syntax = "0.159" +oxc_allocator = "0.160" +oxc_ast = "0.160" +oxc_ast_visit = "0.160" +oxc_diagnostics = "0.160" +oxc_napi = "0.160" +oxc_parser = "0.160" +oxc_semantic = "0.160" +oxc_span = "0.160" +oxc_syntax = "0.160" oxc_sourcemap = "9.0.0" -oxc_str = "0.159" -oxc_transformer = "0.159" -oxc_codegen = "0.159" +oxc_str = "0.160" +oxc_transformer = "0.160" +oxc_codegen = "0.160" # Internal oxc_angular_compiler = { path = "crates/oxc_angular_compiler" } diff --git a/crates/oxc_angular_compiler/src/browser.rs b/crates/oxc_angular_compiler/src/browser.rs index 54f29734dc..d4e7aa5dd9 100644 --- a/crates/oxc_angular_compiler/src/browser.rs +++ b/crates/oxc_angular_compiler/src/browser.rs @@ -163,15 +163,15 @@ impl<'a> VisitMut<'a> for SplitDecoratedStaticFields<'a> { let ClassElement::PropertyDefinition(prop) = &mut element else { unreachable!() }; let this = Expression::new_this_expression(SPAN, &ast); let target = match &prop.key { - PropertyKey::StaticIdentifier(id) if !prop.computed => { + PropertyKey::StaticIdentifier(id) => { let name = IdentifierName::new(id.span, id.name, &ast); AssignmentTarget::new_static_member_expression(SPAN, this, name, false, &ast) } - PropertyKey::StringLiteral(lit) if !prop.computed => { + PropertyKey::StaticStringLiteral(lit) => { let key = Expression::StringLiteral(lit.clone_in(allocator)); AssignmentTarget::new_computed_member_expression(SPAN, this, key, false, &ast) } - PropertyKey::NumericLiteral(lit) if !prop.computed => { + PropertyKey::StaticNumericLiteral(lit) => { let key = Expression::NumericLiteral(lit.clone_in(allocator)); AssignmentTarget::new_computed_member_expression(SPAN, this, key, false, &ast) } diff --git a/crates/oxc_angular_compiler/src/class_metadata/builders.rs b/crates/oxc_angular_compiler/src/class_metadata/builders.rs index fd0f8bf40d..9602d52eb7 100644 --- a/crates/oxc_angular_compiler/src/class_metadata/builders.rs +++ b/crates/oxc_angular_compiler/src/class_metadata/builders.rs @@ -1696,7 +1696,9 @@ fn get_decorator_name<'a>(decorator: &Decorator<'a>) -> Option<&'a str> { fn get_property_key_name<'a>(key: &PropertyKey<'a>) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.into()), - PropertyKey::StringLiteral(lit) => lit.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().map(Ident::from) + } _ => None, } } @@ -1716,7 +1718,9 @@ fn member_key_name<'a>( let quoted = |value: oxc_str::JSStr<'a>| Some((js_str_to_ident(value, allocator), true)); match key { PropertyKey::StaticIdentifier(id) => Some((id.name.into(), false)), - PropertyKey::StringLiteral(lit) => quoted(lit.value), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + quoted(lit.value) + } PropertyKey::TemplateLiteral(tpl) if tpl.expressions.is_empty() => { tpl.quasis.first().and_then(|q| q.value.cooked.and_then(quoted)) } diff --git a/crates/oxc_angular_compiler/src/component/decorator.rs b/crates/oxc_angular_compiler/src/component/decorator.rs index 82b38651b0..fcab6a0199 100644 --- a/crates/oxc_angular_compiler/src/component/decorator.rs +++ b/crates/oxc_angular_compiler/src/component/decorator.rs @@ -81,7 +81,7 @@ pub fn extract_component_metadata<'a>( { // A string key with a lone surrogate (`'\uD800'`) has no `&str` // form and names no option, so it is ignored like any unknown key. - if matches!(&prop.key, PropertyKey::StringLiteral(lit) if lit.value.has_lone_surrogate()) + if matches!(&prop.key, PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) if lit.value.has_lone_surrogate()) { continue; } @@ -129,7 +129,7 @@ pub fn extract_component_metadata<'a>( // ngtsc's `reflectObjectLiteral` drops computed keys and // folds duplicate `styles` entries with `Map.set` — the // last one is the only one `parseDirectiveStyles` sees. - if prop.computed { + if prop.key.is_computed() { continue; } // Anything that isn't styles is an error `styles_error` reports. @@ -173,7 +173,7 @@ pub fn extract_component_metadata<'a>( // `host_metadata_error` doesn't see this property either — // an invalid one must not be applied here where it would // be dropped silently. - if !prop.computed { + if !prop.key.is_computed() { metadata.host = extract_host_metadata(allocator, &prop.value, source_text, consts); } @@ -385,7 +385,9 @@ fn get_property_key_name<'a>( ) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(lit) => lit.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().map(Ident::from) + } // Computed identifier reference: `[FOO]: bar` — resolve against same-file consts. PropertyKey::Identifier(id) => consts.get(id.name.as_str()).cloned(), _ => None, @@ -452,7 +454,7 @@ pub fn extract_component_resource_urls_of<'a>( if let ObjectPropertyKind::ObjectProperty(prop) = prop && is_metadata_property(prop) { - if matches!(&prop.key, PropertyKey::StringLiteral(lit) if lit.value.has_lone_surrogate()) + if matches!(&prop.key, PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) if lit.value.has_lone_surrogate()) { continue; } @@ -530,9 +532,10 @@ fn read_deferred_imports<'a>( for property in &object.properties { let ObjectPropertyKind::ObjectProperty(property) = property else { continue }; let block = match &property.key { - _ if property.computed => continue, + _ if property.key.is_computed() => continue, PropertyKey::StaticIdentifier(id) => id.name, - PropertyKey::StringLiteral(literal) => match literal.value.as_str() { + PropertyKey::StaticStringLiteral(literal) + | PropertyKey::StringLiteral(literal) => match literal.value.as_str() { Some(name) => Ident::from(name), None => continue, }, diff --git a/crates/oxc_angular_compiler/src/component/hmr_fingerprint.rs b/crates/oxc_angular_compiler/src/component/hmr_fingerprint.rs index ac09dcd5ef..330640bec3 100644 --- a/crates/oxc_angular_compiler/src/component/hmr_fingerprint.rs +++ b/crates/oxc_angular_compiler/src/component/hmr_fingerprint.rs @@ -121,13 +121,15 @@ fn collect_excluded_ranges( if property.kind != PropertyKind::Init || property.method || property.shorthand - || property.computed + || property.key.is_computed() { continue; } let name = match &property.key { PropertyKey::StaticIdentifier(id) => Some(id.name.as_str()), - PropertyKey::StringLiteral(lit) => lit.value.as_str(), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str() + } _ => None, }; // `template` is a string; `styles` is a string or an array of them. diff --git a/crates/oxc_angular_compiler/src/component/hoist.rs b/crates/oxc_angular_compiler/src/component/hoist.rs index 5ec0d7f6e8..2e8b77f756 100644 --- a/crates/oxc_angular_compiler/src/component/hoist.rs +++ b/crates/oxc_angular_compiler/src/component/hoist.rs @@ -1290,7 +1290,7 @@ fn walk_class_eager_parts<'a>( ClassElement::MethodDefinition(method) => { // Computed keys fire at class-definition time regardless of // method kind. - if method.computed + if method.key.is_computed() && let Some(key_expr) = method.key.as_expression() { collect_expr_symbols(key_expr, semantic, out, called); @@ -1308,7 +1308,7 @@ fn walk_class_eager_parts<'a>( // class object, executed when called). Skip both. } ClassElement::PropertyDefinition(prop) => { - if prop.computed + if prop.key.is_computed() && let Some(key_expr) = prop.key.as_expression() { collect_expr_symbols(key_expr, semantic, out, called); @@ -1325,7 +1325,7 @@ fn walk_class_eager_parts<'a>( } } ClassElement::AccessorProperty(accessor) => { - if accessor.computed + if accessor.key.is_computed() && let Some(key_expr) = accessor.key.as_expression() { collect_expr_symbols(key_expr, semantic, out, called); @@ -1849,7 +1849,7 @@ fn collect_expr_symbols<'a>( ObjectPropertyKind::ObjectProperty(p) => { // Computed keys (e.g. `{ [TOKEN]: 1 }`) reference the // key identifier; static keys don't. - if p.computed { + if p.key.is_computed() { if let Some(key_expr) = p.key.as_expression() { collect_expr_symbols(key_expr, semantic, out, called); } @@ -2194,7 +2194,7 @@ fn collect_assignment_target_property_symbols<'a>( } } P::AssignmentTargetPropertyProperty(prop) => { - if prop.computed + if prop.name.is_computed() && let Some(key_expr) = prop.name.as_expression() { collect_expr_symbols(key_expr, semantic, out, called); diff --git a/crates/oxc_angular_compiler/src/component/import_elision.rs b/crates/oxc_angular_compiler/src/component/import_elision.rs index 1e2116528f..762e64b0ba 100644 --- a/crates/oxc_angular_compiler/src/component/import_elision.rs +++ b/crates/oxc_angular_compiler/src/component/import_elision.rs @@ -438,7 +438,7 @@ impl<'a> ImportElisionAnalyzer<'a> { for member in &type_lit.members { if let oxc_ast::ast::TSSignature::TSPropertySignature(prop_sig) = member { // Check if the property key is computed - if prop_sig.computed { + if prop_sig.key.is_computed() { Self::collect_idents_from_expr(&prop_sig.key, result); } // Recurse into the property's type annotation to find diff --git a/crates/oxc_angular_compiler/src/component/signal_debug_name.rs b/crates/oxc_angular_compiler/src/component/signal_debug_name.rs index 5fc5ebadb5..bbaffe33de 100644 --- a/crates/oxc_angular_compiler/src/component/signal_debug_name.rs +++ b/crates/oxc_angular_compiler/src/component/signal_debug_name.rs @@ -290,7 +290,7 @@ impl<'a> Visit<'a> for SignalDebugNameVisitor<'_> { if self.jit_signal_inputs.contains(&it.span) { return; } - let name = property_name_text(self.source, self.comments, &it.key, it.computed); + let name = property_name_text(self.source, self.comments, &it.key, it.key.is_computed()); self.transform(it.span, call, name); } @@ -300,7 +300,7 @@ impl<'a> Visit<'a> for SignalDebugNameVisitor<'_> { walk::walk_accessor_property(self, it); return; }; - let name = property_name_text(self.source, self.comments, &it.key, it.computed); + let name = property_name_text(self.source, self.comments, &it.key, it.key.is_computed()); self.transform(it.span, call, name); } } @@ -428,7 +428,7 @@ fn insert_debug_name_into_call_expression( if property.kind == PropertyKind::Init && !property.method && !property.shorthand - && !property.computed + && !property.key.is_computed() && matches!(&property.key, PropertyKey::StaticIdentifier(key) if key.name == "debugName")) }); diff --git a/crates/oxc_angular_compiler/src/component/transform.rs b/crates/oxc_angular_compiler/src/component/transform.rs index 732863d756..2e32f474df 100644 --- a/crates/oxc_angular_compiler/src/component/transform.rs +++ b/crates/oxc_angular_compiler/src/component/transform.rs @@ -1401,7 +1401,7 @@ fn decorator_forces_jit(decorator: &oxc_ast::ast::Decorator<'_>) -> bool { } let is_jit = match &prop.key { PropertyKey::StaticIdentifier(id) => id.name.as_str() == "jit", - PropertyKey::StringLiteral(s) => s.value == "jit", + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => s.value == "jit", _ => false, }; if is_jit { @@ -1539,7 +1539,7 @@ fn extract_all_jit_member_decorators( ClassElement::PropertyDefinition(prop) => { let (name, quoted) = match &prop.key { PropertyKey::StaticIdentifier(id) => (id.name.to_string(), false), - PropertyKey::StringLiteral(s) => { + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { (js_str_to_str(s.value).into_owned(), true) } _ => continue, @@ -1552,7 +1552,7 @@ fn extract_all_jit_member_decorators( } let (name, quoted) = match &method.key { PropertyKey::StaticIdentifier(id) => (id.name.to_string(), false), - PropertyKey::StringLiteral(s) => { + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { (js_str_to_str(s.value).into_owned(), true) } _ => continue, @@ -1562,7 +1562,7 @@ fn extract_all_jit_member_decorators( ClassElement::AccessorProperty(accessor) => { let (name, quoted) = match &accessor.key { PropertyKey::StaticIdentifier(id) => (id.name.to_string(), false), - PropertyKey::StringLiteral(s) => { + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { (js_str_to_str(s.value).into_owned(), true) } _ => continue, @@ -2162,8 +2162,12 @@ fn jit_signal_input_fields( for element in &class.body.body { let ClassElement::PropertyDefinition(prop) = element else { continue }; // The keys `extract_all_jit_member_decorators` lowers. - if !matches!(prop.key, PropertyKey::StaticIdentifier(_) | PropertyKey::StringLiteral(_)) - { + if !matches!( + prop.key, + PropertyKey::StaticIdentifier(_) + | PropertyKey::StaticStringLiteral(_) + | PropertyKey::StringLiteral(_) + ) { continue; } let Some(Expression::CallExpression(call)) = &prop.value else { continue }; @@ -2212,7 +2216,9 @@ fn extract_string_option( let ObjectPropertyKind::ObjectProperty(prop) = prop else { continue }; let key_matches = match &prop.key { PropertyKey::StaticIdentifier(id) => id.name.as_str() == option_name, - PropertyKey::StringLiteral(s) => s.value == option_name, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value == option_name + } _ => false, }; if !key_matches { @@ -2412,7 +2418,9 @@ fn build_jit_decorator_text<'a>( if let ObjectPropertyKind::ObjectProperty(prop) = prop { let key_name = match &prop.key { PropertyKey::StaticIdentifier(id) => Some(id.name.as_str()), - PropertyKey::StringLiteral(s) => s.value.as_str(), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value.as_str() + } _ => None, }; diff --git a/crates/oxc_angular_compiler/src/directive/decorator.rs b/crates/oxc_angular_compiler/src/directive/decorator.rs index d2d6c5341e..b0f76a0d24 100644 --- a/crates/oxc_angular_compiler/src/directive/decorator.rs +++ b/crates/oxc_angular_compiler/src/directive/decorator.rs @@ -184,7 +184,7 @@ pub fn extract_directive_metadata<'a>( // and `host_metadata_error` doesn't see this property // either — an invalid one must not be applied here // where it would be dropped silently. - if !prop.computed { + if !prop.key.is_computed() { host_from_decorator = extract_host_metadata(allocator, &prop.value, source_text, consts); } @@ -712,7 +712,9 @@ fn get_property_key_name<'a>( ) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(lit) => lit.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().map(Ident::from) + } // Computed identifier reference: `[FOO]: bar` — resolve against same-file consts. PropertyKey::Identifier(id) => consts.get(id.name.as_str()).cloned(), _ => None, @@ -838,7 +840,7 @@ pub(super) fn config_property<'a>( ) -> Option<&'a Expression<'a>> { config.properties.iter().rev().find_map(|prop| match prop { ObjectPropertyKind::ObjectProperty(prop) - if !prop.computed + if !prop.key.is_computed() && is_metadata_property(prop) && get_property_key_name(&prop.key, consts).is_some_and(|k| k == name) => { diff --git a/crates/oxc_angular_compiler/src/directive/dts_type.rs b/crates/oxc_angular_compiler/src/directive/dts_type.rs index 1231c115c1..5deb4a67b9 100644 --- a/crates/oxc_angular_compiler/src/directive/dts_type.rs +++ b/crates/oxc_angular_compiler/src/directive/dts_type.rs @@ -1147,7 +1147,7 @@ impl<'a> TypePrinter<'_, 'a> { &[(p.span.start, 8, "readonly")], )?; } - self.key_node(out, &p.key, p.computed)?; + self.key_node(out, &p.key, p.key.is_computed())?; if p.optional { let q = skip_trivia(self.source, p.key.span().end as usize); self.emit_node(out, self.pos_of(q as u32), q as u32 + 1, |s, o| { @@ -1194,7 +1194,7 @@ impl<'a> TypePrinter<'_, 'a> { }; self.modifiers(out, m.span.start, m.span.end, &[(m.span.start, len, word)])?; } - self.key_node(out, &m.key, m.computed)?; + self.key_node(out, &m.key, m.key.is_computed())?; if m.optional { let q = skip_trivia(self.source, m.key.span().end as usize); self.emit_node(out, self.pos_of(q as u32), q as u32 + 1, |s, o| { @@ -1280,8 +1280,10 @@ impl<'a> TypePrinter<'_, 'a> { fn key_text(&mut self, key: &PropertyKey<'a>) -> Option { Some(match key { PropertyKey::StaticIdentifier(id) => id.name.to_string(), - PropertyKey::StringLiteral(s) => quote_literal(s), - PropertyKey::NumericLiteral(n) => format_number_like_js(n.value), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => quote_literal(s), + PropertyKey::StaticNumericLiteral(n) | PropertyKey::NumericLiteral(n) => { + format_number_like_js(n.value) + } PropertyKey::TemplateLiteral(t) if t.expressions.is_empty() => self.slice(t.span), PropertyKey::Identifier(id) => self.computed_name(std::vec![id.name.as_str()])?, PropertyKey::StaticMemberExpression(m) => { @@ -1401,7 +1403,7 @@ impl<'a> TypePrinter<'_, 'a> { property: &BindingProperty<'a>, ) -> Option<()> { if !property.shorthand { - self.key_node(out, &property.key, property.computed)?; + self.key_node(out, &property.key, property.key.is_computed())?; self.write(out, ": "); } self.emit_node( diff --git a/crates/oxc_angular_compiler/src/directive/evaluator.rs b/crates/oxc_angular_compiler/src/directive/evaluator.rs index 8e39be9b9a..25a3cde14f 100644 --- a/crates/oxc_angular_compiler/src/directive/evaluator.rs +++ b/crates/oxc_angular_compiler/src/directive/evaluator.rs @@ -984,7 +984,8 @@ impl<'a> FileScope<'a> { } obj.properties.iter().rev().find_map(|p| match p { ObjectPropertyKind::ObjectProperty(p) - if !p.computed && p.key.static_name().is_some_and(|n| n == *k) => + if !p.key.is_computed() + && p.key.static_name().is_some_and(|n| n == *k) => { Some(&p.value) } @@ -1061,9 +1062,7 @@ fn collect_bindings<'a>( BindingPattern::ObjectPattern(p) => { for prop in &p.properties { path.push(match &prop.key { - PropertyKey::StaticIdentifier(id) if !prop.computed => { - PathKey::Key(id.name.as_str()) - } + PropertyKey::StaticIdentifier(id) => PathKey::Key(id.name.as_str()), _ => PathKey::Unknown, }); collect_bindings(&prop.value, path, out); @@ -1908,7 +1907,8 @@ impl<'s, 'a> Evaluator<'s, 'a> { if p.method || !matches!(p.kind, PropertyKind::Init) { return Value::Dynamic; } - let Some(key) = self.property_key(&p.key, p.computed, depth, frame) else { + let Some(key) = self.property_key(&p.key, p.key.is_computed(), depth, frame) + else { return Value::Dynamic; }; let value = match (&p.value, function_value(&p.value)) { @@ -2141,8 +2141,12 @@ impl<'s, 'a> Evaluator<'s, 'a> { } match key { PropertyKey::StaticIdentifier(id) => Some(id.name.to_string()), - PropertyKey::StringLiteral(s) => s.value.as_str().map(str::to_string), - PropertyKey::NumericLiteral(n) => Some(format_number_like_js(n.value)), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value.as_str().map(str::to_string) + } + PropertyKey::StaticNumericLiteral(n) | PropertyKey::NumericLiteral(n) => { + Some(format_number_like_js(n.value)) + } _ => None, } } diff --git a/crates/oxc_angular_compiler/src/directive/property_decorators.rs b/crates/oxc_angular_compiler/src/directive/property_decorators.rs index 8ad28a703e..30777a0992 100644 --- a/crates/oxc_angular_compiler/src/directive/property_decorators.rs +++ b/crates/oxc_angular_compiler/src/directive/property_decorators.rs @@ -299,9 +299,9 @@ pub(crate) fn member_access_level( /// entirely: it can raise none of the member diagnostics. pub(crate) fn member_name(element: &ClassElement<'_>) -> Option { let (key, computed) = match element { - ClassElement::PropertyDefinition(p) => (&p.key, p.computed), - ClassElement::AccessorProperty(p) => (&p.key, p.computed), - ClassElement::MethodDefinition(m) => (&m.key, m.computed), + ClassElement::PropertyDefinition(p) => (&p.key, p.key.is_computed()), + ClassElement::AccessorProperty(p) => (&p.key, p.key.is_computed()), + ClassElement::MethodDefinition(m) => (&m.key, m.key.is_computed()), _ => return None, }; if computed { @@ -311,7 +311,9 @@ pub(crate) fn member_name(element: &ClassElement<'_>) -> Option { PropertyKey::StaticIdentifier(id) => Some(id.name.to_string()), // A lone surrogate (`'\uD800'`) is stored as // [`crate::util::lone_surrogate`] describes. - PropertyKey::StringLiteral(lit) => Some(js_str_to_str(lit.value).into_owned()), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + Some(js_str_to_str(lit.value).into_owned()) + } PropertyKey::PrivateIdentifier(id) => Some(format!("#{}", id.name)), _ => None, } @@ -391,7 +393,7 @@ pub(crate) fn literal_alias_error<'a>( // `propertyNameToString` skips a computed key, so `['alias']` is not // an `alias` upstream. if !is_metadata_property(prop) - || prop.computed + || prop.key.is_computed() || !get_property_key_name(&prop.key).is_some_and(|key| key == "alias") { continue; @@ -413,7 +415,9 @@ pub(crate) fn literal_alias_error<'a>( fn get_property_key_name<'a>(key: &PropertyKey<'a>) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(lit) => lit.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().map(Ident::from) + } _ => None, } } @@ -693,7 +697,7 @@ fn options_alias<'a>( // an `alias` upstream. if let ObjectPropertyKind::ObjectProperty(prop) = prop && is_metadata_property(prop) - && !prop.computed + && !prop.key.is_computed() && get_property_key_name(&prop.key).is_some_and(|key| key == "alias") { alias = extract_name_value(allocator, &prop.value); @@ -2142,16 +2146,23 @@ fn reflect_object_literal<'a>( let mut entries: std::vec::Vec<(String, &'a Expression<'a>)> = std::vec::Vec::new(); for prop in &obj.properties { let ObjectPropertyKind::ObjectProperty(prop) = prop else { continue }; - if prop.method || prop.computed || !matches!(prop.kind, oxc_ast::ast::PropertyKind::Init) { + if prop.method + || prop.key.is_computed() + || !matches!(prop.kind, oxc_ast::ast::PropertyKind::Init) + { continue; } let name = match &prop.key { PropertyKey::StaticIdentifier(id) => id.name.to_string(), - PropertyKey::StringLiteral(s) => match s.value.as_str() { - Some(name) => name.to_string(), - None => continue, - }, - PropertyKey::NumericLiteral(n) => n.value.to_string(), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + match s.value.as_str() { + Some(name) => name.to_string(), + None => continue, + } + } + PropertyKey::StaticNumericLiteral(n) | PropertyKey::NumericLiteral(n) => { + n.value.to_string() + } _ => continue, }; // A Map keeps the first key's position and the last value. diff --git a/crates/oxc_angular_compiler/src/dts_inject.rs b/crates/oxc_angular_compiler/src/dts_inject.rs index a0c2981f3e..32e73f719c 100644 --- a/crates/oxc_angular_compiler/src/dts_inject.rs +++ b/crates/oxc_angular_compiler/src/dts_inject.rs @@ -280,14 +280,13 @@ fn find_qualified_class_body<'a, 'b>( /// The member's name as written, if it is a non-computed static or string /// literal key. +/// A non-computed member name (`a`, `"a"`, `1`). Callers skip computed keys. fn property_key_name(key: &PropertyKey<'_>) -> Option { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.to_string()), - _ => match key.as_expression() { - Some(Expression::StringLiteral(lit)) => lit.value.as_str().map(str::to_string), - Some(Expression::NumericLiteral(lit)) => Some(lit.value.to_string()), - _ => None, - }, + PropertyKey::StaticStringLiteral(lit) => lit.value.as_str().map(str::to_string), + PropertyKey::StaticNumericLiteral(lit) => Some(lit.value.to_string()), + _ => None, } } @@ -306,9 +305,9 @@ fn class_element_parts<'a, 'b>( ) -> (bool, bool, Option<&'b PropertyKey<'a>>) { match element { ClassElement::StaticBlock(_) | ClassElement::TSIndexSignature(_) => (false, false, None), - ClassElement::MethodDefinition(el) => (el.r#static, el.computed, Some(&el.key)), - ClassElement::PropertyDefinition(el) => (el.r#static, el.computed, Some(&el.key)), - ClassElement::AccessorProperty(el) => (el.r#static, el.computed, Some(&el.key)), + ClassElement::MethodDefinition(el) => (el.r#static, el.key.is_computed(), Some(&el.key)), + ClassElement::PropertyDefinition(el) => (el.r#static, el.key.is_computed(), Some(&el.key)), + ClassElement::AccessorProperty(el) => (el.r#static, el.key.is_computed(), Some(&el.key)), } } @@ -1107,6 +1106,20 @@ mod tests { ); } + #[test] + fn skips_a_member_the_class_declares_with_a_quoted_name() { + // `static "ɵfac"` and `static 1` are plain (not computed) names. + let declaration = DtsInjectDeclaration { + class_name: "X".into(), + members: "static ɵfac: i0.ɵɵFactoryDeclaration;\nstatic 1: number;".into(), + namespace_imports: [("i0".to_string(), CORE.to_string())].into_iter().collect(), + source_file: None, + }; + let source = + "export declare class X {\n static \"ɵfac\": unknown;\n static 1: number;\n}\n"; + assert_eq!(inject_dts_declarations(source, &[declaration]), source); + } + #[test] fn imports_the_namespace_of_an_indexed_type_query() { // `typeof i1["s-dir"]` (an export named by a string) is `i1` alone diff --git a/crates/oxc_angular_compiler/src/injectable/decorator.rs b/crates/oxc_angular_compiler/src/injectable/decorator.rs index 6d5014fcc0..108e92246e 100644 --- a/crates/oxc_angular_compiler/src/injectable/decorator.rs +++ b/crates/oxc_angular_compiler/src/injectable/decorator.rs @@ -325,7 +325,9 @@ fn is_injectable_decorator(decorator: &Decorator<'_>) -> bool { fn get_property_key_name<'a>(key: &'a PropertyKey<'a>) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(s) => s.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value.as_str().map(Ident::from) + } _ => None, } } diff --git a/crates/oxc_angular_compiler/src/linker/mod.rs b/crates/oxc_angular_compiler/src/linker/mod.rs index e89bbd9614..80557f1b8a 100644 --- a/crates/oxc_angular_compiler/src/linker/mod.rs +++ b/crates/oxc_angular_compiler/src/linker/mod.rs @@ -1057,16 +1057,20 @@ fn build_host_attrs( // (linker/src/ast/ast_value.ts), which assigns into a plain // `{}`: a `__proto__` key is lost there. PropertyKey::StaticIdentifier(ident) if ident.name == "__proto__" => continue, - PropertyKey::StringLiteral(s) if s.value.as_str() == Some("__proto__") => { + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) + if s.value.as_str() == Some("__proto__") => + { continue; } PropertyKey::StaticIdentifier(ident) => escape_string_for_linker(&ident.name), // A lone surrogate (`'\uD800'`) has no `&str`: keep the key // as written. - PropertyKey::StringLiteral(s) => match s.value.as_str() { - Some(key) => escape_string_for_linker(key), - None => source[s.span.start as usize..s.span.end as usize].to_string(), - }, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + match s.value.as_str() { + Some(key) => escape_string_for_linker(key), + None => source[s.span.start as usize..s.span.end as usize].to_string(), + } + } _ => continue, }; // Static strings (including template literals a bundler may have @@ -1602,14 +1606,16 @@ fn convert_inputs_to_definition_format(inputs_obj: &ObjectExpression<'_>, source PropertyKey::StaticIdentifier(ident) => { (quote_key(&ident.name), escape_string_for_linker(&ident.name)) } - PropertyKey::StringLiteral(s) => match s.value.as_str() { - Some(key) => (quote_key(key), escape_string_for_linker(key)), - // A lone surrogate (`'\uD800'`) has no `&str`: use the key as written. - None => { - let key = source[s.span.start as usize..s.span.end as usize].to_string(); - (key.clone(), key) + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + match s.value.as_str() { + Some(key) => (quote_key(key), escape_string_for_linker(key)), + // A lone surrogate (`'\uD800'`) has no `&str`: use the key as written. + None => { + let key = source[s.span.start as usize..s.span.end as usize].to_string(); + (key.clone(), key) + } } - }, + } _ => { // Fallback: use source text let span = p.span(); @@ -1755,10 +1761,12 @@ fn link_outputs(meta: &ObjectExpression<'_>, source: &str) -> Option { }; let key = match &p.key { PropertyKey::StaticIdentifier(ident) => quote_key(&ident.name), - PropertyKey::StringLiteral(s) => match s.value.as_str() { - Some(key) => quote_key(key), - None => return Some(as_written.to_string()), - }, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + match s.value.as_str() { + Some(key) => quote_key(key), + None => return Some(as_written.to_string()), + } + } _ => return Some(as_written.to_string()), }; let Some(value) = static_string_literal(&p.value, source) else { @@ -1923,10 +1931,12 @@ fn extract_host_metadata_input( let ObjectPropertyKind::ObjectProperty(p) = prop else { continue }; let key = match &p.key { PropertyKey::StaticIdentifier(ident) => ident.name.to_string(), - PropertyKey::StringLiteral(s) => match s.value.as_str() { - Some(key) => key.to_string(), - None => continue, - }, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + match s.value.as_str() { + Some(key) => key.to_string(), + None => continue, + } + } _ => continue, }; // Lost in Angular's linker, as in `build_host_attrs`. @@ -1953,10 +1963,12 @@ fn extract_host_metadata_input( let ObjectPropertyKind::ObjectProperty(p) = prop else { continue }; let key = match &p.key { PropertyKey::StaticIdentifier(ident) => ident.name.to_string(), - PropertyKey::StringLiteral(s) => match s.value.as_str() { - Some(key) => key.to_string(), - None => continue, - }, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + match s.value.as_str() { + Some(key) => key.to_string(), + None => continue, + } + } _ => continue, }; if key == "__proto__" { @@ -1983,7 +1995,7 @@ fn host_animation_attribute<'a>( } let key = match &prop.key { PropertyKey::StaticIdentifier(ident) => ident.name.as_str(), - PropertyKey::StringLiteral(s) => s.value.as_str()?, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => s.value.as_str()?, _ => return None, }; if !key.starts_with("animate.") { @@ -2394,7 +2406,9 @@ fn host_directive_entry_property<'a>( ObjectPropertyKind::ObjectProperty(prop) => { let key = match &prop.key { PropertyKey::StaticIdentifier(ident) => ident.name.as_str(), - PropertyKey::StringLiteral(s) => s.value.as_str()?, + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value.as_str()? + } _ => return None, }; (key == name).then_some(&prop.value) @@ -2440,7 +2454,9 @@ fn has_animate_leave_host(host: &ObjectExpression<'_>) -> bool { .filter_map(|prop| match prop { ObjectPropertyKind::ObjectProperty(p) => match &p.key { PropertyKey::StaticIdentifier(ident) => Some(ident.name.as_str()), - PropertyKey::StringLiteral(s) => s.value.as_str(), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value.as_str() + } _ => None, }, ObjectPropertyKind::SpreadProperty(_) => None, diff --git a/crates/oxc_angular_compiler/src/ng_module/decorator.rs b/crates/oxc_angular_compiler/src/ng_module/decorator.rs index cf59f1a3ed..ddc77c84ac 100644 --- a/crates/oxc_angular_compiler/src/ng_module/decorator.rs +++ b/crates/oxc_angular_compiler/src/ng_module/decorator.rs @@ -406,7 +406,9 @@ fn is_ng_module_call(callee: &Expression<'_>) -> bool { fn get_property_key_name<'a>(key: &PropertyKey<'a>) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(lit) => lit.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().map(Ident::from) + } _ => None, } } diff --git a/crates/oxc_angular_compiler/src/ng_module/injector_imports.rs b/crates/oxc_angular_compiler/src/ng_module/injector_imports.rs index bda08ea3e7..ac0160a4a7 100644 --- a/crates/oxc_angular_compiler/src/ng_module/injector_imports.rs +++ b/crates/oxc_angular_compiler/src/ng_module/injector_imports.rs @@ -187,7 +187,9 @@ pub fn injector_entries<'s>( } let key = match &property.key { PropertyKey::StaticIdentifier(id) => id.name.as_str(), - PropertyKey::StringLiteral(lit) => lit.value.as_str().unwrap_or_default(), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().unwrap_or_default() + } _ => continue, }; let list = match key { diff --git a/crates/oxc_angular_compiler/src/ng_module/module_with_providers.rs b/crates/oxc_angular_compiler/src/ng_module/module_with_providers.rs index f3fca54916..543bdacbfc 100644 --- a/crates/oxc_angular_compiler/src/ng_module/module_with_providers.rs +++ b/crates/oxc_angular_compiler/src/ng_module/module_with_providers.rs @@ -109,7 +109,7 @@ pub fn static_method_ng_module<'b, 'a>( .find_map(|element| match element { ClassElement::MethodDefinition(m) if m.r#static - && !m.computed + && !m.key.is_computed() && m.key.static_name().is_some_and(|key| key == method) => { Some(m) @@ -242,7 +242,7 @@ fn object_ng_module<'b, 'a>( if property.kind != oxc_ast::ast::PropertyKind::Init || property.method { return Some(ObjectModule::Dynamic); } - if property.computed { + if property.key.is_computed() { return None; } if property.key.static_name().is_some_and(|key| key == "ngModule") { @@ -496,7 +496,9 @@ pub fn read_module_lists( let ObjectPropertyKind::ObjectProperty(property) = property else { return None }; let key = match &property.key { PropertyKey::StaticIdentifier(id) => id.name.as_str(), - PropertyKey::StringLiteral(lit) => lit.value.as_str()?, + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str()? + } _ => return None, }; (crate::util::is_metadata_property(property) && key == name).then_some(&property.value) diff --git a/crates/oxc_angular_compiler/src/optimizer/adjust_static_members.rs b/crates/oxc_angular_compiler/src/optimizer/adjust_static_members.rs index 6ae47fb69d..03eca2a4bb 100644 --- a/crates/oxc_angular_compiler/src/optimizer/adjust_static_members.rs +++ b/crates/oxc_angular_compiler/src/optimizer/adjust_static_members.rs @@ -478,7 +478,7 @@ fn is_pure(expr: &Expression<'_>, bindings: &FxHashSet<&str>) -> bool { Expression::ObjectExpression(o) => o.properties.iter().all(|p| match p { ObjectPropertyKind::SpreadProperty(_) => false, ObjectPropertyKind::ObjectProperty(prop) => { - let key_pure = !prop.computed + let key_pure = !prop.key.is_computed() || prop.key.as_expression().is_some_and(|k| is_pure(k, bindings)); key_pure && (prop.method || matches!(prop.kind, PropertyKind::Init)) @@ -493,9 +493,10 @@ fn is_pure(expr: &Expression<'_>, bindings: &FxHashSet<&str>) -> bool { Expression::ClassExpression(c) => { c.heritage.as_ref().is_none_or(|h| is_pure(&h.expression, bindings)) && c.body.body.iter().all(|el| match el { - ClassElement::MethodDefinition(m) => !m.computed, + ClassElement::MethodDefinition(m) => !m.key.is_computed(), ClassElement::PropertyDefinition(p) => { - !p.computed && p.value.as_ref().is_none_or(|v| is_pure(v, bindings)) + !p.key.is_computed() + && p.value.as_ref().is_none_or(|v| is_pure(v, bindings)) } _ => false, }) diff --git a/crates/oxc_angular_compiler/src/output/oxc_converter.rs b/crates/oxc_angular_compiler/src/output/oxc_converter.rs index 1bca64c1fe..04f1f8f413 100644 --- a/crates/oxc_angular_compiler/src/output/oxc_converter.rs +++ b/crates/oxc_angular_compiler/src/output/oxc_converter.rs @@ -371,7 +371,7 @@ fn convert_object_expression<'a>( // Keep such objects as written rather than emitting an altered object. if obj.properties.iter().any(|prop| { matches!(prop, ObjectPropertyKind::ObjectProperty(p) if !is_plain_property(p) - || matches!(&p.key, PropertyKey::StringLiteral(lit) if lit.value.has_lone_surrogate())) + || matches!(&p.key, PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) if lit.value.has_lone_surrogate())) }) { return make_raw_source(allocator, source_text, obj.span); } @@ -381,12 +381,14 @@ fn convert_object_expression<'a>( /// Whether a property is a `key: value` pair with an identifier, string or number key. pub fn is_plain_property(p: &oxc_ast::ast::ObjectProperty<'_>) -> bool { !p.method - && !p.computed + && !p.key.is_computed() && p.kind == PropertyKind::Init && matches!( p.key, PropertyKey::StaticIdentifier(_) + | PropertyKey::StaticStringLiteral(_) | PropertyKey::StringLiteral(_) + | PropertyKey::StaticNumericLiteral(_) | PropertyKey::NumericLiteral(_) ) } @@ -409,7 +411,8 @@ pub fn convert_plain_properties<'a>( } // A quoted key with text outside ASCII keeps its source text, // as ngtsc copies the object as written. - if let PropertyKey::StringLiteral(lit) = &p.key + if let PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) = + &p.key && let Some(key) = string_literal_as_written(lit) && lit.value.as_str().is_some() { @@ -421,11 +424,13 @@ pub fn convert_plain_properties<'a>( PropertyKey::StaticIdentifier(id) => (id.name.clone().into(), false), // A key with a lone surrogate (`'\uD800'`) has no `&str` // form and the emitter re-quotes keys, so leave it out. - PropertyKey::StringLiteral(lit) => match lit.value.as_str() { - Some(key) => (Ident::from(key), true), - None => continue, - }, - PropertyKey::NumericLiteral(lit) => { + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + match lit.value.as_str() { + Some(key) => (Ident::from(key), true), + None => continue, + } + } + PropertyKey::StaticNumericLiteral(lit) | PropertyKey::NumericLiteral(lit) => { (Ident::from(allocator.alloc_str(&lit.value.to_string())), true) } _ => continue, diff --git a/crates/oxc_angular_compiler/src/pipe/decorator.rs b/crates/oxc_angular_compiler/src/pipe/decorator.rs index c516bf8646..08844c8c32 100644 --- a/crates/oxc_angular_compiler/src/pipe/decorator.rs +++ b/crates/oxc_angular_compiler/src/pipe/decorator.rs @@ -255,7 +255,9 @@ fn is_pipe_call(callee: &Expression<'_>) -> bool { fn get_property_key_name<'a>(key: &PropertyKey<'a>) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(lit) => lit.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(lit) | PropertyKey::StringLiteral(lit) => { + lit.value.as_str().map(Ident::from) + } _ => None, } } diff --git a/crates/oxc_angular_compiler/src/service/decorator.rs b/crates/oxc_angular_compiler/src/service/decorator.rs index cda6de5d4d..6b8ce1aaf4 100644 --- a/crates/oxc_angular_compiler/src/service/decorator.rs +++ b/crates/oxc_angular_compiler/src/service/decorator.rs @@ -161,7 +161,9 @@ fn is_service_decorator(decorator: &Decorator<'_>) -> bool { fn get_property_key_name<'a>(key: &'a PropertyKey<'a>) -> Option> { match key { PropertyKey::StaticIdentifier(id) => Some(id.name.clone().into()), - PropertyKey::StringLiteral(s) => s.value.as_str().map(Ident::from), + PropertyKey::StaticStringLiteral(s) | PropertyKey::StringLiteral(s) => { + s.value.as_str().map(Ident::from) + } _ => None, } } diff --git a/napi/angular-compiler/e2e/compare/package.json b/napi/angular-compiler/e2e/compare/package.json index 6f00597bac..0b796bf738 100644 --- a/napi/angular-compiler/e2e/compare/package.json +++ b/napi/angular-compiler/e2e/compare/package.json @@ -34,8 +34,8 @@ "@oxc-node/cli": "catalog:", "@oxc-node/core": "catalog:", "@types/node": "catalog:", - "oxc-parser": "^0.159.0", - "oxc-transform": "^0.159.0", + "oxc-parser": "^0.160.0", + "oxc-transform": "^0.160.0", "oxfmt": "catalog:", "typescript": "catalog:", "vitest": "catalog:" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cc54e23fde..286c4dff76 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -407,11 +407,11 @@ importers: specifier: 'catalog:' version: 24.1.0 oxc-parser: - specifier: ^0.159.0 - version: 0.159.0 + specifier: ^0.160.0 + version: 0.160.0 oxc-transform: - specifier: ^0.159.0 - version: 0.159.0 + specifier: ^0.160.0 + version: 0.160.0 oxfmt: specifier: 'catalog:' version: 0.73.0(vite-plus@1.8.0(@types/node@24.1.0)(@vitest/ui@5.1.1)(esbuild@0.28.2)(jiti@2.7.0)(oxlint-tsgolint@7.0.2008)(playwright@1.65.1)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(typescript@6.0.3)) @@ -1791,8 +1791,8 @@ packages: cpu: [arm] os: [android] - '@oxc-parser/binding-android-arm-eabi@0.159.0': - resolution: {integrity: sha512-9/yHxYVeyVzS3CEilO17axbtudUEmySuCL5x4nRz63nld21u4sdxXNhAOLeLCw/c8puAu9RmMb1+FWpq6jJYeQ==} + '@oxc-parser/binding-android-arm-eabi@0.160.0': + resolution: {integrity: sha512-IGhHufQ5uRhivrpzCcUJ92Mj4kYyFVhghaWk9hgZP/b+7WxdzdhFqBbH+PwEcfssDdIW10YHXcFvWib3kMX4Zg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] @@ -1803,8 +1803,8 @@ packages: cpu: [arm64] os: [android] - '@oxc-parser/binding-android-arm64@0.159.0': - resolution: {integrity: sha512-w9/NlA/feGMweV8DD1yzNwRAgusdGawCxqK+p3bVhDhXDeg8ahIeJxK/iVTOSA8s4dcnRS8hZYumznAFiKMf5Q==} + '@oxc-parser/binding-android-arm64@0.160.0': + resolution: {integrity: sha512-VxqVDFdTJG/QrJJ5pc/JIocKExtxCGcKf9qBsjIMS2VymVnHNdDu58d35pkgxIMFhxJ92YD79+66SBv86GXfCw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] @@ -1815,8 +1815,8 @@ packages: cpu: [arm64] os: [darwin] - '@oxc-parser/binding-darwin-arm64@0.159.0': - resolution: {integrity: sha512-ybQsbjJR9K/vpmUFfpp8mz7gUPVUZRgI4Oci+g0QwKZAh0m5fSzayXvGrrBIIEQwYPa+Q83kvFUluc0RlNZxTg==} + '@oxc-parser/binding-darwin-arm64@0.160.0': + resolution: {integrity: sha512-W5ULJkX2YAZAi6h2gkWCZCq1Ws5ZTIejBXjQP3tdf/UOeJaNQes4Vo5659/szYrFoBTef+WWcOU4HaY3TT4OYQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] @@ -1827,8 +1827,8 @@ packages: cpu: [x64] os: [darwin] - '@oxc-parser/binding-darwin-x64@0.159.0': - resolution: {integrity: sha512-J2wQ6NVZGRgnIaw1CHotZPwIqFtLb3Bm/rh5Bsa45/kaeRqYN21IiaSY0CM7HPd49tt5lWkLEgLzWF1RcGY/nw==} + '@oxc-parser/binding-darwin-x64@0.160.0': + resolution: {integrity: sha512-NNV6qakT/DX8SLqpe/gJ2ab2yDVJ+y6DKdJrbyTAdkpMjTP1KljiUxtAwoKVlHVPqfGMFPpSHIU9yL3FAWG/3w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] @@ -1839,8 +1839,8 @@ packages: cpu: [x64] os: [freebsd] - '@oxc-parser/binding-freebsd-x64@0.159.0': - resolution: {integrity: sha512-2m2Ei566aZdgHw1lpdEsYFJyvfTfMfYqZa7FqYSdLAsatNI4uj1G7dt9TuRKzSC8sd870MvIK2j/jBqHwYRo+g==} + '@oxc-parser/binding-freebsd-x64@0.160.0': + resolution: {integrity: sha512-P1Ay7bTnFJarHefoBOOrzZ8ynRluk0w92p/+PwkAYgg38Fh5Z2eQN2slzYqODyNQRDd2YrdecLV038V6KmqfXw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] @@ -1851,8 +1851,8 @@ packages: cpu: [arm] os: [linux] - '@oxc-parser/binding-linux-arm-gnueabihf@0.159.0': - resolution: {integrity: sha512-E2MRPHA/CKm81FU6wOoFbuGt7AoEdQYOjTiUgpNp5UgSFTX8Na5iR986TiG4GXxMaxHiXBMqRF2UXSqrVmUzrQ==} + '@oxc-parser/binding-linux-arm-gnueabihf@0.160.0': + resolution: {integrity: sha512-jw16rzFMeyaGRTVoHTiKAe5qHa6T5v54GX0TGoAvbEskN+hQcK0pZQ+pi5n3yGZ7b1+vTF2eBuqQP98mgcd6XA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] @@ -1863,8 +1863,8 @@ packages: cpu: [arm] os: [linux] - '@oxc-parser/binding-linux-arm-musleabihf@0.159.0': - resolution: {integrity: sha512-BMJjs3iDvWef8t/FoBdhF7RpyNTk5Zm/6BveT+6JNsl2FK6jy4zG71T8rfJbYEyP9TRJ7jnm8Glb0O6VeJXIrA==} + '@oxc-parser/binding-linux-arm-musleabihf@0.160.0': + resolution: {integrity: sha512-B55bnJn8XMC8NDBbEsL6Za2ZuFx6RIG49GMSlHYfpIc2pWQ6sbJRwarP+iKXnPgpJ1N7wfOAotMp58NUYjzQaQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] @@ -1876,8 +1876,8 @@ packages: os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-arm64-gnu@0.159.0': - resolution: {integrity: sha512-O+kPugGeoMKraX3ItOs0U0d6DvWVcgVf9jA6YaGmEnngJIBdcIU/DFmNlLJwRD+ZuiDl+nAM+C6JZ+cOXGN9wA==} + '@oxc-parser/binding-linux-arm64-gnu@0.160.0': + resolution: {integrity: sha512-YKVHxONDpWXTPfilLv2MKvaI7VbYnKHARr5wJ3KKKGk0OkauDc0tVFyZlKFwIy9+br46fh8AjTVCnz6+9gKxVA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] @@ -1890,8 +1890,8 @@ packages: os: [linux] libc: [musl] - '@oxc-parser/binding-linux-arm64-musl@0.159.0': - resolution: {integrity: sha512-7rRQZZZjdr49S7Y550sM2KWTQtLyhz74+l6A8dUgHq0rxqJWt1GHJnZPIVSc5G6dwtPcx39ZUYf8CXmaxIQu3g==} + '@oxc-parser/binding-linux-arm64-musl@0.160.0': + resolution: {integrity: sha512-uiVA0AemCVB3+oZ3JmjQCSEqiGIgl+o3+bLqORIfviJbyYlVUChoRh6cVbyyDG6zm4fW0RtQIdKq3fVYuNTA3Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] @@ -1904,8 +1904,8 @@ packages: os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-ppc64-gnu@0.159.0': - resolution: {integrity: sha512-5PXsuw1HeAPrGHFkoAuWtqKh6spW7s5u/OKORhlr2KMqrROAj3azYg0MfsjWbcSr5VBqnS2sp7aNz88MoEhSQw==} + '@oxc-parser/binding-linux-ppc64-gnu@0.160.0': + resolution: {integrity: sha512-h/tr4lWGdRXs4rUktl84Z0CprQhdDlxN4D82/cCcoKr0Kb4TEIJriXZVqHPznp12/uBWcV+BiihUBPbeyZm1KQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] @@ -1918,8 +1918,8 @@ packages: os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-riscv64-gnu@0.159.0': - resolution: {integrity: sha512-dd8F9Fv+gYN4S2O53vn+JtMrjZLyiwzdzH6u8iC2zrloDtRBLgJRXWWAZ03gCIoEtAmynoIDCl3HvSZD0sSp6Q==} + '@oxc-parser/binding-linux-riscv64-gnu@0.160.0': + resolution: {integrity: sha512-bA/Ba24KZYxorIUBHF2NbXM0OVY24xowGu4L0YBzpXhivt+ks1z8BT/c+BYGSfdFFqWrfNkC5TJjQGWdRkUHWQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] @@ -1932,8 +1932,8 @@ packages: os: [linux] libc: [musl] - '@oxc-parser/binding-linux-riscv64-musl@0.159.0': - resolution: {integrity: sha512-JHie9br++hDW7Y5z7Z3HgyUp+ToYzZLQ6r0XY1fdIAoKBDuknKdZh7uR1yxMflv3NzIRwCZk6j0vKiSAYnIuOA==} + '@oxc-parser/binding-linux-riscv64-musl@0.160.0': + resolution: {integrity: sha512-1uI9RghjO7/JQzkL9M/EDnG0Egy5z4v3k5TCUbPESZVUawHEmC52MMnCLe7f2CjMtiLjsm879CnO2HkRtsECNA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] @@ -1946,8 +1946,8 @@ packages: os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-s390x-gnu@0.159.0': - resolution: {integrity: sha512-BMvYKECH7wCb70/2xHF8R94jjIX8zG4n58fLkN9wdjTI079x7FOGPd+Gp5dfQ8ouv2pZJZ5p9wA1Kbm0BYMVYw==} + '@oxc-parser/binding-linux-s390x-gnu@0.160.0': + resolution: {integrity: sha512-1gaVKLXjT+UML8w8ypK93KUJurvUUmegqgQ/7qijDNpGCuogmTOIu0KgsYqL2hH//amY3AtfQhTTMlw9l363wA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] @@ -1960,8 +1960,8 @@ packages: os: [linux] libc: [glibc] - '@oxc-parser/binding-linux-x64-gnu@0.159.0': - resolution: {integrity: sha512-dH2vcVJi2sqSd2S51WB/LXyoJKho+TL7UoCDOuMZ+0mggFF9Gf4fjspo89hZnT/KrINBJg3UsGlfogHGHUmQNA==} + '@oxc-parser/binding-linux-x64-gnu@0.160.0': + resolution: {integrity: sha512-v44/JCrzpIof2jAJwF9W1j9l7mZKEaKihd8vBECBaNyIPcOiO4dtkeGX51MxnGmrJbsltdvTJb60VXLyMyAD2w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] @@ -1974,8 +1974,8 @@ packages: os: [linux] libc: [musl] - '@oxc-parser/binding-linux-x64-musl@0.159.0': - resolution: {integrity: sha512-QTuiVVnxBfelO1dokkRh5scfEkodbvpeiXfgnb7N3196/FIiCwVt44UXwnuU3RI2QjdeLQgr7CfN0SJ0UdvfGg==} + '@oxc-parser/binding-linux-x64-musl@0.160.0': + resolution: {integrity: sha512-NOT9x+x27Aitn+z6PggidaeHiKOpbglRXwzcHg+3VqbMT7nv/C3fnXKeVESy4o0u3Yb3mEocwPrtzlT5O53JSA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] @@ -1987,8 +1987,8 @@ packages: cpu: [arm64] os: [openharmony] - '@oxc-parser/binding-openharmony-arm64@0.159.0': - resolution: {integrity: sha512-lropr2CN3zGJ46uEY0AXviiXip6jRo3p7Hr6AqGFZx34EU9j58kWFHM3boqjjbrQkiPRBH/ZsTHolAf6ZehYmw==} + '@oxc-parser/binding-openharmony-arm64@0.160.0': + resolution: {integrity: sha512-kXFdUqEkbB1E66dfqu7sk65w0CaDVp+uPeJ4eOacxBuVgKk/poy+b8/XpFfV443UNB8LUUvzgTzyWLxDQte2Dw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] @@ -2003,8 +2003,8 @@ packages: cpu: [arm64] os: [win32] - '@oxc-parser/binding-win32-arm64-msvc@0.159.0': - resolution: {integrity: sha512-8Mpnrt5JMCz4YJZsliH2L4LivJ1Go8Z9VEFbjqIHmp7yUO9XMwqqvcetl+uqcBbj9+vTXDLw8GPWhiVLv670fA==} + '@oxc-parser/binding-win32-arm64-msvc@0.160.0': + resolution: {integrity: sha512-tzYHz6BOwmKCY2c8txeV06CkMzwEVQhFwug8OR75q2UVRMfksf9yD5UBjAeauPEiFhzNogg1RRyk8UZ0bjMXvg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] @@ -2015,8 +2015,8 @@ packages: cpu: [ia32] os: [win32] - '@oxc-parser/binding-win32-ia32-msvc@0.159.0': - resolution: {integrity: sha512-Rzwjdp1yCMXmBvf3/L6wMg2JnkRF7lLacSHvq7NwKMYD6gNwsdwnQrotnY3CCDyng7C2b0GKA9TtrN321LoU4w==} + '@oxc-parser/binding-win32-ia32-msvc@0.160.0': + resolution: {integrity: sha512-vyYZ4gcWUPuPANDj66eBnZ7+CFzUU0pzX28a5armxejWxM7onM3awHkM4PB/al8eEZ3MH8l0AprX/1jXrfGh7Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] @@ -2027,8 +2027,8 @@ packages: cpu: [x64] os: [win32] - '@oxc-parser/binding-win32-x64-msvc@0.159.0': - resolution: {integrity: sha512-cZIw4RN4DvSdFONNCbR3PR7vvfviFnlbU6pflZFXH9ll/fuaPkgcXrQq3DLISmDnZ3E3Vly9zHmIdJgjsD+W0w==} + '@oxc-parser/binding-win32-x64-msvc@0.160.0': + resolution: {integrity: sha512-KvENUAjmLfLBJBTF9yQ2wb5/DH41+FPM45oM7NMTgW0R3kN49NUj314SaDqqqkba+4cNTBt8NA2Ux5dekZB68w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -2049,124 +2049,127 @@ packages: '@oxc-project/types@0.159.0': resolution: {integrity: sha512-QWjWhxheluOJ82kDHNyps00UvRpQCtI34B5A/SzpgQycUD/79FuvT4I0aQIfE/bdPwKmX4QPftnywFBH6FxJhQ==} - '@oxc-transform/binding-android-arm-eabi@0.159.0': - resolution: {integrity: sha512-X3C4wT4sBQT34dnCQu0MfJsIikpfFuPZBw8G4S9efyV+eOLSYesQddS0Jj5uXi5+jzfyFrg5H/vx7jJdIZkqoA==} + '@oxc-project/types@0.160.0': + resolution: {integrity: sha512-gw4k9syEmnckbOgw2A2FU1TBDdX9hfwV9jEn/uio65pguPzwWiXQS3OIJDMEhv9m06tj9XiEe6RoD0YA+LgreA==} + + '@oxc-transform/binding-android-arm-eabi@0.160.0': + resolution: {integrity: sha512-yLLB/qCcKJzYi6p5jIr1h/yiDeQZkfRZoqHmaLHEubzh3Rg+lz8N5Hgs3YXaDfNS8PsDu0V/wyGr7iywVqDbDg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [android] - '@oxc-transform/binding-android-arm64@0.159.0': - resolution: {integrity: sha512-xkf2h6ZmaSJ6TiXWSZjLHweQx8pVMqT1czkWliF88RKC00zEuSFnwgyGWZO9RtuCPFsoqc5KRueKfLfCy7DuBQ==} + '@oxc-transform/binding-android-arm64@0.160.0': + resolution: {integrity: sha512-TRtafRAB6WaLbFuCq0b/BggET52T2gSVnJRol/E6mufUeWnyhrLkUvmygauCMtRNNg0RyHgL/Han1te51yLjkw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [android] - '@oxc-transform/binding-darwin-arm64@0.159.0': - resolution: {integrity: sha512-FiCtOhbXBb28uHVXIobjiTunHxA7s6gbGsbHSKGwdkp5n/irio0NhQRNk4fkCHKhmWddlq0wmABRyqpV0pBzhw==} + '@oxc-transform/binding-darwin-arm64@0.160.0': + resolution: {integrity: sha512-tZQj4Fe8qa6VqiDc6i56t/ywwytKeflm8Z4yYwHxHsXPIcJz6cxnHQbg+F20k3W6aDGGfR96IqLQcwSbrbKnLg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [darwin] - '@oxc-transform/binding-darwin-x64@0.159.0': - resolution: {integrity: sha512-qm90/BSwpcEdXy/jW5eT1/JxsubQQDSz94g2TA/tu3A++NbZN8Wtgl7T/dzFGTtZLRynmaWMwN0zpodtWec7wA==} + '@oxc-transform/binding-darwin-x64@0.160.0': + resolution: {integrity: sha512-uRg35qMtYLScxvdosZjVP8nGKVi1R344vkxT+vZDnvaz6acvSXgsk/C+/WVr4TATLp6m9+95TOutI+BpxlfjYA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [darwin] - '@oxc-transform/binding-freebsd-x64@0.159.0': - resolution: {integrity: sha512-scEPEk6kUA+ZOV3pjPHVwKoAGaSo8RHL8ZYQO6V2SYEuPC6u7vpgrysgvcW9UGnKvEFv0KPlOdVxrphzVjsFhw==} + '@oxc-transform/binding-freebsd-x64@0.160.0': + resolution: {integrity: sha512-jJyoZCLLn2VhfmxJ9MWhyr5IONoDe94RATo/zmoRF2KKN98kXr2y8KsYf/X7hAQ6zZ3FJOxd7SrBCWKX6dU2FA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [freebsd] - '@oxc-transform/binding-linux-arm-gnueabihf@0.159.0': - resolution: {integrity: sha512-zh22q9Ozy8tg5eGO7FJdfqW3u1jgfO7MdU2SRpZxNO4rHhXwqWrUnSDxIz46dW78vJrODGN0cVUg1vcALpfvDg==} + '@oxc-transform/binding-linux-arm-gnueabihf@0.160.0': + resolution: {integrity: sha512-mtIgG/qq/ZEa8FcefEgrOKgRFi4BPELgUgQkffsOP8Eogc2CMQnScDP5iit9yxLkFnwtCGn0FsONDnkcn4fm2w==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxc-transform/binding-linux-arm-musleabihf@0.159.0': - resolution: {integrity: sha512-sNPVtIDiVlEbSNXfUJBt2LOPc/5pRLIMBAQU7I3BG+XXjcMhlCIXyvVfkDHUnzoXLAqELd63JA/RPWtDv6e2uQ==} + '@oxc-transform/binding-linux-arm-musleabihf@0.160.0': + resolution: {integrity: sha512-OQ0ZcUfMec6iBbnSCRZ+08WkAzuVBYBmZpWSvqxqzEGXiIWMiZR9VIrmiMLjCYoAUBZ5At/XEJLXgyzEeX+K8g==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm] os: [linux] - '@oxc-transform/binding-linux-arm64-gnu@0.159.0': - resolution: {integrity: sha512-BiUPecXvCwauUeVNW6QyEqz239Foreq002S6YgLyOvHi9K0qXh1oJdPGqFobgIs9JHQH9SCzPST5eajUu7XADg==} + '@oxc-transform/binding-linux-arm64-gnu@0.160.0': + resolution: {integrity: sha512-79Cbl5GFDsJoZ3aH6FAfABJLkMakEjd5X0QQt1xWXnWq43STUG7nCOX+/7Z1exPUHdjKxmZ1NhhvW2YB/ReLDw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [glibc] - '@oxc-transform/binding-linux-arm64-musl@0.159.0': - resolution: {integrity: sha512-N+Q7noEalsfFFJhOs93iRzwsKVAw/chEJU6QAqmhBZq26fGr5mL98lPAczZ4SJ6Nl4oGy9t6fQIAFKgBgdsHRw==} + '@oxc-transform/binding-linux-arm64-musl@0.160.0': + resolution: {integrity: sha512-/jxn3A7jM7uNJl3WCPZQ8ljEKhHpDb+4DPGcxPabWHe91P2pY6g4CmuOjLoUgEhRBFWfFBbMG9ekNwx/q9nyYA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [linux] libc: [musl] - '@oxc-transform/binding-linux-ppc64-gnu@0.159.0': - resolution: {integrity: sha512-qbxj1uwj/g23pkMwTdvKLPYOwReCmE4Loa3MC1mptVT59ckLD26HwMb9xipemvKn93BBUYziEiOIglck4odufA==} + '@oxc-transform/binding-linux-ppc64-gnu@0.160.0': + resolution: {integrity: sha512-kSEgKT4RPMXJpYZPXG19E8Iht7Xg7jhAl72GF9AH2+4POij+sgb79rNs0E8zfMIUK75H+qBxgVCkHTOw8pwzGQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ppc64] os: [linux] libc: [glibc] - '@oxc-transform/binding-linux-riscv64-gnu@0.159.0': - resolution: {integrity: sha512-2KVWX3Jp90xoMsOKY8YVQtLT+1kU88XTILNlb9k/mwlDWs+rrHkM/idkN8u/kqKCX8byaPFYVXiK/bne2rRkag==} + '@oxc-transform/binding-linux-riscv64-gnu@0.160.0': + resolution: {integrity: sha512-xjCelFyGSHAFEy95FRYKpCETZJVeC8kpzLAxTrz3gw1EK5Xz0cWJp1U+msoCFF6U+yJHyoZ51zrIDCE6fWAfwg==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [glibc] - '@oxc-transform/binding-linux-riscv64-musl@0.159.0': - resolution: {integrity: sha512-MFG9A1UjGp6pqTfx4pepoYRS94p74+8dVRpEW1/soALVhiLPEA+1e0CW1zs8Z+7hOfDq15LweVho2fH7QG5t9g==} + '@oxc-transform/binding-linux-riscv64-musl@0.160.0': + resolution: {integrity: sha512-53SjmXKuUcrDrSlAEWW6qSZteCH7LG1EMeK/x1qF7ldkP0bG/hFentq89wNcT/LIWUZzAYDMiN47FoDWff6etw==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [riscv64] os: [linux] libc: [musl] - '@oxc-transform/binding-linux-s390x-gnu@0.159.0': - resolution: {integrity: sha512-CJw574SAmNYYCUDjWHtw/yISLshv9qiGexefc1hUFylYqhrS0GCJZ4hiLB7zhxicFbcpTu/K3oIb7FVwsemaXg==} + '@oxc-transform/binding-linux-s390x-gnu@0.160.0': + resolution: {integrity: sha512-PdDe2/Hcnx3WXqcGd8J6dcCHXYq0PRKH/q/b01faH+WpJ3rVo1d3Rhw/TTR5MNQRTCrF/5oeLuGcryNafFWoCQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [s390x] os: [linux] libc: [glibc] - '@oxc-transform/binding-linux-x64-gnu@0.159.0': - resolution: {integrity: sha512-ZjSd3D+c2VVTDUctMZ4JkwYOWbZ4CAvAGwsn6r3zT12J41/oCWkamM2KeQZIjgGiNOaMToddHFai986f9iimbA==} + '@oxc-transform/binding-linux-x64-gnu@0.160.0': + resolution: {integrity: sha512-pNZ9D24ax9y+ePHqJK09XoC1/d2uvLBCle0x7juyxJR5jWAVGcQ1IHJOAt0mGDIqb8+GalZCXGQzoAgQn9ly0A==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [glibc] - '@oxc-transform/binding-linux-x64-musl@0.159.0': - resolution: {integrity: sha512-jWJ2fkFeNw9zcBOXjQeYLVLrvlxxy8EjhgjRNrz236QZaHNxxXlOem9wc7+dzrTLpfevrYdD3IlxJDdlTPqVAQ==} + '@oxc-transform/binding-linux-x64-musl@0.160.0': + resolution: {integrity: sha512-JAs05i/lbrH9gNXPadMPEHbgkzE36UuIZ/NK7NMpV4PN1cRkeK5NH7+c/SQZmY+UV7QeBzAzQf/5RbMN/lgrvA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [linux] libc: [musl] - '@oxc-transform/binding-openharmony-arm64@0.159.0': - resolution: {integrity: sha512-tvmYRSkcoPhN9FyzH6ZZ/0xsQp/i0rZBI4jIfkbC7eK+xl6BmzzBVu1pYG6u1wiuz0l/qx/ekqfrX624gSmh3A==} + '@oxc-transform/binding-openharmony-arm64@0.160.0': + resolution: {integrity: sha512-56O951UV9yXExALiPJDzLL3SgSU2TdaTQ/rYfjmro95zurPOPsrv/FcPqMOvlPjcZ/4jW0Qn8jZ3n0CVX/jUbA==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [openharmony] - '@oxc-transform/binding-win32-arm64-msvc@0.159.0': - resolution: {integrity: sha512-xGF9M/7bFmfikNlItn2HCKTivdSeWGAtgUijcOk9z6Kesozoy7agoHVC8xKJAyAiKJlxdOD5tv18jeeJboAWQg==} + '@oxc-transform/binding-win32-arm64-msvc@0.160.0': + resolution: {integrity: sha512-kxUBgtUk41+w+Pf6x9H9s389ys3Ei4rUqppb3RUuZQiIzl7nuecxhTZhlep+fzhr5AsxwRZVOvLm3AXxQaFPmQ==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [arm64] os: [win32] - '@oxc-transform/binding-win32-ia32-msvc@0.159.0': - resolution: {integrity: sha512-JD//8jIp/EFGSyWQL6zJ4qmqx8Sh/Li+3Dv3J8tZYIJ1iUvXgoLkY/lVljm6dkUcXRHpU2KcApVnznZIQck9eA==} + '@oxc-transform/binding-win32-ia32-msvc@0.160.0': + resolution: {integrity: sha512-yZaNkYXPpC3GdTL2fMz72hwc8qEj4dz/zjXzF4xMnJSnyCig288xa9J0027vJqRyCpeOUeXPnfOfehxu4r75ew==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [ia32] os: [win32] - '@oxc-transform/binding-win32-x64-msvc@0.159.0': - resolution: {integrity: sha512-eJOxZQLUXAgoXltbQc2x9RW6D2cF4tr/omH0m+PnEmvdvqXiAydVdnG/VqPkmtPSD+pNwlcPq0DtmKfGJn4DvA==} + '@oxc-transform/binding-win32-x64-msvc@0.160.0': + resolution: {integrity: sha512-n1Hfl76bIOWtze1IMhndmASoLJPYUGEh4x/Aw+5T/YN2r6LutbPuI28zObrkVO3B1CFvyHzWJHGamcqHGZSI6Q==} engines: {node: ^20.19.0 || >=22.12.0} cpu: [x64] os: [win32] @@ -4806,12 +4809,12 @@ packages: resolution: {integrity: sha512-BKmaZZXp667kLC8Od/ivIkbw6yaxTSqw8ViI1Tvl21E6r+6NLdwDmo43LpL2Ebt/PDMu1d4tcdBucMSor+cL1g==} engines: {node: ^20.19.0 || >=22.12.0} - oxc-parser@0.159.0: - resolution: {integrity: sha512-Z1OaHU1EeTtobDHlYOAijfCTZr13PpWs/ZvwbJHaz5zOHfV6fLSmYZwB6klE8cggz51syi8HmLikHju0orJr4g==} + oxc-parser@0.160.0: + resolution: {integrity: sha512-IIc9PydmdnTcH1hucWCHfTUbAuHWPDEs8+WlmW7td3jJnaYrbzvPQgcc99FEJc0gURrVU8EskpAr2VMyJ8VbzA==} engines: {node: ^20.19.0 || >=22.12.0} - oxc-transform@0.159.0: - resolution: {integrity: sha512-qPiVoQihRQHYyL0apN5lztYnXYdaIeziYhiz9joNpUF+VQPVTOBGnT7K66CBYq3mQ7+yzcVt+HS9KlQADmvCcw==} + oxc-transform@0.160.0: + resolution: {integrity: sha512-5d5BROOcg5CGGHbDNgiMBKh0QlU/ag8VPU92RFHO42gxdJvS8E6xHgPOjJ3YtFuZaDipeanAWEz2So7LkOpx0g==} engines: {node: ^20.19.0 || >=22.12.0} oxfmt@0.73.0: @@ -6786,97 +6789,97 @@ snapshots: '@oxc-parser/binding-android-arm-eabi@0.158.0': optional: true - '@oxc-parser/binding-android-arm-eabi@0.159.0': + '@oxc-parser/binding-android-arm-eabi@0.160.0': optional: true '@oxc-parser/binding-android-arm64@0.158.0': optional: true - '@oxc-parser/binding-android-arm64@0.159.0': + '@oxc-parser/binding-android-arm64@0.160.0': optional: true '@oxc-parser/binding-darwin-arm64@0.158.0': optional: true - '@oxc-parser/binding-darwin-arm64@0.159.0': + '@oxc-parser/binding-darwin-arm64@0.160.0': optional: true '@oxc-parser/binding-darwin-x64@0.158.0': optional: true - '@oxc-parser/binding-darwin-x64@0.159.0': + '@oxc-parser/binding-darwin-x64@0.160.0': optional: true '@oxc-parser/binding-freebsd-x64@0.158.0': optional: true - '@oxc-parser/binding-freebsd-x64@0.159.0': + '@oxc-parser/binding-freebsd-x64@0.160.0': optional: true '@oxc-parser/binding-linux-arm-gnueabihf@0.158.0': optional: true - '@oxc-parser/binding-linux-arm-gnueabihf@0.159.0': + '@oxc-parser/binding-linux-arm-gnueabihf@0.160.0': optional: true '@oxc-parser/binding-linux-arm-musleabihf@0.158.0': optional: true - '@oxc-parser/binding-linux-arm-musleabihf@0.159.0': + '@oxc-parser/binding-linux-arm-musleabihf@0.160.0': optional: true '@oxc-parser/binding-linux-arm64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-arm64-gnu@0.159.0': + '@oxc-parser/binding-linux-arm64-gnu@0.160.0': optional: true '@oxc-parser/binding-linux-arm64-musl@0.158.0': optional: true - '@oxc-parser/binding-linux-arm64-musl@0.159.0': + '@oxc-parser/binding-linux-arm64-musl@0.160.0': optional: true '@oxc-parser/binding-linux-ppc64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-ppc64-gnu@0.159.0': + '@oxc-parser/binding-linux-ppc64-gnu@0.160.0': optional: true '@oxc-parser/binding-linux-riscv64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-riscv64-gnu@0.159.0': + '@oxc-parser/binding-linux-riscv64-gnu@0.160.0': optional: true '@oxc-parser/binding-linux-riscv64-musl@0.158.0': optional: true - '@oxc-parser/binding-linux-riscv64-musl@0.159.0': + '@oxc-parser/binding-linux-riscv64-musl@0.160.0': optional: true '@oxc-parser/binding-linux-s390x-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-s390x-gnu@0.159.0': + '@oxc-parser/binding-linux-s390x-gnu@0.160.0': optional: true '@oxc-parser/binding-linux-x64-gnu@0.158.0': optional: true - '@oxc-parser/binding-linux-x64-gnu@0.159.0': + '@oxc-parser/binding-linux-x64-gnu@0.160.0': optional: true '@oxc-parser/binding-linux-x64-musl@0.158.0': optional: true - '@oxc-parser/binding-linux-x64-musl@0.159.0': + '@oxc-parser/binding-linux-x64-musl@0.160.0': optional: true '@oxc-parser/binding-openharmony-arm64@0.158.0': optional: true - '@oxc-parser/binding-openharmony-arm64@0.159.0': + '@oxc-parser/binding-openharmony-arm64@0.160.0': optional: true '@oxc-parser/binding-wasm32-wasi@0.158.0': @@ -6889,19 +6892,19 @@ snapshots: '@oxc-parser/binding-win32-arm64-msvc@0.158.0': optional: true - '@oxc-parser/binding-win32-arm64-msvc@0.159.0': + '@oxc-parser/binding-win32-arm64-msvc@0.160.0': optional: true '@oxc-parser/binding-win32-ia32-msvc@0.158.0': optional: true - '@oxc-parser/binding-win32-ia32-msvc@0.159.0': + '@oxc-parser/binding-win32-ia32-msvc@0.160.0': optional: true '@oxc-parser/binding-win32-x64-msvc@0.158.0': optional: true - '@oxc-parser/binding-win32-x64-msvc@0.159.0': + '@oxc-parser/binding-win32-x64-msvc@0.160.0': optional: true '@oxc-project/runtime@0.159.0': {} @@ -6914,61 +6917,63 @@ snapshots: '@oxc-project/types@0.159.0': {} - '@oxc-transform/binding-android-arm-eabi@0.159.0': + '@oxc-project/types@0.160.0': {} + + '@oxc-transform/binding-android-arm-eabi@0.160.0': optional: true - '@oxc-transform/binding-android-arm64@0.159.0': + '@oxc-transform/binding-android-arm64@0.160.0': optional: true - '@oxc-transform/binding-darwin-arm64@0.159.0': + '@oxc-transform/binding-darwin-arm64@0.160.0': optional: true - '@oxc-transform/binding-darwin-x64@0.159.0': + '@oxc-transform/binding-darwin-x64@0.160.0': optional: true - '@oxc-transform/binding-freebsd-x64@0.159.0': + '@oxc-transform/binding-freebsd-x64@0.160.0': optional: true - '@oxc-transform/binding-linux-arm-gnueabihf@0.159.0': + '@oxc-transform/binding-linux-arm-gnueabihf@0.160.0': optional: true - '@oxc-transform/binding-linux-arm-musleabihf@0.159.0': + '@oxc-transform/binding-linux-arm-musleabihf@0.160.0': optional: true - '@oxc-transform/binding-linux-arm64-gnu@0.159.0': + '@oxc-transform/binding-linux-arm64-gnu@0.160.0': optional: true - '@oxc-transform/binding-linux-arm64-musl@0.159.0': + '@oxc-transform/binding-linux-arm64-musl@0.160.0': optional: true - '@oxc-transform/binding-linux-ppc64-gnu@0.159.0': + '@oxc-transform/binding-linux-ppc64-gnu@0.160.0': optional: true - '@oxc-transform/binding-linux-riscv64-gnu@0.159.0': + '@oxc-transform/binding-linux-riscv64-gnu@0.160.0': optional: true - '@oxc-transform/binding-linux-riscv64-musl@0.159.0': + '@oxc-transform/binding-linux-riscv64-musl@0.160.0': optional: true - '@oxc-transform/binding-linux-s390x-gnu@0.159.0': + '@oxc-transform/binding-linux-s390x-gnu@0.160.0': optional: true - '@oxc-transform/binding-linux-x64-gnu@0.159.0': + '@oxc-transform/binding-linux-x64-gnu@0.160.0': optional: true - '@oxc-transform/binding-linux-x64-musl@0.159.0': + '@oxc-transform/binding-linux-x64-musl@0.160.0': optional: true - '@oxc-transform/binding-openharmony-arm64@0.159.0': + '@oxc-transform/binding-openharmony-arm64@0.160.0': optional: true - '@oxc-transform/binding-win32-arm64-msvc@0.159.0': + '@oxc-transform/binding-win32-arm64-msvc@0.160.0': optional: true - '@oxc-transform/binding-win32-ia32-msvc@0.159.0': + '@oxc-transform/binding-win32-ia32-msvc@0.160.0': optional: true - '@oxc-transform/binding-win32-x64-msvc@0.159.0': + '@oxc-transform/binding-win32-x64-msvc@0.160.0': optional: true '@oxfmt/binding-android-arm-eabi@0.73.0': @@ -8974,51 +8979,51 @@ snapshots: '@oxc-parser/binding-win32-ia32-msvc': 0.158.0 '@oxc-parser/binding-win32-x64-msvc': 0.158.0 - oxc-parser@0.159.0: + oxc-parser@0.160.0: dependencies: - '@oxc-project/types': 0.159.0 + '@oxc-project/types': 0.160.0 optionalDependencies: - '@oxc-parser/binding-android-arm-eabi': 0.159.0 - '@oxc-parser/binding-android-arm64': 0.159.0 - '@oxc-parser/binding-darwin-arm64': 0.159.0 - '@oxc-parser/binding-darwin-x64': 0.159.0 - '@oxc-parser/binding-freebsd-x64': 0.159.0 - '@oxc-parser/binding-linux-arm-gnueabihf': 0.159.0 - '@oxc-parser/binding-linux-arm-musleabihf': 0.159.0 - '@oxc-parser/binding-linux-arm64-gnu': 0.159.0 - '@oxc-parser/binding-linux-arm64-musl': 0.159.0 - '@oxc-parser/binding-linux-ppc64-gnu': 0.159.0 - '@oxc-parser/binding-linux-riscv64-gnu': 0.159.0 - '@oxc-parser/binding-linux-riscv64-musl': 0.159.0 - '@oxc-parser/binding-linux-s390x-gnu': 0.159.0 - '@oxc-parser/binding-linux-x64-gnu': 0.159.0 - '@oxc-parser/binding-linux-x64-musl': 0.159.0 - '@oxc-parser/binding-openharmony-arm64': 0.159.0 - '@oxc-parser/binding-win32-arm64-msvc': 0.159.0 - '@oxc-parser/binding-win32-ia32-msvc': 0.159.0 - '@oxc-parser/binding-win32-x64-msvc': 0.159.0 - - oxc-transform@0.159.0: + '@oxc-parser/binding-android-arm-eabi': 0.160.0 + '@oxc-parser/binding-android-arm64': 0.160.0 + '@oxc-parser/binding-darwin-arm64': 0.160.0 + '@oxc-parser/binding-darwin-x64': 0.160.0 + '@oxc-parser/binding-freebsd-x64': 0.160.0 + '@oxc-parser/binding-linux-arm-gnueabihf': 0.160.0 + '@oxc-parser/binding-linux-arm-musleabihf': 0.160.0 + '@oxc-parser/binding-linux-arm64-gnu': 0.160.0 + '@oxc-parser/binding-linux-arm64-musl': 0.160.0 + '@oxc-parser/binding-linux-ppc64-gnu': 0.160.0 + '@oxc-parser/binding-linux-riscv64-gnu': 0.160.0 + '@oxc-parser/binding-linux-riscv64-musl': 0.160.0 + '@oxc-parser/binding-linux-s390x-gnu': 0.160.0 + '@oxc-parser/binding-linux-x64-gnu': 0.160.0 + '@oxc-parser/binding-linux-x64-musl': 0.160.0 + '@oxc-parser/binding-openharmony-arm64': 0.160.0 + '@oxc-parser/binding-win32-arm64-msvc': 0.160.0 + '@oxc-parser/binding-win32-ia32-msvc': 0.160.0 + '@oxc-parser/binding-win32-x64-msvc': 0.160.0 + + oxc-transform@0.160.0: optionalDependencies: - '@oxc-transform/binding-android-arm-eabi': 0.159.0 - '@oxc-transform/binding-android-arm64': 0.159.0 - '@oxc-transform/binding-darwin-arm64': 0.159.0 - '@oxc-transform/binding-darwin-x64': 0.159.0 - '@oxc-transform/binding-freebsd-x64': 0.159.0 - '@oxc-transform/binding-linux-arm-gnueabihf': 0.159.0 - '@oxc-transform/binding-linux-arm-musleabihf': 0.159.0 - '@oxc-transform/binding-linux-arm64-gnu': 0.159.0 - '@oxc-transform/binding-linux-arm64-musl': 0.159.0 - '@oxc-transform/binding-linux-ppc64-gnu': 0.159.0 - '@oxc-transform/binding-linux-riscv64-gnu': 0.159.0 - '@oxc-transform/binding-linux-riscv64-musl': 0.159.0 - '@oxc-transform/binding-linux-s390x-gnu': 0.159.0 - '@oxc-transform/binding-linux-x64-gnu': 0.159.0 - '@oxc-transform/binding-linux-x64-musl': 0.159.0 - '@oxc-transform/binding-openharmony-arm64': 0.159.0 - '@oxc-transform/binding-win32-arm64-msvc': 0.159.0 - '@oxc-transform/binding-win32-ia32-msvc': 0.159.0 - '@oxc-transform/binding-win32-x64-msvc': 0.159.0 + '@oxc-transform/binding-android-arm-eabi': 0.160.0 + '@oxc-transform/binding-android-arm64': 0.160.0 + '@oxc-transform/binding-darwin-arm64': 0.160.0 + '@oxc-transform/binding-darwin-x64': 0.160.0 + '@oxc-transform/binding-freebsd-x64': 0.160.0 + '@oxc-transform/binding-linux-arm-gnueabihf': 0.160.0 + '@oxc-transform/binding-linux-arm-musleabihf': 0.160.0 + '@oxc-transform/binding-linux-arm64-gnu': 0.160.0 + '@oxc-transform/binding-linux-arm64-musl': 0.160.0 + '@oxc-transform/binding-linux-ppc64-gnu': 0.160.0 + '@oxc-transform/binding-linux-riscv64-gnu': 0.160.0 + '@oxc-transform/binding-linux-riscv64-musl': 0.160.0 + '@oxc-transform/binding-linux-s390x-gnu': 0.160.0 + '@oxc-transform/binding-linux-x64-gnu': 0.160.0 + '@oxc-transform/binding-linux-x64-musl': 0.160.0 + '@oxc-transform/binding-openharmony-arm64': 0.160.0 + '@oxc-transform/binding-win32-arm64-msvc': 0.160.0 + '@oxc-transform/binding-win32-ia32-msvc': 0.160.0 + '@oxc-transform/binding-win32-x64-msvc': 0.160.0 oxfmt@0.73.0(vite-plus@1.8.0(@types/node@24.1.0)(@vitest/ui@5.1.1(vitest@5.1.1))(esbuild@0.28.2)(jiti@2.7.0)(oxlint-tsgolint@7.0.2008)(playwright@1.65.1)(sass-embedded@1.108.2)(sass@1.108.2)(tsx@4.23.15)(typescript@6.0.3)): dependencies: