diff --git a/Cargo.lock b/Cargo.lock index 0450952..35f3203 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -173,21 +173,15 @@ dependencies = [ "syn", ] -[[package]] -name = "daachorse" -version = "1.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -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 +246,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", ] @@ -341,31 +341,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "miette" -version = "7.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4edc8853320c2a0dab800fbda86253c8938f6ea88510dc92c5f1ed20e794afc1" -dependencies = [ - "cfg-if", - "miette-derive", - "owo-colors", - "textwrap", - "thiserror", - "unicode-width", -] - -[[package]] -name = "miette-derive" -version = "7.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "mimalloc" version = "0.1.43" @@ -501,15 +476,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.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bafee3fed7d463c3ef771ace3d0692e294e50d946cb13b4175c7615d5629027" +checksum = "f6afccb94df5a07c076469aff782d6c38bacaab224d3d8bf79eed79da48acd2f" dependencies = [ "oxc_allocator", "oxc_ast", @@ -527,9 +502,9 @@ dependencies = [ [[package]] name = "oxc-browserslist" -version = "1.0.3" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50b5ad390a7cf69d5f574ea41eada88a7c0947272647703fe1ec6ce23bfe1714" +checksum = "d240f6572a29895f324ad834a42a0c4bad0739269a08d0181ad7d6db7537e0d1" dependencies = [ "nom", "rustc-hash", @@ -539,6 +514,31 @@ dependencies = [ "time", ] +[[package]] +name = "oxc-miette" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e03e63fd113c068b82d07c9c614b0b146c08a3ac0a4dface3ea1d1a9d14d549e" +dependencies = [ + "cfg-if", + "owo-colors", + "oxc-miette-derive", + "textwrap", + "thiserror", + "unicode-width 0.2.0", +] + +[[package]] +name = "oxc-miette-derive" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e21f680e8c5f1900297d394627d495351b9e37761f7bbf90116bd5eeb6e80967" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "oxc-node" version = "0.0.0" @@ -558,9 +558,9 @@ dependencies = [ [[package]] name = "oxc_allocator" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ff0bca77a2d50ab7ad00c2e6041fa497e61b74bd8933bfedf1adb7fa23b6d69" +checksum = "1f7e0128288409e0baa19061b1f60d4fb04afc0f9f088ca029038c3659b450fd" dependencies = [ "allocator-api2", "bumpalo", @@ -568,14 +568,15 @@ dependencies = [ [[package]] name = "oxc_ast" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8682a40306a94ed0c05165fdfa0ffd0bca275dd368b401765b26eb9d5c2d2ddc" +checksum = "ba349ebd8cfea7e5a8b1f9a9c2b7871ba6a51faa143bc8c13f45758642d9d380" dependencies = [ "bitflags", "num-bigint", "oxc_allocator", "oxc_ast_macros", + "oxc_estree", "oxc_regular_expression", "oxc_span", "oxc_syntax", @@ -583,9 +584,9 @@ dependencies = [ [[package]] name = "oxc_ast_macros" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b09d1bd60764db308e540d7e0b2855e63f37ba03074b7baca303a219c4b15147" +checksum = "4e9f31b5dcd33ee7ffe2a6024c587a6782477c38ba295961b758c0c7092d94a4" dependencies = [ "proc-macro2", "quote", @@ -594,12 +595,14 @@ dependencies = [ [[package]] name = "oxc_cfg" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97980c48bb2ef79015bcd4dc9d7307080a3d3df6db64abf2dca199757f62b790" +checksum = "5f5f09136f32ec5e3250581d6e7b85f943594281a911e0144473f87cf40110fe" dependencies = [ "bitflags", "itertools", + "nonmax", + "oxc_index", "oxc_syntax", "petgraph", "rustc-hash", @@ -607,15 +610,14 @@ dependencies = [ [[package]] name = "oxc_codegen" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cc62bcf2d1532d2983e65f1a57bbfd51e2093f49306e9aa2c68ce73fb06c17d" +checksum = "28a278976f674259397ec74239f1eb896698e84ff31a6770caf20bdd9ad2e085" dependencies = [ + "assert-unchecked", "bitflags", "cow-utils", - "daachorse", "nonmax", - "once_cell", "oxc_allocator", "oxc_ast", "oxc_index", @@ -626,30 +628,55 @@ dependencies = [ "rustc-hash", ] +[[package]] +name = "oxc_data_structures" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83466af2454ec51f2ff031b70e735c6f1ba3048a1ea3e2c52774f2e185ad5f58" +dependencies = [ + "assert-unchecked", +] + [[package]] name = "oxc_diagnostics" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d13d2cfe0599ab204044a6a3b7e051f43ada33805ca962241cd093c6dbac6bcb" +checksum = "b480fe1d6907758cf699ffa86178b72a03568b710bb60f7a5da2364c56818c81" dependencies = [ - "miette", - "owo-colors", + "oxc-miette", "rustc-hash", - "textwrap", - "unicode-width", ] +[[package]] +name = "oxc_ecmascript" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "795941861357175fc54583fb8da72b72c942d14a7eac821f037f27f7f94f7c2d" +dependencies = [ + "num-bigint", + "num-traits", + "oxc_ast", + "oxc_span", + "oxc_syntax", +] + +[[package]] +name = "oxc_estree" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c59e04c9c994165e27bbd855671e5b3121bbe46ed7b8148796a53563c96b286" + [[package]] name = "oxc_index" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f8f41bef7cee40604b4e15f4439ae79cbb02ad0a3e357c3ecee64f1a2a4135f" +checksum = "016a890eaebf3546ec77ab16057d9a93dabc929a6d3ecc973d8398b81d98dc30" [[package]] name = "oxc_mangler" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db7a85cfdf8c2d191a6f102a8bbe3d116804fce0759cf59590440358c4d33ac1" +checksum = "e1c3f77bfc9d3ebf78cffed8a13df09f3d09a975025d7407a9425490355a650b" dependencies = [ "itertools", "oxc_ast", @@ -660,9 +687,9 @@ dependencies = [ [[package]] name = "oxc_parser" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d9d3ad9f100094890cf87bd2f4c1197f8f2b56115c91e0eaa8da5b5b0aa2f7b" +checksum = "b41c6b8982d7ad2644ececbe7351fc58ea1ba26a97fdd4967aef470f40179e81" dependencies = [ "assert-unchecked", "bitflags", @@ -682,13 +709,14 @@ dependencies = [ [[package]] name = "oxc_regular_expression" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f021c18692754a2647d862b2ff5bc2a33a3e74f25b4006a83a218ca971012ea" +checksum = "460f937ad444b1c3b2ff4a85e53582d89692d7245e4b903415729faada0762f1" dependencies = [ "oxc_allocator", "oxc_ast_macros", "oxc_diagnostics", + "oxc_estree", "oxc_span", "phf", "rustc-hash", @@ -717,9 +745,9 @@ dependencies = [ [[package]] name = "oxc_semantic" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "531b9114917e38919395594ea5f3d289b1e763249ccadf64a322094ca1d66ebf" +checksum = "9601d9260f3aa3c9fa9ff4edd360fab3315655ffbe55121f81bf91ad396fafa4" dependencies = [ "assert-unchecked", "indexmap", @@ -728,6 +756,7 @@ dependencies = [ "oxc_ast", "oxc_cfg", "oxc_diagnostics", + "oxc_ecmascript", "oxc_index", "oxc_span", "oxc_syntax", @@ -737,9 +766,9 @@ dependencies = [ [[package]] name = "oxc_sourcemap" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61beda59456de21699a848af5f01e5b8b5c314e1e693542566ed188c07c52c45" +checksum = "81a4d86042489c37574d3927f112caf084fafbdf623a213de48565c03ed50c66" dependencies = [ "base64-simd", "cfg-if", @@ -752,21 +781,22 @@ dependencies = [ [[package]] name = "oxc_span" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "872f1d0c9422b43c07ab03de817b0c8cfde70e0b9b31bd9279cf87bfaba78694" +checksum = "96ffba81d3f1c167ac1dd7c857f6cfd7d9a23ba0ce64c269efd435e74f85cc0d" dependencies = [ "compact_str", - "miette", + "oxc-miette", "oxc_allocator", "oxc_ast_macros", + "oxc_estree", ] [[package]] name = "oxc_syntax" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a4cb91daf6f98a036b245d24efc93bda2990c6aab1066d943d5ec6547e0070d" +checksum = "cc897796fd60679e7515b20456fdcee9e51e782561c50515f9a58f0a26760a51" dependencies = [ "assert-unchecked", "bitflags", @@ -774,6 +804,7 @@ dependencies = [ "nonmax", "oxc_allocator", "oxc_ast_macros", + "oxc_estree", "oxc_index", "oxc_span", "phf", @@ -784,18 +815,22 @@ dependencies = [ [[package]] name = "oxc_transformer" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c92adfab82bae90d52972bb01789f96679312fa419960af455d6fd44f4d088f" +checksum = "3904dcede4ea4f89fe6e3f7108149131a0f5edb4376e957fe16f6e587c8ddafd" 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 +845,17 @@ dependencies = [ [[package]] name = "oxc_traverse" -version = "0.30.5" +version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d99fed14d07029902ae0e9a6fcc97789a41e1e1d88770008ff650f1a995725d7" +checksum = "954e0a1547438a1ee414dd1079eaeb69cf68530e6f118b0a55e46daafaeb86ce" dependencies = [ "compact_str", "itoa", "memoffset", "oxc_allocator", "oxc_ast", + "oxc_data_structures", + "oxc_ecmascript", "oxc_semantic", "oxc_span", "oxc_syntax", @@ -1047,18 +1084,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 +1104,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 +1173,9 @@ checksum = "e9557cb6521e8d009c51a8666f09356f4b817ba9ba0981a305bd86aee47bd35c" [[package]] name = "syn" -version = "2.0.75" +version = "2.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6af063034fc1935ede7be0122941bafa9bacb949334d090b77ca98b5817c7d9" +checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d" dependencies = [ "proc-macro2", "quote", @@ -1153,7 +1190,7 @@ checksum = "23d434d3f8967a09480fb04132ebe0a3e088c173e6d0ee7897abbdf4eab0f8b9" dependencies = [ "smawk", "unicode-linebreak", - "unicode-width", + "unicode-width 0.1.13", ] [[package]] @@ -1283,6 +1320,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..4a3b444 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.35", features = ["codegen", "transformer", "sourcemap_concurrent", "semantic"] } oxc_resolver = "1" phf = "0.11" serde = { version = "1.0", features = ["derive"] }