diff --git a/Cargo.lock b/Cargo.lock
index 4b170aa..d6d46c7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -58,9 +58,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.71"
+version = "1.0.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8"
+checksum = "f538837af36e6f6a9be0faa67f9a314f8119e4e4b5867c6ab40ed60360142519"
[[package]]
name = "ast_node"
@@ -71,7 +71,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -108,15 +108,18 @@ dependencies = [
[[package]]
name = "base64"
-version = "0.13.1"
+version = "0.21.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
[[package]]
-name = "base64"
-version = "0.21.7"
+name = "base64-simd"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
+checksum = "781dd20c3aff0bd194fe7d2a977dd92f21c173891f3a03b677359e5fa457e5d5"
+dependencies = [
+ "simd-abstraction",
+]
[[package]]
name = "better_scoped_tls"
@@ -135,9 +138,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.3.3"
+version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42"
+checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
[[package]]
name = "bitvec"
@@ -182,6 +185,12 @@ dependencies = [
"syn 1.0.105",
]
+[[package]]
+name = "bytes"
+version = "1.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "514de17de45fdb8dc022b1a7975556c53c86f9f0aa5f534b98977b171857c2c9"
+
[[package]]
name = "camino"
version = "1.1.4"
@@ -261,6 +270,16 @@ version = "2.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb"
+[[package]]
+name = "debugid"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d"
+dependencies = [
+ "serde",
+ "uuid",
+]
+
[[package]]
name = "diff"
version = "0.1.13"
@@ -285,9 +304,9 @@ dependencies = [
[[package]]
name = "either"
-version = "1.8.0"
+version = "1.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
+checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2"
[[package]]
name = "equivalent"
@@ -342,7 +361,7 @@ checksum = "3a0b11eeb173ce52f84ebd943d42e58813a2ebb78a6a3ff0a243b71c5199cd7b"
dependencies = [
"proc-macro2",
"swc_macros_common",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -422,15 +441,16 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hstr"
-version = "0.2.7"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "17fafeca18cf0927e23ea44d7a5189c10536279dfe9094e0dfa953053fbb5377"
+checksum = "96274be293b8877e61974a607105d09c84caebe9620b47774aa8a6b942042dd4"
dependencies = [
+ "hashbrown 0.14.3",
"new_debug_unreachable",
"once_cell",
"phf",
"rustc-hash",
- "smallvec",
+ "triomphe",
]
[[package]]
@@ -481,15 +501,14 @@ dependencies = [
[[package]]
name = "is-macro"
-version = "0.3.0"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4467ed1321b310c2625c5aa6c1b1ffc5de4d9e42668cf697a08fb033ee8265e"
+checksum = "59a85abdc13717906baccb5a1e435556ce0df215f242892f721dff62bf25288f"
dependencies = [
"Inflector",
- "pmutil",
"proc-macro2",
"quote",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -526,7 +545,6 @@ dependencies = [
"serde",
"serde_json",
"sha2",
- "swc_common",
"swc_core",
]
@@ -678,9 +696,9 @@ dependencies = [
[[package]]
name = "once_cell"
-version = "1.18.0"
+version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
+checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
[[package]]
name = "output_vt100"
@@ -691,6 +709,12 @@ dependencies = [
"winapi",
]
+[[package]]
+name = "outref"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f222829ae9293e33a9f5e9f440c6760a3d450a64affe1846486b140db81c1f4"
+
[[package]]
name = "overload"
version = "0.1.1"
@@ -762,7 +786,7 @@ dependencies = [
"phf_shared",
"proc-macro2",
"quote",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -780,17 +804,6 @@ version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
-[[package]]
-name = "pmutil"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52a40bc70c2c58040d2d8b167ba9a5ff59fc9dab7ad44771cfde3dcfde7a09c6"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn 2.0.23",
-]
-
[[package]]
name = "pretty_assertions"
version = "1.3.0"
@@ -805,9 +818,9 @@ dependencies = [
[[package]]
name = "proc-macro2"
-version = "1.0.63"
+version = "1.0.81"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b368fba921b0dce7e60f5e04ec15e565b3303972b42bcfde1d0713b881959eb"
+checksum = "3d1597b0c024618f09a9c3b8655b7e430397a36d23fdafec26d6965e9eec3eba"
dependencies = [
"unicode-ident",
]
@@ -843,9 +856,9 @@ dependencies = [
[[package]]
name = "quote"
-version = "1.0.29"
+version = "1.0.36"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "573015e8ab27661678357f27dc26460738fd2b6c86e46f386fde94cb5d913105"
+checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
dependencies = [
"proc-macro2",
]
@@ -938,12 +951,13 @@ dependencies = [
[[package]]
name = "rkyv"
-version = "0.7.42"
+version = "0.7.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0200c8230b013893c0b2d6213d6ec64ed2b9be2e0e016682b7224ff82cff5c58"
+checksum = "5cba464629b3394fc4dbc6f940ff8f5b4ff5c7aef40f29166fd4ad12acbc99c0"
dependencies = [
"bitvec",
"bytecheck",
+ "bytes",
"hashbrown 0.12.3",
"ptr_meta",
"rend",
@@ -955,9 +969,9 @@ dependencies = [
[[package]]
name = "rkyv_derive"
-version = "0.7.41"
+version = "0.7.44"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac1c672430eb41556291981f45ca900a0239ad007242d1cb4b4167af842db666"
+checksum = "a7dddfff8de25e6f62b9d64e6e432bf1c6736c57d20323e15ee10435fbda7c65"
dependencies = [
"proc-macro2",
"quote",
@@ -1055,22 +1069,22 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
[[package]]
name = "serde"
-version = "1.0.150"
+version = "1.0.198"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e326c9ec8042f1b5da33252c8a37e9ffbd2c9bef0155215b6e6c80c790e05f91"
+checksum = "9846a40c979031340571da2545a4e5b7c4163bdae79b301d5f86d03979451fcc"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.150"
+version = "1.0.198"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42a3df25b0713732468deadad63ab9da1f1fd75a48a15024b50363f128db627e"
+checksum = "e88edab869b01783ba905e7d0153f9fc1a6505a96e4ad3018011eedb838566d9"
dependencies = [
"proc-macro2",
"quote",
- "syn 1.0.105",
+ "syn 2.0.60",
]
[[package]]
@@ -1104,6 +1118,15 @@ dependencies = [
"lazy_static",
]
+[[package]]
+name = "simd-abstraction"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9cadb29c57caadc51ff8346233b5cec1d240b68ce55cf1afc764818791876987"
+dependencies = [
+ "outref",
+]
+
[[package]]
name = "simdutf8"
version = "0.1.4"
@@ -1141,20 +1164,29 @@ checksum = "f67ad224767faa3c7d8b6d91985b78e70a1324408abcb1cfcc2be4c06bc06043"
[[package]]
name = "sourcemap"
-version = "6.2.0"
+version = "8.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c46fdc1838ff49cf692226f5c2b0f5b7538f556863d0eca602984714667ac6e7"
+checksum = "208d40b9e8cad9f93613778ea295ed8f3c2b1824217c6cfc7219d3f6f45b96d4"
dependencies = [
- "base64 0.13.1",
+ "base64-simd",
+ "bitvec",
+ "data-encoding",
+ "debugid",
"if_chain",
- "lazy_static",
- "regex",
+ "rustc-hash",
"rustc_version",
"serde",
"serde_json",
+ "unicode-id-start",
"url",
]
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
+
[[package]]
name = "stacker"
version = "0.1.15"
@@ -1183,7 +1215,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -1216,9 +1248,9 @@ dependencies = [
[[package]]
name = "swc_atoms"
-version = "0.6.5"
+version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7d538eaaa6f085161d088a04cf0a3a5a52c5a7f2b3bd9b83f73f058b0ed357c0"
+checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125"
dependencies = [
"bytecheck",
"hstr",
@@ -1230,9 +1262,9 @@ dependencies = [
[[package]]
name = "swc_common"
-version = "0.33.15"
+version = "0.33.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3792c10fa5d3e93a705b31f13fdea4a6e68c3c20d4351e84ed1741b7864399cd"
+checksum = "a529796c240cd87da18d26d63f9de4c7ad3680cf0a04b95f0c37f4c4f0a0da63"
dependencies = [
"anyhow",
"ast_node",
@@ -1262,9 +1294,9 @@ dependencies = [
[[package]]
name = "swc_core"
-version = "0.87.28"
+version = "0.90.35"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b3e389aed344d9d738f7e0901a1778a8402f10e459556c6d3a7a5b4501bf4cf"
+checksum = "2b9e641c348c1e8b0e01430b4706b777ecb0873323b423a8e8e5515093583e43"
dependencies = [
"once_cell",
"swc_atoms",
@@ -1283,11 +1315,11 @@ dependencies = [
[[package]]
name = "swc_ecma_ast"
-version = "0.110.17"
+version = "0.112.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "79401a45da704f4fb2552c5bf86ee2198e8636b121cb81f8036848a300edd53b"
+checksum = "d1d5c33c22ad50e8e34b3080a6fb133316d2eaa7d00400fc5018151f5ca44c5a"
dependencies = [
- "bitflags 2.3.3",
+ "bitflags 2.5.0",
"bytecheck",
"is-macro",
"num-bigint",
@@ -1297,14 +1329,14 @@ dependencies = [
"string_enum",
"swc_atoms",
"swc_common",
- "unicode-id",
+ "unicode-id-start",
]
[[package]]
name = "swc_ecma_codegen"
-version = "0.146.55"
+version = "0.148.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa20d5c61563c5ec9ba469a7701512f4d6bc29790718cd198f43e61148e8aff2"
+checksum = "7188b2848402ce983f6c618a829b4ceb18d21eed7986782a7b7028cc234ede6b"
dependencies = [
"memchr",
"num-bigint",
@@ -1328,14 +1360,14 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
name = "swc_ecma_parser"
-version = "0.141.37"
+version = "0.143.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4d17401dd95048a6a62b777d533c0999dabdd531ef9d667e22f8ae2a2a0d294"
+checksum = "40b7faa481ac015b330f1c4bc8df2c9947242020e23ccdb10bc7a8ef84342509"
dependencies = [
"either",
"new_debug_unreachable",
@@ -1355,9 +1387,9 @@ dependencies = [
[[package]]
name = "swc_ecma_testing"
-version = "0.22.17"
+version = "0.22.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b73fd79980ad3182437a62dc0413bcd00e6157a7fcf5a64a86fa264ec6672ba"
+checksum = "7c5704ef494b1805bc4566ff566b964bc1e9d3fb0f0e046ad6392b09a54de844"
dependencies = [
"anyhow",
"hex",
@@ -1368,12 +1400,12 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.135.12"
+version = "0.137.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6f0efec63cc56f3f2b93d1367d16e684d1c6f4a6cb85436db2c91448867df2b"
+checksum = "660badfe2eed8b6213ec9dcd71aa0786f8fb46ffa012e0313bcba1fe4a9a5c73"
dependencies = [
"better_scoped_tls",
- "bitflags 2.3.3",
+ "bitflags 2.5.0",
"indexmap",
"once_cell",
"phf",
@@ -1391,13 +1423,13 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_testing"
-version = "0.138.12"
+version = "0.140.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecfd5d3bdcb529c4db2ac27fac59a9e1ce66975543d34f9ce60e7ee2cbc73f78"
+checksum = "7c0ea6f85b7bf04391a172d7a369e49865effa77ec3a6cd0e969a274cfcb982d"
dependencies = [
"ansi_term",
"anyhow",
- "base64 0.21.7",
+ "base64",
"hex",
"serde",
"serde_json",
@@ -1417,9 +1449,9 @@ dependencies = [
[[package]]
name = "swc_ecma_utils"
-version = "0.125.4"
+version = "0.127.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7cead1083e46b0f072a82938f16d366014468f7510350957765bb4d013496890"
+checksum = "15d40abfc4f3a7bfdf54d11ac705cc9dd0836c48bf085b359143b4d40b50cb31"
dependencies = [
"indexmap",
"num_cpus",
@@ -1435,9 +1467,9 @@ dependencies = [
[[package]]
name = "swc_ecma_visit"
-version = "0.96.17"
+version = "0.98.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1d0100c383fb08b6f34911ab6f925950416a5d14404c1cd520d59fb8dfbb3bf"
+checksum = "93692bdcdbb63db8f5e10fea5d202b5487cb27eb443aec424f4335c88f9864af"
dependencies = [
"num-bigint",
"swc_atoms",
@@ -1455,14 +1487,14 @@ checksum = "695a1d8b461033d32429b5befbf0ad4d7a2c4d6ba9cd5ba4e0645c615839e8e4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
name = "swc_error_reporters"
-version = "0.17.14"
+version = "0.17.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be42e786ee9bda3f72f7d7de791e1d7b49ab7f86ed54fdc5808681ae04406080"
+checksum = "3329e73f159a3d38d4cd5f606a0918eeff39f5bbdbdafd9b6fecb290d2e9a32d"
dependencies = [
"anyhow",
"miette",
@@ -1479,7 +1511,7 @@ checksum = "50176cfc1cbc8bb22f41c6fe9d1ec53fbe057001219b5954961b8ad0f336fce9"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -1499,14 +1531,14 @@ checksum = "3232db481484070637b20a155c064096c0ea1ba04fa2247b89b618661b3574f4"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
name = "swc_plugin_proxy"
-version = "0.39.17"
+version = "0.41.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f00d9e79d36925854ce4de73acf397a6882a0dccb5b248d1ec48202ac3f72ad"
+checksum = "7e09ebf5da9eb13f431ebfb916cd3378a87ffae927ba896261ebc9dc094457ae"
dependencies = [
"better_scoped_tls",
"rkyv",
@@ -1524,14 +1556,14 @@ checksum = "ff9719b6085dd2824fd61938a881937be14b08f95e2d27c64c825a9f65e052ba"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
name = "swc_visit"
-version = "0.5.8"
+version = "0.5.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b27078d8571abe23aa52ef608dd1df89096a37d867cf691cbb4f4c392322b7c9"
+checksum = "0263be55289abfe9c877ffef83d877b5bdfac036ffe2de793f48f5e47e41dbae"
dependencies = [
"either",
"swc_visit_macros",
@@ -1539,16 +1571,15 @@ dependencies = [
[[package]]
name = "swc_visit_macros"
-version = "0.5.9"
+version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fa8bb05975506741555ea4d10c3a3bdb0e2357cd58e1a4a4332b8ebb4b44c34d"
+checksum = "33fc817055fe127b4285dc85058596768bfde7537ae37da82c67815557f03e33"
dependencies = [
"Inflector",
- "pmutil",
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -1564,9 +1595,9 @@ dependencies = [
[[package]]
name = "syn"
-version = "2.0.23"
+version = "2.0.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59fb7d6d8281a51045d62b8eb3a7d1ce347b76f312af50cd3dc0af39c87c1737"
+checksum = "909518bc7b1c9b779f1bbf07f2929d35af9f0f37e47c6e9ef7f9dddc1e1821f3"
dependencies = [
"proc-macro2",
"quote",
@@ -1614,9 +1645,9 @@ dependencies = [
[[package]]
name = "testing"
-version = "0.35.16"
+version = "0.35.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42599f638bd2b48c2892cf330862aca433c86286ae776d75c5074ba3b4935ed8"
+checksum = "689e2661712768726869f62945ccbe5d76ab3a3957b88221275bebe22a0761c8"
dependencies = [
"ansi_term",
"cargo_metadata",
@@ -1646,7 +1677,7 @@ dependencies = [
"quote",
"regex",
"relative-path",
- "syn 2.0.23",
+ "syn 2.0.60",
]
[[package]]
@@ -1706,11 +1737,10 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tracing"
-version = "0.1.37"
+version = "0.1.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
+checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
dependencies = [
- "cfg-if",
"pin-project-lite",
"tracing-attributes",
"tracing-core",
@@ -1718,20 +1748,20 @@ dependencies = [
[[package]]
name = "tracing-attributes"
-version = "0.1.23"
+version = "0.1.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4017f8f45139870ca7e672686113917c71c7a6e02d4924eda67186083c03081a"
+checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7"
dependencies = [
"proc-macro2",
"quote",
- "syn 1.0.105",
+ "syn 2.0.60",
]
[[package]]
name = "tracing-core"
-version = "0.1.30"
+version = "0.1.32"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a"
+checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
dependencies = [
"once_cell",
"valuable",
@@ -1739,20 +1769,20 @@ dependencies = [
[[package]]
name = "tracing-log"
-version = "0.1.3"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78ddad33d2d10b1ed7eb9d1f518a5674713876e97e5bb9b7345a7984fbb4f922"
+checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
dependencies = [
- "lazy_static",
"log",
+ "once_cell",
"tracing-core",
]
[[package]]
name = "tracing-subscriber"
-version = "0.3.17"
+version = "0.3.18"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "30a651bc37f915e81f087d86e62a18eec5f79550c7faff886f7090b4ea757c77"
+checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b"
dependencies = [
"matchers",
"nu-ansi-term",
@@ -1766,6 +1796,16 @@ dependencies = [
"tracing-log",
]
+[[package]]
+name = "triomphe"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "859eb650cfee7434994602c3a68b25d77ad9e68c8a6cd491616ef86661382eb3"
+dependencies = [
+ "serde",
+ "stable_deref_trait",
+]
+
[[package]]
name = "typed-arena"
version = "2.0.1"
@@ -1790,6 +1830,12 @@ version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d70b6494226b36008c8366c288d77190b3fad2eb4c10533139c1c1f461127f1a"
+[[package]]
+name = "unicode-id-start"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8f73150333cb58412db36f2aca8f2875b013049705cc77b94ded70a1ab1f5da"
+
[[package]]
name = "unicode-ident"
version = "1.0.5"
diff --git a/Cargo.toml b/Cargo.toml
index 638203a..3ad383c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,8 +22,7 @@ serde = "1"
serde_json = "1.0.95"
regex = "1.7.3"
once_cell = "1.17.1"
-swc_common = "=0.33.15"
-swc_core = { version = "0.87.28", features = [
+swc_core = { version = "0.90.35", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
diff --git a/README.md b/README.md
index 54b95de..5898d57 100644
--- a/README.md
+++ b/README.md
@@ -95,7 +95,8 @@ So you need to select an appropriate version of the plugin to match compatible `
| `4.0.3` | `0.78.28` | `@swc/core@1.3.63` ~ `@swc/core@1.3.67`
`next@v13.4.8 ~ next@v13.4.10-canary.0` |
| `4.0.4` | `0.79.x` | `@swc/core@1.3.68` ~ `@swc/core@1.3.80`
`next@v13.4.10-canary.1` ~ |
| `4.0.5` | `0.87.x` | broken due incorrect version of `swc_common` |
-| `4.0.6` | `0.87.x` | `@swc/core@1.3.81 ~ @swc/core@1.3.105`
`~ next@v14.1.0` |
+| `4.0.6` | `0.87.x` | `@swc/core@1.3.81 ~ @swc/core@1.3.105`
`~ next@v14.1.0` |
+| `4.0.7` | `0.90.35` | `@swc/core@1.4.0 ~`
`next@14.1.1-canary.52 ~`
`@rspack/core@0.6.0 ~` |
This table may become outdated. If you don't see a particular version of `@swc/core` or `next` check the compatibility by referring to the upstream's [Selecting the version](https://swc.rs/docs/plugin/selecting-swc-core) article.
This will help you select the appropriate plugin version for your project.
diff --git a/examples/nextjs-13/.gitignore b/examples/nextjs/.gitignore
similarity index 100%
rename from examples/nextjs-13/.gitignore
rename to examples/nextjs/.gitignore
diff --git a/examples/nextjs-13/README.md b/examples/nextjs/README.md
similarity index 100%
rename from examples/nextjs-13/README.md
rename to examples/nextjs/README.md
diff --git a/examples/nextjs-13/lingui.config.js b/examples/nextjs/lingui.config.js
similarity index 100%
rename from examples/nextjs-13/lingui.config.js
rename to examples/nextjs/lingui.config.js
diff --git a/examples/nextjs-13/locales/cs/messages.po b/examples/nextjs/locales/cs/messages.po
similarity index 100%
rename from examples/nextjs-13/locales/cs/messages.po
rename to examples/nextjs/locales/cs/messages.po
diff --git a/examples/nextjs-13/locales/en/messages.po b/examples/nextjs/locales/en/messages.po
similarity index 100%
rename from examples/nextjs-13/locales/en/messages.po
rename to examples/nextjs/locales/en/messages.po
diff --git a/examples/nextjs-13/next.config.js b/examples/nextjs/next.config.js
similarity index 51%
rename from examples/nextjs-13/next.config.js
rename to examples/nextjs/next.config.js
index 91bd25f..cb05bac 100644
--- a/examples/nextjs-13/next.config.js
+++ b/examples/nextjs/next.config.js
@@ -1,3 +1,10 @@
+const path = require('node:path');
+
+const plugin = process.env.USE_LOCAL_PLUGIN_BINARY
+ ? path.join(__dirname, '../../target/wasm32-wasi/release/lingui_macro_plugin.wasm')
+ : '@lingui/swc-plugin';
+
+
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
@@ -7,7 +14,7 @@ const nextConfig = {
},
experimental: {
swcPlugins: [
- ['@lingui/swc-plugin', {}],
+ [plugin, {}],
],
},
};
diff --git a/examples/nextjs-13/package.json b/examples/nextjs/package.json
similarity index 62%
rename from examples/nextjs-13/package.json
rename to examples/nextjs/package.json
index 45a04ea..99c2f8a 100644
--- a/examples/nextjs-13/package.json
+++ b/examples/nextjs/package.json
@@ -4,28 +4,29 @@
"private": true,
"scripts": {
"dev": "next dev",
+ "dev:local-binary": "USE_LOCAL_PLUGIN_BINARY=true next dev",
"build": "next build",
+ "build:local-binary": "USE_LOCAL_PLUGIN_BINARY=true next build",
"start": "next start",
"lint": "next lint",
"lingui:extract": "lingui extract"
},
"dependencies": {
- "@lingui/core": "^4.7.0",
- "@lingui/react": "^4.7.0",
- "@next/font": "14.1.0",
+ "@lingui/core": "^4.10.0",
+ "@lingui/react": "^4.10.0",
"@types/node": "18.11.18",
"@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"make-plural": "^7.2.0",
- "next": "14.1.0",
+ "next": "14.2.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "4.9.4"
},
"devDependencies": {
- "@lingui/cli": "^4.7.0",
- "@lingui/loader": "^4.7.0",
- "@lingui/macro": "^4.7.0",
+ "@lingui/cli": "^4.10.0",
+ "@lingui/loader": "^4.10.0",
+ "@lingui/macro": "^4.10.0",
"@lingui/swc-plugin": "4.0.6"
}
}
diff --git a/examples/nextjs-13/public/favicon.ico b/examples/nextjs/public/favicon.ico
similarity index 100%
rename from examples/nextjs-13/public/favicon.ico
rename to examples/nextjs/public/favicon.ico
diff --git a/examples/nextjs-13/src/i18n.ts b/examples/nextjs/src/i18n.ts
similarity index 100%
rename from examples/nextjs-13/src/i18n.ts
rename to examples/nextjs/src/i18n.ts
diff --git a/examples/nextjs-13/src/pages/_app.tsx b/examples/nextjs/src/pages/_app.tsx
similarity index 100%
rename from examples/nextjs-13/src/pages/_app.tsx
rename to examples/nextjs/src/pages/_app.tsx
diff --git a/examples/nextjs-13/src/pages/index.tsx b/examples/nextjs/src/pages/index.tsx
similarity index 100%
rename from examples/nextjs-13/src/pages/index.tsx
rename to examples/nextjs/src/pages/index.tsx
diff --git a/examples/nextjs-13/src/styles/globals.css b/examples/nextjs/src/styles/globals.css
similarity index 100%
rename from examples/nextjs-13/src/styles/globals.css
rename to examples/nextjs/src/styles/globals.css
diff --git a/examples/nextjs-13/tsconfig.json b/examples/nextjs/tsconfig.json
similarity index 100%
rename from examples/nextjs-13/tsconfig.json
rename to examples/nextjs/tsconfig.json
diff --git a/examples/nextjs-13/yarn.lock b/examples/nextjs/yarn.lock
similarity index 92%
rename from examples/nextjs-13/yarn.lock
rename to examples/nextjs/yarn.lock
index b114fd6..11523bc 100644
--- a/examples/nextjs-13/yarn.lock
+++ b/examples/nextjs/yarn.lock
@@ -397,33 +397,33 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"
-"@lingui/babel-plugin-extract-messages@4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/babel-plugin-extract-messages/-/babel-plugin-extract-messages-4.7.0.tgz#cd1de537750eabf3aaa4855966f903fff6186405"
- integrity sha512-CROHpjSqLy71aGDskl5wFk47cCuEAsY1etAt6tDkq0iuHwpSebJpzSN58gQJybRTCqYA+3PTkqCADoeSvcTwRA==
+"@lingui/babel-plugin-extract-messages@4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/babel-plugin-extract-messages/-/babel-plugin-extract-messages-4.10.0.tgz#208f0c3dccc8c7ead189a8875ad83c523903a794"
+ integrity sha512-vhLQLfi1ISSo5vDFDyUoPgjBP6Cy2+7rrQWj9vU4GUEtvxUWNnr0EvrLnRBHjVU4mdrpQi/n7DH5PXuMbveVhA==
-"@lingui/cli@4.7.0", "@lingui/cli@^4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/cli/-/cli-4.7.0.tgz#3ea0b203271f38f78b7eb6f0f7f72def586f4977"
- integrity sha512-XGKGZOE5RF+Q74vCRP5gmiAidhwEbzSPsaZWYIAEuG8Oleo1saXAJJm5iKpoiOOTxl6ME9xp0nfIMmL2NCA1Dw==
+"@lingui/cli@4.10.0", "@lingui/cli@^4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/cli/-/cli-4.10.0.tgz#128d1a073b4940977950b59ee2f51e808d0de964"
+ integrity sha512-gG0Qnv1ExUlN4t/5wMYX9fXD8QilQn6n+gPwmDbWPDPX7zubW8OJADU2PNSSPDsCIzNGW7Hfx/zPwaocn3V8Lw==
dependencies:
"@babel/core" "^7.21.0"
"@babel/generator" "^7.21.1"
"@babel/parser" "^7.21.2"
"@babel/runtime" "^7.21.0"
"@babel/types" "^7.21.2"
- "@lingui/babel-plugin-extract-messages" "4.7.0"
- "@lingui/conf" "4.7.0"
- "@lingui/core" "4.7.0"
- "@lingui/format-po" "4.7.0"
- "@lingui/message-utils" "4.7.0"
+ "@lingui/babel-plugin-extract-messages" "4.10.0"
+ "@lingui/conf" "4.10.0"
+ "@lingui/core" "4.10.0"
+ "@lingui/format-po" "4.10.0"
+ "@lingui/message-utils" "4.10.0"
babel-plugin-macros "^3.0.1"
chalk "^4.1.0"
chokidar "3.5.1"
cli-table "0.3.6"
commander "^10.0.0"
convert-source-map "^2.0.0"
- date-fns "^2.16.1"
+ date-fns "^3.6.0"
esbuild "^0.17.10"
glob "^7.1.4"
inquirer "^7.3.3"
@@ -437,10 +437,10 @@
ramda "^0.27.1"
source-map "^0.8.0-beta.0"
-"@lingui/conf@4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/conf/-/conf-4.7.0.tgz#c088346fa61da698e5f68617501913291cee47fd"
- integrity sha512-j5prZL9PEFfQU7jtXrNIAGWB89KQkjEdYENwwdZyWQ9ZJkp8tcNqcYMTtqcU7vMh2lOJdu4WVuvjvnOHMO9RHQ==
+"@lingui/conf@4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/conf/-/conf-4.10.0.tgz#f8ebe7bc115051b82bb5823ecb9222fbe28a82c2"
+ integrity sha512-jHeuCMG25YWEWUQTl1QYz46/RJlQH+Nyx4Qt4uI9OiSXMJ5MiaHopj+Oi9qdI1q2iY0P1RhdwRegBcdET+yF8w==
dependencies:
"@babel/runtime" "^7.20.13"
chalk "^4.1.0"
@@ -449,60 +449,60 @@
jiti "^1.17.1"
lodash.get "^4.4.2"
-"@lingui/core@4.7.0", "@lingui/core@^4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/core/-/core-4.7.0.tgz#27957dd9ed599cedb5bebb2248b4254502e89e2e"
- integrity sha512-lr6CMDRztFgS5qna9pLA/MPZRgujN9SCIoQ1LvGZem94U4Qc7ptSwAG1LIET9b3qxRXJm5XOTrq0HefN2Qm1IA==
+"@lingui/core@4.10.0", "@lingui/core@^4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/core/-/core-4.10.0.tgz#7944cd49e3f6778f7a7be98f7ab64ccb0ec53b5f"
+ integrity sha512-KfwkghuCVFt3AxZlAIotTvIcopIpHj4prwG9v6iyrksLXoxKPQMBXutYGl/EIZE1KYQZdR6rjAaoilMl0pSGKA==
dependencies:
"@babel/runtime" "^7.20.13"
- "@lingui/message-utils" "4.7.0"
+ "@lingui/message-utils" "4.10.0"
unraw "^3.0.0"
-"@lingui/format-po@4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/format-po/-/format-po-4.7.0.tgz#6d050dba6a5f8da4d3e8ba28836ff4748f26aa64"
- integrity sha512-ptUp9nRt6mB9o82O61WzF8c2My/nfMv4cFt+L1oe5XA/+WLDEoOD2eEhu2PLd+/V6rtnnhqQjp3DzoQZ2I/HfA==
+"@lingui/format-po@4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/format-po/-/format-po-4.10.0.tgz#f86fbd093f832373ccd129effec31b1047771dc9"
+ integrity sha512-BhyC5Xmx9yJXFlNAUBboTT+k21sT8EkBW9uPRLaekkCUfYSj6hX+0lz/CJBurIUH/PDZJFucvzYaIIAFnEI4+Q==
dependencies:
- "@lingui/conf" "4.7.0"
- "@lingui/message-utils" "4.7.0"
- date-fns "^2.29.3"
+ "@lingui/conf" "4.10.0"
+ "@lingui/message-utils" "4.10.0"
+ date-fns "^3.6.0"
pofile "^1.1.4"
-"@lingui/loader@^4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/loader/-/loader-4.7.0.tgz#1c45a5a99b28b830823b0b44a6588485942cde0e"
- integrity sha512-j3yVbwMMHTBMBs1dikvES/W2V6nKKwnOTnj5dkgMDYRwKLSUPdLU2m1BcG8eIQh6EyPbHgOFosUzVF1tB75TeA==
+"@lingui/loader@^4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/loader/-/loader-4.10.0.tgz#7aa49d59da48676cad63e1d8b07b917f01c69242"
+ integrity sha512-XT7NSwj0MGhOTPEforaghu4mRJLqNYzqovXi8fcbaNFqoexqBgmseNSC2MsKKUpp/tpOLDROjTcE3+XMlrVq3w==
dependencies:
"@babel/runtime" "^7.20.13"
- "@lingui/cli" "4.7.0"
- "@lingui/conf" "4.7.0"
+ "@lingui/cli" "4.10.0"
+ "@lingui/conf" "4.10.0"
-"@lingui/macro@^4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/macro/-/macro-4.7.0.tgz#bbb0c79eece56f95204bc810b7e3585f7e632a4d"
- integrity sha512-r2I99yudMJ0pbTySoVmN0l/U4fF7dgsVZZeEpF82jwLwS+ND9dkJswYXUOuF6RPr5oVi2NpkJ0M4ZejDfCAAoA==
+"@lingui/macro@^4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/macro/-/macro-4.10.0.tgz#c0c909d318acbb4b2d2792f6c7266fd22a7e9830"
+ integrity sha512-u+rSqCfQOHPyNwpdq+69LfoOBN6hiQJf0pNOB88kxdVammv4ul9lqnnJW0+hz4gh9POX1jhXjbLf2pStTH1q9w==
dependencies:
"@babel/runtime" "^7.20.13"
"@babel/types" "^7.20.7"
- "@lingui/conf" "4.7.0"
- "@lingui/core" "4.7.0"
- "@lingui/message-utils" "4.7.0"
+ "@lingui/conf" "4.10.0"
+ "@lingui/core" "4.10.0"
+ "@lingui/message-utils" "4.10.0"
-"@lingui/message-utils@4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/message-utils/-/message-utils-4.7.0.tgz#48f72b924000fe70e4feb89a13b49cfc41a3a397"
- integrity sha512-JrGdxORRzefOh9qAkQYJchh+ehnWlLK9/kOG9x6VkV9aekWLk8vCVbXBh4Q707sTcIgCki8KwT1yuBMwZ2YBEg==
+"@lingui/message-utils@4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/message-utils/-/message-utils-4.10.0.tgz#2d575c5f2808b275c56495343b78c0b47d4443e6"
+ integrity sha512-p9Z4L4//ef1jpwqUR0hnILPbbqhVOXkLktY/EsZ7LMmvn18yhq4FjCtGsrorclTcTdtl0l7bqW4iEpEqGW91Gw==
dependencies:
"@messageformat/parser" "^5.0.0"
js-sha256 "^0.10.1"
-"@lingui/react@^4.7.0":
- version "4.7.0"
- resolved "https://registry.yarnpkg.com/@lingui/react/-/react-4.7.0.tgz#521cc1e21fa9c3830caf962e03f8d2f44397f6be"
- integrity sha512-a9SR+U6hobOL+/GPR11gObg9cOzQ4mcGhtUbXQx/WjlWDsau29oXna4vA5pRYiq58dpPXYrsg+ZENsXxNERCwA==
+"@lingui/react@^4.10.0":
+ version "4.10.0"
+ resolved "https://registry.yarnpkg.com/@lingui/react/-/react-4.10.0.tgz#56dce040659c94c1125640f8e399f68164b44ade"
+ integrity sha512-QBbgKnIEePbt2ktq/6AVi9q91TRbwvcdrruOMu3qqXBqcF4KMu7rf05M9tvk/cClTjImuOF+FI3k+MX6LGnnYQ==
dependencies:
"@babel/runtime" "^7.20.13"
- "@lingui/core" "4.7.0"
+ "@lingui/core" "4.10.0"
"@lingui/swc-plugin@4.0.6":
version "4.0.6"
@@ -516,71 +516,77 @@
dependencies:
moo "^0.5.1"
-"@next/env@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/env/-/env-14.1.0.tgz#43d92ebb53bc0ae43dcc64fb4d418f8f17d7a341"
- integrity sha512-Py8zIo+02ht82brwwhTg36iogzFqGLPXlRGKQw5s+qP/kMNc4MAyDeEwBKDijk6zTIbegEgu8Qy7C1LboslQAw==
-
-"@next/font@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/font/-/font-14.1.0.tgz#6f6c4510e36dad505cf64403f92f235d2838d265"
- integrity sha512-9hJ7bEYDI7UGQ1a++5zRD3F2VUu9NIaK5Hro/uL9bvFFs6b0Cy1OdLtLQHCIQE7sSMt8Rbu4VtcbnlubsseelA==
-
-"@next/swc-darwin-arm64@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.1.0.tgz#70a57c87ab1ae5aa963a3ba0f4e59e18f4ecea39"
- integrity sha512-nUDn7TOGcIeyQni6lZHfzNoo9S0euXnu0jhsbMOmMJUBfgsnESdjN97kM7cBqQxZa8L/bM9om/S5/1dzCrW6wQ==
-
-"@next/swc-darwin-x64@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.1.0.tgz#0863a22feae1540e83c249384b539069fef054e9"
- integrity sha512-1jgudN5haWxiAl3O1ljUS2GfupPmcftu2RYJqZiMJmmbBT5M1XDffjUtRUzP4W3cBHsrvkfOFdQ71hAreNQP6g==
-
-"@next/swc-linux-arm64-gnu@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.1.0.tgz#893da533d3fce4aec7116fe772d4f9b95232423c"
- integrity sha512-RHo7Tcj+jllXUbK7xk2NyIDod3YcCPDZxj1WLIYxd709BQ7WuRYl3OWUNG+WUfqeQBds6kvZYlc42NJJTNi4tQ==
-
-"@next/swc-linux-arm64-musl@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.1.0.tgz#d81ddcf95916310b8b0e4ad32b637406564244c0"
- integrity sha512-v6kP8sHYxjO8RwHmWMJSq7VZP2nYCkRVQ0qolh2l6xroe9QjbgV8siTbduED4u0hlk0+tjS6/Tuy4n5XCp+l6g==
-
-"@next/swc-linux-x64-gnu@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.1.0.tgz#18967f100ec19938354332dcb0268393cbacf581"
- integrity sha512-zJ2pnoFYB1F4vmEVlb/eSe+VH679zT1VdXlZKX+pE66grOgjmKJHKacf82g/sWE4MQ4Rk2FMBCRnX+l6/TVYzQ==
-
-"@next/swc-linux-x64-musl@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.1.0.tgz#77077cd4ba8dda8f349dc7ceb6230e68ee3293cf"
- integrity sha512-rbaIYFt2X9YZBSbH/CwGAjbBG2/MrACCVu2X0+kSykHzHnYH5FjHxwXLkcoJ10cX0aWCEynpu+rP76x0914atg==
-
-"@next/swc-win32-arm64-msvc@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.1.0.tgz#5f0b8cf955644104621e6d7cc923cad3a4c5365a"
- integrity sha512-o1N5TsYc8f/HpGt39OUQpQ9AKIGApd3QLueu7hXk//2xq5Z9OxmV6sQfNp8C7qYmiOlHYODOGqNNa0e9jvchGQ==
-
-"@next/swc-win32-ia32-msvc@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.1.0.tgz#21f4de1293ac5e5a168a412b139db5d3420a89d0"
- integrity sha512-XXIuB1DBRCFwNO6EEzCTMHT5pauwaSj4SWs7CYnME57eaReAKBXCnkUE80p/pAZcewm7hs+vGvNqDPacEXHVkw==
-
-"@next/swc-win32-x64-msvc@14.1.0":
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.1.0.tgz#e561fb330466d41807123d932b365cf3d33ceba2"
- integrity sha512-9WEbVRRAqJ3YFVqEZIxUqkiO8l1nool1LmNxygr5HWF8AcSYsEpneUDhmjUVJEzO2A04+oPtZdombzzPPkTtgg==
+"@next/env@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/env/-/env-14.2.2.tgz#6c36fe0b04a22ea78bd60a645ae77d53cd16d3ca"
+ integrity sha512-sk72qRfM1Q90XZWYRoJKu/UWlTgihrASiYw/scb15u+tyzcze3bOuJ/UV6TBOQEeUaxOkRqGeuGUdiiuxc5oqw==
+
+"@next/font@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/font/-/font-14.2.2.tgz#d0acf1cf664d23a4407356f029c84fc6ac28326b"
+ integrity sha512-I4GLq5ZsMJHO+WtV3gNhcspvZsbuteUmV56wC28hEsUbtlEawTI0EW4GNVJ8xdK6eRjua7unAt7zAXDgtOvxlw==
+
+"@next/swc-darwin-arm64@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-14.2.2.tgz#55e395b0db6dd5ea2dc92818260ff3a399f1a056"
+ integrity sha512-3iPgMhzbalizGwHNFUcGnDhFPSgVBHQ8aqSTAMxB5BvJG0oYrDf1WOJZlbXBgunOEj/8KMVbejEur/FpvFsgFQ==
+
+"@next/swc-darwin-x64@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-darwin-x64/-/swc-darwin-x64-14.2.2.tgz#f96fb65510be798c03b0432129792c6ac8885bc8"
+ integrity sha512-x7Afi/jt0ZBRUZHTi49yyej4o8znfIMHO4RvThuoc0P+uli8Jd99y5GKjxoYunPKsXL09xBXEM1+OQy2xEL0Ag==
+
+"@next/swc-linux-arm64-gnu@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-14.2.2.tgz#443f0d4ab9d1aa4338e40f77ca4e182d60e88448"
+ integrity sha512-zbfPtkk7L41ODMJwSp5VbmPozPmMMQrzAc0HAUomVeVIIwlDGs/UCqLJvLNDt4jpWgc21SjjyIn762lNGrMaUA==
+
+"@next/swc-linux-arm64-musl@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-14.2.2.tgz#182c00b3d2f3ed4eaacdd385d07b230252c64de9"
+ integrity sha512-wPbS3pI/JU16rm3XdLvvTmlsmm1nd+sBa2ohXgBZcShX4TgOjD4R+RqHKlI1cjo/jDZKXt6OxmcU0Iys0OC/yg==
+
+"@next/swc-linux-x64-gnu@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.2.tgz#e826a08085dcc61685ff42884ad4032e71ac154f"
+ integrity sha512-NqWOHqqq8iC9tuHvZxjQ2tX+jWy2X9y8NX2mcB4sj2bIccuCxbIZrU/ThFPZZPauygajZuVQ6zediejQHwZHwQ==
+
+"@next/swc-linux-x64-musl@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.2.tgz#42f921ca6d93fdfb2b13de70cd8a44ba5526b318"
+ integrity sha512-lGepHhwb9sGhCcU7999+iK1ZZT+6rrIoVg40MP7DZski9GIZP80wORSbt5kJzh9v2x2ev2lxC6VgwMQT0PcgTA==
+
+"@next/swc-win32-arm64-msvc@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-14.2.2.tgz#9c8f60da8e3882c4c66f21747abf944a627d05ff"
+ integrity sha512-TZSh/48SfcLEQ4rD25VVn2kdIgUWmMflRX3OiyPwGNXn3NiyPqhqei/BaqCYXViIQ+6QsG9R0C8LftMqy8JPMA==
+
+"@next/swc-win32-ia32-msvc@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-14.2.2.tgz#fdb0b5f74e6dc0dcb34b7f7d24775ad034d915e8"
+ integrity sha512-M0tBVNMEBJN2ZNQWlcekMn6pvLria7Sa2Fai5znm7CCJz4pP3lrvlSxhKdkCerk0D9E0bqx5yAo3o2Q7RrD4gA==
+
+"@next/swc-win32-x64-msvc@14.2.2":
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-14.2.2.tgz#95cc0dad2c7ac5177fa6eeab070dccfa30532353"
+ integrity sha512-a/20E/wtTJZ3Ykv3f/8F0l7TtgQa2LWHU2oNB9bsu0VjqGuGGHmm/q6waoUNQYTVPYrrlxxaHjJcDV6aiSTt/w==
"@sinclair/typebox@^0.25.16":
version "0.25.24"
resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.25.24.tgz#8c7688559979f7079aacaf31aa881c3aa410b718"
integrity sha512-XJfwUVUKDHF5ugKwIcxEgc9k8b7HbznCp6eUfWgu710hMPNIO4aw4/zB5RogDQz8nd6gyCDpU9O/m6qYEWY6yQ==
-"@swc/helpers@0.5.2":
- version "0.5.2"
- resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.2.tgz#85ea0c76450b61ad7d10a37050289eded783c27d"
- integrity sha512-E4KcWTpoLHqwPHLxidpOqQbcrZVgi0rsmmZXUle1jXmJfuIf/UWpczUJ7MZZ5tlxytgJXyp0w4PGkkeLiuIdZw==
+"@swc/counter@^0.1.3":
+ version "0.1.3"
+ resolved "https://registry.yarnpkg.com/@swc/counter/-/counter-0.1.3.tgz#cc7463bd02949611c6329596fccd2b0ec782b0e9"
+ integrity sha512-e2BR4lsJkkRlKZ/qCHPw9ZaSxc0MVUd7gtbtaB7aMvHeJVYe8sOB8DBZkP2DtISHGSku9sCK6T6cnY0CtXrOCQ==
+
+"@swc/helpers@0.5.5":
+ version "0.5.5"
+ resolved "https://registry.yarnpkg.com/@swc/helpers/-/helpers-0.5.5.tgz#12689df71bfc9b21c4f4ca00ae55f2f16c8b77c0"
+ integrity sha512-KGYxvIOXcceOAbEk4bi/dVLEK9z8sZ0uBB3Il5b1rhfClSpcX0yfRO0KmTkqR2cnQDymwLB+25ZyMzICg/cm/A==
dependencies:
+ "@swc/counter" "^0.1.3"
tslib "^2.4.0"
"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
@@ -933,10 +939,10 @@ csstype@^3.0.2:
resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.1.tgz#841b532c45c758ee546a11d5bd7b7b473c8c30b9"
integrity sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==
-date-fns@^2.16.1, date-fns@^2.29.3:
- version "2.29.3"
- resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.29.3.tgz#27402d2fc67eb442b511b70bbdf98e6411cd68a8"
- integrity sha512-dDCnyH2WnnKusqvZZ6+jA1O51Ibt8ZMRNkDZdyAyK4YfbDwa/cEmuztzG5pk6hqlp9aSBPYcjOlktquahGwGeA==
+date-fns@^3.6.0:
+ version "3.6.0"
+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.6.0.tgz#f20ca4fe94f8b754951b24240676e8618c0206bf"
+ integrity sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==
debug@^4.1.0:
version "4.3.4"
@@ -1360,28 +1366,28 @@ nanoid@^3.3.6:
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8"
integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==
-next@14.1.0:
- version "14.1.0"
- resolved "https://registry.yarnpkg.com/next/-/next-14.1.0.tgz#b31c0261ff9caa6b4a17c5af019ed77387174b69"
- integrity sha512-wlzrsbfeSU48YQBjZhDzOwhWhGsy+uQycR8bHAOt1LY1bn3zZEcDyHQOEoN3aWzQ8LHCAJ1nqrWCc9XF2+O45Q==
+next@14.2.2:
+ version "14.2.2"
+ resolved "https://registry.yarnpkg.com/next/-/next-14.2.2.tgz#707311b5e4bf973ada2305233f322bdd0cd9d579"
+ integrity sha512-oGwUaa2bCs47FbuxWMpOoXtBMPYpvTPgdZr3UAo+pu7Ns00z9otmYpoeV1HEiYL06AlRQQIA/ypK526KjJfaxg==
dependencies:
- "@next/env" "14.1.0"
- "@swc/helpers" "0.5.2"
+ "@next/env" "14.2.2"
+ "@swc/helpers" "0.5.5"
busboy "1.6.0"
caniuse-lite "^1.0.30001579"
graceful-fs "^4.2.11"
postcss "8.4.31"
styled-jsx "5.1.1"
optionalDependencies:
- "@next/swc-darwin-arm64" "14.1.0"
- "@next/swc-darwin-x64" "14.1.0"
- "@next/swc-linux-arm64-gnu" "14.1.0"
- "@next/swc-linux-arm64-musl" "14.1.0"
- "@next/swc-linux-x64-gnu" "14.1.0"
- "@next/swc-linux-x64-musl" "14.1.0"
- "@next/swc-win32-arm64-msvc" "14.1.0"
- "@next/swc-win32-ia32-msvc" "14.1.0"
- "@next/swc-win32-x64-msvc" "14.1.0"
+ "@next/swc-darwin-arm64" "14.2.2"
+ "@next/swc-darwin-x64" "14.2.2"
+ "@next/swc-linux-arm64-gnu" "14.2.2"
+ "@next/swc-linux-arm64-musl" "14.2.2"
+ "@next/swc-linux-x64-gnu" "14.2.2"
+ "@next/swc-linux-x64-musl" "14.2.2"
+ "@next/swc-win32-arm64-msvc" "14.2.2"
+ "@next/swc-win32-ia32-msvc" "14.2.2"
+ "@next/swc-win32-x64-msvc" "14.2.2"
node-releases@^2.0.6:
version "2.0.8"
diff --git a/package.json b/package.json
index 63ad0fb..e77aa99 100644
--- a/package.json
+++ b/package.json
@@ -28,7 +28,6 @@
"prepublishOnly": "cargo build-wasi --release"
},
"files": [],
- "packageManager": "yarn@3.3.1",
"peerDependencies": {
"@lingui/macro": "4"
},
diff --git a/src/ast_utils.rs b/src/ast_utils.rs
index a90cfdc..b5e4be5 100644
--- a/src/ast_utils.rs
+++ b/src/ast_utils.rs
@@ -164,5 +164,6 @@ pub fn create_import(source: JsWord, specifier: Ident) -> ModuleItem {
}),
with: None,
type_only: false,
+ phase: Default::default(),
}))
}
diff --git a/src/tests/jsx.rs b/src/tests/jsx.rs
index d486e8a..dd62d04 100644
--- a/src/tests/jsx.rs
+++ b/src/tests/jsx.rs
@@ -173,7 +173,7 @@ to!(
r#"
import { Trans } from "@lingui/react";
- This should work \xa00>"} id={"K/1Xpr"}
+ This should work 0>"} id={"K/1Xpr"}
components={{
0: ,
}}