diff --git a/Cargo.lock b/Cargo.lock index 0450952..e4c69d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -181,13 +181,13 @@ checksum = "63b7ef7a4be509357f4804d0a22e830daddb48f19fd604e4ad32ddce04a94c36" [[package]] name = "dashmap" -version = "6.0.1" +version = "6.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "804c8821570c3f8b70230c2ba75ffa5c0f9a4189b9a432b6656c536712acae28" +checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" dependencies = [ "cfg-if", "crossbeam-utils", - "hashbrown", + "hashbrown 0.14.5", "lock_api", "once_cell", "parking_lot_core", @@ -252,14 +252,20 @@ version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +[[package]] +name = "hashbrown" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb" + [[package]] name = "indexmap" -version = "2.4.0" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93ead53efc7ea8ed3cfb0c79fc8023fbb782a5432b52830b6518941cebe6505c" +checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" dependencies = [ "equivalent", - "hashbrown", + "hashbrown 0.15.0", "serde", ] @@ -352,7 +358,7 @@ dependencies = [ "owo-colors", "textwrap", "thiserror", - "unicode-width", + "unicode-width 0.1.13", ] [[package]] @@ -489,9 +495,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.19.0" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "outref" @@ -501,15 +507,15 @@ checksum = "4030760ffd992bef45b0ae3f10ce1aba99e33464c90d14dd7c039884963ddc7a" [[package]] name = "owo-colors" -version = "4.0.0" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" +checksum = "fb37767f6569cd834a413442455e0f066d0d522de8630436e2a1761d9726ba56" [[package]] name = "oxc" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bafee3fed7d463c3ef771ace3d0692e294e50d946cb13b4175c7615d5629027" +checksum = "7e6f17bb1b7da4e269e7f89153b0ea5b928856bde083b05de34f8a073a5ceb6f" dependencies = [ "oxc_allocator", "oxc_ast", @@ -558,9 +564,9 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ff0bca77a2d50ab7ad00c2e6041fa497e61b74bd8933bfedf1adb7fa23b6d69" +checksum = "b5c86018e4c158687698514494cb02b48b0367fd63e463c7b3846e565df53f46" dependencies = [ "allocator-api2", "bumpalo", @@ -568,14 +574,15 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8682a40306a94ed0c05165fdfa0ffd0bca275dd368b401765b26eb9d5c2d2ddc" +checksum = "761ab257d19f07de7f91bab40fd7b232e6e0c68164b9086434f416e960f28149" dependencies = [ "bitflags", "num-bigint", "oxc_allocator", "oxc_ast_macros", + "oxc_estree", "oxc_regular_expression", "oxc_span", "oxc_syntax", @@ -583,9 +590,9 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b09d1bd60764db308e540d7e0b2855e63f37ba03074b7baca303a219c4b15147" +checksum = "a58d52ec144ec10c6c890a5356f7859510aa37e3e2839abd91e419969628302e" dependencies = [ "proc-macro2", "quote", @@ -594,12 +601,14 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97980c48bb2ef79015bcd4dc9d7307080a3d3df6db64abf2dca199757f62b790" +checksum = "ef63e4a5b26bbc51cae765e1ee2d882f9f8e1e70c1675d28ac264575962b4eb5" dependencies = [ "bitflags", "itertools", + "nonmax", + "oxc_index", "oxc_syntax", "petgraph", "rustc-hash", @@ -607,10 +616,11 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cc62bcf2d1532d2983e65f1a57bbfd51e2093f49306e9aa2c68ce73fb06c17d" +checksum = "56b92d5e14118de64196e8e8557aad2bf5ff6fca36e8cd723409fcbaf1d40710" dependencies = [ + "assert-unchecked", "bitflags", "cow-utils", "daachorse", @@ -626,30 +636,58 @@ dependencies = [ "rustc-hash", ] +[[package]] +name = "oxc_data_structures" +version = "0.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5151a87b8bb4b6ea4110b37b2737ab10bdd1012ea8a1600e07a45e4069465c05" +dependencies = [ + "assert-unchecked", +] + [[package]] name = "oxc_diagnostics" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d13d2cfe0599ab204044a6a3b7e051f43ada33805ca962241cd093c6dbac6bcb" +checksum = "980c673834c9b2fa15eb2692d418df45c84294771fd364ab53f9abdf4d3e874b" dependencies = [ "miette", "owo-colors", "rustc-hash", "textwrap", - "unicode-width", + "unicode-width 0.2.0", ] +[[package]] +name = "oxc_ecmascript" +version = "0.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20243d6de6301a5265c85d9d8007bf3044be5311906ba1686570de67743904a3" +dependencies = [ + "num-bigint", + "num-traits", + "oxc_ast", + "oxc_span", + "oxc_syntax", +] + +[[package]] +name = "oxc_estree" +version = "0.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c30428989d3af8c8d868ec5fdd3e227865bbf7bc875e47785de368968282234" + [[package]] name = "oxc_index" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f8f41bef7cee40604b4e15f4439ae79cbb02ad0a3e357c3ecee64f1a2a4135f" +checksum = "2c33b9c780ed9ea47548248450b04da65b1e4e8023157403c37407a3210b675a" [[package]] name = "oxc_mangler" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db7a85cfdf8c2d191a6f102a8bbe3d116804fce0759cf59590440358c4d33ac1" +checksum = "a175f7b6873f7fd9df0de6fe11e5769622f8b8dacc31f9a92339208a0b804934" dependencies = [ "itertools", "oxc_ast", @@ -660,9 +698,9 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d9d3ad9f100094890cf87bd2f4c1197f8f2b56115c91e0eaa8da5b5b0aa2f7b" +checksum = "22251ed2d64a743481450f64e5d279193165b637dc3dce6f5eaa3eeb494d470b" dependencies = [ "assert-unchecked", "bitflags", @@ -673,6 +711,7 @@ dependencies = [ "oxc_allocator", "oxc_ast", "oxc_diagnostics", + "oxc_ecmascript", "oxc_regular_expression", "oxc_span", "oxc_syntax", @@ -682,13 +721,14 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f021c18692754a2647d862b2ff5bc2a33a3e74f25b4006a83a218ca971012ea" +checksum = "fbd944dbd4a2b479bda4e29472e1489bb3abd9efbf8a84397fbe3259944b39b4" dependencies = [ "oxc_allocator", "oxc_ast_macros", "oxc_diagnostics", + "oxc_estree", "oxc_span", "phf", "rustc-hash", @@ -717,9 +757,9 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "531b9114917e38919395594ea5f3d289b1e763249ccadf64a322094ca1d66ebf" +checksum = "7693d8e4f47f3b9346dc828fc0ac2f2cc0c795efc633d3c9516981e689c8c655" dependencies = [ "assert-unchecked", "indexmap", @@ -728,6 +768,7 @@ dependencies = [ "oxc_ast", "oxc_cfg", "oxc_diagnostics", + "oxc_ecmascript", "oxc_index", "oxc_span", "oxc_syntax", @@ -737,9 +778,9 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61beda59456de21699a848af5f01e5b8b5c314e1e693542566ed188c07c52c45" +checksum = "6e5eac041bff0e4392790431f54fc9bf8f0d37de68c22cac52f05219dd466d70" dependencies = [ "base64-simd", "cfg-if", @@ -752,21 +793,22 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "872f1d0c9422b43c07ab03de817b0c8cfde70e0b9b31bd9279cf87bfaba78694" +checksum = "74ea8734bdf818608fe5b92322ef1ad56c56896d83052b5d477f0197d09e7f15" dependencies = [ "compact_str", "miette", "oxc_allocator", "oxc_ast_macros", + "oxc_estree", ] [[package]] name = "oxc_syntax" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a4cb91daf6f98a036b245d24efc93bda2990c6aab1066d943d5ec6547e0070d" +checksum = "14ecf5a5134b738088f1a56fbae78aa4e478b07f27b5f4db3c07734e0c9e005a" dependencies = [ "assert-unchecked", "bitflags", @@ -774,6 +816,7 @@ dependencies = [ "nonmax", "oxc_allocator", "oxc_ast_macros", + "oxc_estree", "oxc_index", "oxc_span", "phf", @@ -784,18 +827,22 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c92adfab82bae90d52972bb01789f96679312fa419960af455d6fd44f4d088f" +checksum = "0cb03752e690f591d438c3b579e8db4add14251381168d6d9800076fa3044b84" dependencies = [ - "assert-unchecked", "base64", + "cow-utils", "dashmap", "indexmap", + "itoa", "oxc-browserslist", "oxc_allocator", "oxc_ast", + "oxc_data_structures", "oxc_diagnostics", + "oxc_ecmascript", + "oxc_parser", "oxc_regular_expression", "oxc_semantic", "oxc_span", @@ -810,15 +857,17 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.30.5" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d99fed14d07029902ae0e9a6fcc97789a41e1e1d88770008ff650f1a995725d7" +checksum = "30936f5767aecd22718c2fe2346d5a332fae9bbfbc6cc23ee62042e5ede57ca4" dependencies = [ "compact_str", "itoa", "memoffset", "oxc_allocator", "oxc_ast", + "oxc_data_structures", + "oxc_ecmascript", "oxc_semantic", "oxc_span", "oxc_syntax", @@ -1047,18 +1096,18 @@ checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4" [[package]] name = "serde" -version = "1.0.210" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "f55c3193aca71c12ad7890f1785d2b73e1b9f63a0bbc353c08ef26fe03fc56b5" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.214" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "de523f781f095e28fa605cdce0f8307e451cc0fd14e2eb4cd2e98a355b147766" dependencies = [ "proc-macro2", "quote", @@ -1067,9 +1116,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "indexmap", "itoa", @@ -1136,9 +1185,9 @@ checksum = "e9557cb6521e8d009c51a8666f09356f4b817ba9ba0981a305bd86aee47bd35c" [[package]] name = "syn" -version = "2.0.75" +version = "2.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9" +checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56" dependencies = [ "proc-macro2", "quote", @@ -1153,7 +1202,7 @@ checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" dependencies = [ "smawk", "unicode-linebreak", - "unicode-width", + "unicode-width 0.1.13", ] [[package]] @@ -1283,6 +1332,12 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" +[[package]] +name = "unicode-width" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd" + [[package]] name = "version_check" version = "0.9.5" diff --git a/Cargo.toml b/Cargo.toml index 0276eb8..eb4537d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ crate-type = ["cdylib"] [dependencies] napi = { version = "3.0.0-alpha", default-features = false, features = ["serde-json", "napi3"] } napi-derive = { version = "3.0.0-alpha", default-features = false, features = ["type-def"] } -oxc = { version = "0.30", features = ["codegen", "transformer", "sourcemap_concurrent", "semantic"] } +oxc = { version = "0.34", features = ["codegen", "transformer", "sourcemap_concurrent", "semantic"] } oxc_resolver = "1" phf = "0.11" serde = { version = "1.0", features = ["derive"] }