diff --git a/Cargo.lock b/Cargo.lock index 17e77259c..aee7b920d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -723,9 +723,9 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" [[package]] name = "lightningcss" -version = "1.0.0-alpha.44" +version = "1.0.0-alpha.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97cc864b2dc5f078725908d7be7b35ce934e156ff52db40643ba6cb55f813c14" +checksum = "04f87dd0377974affb751fedb4d394b0fce51829227ec6afe4fa7d51eeb6383b" dependencies = [ "ahash 0.7.6", "bitflags 2.4.0", @@ -795,9 +795,9 @@ checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" [[package]] name = "memchr" -version = "2.5.0" +version = "2.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "5486aed0026218e61b8a01d5fbd5a0a134649abb71a0e53b7bc088529dced86e" [[package]] name = "memoffset" @@ -850,7 +850,7 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.37.0" +version = "0.38.0" dependencies = [ "convert_case", "handlebars", @@ -953,9 +953,9 @@ checksum = "c1b04fb49957986fdce4d6ee7a65027d55d4b6d2265e5848bbb507b58ccfdb6f" [[package]] name = "parcel_selectors" -version = "0.26.0" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3e808c7a75aedcc522bd24187de6903adab3265d690a61f8b8181edaa988377" +checksum = "9b1aa68e6c4bf7a49302b9c711c880c1cc2a7dc5c5184042cc724e4124e0d95f" dependencies = [ "bitflags 2.4.0", "cssparser", @@ -1688,7 +1688,7 @@ dependencies = [ [[package]] name = "styled_components" -version = "0.64.0" +version = "0.65.0" dependencies = [ "Inflector", "once_cell", @@ -1702,7 +1702,7 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.41.0" +version = "0.42.0" dependencies = [ "easy-error", "lightningcss", @@ -1772,9 +1772,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cb7fcd56655c8ae7dcf2344f0be6cbff4d9c7cb401fe3ec8e56e1de8dfe582" +checksum = "9c84742fc22df1c293da5354c1cc8a5b45a045e9dc941005c1fd9cb4e9bdabc1" dependencies = [ "anyhow", "ast_node", @@ -1830,7 +1830,7 @@ dependencies = [ [[package]] name = "swc_constify" -version = "0.4.0" +version = "0.5.0" dependencies = [ "rustc-hash", "serde_json", @@ -1841,9 +1841,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.82.1" +version = "0.82.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6bbb45bdfa5a849236f8746953fcd01b14beb7be9de39541bdc16707f984130e" +checksum = "567897c2eaeebc497baa7d1c0047b9d1c807bb88b0b21039485252677d3a05c6" dependencies = [ "once_cell", "swc_atoms", @@ -1868,9 +1868,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.109.0" +version = "0.109.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bc2286cedd688a68f214faa1c19bb5cceab7c9c54d0cbe3273e4c1704e38f69" +checksum = "e063a1614daed3ea8be56e5dd8edb17003409088d2fc9ce4aca3378879812607" dependencies = [ "bitflags 2.4.0", "bytecheck", @@ -1887,9 +1887,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.144.0" +version = "0.144.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aabe6ed186d4398ffd54c79b1fcc465b9055202de6609a04c31a3fb5f446990b" +checksum = "5c18a128504833fe3b7201d830271a12d71d76bb6472ede6f11677e98fca9eda" dependencies = [ "memchr", "num-bigint", @@ -1919,9 +1919,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.186.0" +version = "0.186.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad1be307d63eb332413a87fbd8fbefcd43c4b02fa556d6f0f83949da47cb6d69" +checksum = "f07913f04dfe7baa6a608dea418e69f318518c661814ea2b4c6d355bc5a68fdb" dependencies = [ "arrayvec", "indexmap", @@ -1953,9 +1953,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.139.0" +version = "0.139.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eab46cb863bc5cd61535464e07e5b74d5f792fa26a27b9f6fd4c8daca9903b7" +checksum = "1e2abc67575c5fcc77cfb9b3eaaeb73bac2cac265504a1fc06a04d0ebbc4c53b" dependencies = [ "either", "num-bigint", @@ -1973,9 +1973,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.50.0" +version = "0.50.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fdf676875aea532ce2c4cd479f89de52e0590048d71ec1790c8fe99f33788216" +checksum = "d3f02da9402e673522c0f47f2a2092d1389142d601a28a10b48f33a2648bd4f0" dependencies = [ "anyhow", "pmutil", @@ -1991,9 +1991,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.21.0" +version = "0.21.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8924413a32153210ddac17ad92e69e1533063304e549c56cf16010224d489e29" +checksum = "0b776795afd44c8df3977391e239a8dedbe2139c5eeb1ea053c1e29314b6d8a7" dependencies = [ "anyhow", "hex", @@ -2004,9 +2004,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.132.0" +version = "0.132.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ded027a66668b559db333bbbb6187806c50d94f9c2b92550763ae9f351876b9c" +checksum = "82b9cbdb2be485815eb755a0014b3c2a9008ba0c20634b9ccbdef78a79d76c1e" dependencies = [ "better_scoped_tls", "bitflags 2.4.0", @@ -2027,9 +2027,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_macros" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f59c4b6ed5d78d3ad9fc7c6f8ab4f85bba99573d31d9a2c0a712077a6b45efd2" +checksum = "8188eab297da773836ef5cf2af03ee5cca7a563e1be4b146f8141452c28cc690" dependencies = [ "pmutil", "proc-macro2", @@ -2040,9 +2040,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.192.0" +version = "0.192.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fe31958ce79df0647c825bb69a9270eda6f0974750be67aa11aabf5cf2bb943" +checksum = "cb010e3b1664539d63dc46866e4ec74c96c3044d5395260abc6a4163022d9a93" dependencies = [ "dashmap", "indexmap", @@ -2064,9 +2064,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.178.0" +version = "0.178.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e790a4538d1cc44212db7ae756203c2d41882c0171350676c77b30c2e67b551" +checksum = "b7634824044c431f80f6a5cdc7eb0568b08d8915c5da20427b36ffcf5759e26b" dependencies = [ "base64", "dashmap", @@ -2088,9 +2088,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.135.0" +version = "0.135.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae4e4d3bd65d327be26020f7e03b65d362eade27961b93bb38338bd284ab6b1c" +checksum = "6e044aa61ea8c86529be13263855d1b844983e84adc8bd119c51ccf4c810d725" dependencies = [ "ansi_term", "anyhow", @@ -2114,9 +2114,9 @@ dependencies = [ [[package]] name = "swc_ecma_usage_analyzer" -version = "0.18.0" +version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1369f8a761b9a3b929eb482b8467eb0bc6f842c26aa49043409f8fafbfaf7f58" +checksum = "89263934ddec01e3738cea970fdf6029b780ad4053d506eb84db9f56b2b95777" dependencies = [ "indexmap", "rustc-hash", @@ -2131,9 +2131,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.122.0" +version = "0.122.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11006a3398ffd4693c4d3b0a1b1a5030edbdc04228159f5301120a6178144708" +checksum = "47f412679df4b7f28354b81acdf0fbf53816366019f21e5affc1482b868bda1d" dependencies = [ "indexmap", "num_cpus", @@ -2149,9 +2149,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.95.0" +version = "0.95.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f628ec196e76e67892441e14eef2e423a738543d32bffdabfeec20c29582117" +checksum = "2774848b306e17fa280c598ecb192cc2c72a1163942b02d48606514336e9e7c5" dependencies = [ "num-bigint", "swc_atoms", @@ -2163,7 +2163,7 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.40.0" +version = "0.41.0" dependencies = [ "base64", "byteorder", @@ -2193,9 +2193,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.16.0" +version = "0.16.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6530d0def50c33d14064a43837b7e3c1fe8716ee6c3495a478835793caae2c97" +checksum = "c76b479ad1a69bec65b261354b8e2dec8ed0f9ed43c7b54ab053dc4923e1c90e" dependencies = [ "anyhow", "miette", @@ -2206,9 +2206,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a407fff2eb5ce3bee7513bdd9531a7be0285bc1213500b6d98ad235428d94cce" +checksum = "e2f7297cdefdb54d8d09e0294c1aec3826825b1feefd0c25978365aa7f447a1c" dependencies = [ "indexmap", "petgraph", @@ -2305,9 +2305,9 @@ dependencies = [ [[package]] name = "swc_plugin_proxy" -version = "0.38.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d3777c28430000db35867b0de49cecdc36519d27045e7d027ef041954bba846" +checksum = "a76ccadcc63a459e096f332730b2d4e09548fc10e0be63df9f3bacecdf5332fe" dependencies = [ "better_scoped_tls", "rkyv", @@ -2367,7 +2367,7 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.12.0" +version = "0.13.0" dependencies = [ "once_cell", "regex", @@ -2381,9 +2381,9 @@ dependencies = [ [[package]] name = "swc_timer" -version = "0.20.0" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95c548665c811d1c5def583d3d6ca0291e5397122c0de6362bb201cc2de8beff" +checksum = "b740ce6b402ed04176bd28dc4f4f92c764fe0defe8437c2f3b6e1b5818b4e10c" dependencies = [ "tracing", ] @@ -2485,9 +2485,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b199c2fbfc063718d1599d6caaa67868f130c39152bb00baf9534237b1037585" +checksum = "dc31f7f4a7baef94495386462c2a55caa0f0885b61b28c120f783132d14938ed" dependencies = [ "ansi_term", "cargo_metadata", diff --git a/packages/constify/Cargo.toml b/packages/constify/Cargo.toml index e5afb22e6..557785736 100644 --- a/packages/constify/Cargo.toml +++ b/packages/constify/Cargo.toml @@ -13,8 +13,8 @@ version = "0.1.0" crate-type = ["cdylib", "rlib"] [dependencies] -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/constify/package.json b/packages/constify/package.json index e90fc4eee..2cfe35963 100644 --- a/packages/constify/package.json +++ b/packages/constify/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-constify", - "version": "0.1.4", + "version": "0.1.5", "description": "SWC plugin for optimization", "main": "swc_plugin_constify.wasm", "scripts": { diff --git a/packages/constify/transform/Cargo.toml b/packages/constify/transform/Cargo.toml index fc8a3573c..e8599d171 100644 --- a/packages/constify/transform/Cargo.toml +++ b/packages/constify/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_constify" repository = "https://github.com/swc-project/plugins.git" -version = "0.4.0" +version = "0.5.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -18,7 +18,7 @@ swc_core = { features = [ "ecma_ast", "ecma_utils", "ecma_visit", -], version = "0.82.1" } +], version = "0.82.10" } [dev-dependencies] @@ -26,5 +26,5 @@ serde_json = "1" swc_core = { features = [ "testing_transform", "ecma_parser", -], version = "0.82.1" } -testing = "0.34.0" +], version = "0.82.10" } +testing = "0.34.1" diff --git a/packages/emotion/Cargo.toml b/packages/emotion/Cargo.toml index 16871e2fa..4c5ccde21 100644 --- a/packages/emotion/Cargo.toml +++ b/packages/emotion/Cargo.toml @@ -13,8 +13,8 @@ crate-type = ["cdylib", "rlib"] [dependencies] serde = "1" serde_json = "1.0.79" -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/emotion/package.json b/packages/emotion/package.json index ac2f8e0cd..70e9ae025 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-emotion", - "version": "2.5.74", + "version": "2.5.75", "description": "SWC plugin for emotion css-in-js library", "main": "swc_plugin_emotion.wasm", "scripts": { diff --git a/packages/emotion/transform/Cargo.toml b/packages/emotion/transform/Cargo.toml index 4d20c94ba..b8e3992ee 100644 --- a/packages/emotion/transform/Cargo.toml +++ b/packages/emotion/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_emotion" repository = "https://github.com/swc-project/plugins.git" -version = "0.40.0" +version = "0.41.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -25,7 +25,7 @@ swc_core = { features = [ "ecma_utils", "ecma_visit", "trace_macro", -], version = "0.82.1" } +], version = "0.82.10" } tracing = { version = "0.1.37" } [dev-dependencies] @@ -34,5 +34,5 @@ swc_core = { features = [ "testing_transform", "ecma_parser", "ecma_transforms_react", -], version = "0.82.1" } -testing = "0.34.0" +], version = "0.82.10" } +testing = "0.34.1" diff --git a/packages/jest/Cargo.toml b/packages/jest/Cargo.toml index d2ce0587e..19ed5d603 100644 --- a/packages/jest/Cargo.toml +++ b/packages/jest/Cargo.toml @@ -13,8 +13,8 @@ crate-type = ["cdylib", "rlib"] [dependencies] phf = { version = "0.10.0", features = ["macros"] } serde = { version = "1.0.130", features = ["derive"] } -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/jest/package.json b/packages/jest/package.json index 006146d21..698b1fa9f 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-jest", - "version": "1.5.74", + "version": "1.5.75", "description": "SWC plugin for jest", "main": "swc_plugin_jest.wasm", "scripts": { diff --git a/packages/loadable-components/Cargo.toml b/packages/loadable-components/Cargo.toml index 274810ae0..c07822802 100644 --- a/packages/loadable-components/Cargo.toml +++ b/packages/loadable-components/Cargo.toml @@ -14,8 +14,8 @@ crate-type = ["cdylib", "rlib"] once_cell = "1.13.1" regex = "1.6.0" serde_json = "1.0.79" -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", @@ -26,4 +26,4 @@ swc_core = { version = "0.82.1", features = [ tracing = { version = "0.1.37", features = ["release_max_level_off"] } [dev-dependencies] -testing = "0.34.0" +testing = "0.34.1" diff --git a/packages/loadable-components/package.json b/packages/loadable-components/package.json index 195abcf06..c928d81d5 100644 --- a/packages/loadable-components/package.json +++ b/packages/loadable-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-loadable-components", - "version": "0.3.74", + "version": "0.3.75", "description": "SWC plugin for `@loadable/components`", "main": "swc_plugin_loadable_components.wasm", "scripts": { diff --git a/packages/noop/Cargo.toml b/packages/noop/Cargo.toml index 47a0529e6..3153e7fd0 100644 --- a/packages/noop/Cargo.toml +++ b/packages/noop/Cargo.toml @@ -11,8 +11,8 @@ version = "0.12.3" crate-type = ["cdylib", "rlib"] [dependencies] -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/noop/package.json b/packages/noop/package.json index eb8681dbb..d12b0e2ff 100644 --- a/packages/noop/package.json +++ b/packages/noop/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-noop", - "version": "1.5.72", + "version": "1.5.73", "description": "Noop SWC plugin, for debugging", "main": "swc_plugin_noop.wasm", "scripts": { diff --git a/packages/relay/Cargo.toml b/packages/relay/Cargo.toml index 88b0f9b9a..b40c68754 100644 --- a/packages/relay/Cargo.toml +++ b/packages/relay/Cargo.toml @@ -15,8 +15,8 @@ once_cell = "1.8.0" regex = "1.5" serde = "1" serde_json = "1" -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/relay/package.json b/packages/relay/package.json index 4bb4afaa1..1b7b5dffa 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-relay", - "version": "1.5.74", + "version": "1.5.75", "description": "SWC plugin for relay", "main": "swc_plugin_relay.wasm", "types": "./types.d.ts", diff --git a/packages/relay/transform/Cargo.toml b/packages/relay/transform/Cargo.toml index 449073f98..31b00553d 100644 --- a/packages/relay/transform/Cargo.toml +++ b/packages/relay/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_relay" repository = "https://github.com/swc-project/plugins.git" -version = "0.12.0" +version = "0.13.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -14,8 +14,8 @@ once_cell = "1.8.0" regex = "1.5" serde = "1" serde_json = "1" -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_utils", "ecma_visit", "ecma_ast", @@ -24,4 +24,4 @@ swc_core = { version = "0.82.1", features = [ tracing = { version = "0.1.37" } [dev-dependencies] -testing = "0.34.0" +testing = "0.34.1" diff --git a/packages/styled-components/Cargo.toml b/packages/styled-components/Cargo.toml index f69d35000..c048c936a 100644 --- a/packages/styled-components/Cargo.toml +++ b/packages/styled-components/Cargo.toml @@ -14,8 +14,8 @@ crate-type = ["cdylib", "rlib"] serde = { version = "1.0.136", features = ["derive"] } serde_json = "1.0.79" styled_components = { path = "./transform" } -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/styled-components/package.json b/packages/styled-components/package.json index c27082f3f..39ff7bf02 100644 --- a/packages/styled-components/package.json +++ b/packages/styled-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-components", - "version": "1.5.74", + "version": "1.5.75", "description": "SWC plugin for styled-components", "main": "swc_plugin_styled_components.wasm", "scripts": { diff --git a/packages/styled-components/transform/Cargo.toml b/packages/styled-components/transform/Cargo.toml index 4e299d33b..f32155481 100644 --- a/packages/styled-components/transform/Cargo.toml +++ b/packages/styled-components/transform/Cargo.toml @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "styled_components" repository = "https://github.com/swc-project/plugins.git" -version = "0.64.0" +version = "0.65.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -23,7 +23,7 @@ swc_core = { features = [ "ecma_ast", "ecma_utils", "ecma_visit", -], version = "0.82.1" } +], version = "0.82.10" } tracing = "0.1.37" [dev-dependencies] @@ -32,5 +32,5 @@ swc_core = { features = [ "ecma_parser", "ecma_transforms", "testing_transform", -], version = "0.82.1" } -testing = "0.34.0" +], version = "0.82.10" } +testing = "0.34.1" diff --git a/packages/styled-jsx/Cargo.toml b/packages/styled-jsx/Cargo.toml index 480a0577b..f7ee2e042 100644 --- a/packages/styled-jsx/Cargo.toml +++ b/packages/styled-jsx/Cargo.toml @@ -16,7 +16,7 @@ custom_transform = ["swc_core/common_concurrent"] [dependencies] easy-error = "1.0.0" styled_jsx = { path = "./transform" } -swc_core = { version = "0.82.1", features = [ +swc_core = { version = "0.82.10", features = [ "common", "ecma_ast", "ecma_plugin_transform", @@ -28,5 +28,5 @@ swc_core = { version = "0.82.1", features = [ tracing = { version = "0.1.37", features = ["release_max_level_off"] } [dev-dependencies] -swc_core = { features = ["testing_transform"], version = "0.82.1" } -testing = "0.34.0" +swc_core = { features = ["testing_transform"], version = "0.82.10" } +testing = "0.34.1" diff --git a/packages/styled-jsx/package.json b/packages/styled-jsx/package.json index eb05b8f17..74d3daf1f 100644 --- a/packages/styled-jsx/package.json +++ b/packages/styled-jsx/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-jsx", - "version": "1.5.74", + "version": "1.5.75", "description": "SWC plugin for styled-jsx", "main": "swc_plugin_styled_jsx.wasm", "scripts": { diff --git a/packages/styled-jsx/transform/Cargo.toml b/packages/styled-jsx/transform/Cargo.toml index 320d008e7..a33c65521 100644 --- a/packages/styled-jsx/transform/Cargo.toml +++ b/packages/styled-jsx/transform/Cargo.toml @@ -4,7 +4,7 @@ description = "AST transforms visitor for styled-jsx" edition = "2021" license = "Apache-2.0" name = "styled_jsx" -version = "0.41.0" +version = "0.42.0" [features] custom_transform = ["swc_core/common_concurrent"] @@ -18,8 +18,7 @@ lightningcss = { version = "1.0.0-alpha.44", features = [ ] } parcel_selectors = "0.26.0" - -swc_core = { version = "0.82.1", features = [ +swc_core = { version = "0.82.10", features = [ "common", "ecma_ast", "ecma_parser", @@ -29,5 +28,5 @@ swc_core = { version = "0.82.1", features = [ ] } [dev-dependencies] -testing = "0.34.0" -swc_core = { features = ["testing_transform"], version = "0.82.1" } +testing = "0.34.1" +swc_core = { features = ["testing_transform"], version = "0.82.10" } diff --git a/packages/styled-jsx/transform/src/transform_css.rs b/packages/styled-jsx/transform/src/transform_css.rs index bdcdeba9e..167b8b4bf 100644 --- a/packages/styled-jsx/transform/src/transform_css.rs +++ b/packages/styled-jsx/transform/src/transform_css.rs @@ -74,12 +74,6 @@ pub fn transform_css( } }; - // Apply auto prefixer - // TODO: - ss.minify(MinifyOptions { - ..Default::default() - }) - .expect("failed to minify/auto-prefix css"); ss.visit(&mut CssNamespace { class_name: match class_name { Some(s) => s.clone(), @@ -90,6 +84,13 @@ pub fn transform_css( }) .expect("failed to transform css"); + // Apply auto prefixer + // TODO: + ss.minify(MinifyOptions { + ..Default::default() + }) + .expect("failed to minify/auto-prefix css"); + let res = ss .to_css(PrinterOptions { minify: true, @@ -377,15 +378,12 @@ impl CssNamespace { let mut complex_selectors = children.iter_raw_match_order().cloned().collect::>(); + // Remove `a` complex_selectors.pop(); + if let Some(Component::Combinator(Combinator::Descendant)) = complex_selectors.last() { complex_selectors.pop(); - } else if let Some(Component::Combinator(c)) = complex_selectors.last() { - let c = *c; - complex_selectors.pop(); - - complex_selectors.insert(0, Component::Combinator(c)) } if let Component::Combinator(Combinator::Descendant) = complex_selectors[0] { @@ -402,6 +400,8 @@ impl CssNamespace { // result.push(Component::Combinator(Combinator::Descendant)); + complex_selectors.reverse(); + result.extend(complex_selectors); result.extend(node.into_iter().skip(i + 1)); @@ -499,6 +499,11 @@ fn parse_token_list<'i>(tokens: &TokenList<'i>) -> Selector<'i> { } } } + + if cfg!(debug_assertions) { + debug!("Parsing: {:?}", buf) + } + let selector = Selector::parse_string_with_options(&buf, Default::default()) .expect("failed to parse selector list"); diff --git a/packages/styled-jsx/transform/tests/fixture/next-54653/input.js b/packages/styled-jsx/transform/tests/fixture/next-54653/input.js new file mode 100644 index 000000000..a053813c6 --- /dev/null +++ b/packages/styled-jsx/transform/tests/fixture/next-54653/input.js @@ -0,0 +1,10 @@ +import css from 'styled-jsx/css' + +export default css` + @media (max-width: 870px) { + :global(th.expiration-date-cell), + :global(td.expiration-date-cell) { + display: none; + } + } +` \ No newline at end of file diff --git a/packages/styled-jsx/transform/tests/fixture/next-54653/output.js b/packages/styled-jsx/transform/tests/fixture/next-54653/output.js new file mode 100644 index 000000000..4a05021b0 --- /dev/null +++ b/packages/styled-jsx/transform/tests/fixture/next-54653/output.js @@ -0,0 +1,3 @@ +const _defaultExport = new String("@media (width<=870px){th.expiration-date-cell,td.expiration-date-cell{display:none}}"); +_defaultExport.__hash = "fd71bf06ba8860bb"; +export default _defaultExport; diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.js b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.js index db9f82fef..6ef78e3be 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.js @@ -3,6 +3,6 @@ export default (()=>

test

- <_JSXStyle id={"713499aa363d6373"}>{"p.jsx-713499aa363d6373 a.jsx-713499aa363d6373 span.jsx-713499aa363d6373{color:red}p.jsx-713499aa363d6373 span{background:#00f}p.jsx-713499aa363d6373 a[title=\"'w ' ' t'\"].jsx-713499aa363d6373{margin:auto}p.jsx-713499aa363d6373 :not(.test)span{color:green}p.jsx-713499aa363d6373,h1.jsx-713499aa363d6373{color:#00f;animation:3s .1s infinite forwards hahaha}p.jsx-713499aa363d6373{animation:1s hahaha,2s hehehe}p.jsx-713499aa363d6373:hover,p.jsx-713499aa363d6373:before,:hover,:before,:hoverp.jsx-713499aa363d6373,p.jsx-713499aa363d6373+a.jsx-713499aa363d6373,p.jsx-713499aa363d6373~a.jsx-713499aa363d6373,p.jsx-713499aa363d6373>a.jsx-713499aa363d6373{color:red}@keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (width>=500px){.test.jsx-713499aa363d6373{color:red}}.test.jsx-713499aa363d6373{display:block}.inline-flex.jsx-713499aa363d6373{display:inline-flex}.flex.jsx-713499aa363d6373{display:flex}.test.jsx-713499aa363d6373{box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-713499aa363d6373{display:inline-block}.test.is-status.jsx-713499aa363d6373 .test.jsx-713499aa363d6373{color:red}.a-selector.jsx-713499aa363d6373:hover,.a-selector.jsx-713499aa363d6373:focus{outline:none}"} + <_JSXStyle id={"713499aa363d6373"}>{"p.jsx-713499aa363d6373 a.jsx-713499aa363d6373 span.jsx-713499aa363d6373{color:red}p.jsx-713499aa363d6373 span{background:#00f}p.jsx-713499aa363d6373 a[title=\"'w ' ' t'\"].jsx-713499aa363d6373{margin:auto}p.jsx-713499aa363d6373 span:not(.test){color:green}p.jsx-713499aa363d6373,h1.jsx-713499aa363d6373{color:#00f;animation:3s .1s infinite forwards hahaha}p.jsx-713499aa363d6373{animation:1s hahaha,2s hehehe}p.jsx-713499aa363d6373:hover,p.jsx-713499aa363d6373:before,:hover,:before,:hoverp.jsx-713499aa363d6373,p.jsx-713499aa363d6373+a.jsx-713499aa363d6373,p.jsx-713499aa363d6373~a.jsx-713499aa363d6373,p.jsx-713499aa363d6373>a.jsx-713499aa363d6373{color:red}@keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (width>=500px){.test.jsx-713499aa363d6373{color:red}}.test.jsx-713499aa363d6373{display:block}.inline-flex.jsx-713499aa363d6373{display:inline-flex}.flex.jsx-713499aa363d6373{display:flex}.test.jsx-713499aa363d6373{box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-713499aa363d6373{display:inline-block}.test.is-status.jsx-713499aa363d6373 .test.jsx-713499aa363d6373{color:red}.a-selector.jsx-713499aa363d6373:hover,.a-selector.jsx-713499aa363d6373:focus{outline:none}"}
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-global/input.js b/packages/styled-jsx/transform/tests/fixture/transform-css-global/input.js index b5c87c4b9..e97b1f933 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-global/input.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-global/input.js @@ -9,19 +9,19 @@ export default () => ( } :global(p) { - color: blue + color: #001 } - :global(p){ - color: blue; + :global(h1){ + color: #002; } - :global(p), a { - color: blue; + :global(h2), a { + color: #003; } :global(.foo + a) { - color: red; + color: #004; } :global(body) { diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.js b/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.js index ac5402be4..e8f1accae 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.js @@ -1,8 +1,8 @@ import _JSXStyle from "styled-jsx/style"; -export default (()=>
+export default (()=>
-

test

+

test

- <_JSXStyle id={"53fd644ab080300c"}>{"html.jsx-53fd644ab080300c{background-image:linear-gradient(#fffc,#fffc),url(/static/background.svg)}p{color:#00f}a.jsx-53fd644ab080300c{color:#00f}p{color:#00f}a+.foo{color:red}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}"} + <_JSXStyle id={"6881055ff9b1aeb6"}>{"html.jsx-6881055ff9b1aeb6{background-image:linear-gradient(#fffc,#fffc),url(/static/background.svg)}p{color:#001}h1{color:#002}h2,a.jsx-6881055ff9b1aeb6{color:#003}.foo+a{color:#004}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}"}
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css/output.js b/packages/styled-jsx/transform/tests/fixture/transform-css/output.js index 6d05e86d4..acd9b979d 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css/output.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css/output.js @@ -3,6 +3,6 @@ export default (()=>

test

- <_JSXStyle id={"4a27e5cf1c34b3df"}>{"html.jsx-4a27e5cf1c34b3df{background-image:linear-gradient(#fffc,#fffc),url(/static/background.svg)}p{color:#002}a.jsx-4a27e5cf1c34b3df{color:#003}p{color:#003}a+.foo{color:#004}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}p.jsx-4a27e5cf1c34b3df{color:#006}.jsx-4a27e5cf1c34b3df{color:#007}[href=woot].jsx-4a27e5cf1c34b3df{color:#008}p.jsx-4a27e5cf1c34b3df a.jsx-4a27e5cf1c34b3df span.jsx-4a27e5cf1c34b3df{color:#009}p.jsx-4a27e5cf1c34b3df span{background:#00a}p.jsx-4a27e5cf1c34b3df a[title=\"'w ' ' t'\"].jsx-4a27e5cf1c34b3df{margin:auto}p.jsx-4a27e5cf1c34b3df :not(.test)span{color:#00b}p.jsx-4a27e5cf1c34b3df,h1.jsx-4a27e5cf1c34b3df{color:#00c;animation:3s .1s infinite forwards hahaha}p.jsx-4a27e5cf1c34b3df{animation:1s hahaha,2s hehehe}p.jsx-4a27e5cf1c34b3df:hover{color:#00d}p.jsx-4a27e5cf1c34b3df:before{color:#00e}:hover{color:#00f}:before{color:#010}:hoverp.jsx-4a27e5cf1c34b3df{color:#011}p.jsx-4a27e5cf1c34b3df+a.jsx-4a27e5cf1c34b3df{color:#012}p.jsx-4a27e5cf1c34b3df~a.jsx-4a27e5cf1c34b3df{color:#013}p.jsx-4a27e5cf1c34b3df>a.jsx-4a27e5cf1c34b3df{color:#014}@keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (width>=500px){.test.jsx-4a27e5cf1c34b3df{color:#015}}.test.jsx-4a27e5cf1c34b3df{display:block}.inline-flex.jsx-4a27e5cf1c34b3df{display:inline-flex}.flex.jsx-4a27e5cf1c34b3df{display:flex}.test.jsx-4a27e5cf1c34b3df{box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-4a27e5cf1c34b3df{display:inline-block}.test.is-status.jsx-4a27e5cf1c34b3df .test.jsx-4a27e5cf1c34b3df{color:#016}.a-selector.jsx-4a27e5cf1c34b3df:hover,.a-selector.jsx-4a27e5cf1c34b3df:focus{outline:none}@media (width>=1px) and (width<=768px){[class*=grid__col--].jsx-4a27e5cf1c34b3df{margin-top:12px;margin-bottom:12px}}@media (width<=64em){.test.jsx-4a27e5cf1c34b3df{margin-bottom:1em}@supports ((-moz-appearance:none)) and (display:contents){.test.jsx-4a27e5cf1c34b3df{margin-bottom:2rem}}}"} + <_JSXStyle id={"4a27e5cf1c34b3df"}>{"html.jsx-4a27e5cf1c34b3df{background-image:linear-gradient(#fffc,#fffc),url(/static/background.svg)}p{color:#002}p,a.jsx-4a27e5cf1c34b3df{color:#003}.foo+a{color:#004}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}p.jsx-4a27e5cf1c34b3df{color:#006}.jsx-4a27e5cf1c34b3df{color:#007}[href=woot].jsx-4a27e5cf1c34b3df{color:#008}p.jsx-4a27e5cf1c34b3df a.jsx-4a27e5cf1c34b3df span.jsx-4a27e5cf1c34b3df{color:#009}p.jsx-4a27e5cf1c34b3df span{background:#00a}p.jsx-4a27e5cf1c34b3df a[title=\"'w ' ' t'\"].jsx-4a27e5cf1c34b3df{margin:auto}p.jsx-4a27e5cf1c34b3df span:not(.test){color:#00b}p.jsx-4a27e5cf1c34b3df,h1.jsx-4a27e5cf1c34b3df{color:#00c;animation:3s .1s infinite forwards hahaha}p.jsx-4a27e5cf1c34b3df{animation:1s hahaha,2s hehehe}p.jsx-4a27e5cf1c34b3df:hover{color:#00d}p.jsx-4a27e5cf1c34b3df:before{color:#00e}:hover{color:#00f}:before{color:#010}:hoverp.jsx-4a27e5cf1c34b3df{color:#011}p.jsx-4a27e5cf1c34b3df+a.jsx-4a27e5cf1c34b3df{color:#012}p.jsx-4a27e5cf1c34b3df~a.jsx-4a27e5cf1c34b3df{color:#013}p.jsx-4a27e5cf1c34b3df>a.jsx-4a27e5cf1c34b3df{color:#014}@keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (width>=500px){.test.jsx-4a27e5cf1c34b3df{color:#015}}.test.jsx-4a27e5cf1c34b3df{display:block}.inline-flex.jsx-4a27e5cf1c34b3df{display:inline-flex}.flex.jsx-4a27e5cf1c34b3df{display:flex}.test.jsx-4a27e5cf1c34b3df{box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-4a27e5cf1c34b3df{display:inline-block}.test.is-status.jsx-4a27e5cf1c34b3df .test.jsx-4a27e5cf1c34b3df{color:#016}.a-selector.jsx-4a27e5cf1c34b3df:hover,.a-selector.jsx-4a27e5cf1c34b3df:focus{outline:none}@media (width>=1px) and (width<=768px){[class*=grid__col--].jsx-4a27e5cf1c34b3df{margin-top:12px;margin-bottom:12px}}@media (width<=64em){.test.jsx-4a27e5cf1c34b3df{margin-bottom:1em}@supports ((-moz-appearance:none)) and (display:contents){.test.jsx-4a27e5cf1c34b3df{margin-bottom:2rem}}}"}
); diff --git a/packages/transform-imports/Cargo.toml b/packages/transform-imports/Cargo.toml index 6f4a9e811..ffaf51842 100644 --- a/packages/transform-imports/Cargo.toml +++ b/packages/transform-imports/Cargo.toml @@ -13,8 +13,8 @@ crate-type = ["cdylib", "rlib"] [dependencies] modularize_imports = { path = "./transform" } serde_json = "1.0.79" -swc_common = { version = "0.32.0", features = ["concurrent"] } -swc_core = { version = "0.82.1", features = [ +swc_common = { version = "0.32.1", features = ["concurrent"] } +swc_core = { version = "0.82.10", features = [ "ecma_plugin_transform", "ecma_utils", "ecma_visit", diff --git a/packages/transform-imports/package.json b/packages/transform-imports/package.json index f992543d7..986368456 100644 --- a/packages/transform-imports/package.json +++ b/packages/transform-imports/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-transform-imports", - "version": "1.5.74", + "version": "1.5.75", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-transform-imports", "main": "swc_plugin_transform_imports.wasm", "scripts": { diff --git a/packages/transform-imports/transform/Cargo.toml b/packages/transform-imports/transform/Cargo.toml index ea6b64f44..c6c3a1a76 100644 --- a/packages/transform-imports/transform/Cargo.toml +++ b/packages/transform-imports/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "modularize_imports" repository = "https://github.com/swc-project/plugins.git" -version = "0.37.0" +version = "0.38.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -19,11 +19,11 @@ swc_core = { features = [ "cached", "ecma_ast", "ecma_visit", -], version = "0.82.1" } +], version = "0.82.10" } [dev-dependencies] swc_core = { features = [ "testing_transform", "ecma_parser", -], version = "0.82.1" } -testing = "0.34.0" +], version = "0.82.10" } +testing = "0.34.1"