From 3f748e0495e71afe098e1f5a844b97f40d1f2db9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 1 Jul 2024 15:40:43 +0900 Subject: [PATCH] build: Update `swc_core` to `0.96.x` (#320) --- Cargo.lock | 168 ++++++++++-------- packages/emotion/CHANGELOG.md | 6 + packages/emotion/Cargo.toml | 8 +- packages/emotion/README.md | 6 + packages/emotion/package.json | 2 +- packages/emotion/transform/Cargo.toml | 16 +- packages/jest/CHANGELOG.md | 6 + packages/jest/Cargo.toml | 8 +- packages/jest/README.md | 6 + packages/jest/package.json | 2 +- packages/loadable-components/CHANGELOG.md | 6 + packages/loadable-components/Cargo.toml | 8 +- packages/loadable-components/README.md | 6 + packages/loadable-components/package.json | 2 +- packages/noop/CHANGELOG.md | 6 + packages/noop/Cargo.toml | 8 +- packages/noop/README.md | 6 + packages/noop/package.json | 2 +- packages/react-remove-properties/CHANGELOG.md | 6 + packages/react-remove-properties/Cargo.toml | 8 +- packages/react-remove-properties/README.md | 6 + packages/react-remove-properties/package.json | 2 +- .../transform/Cargo.toml | 12 +- .../tests/fixture/custom/simple/output.js | 4 - .../tests/fixture/default/simple/output.js | 6 - packages/relay/CHANGELOG.md | 6 + packages/relay/Cargo.toml | 8 +- packages/relay/README.md | 6 + packages/relay/package.json | 2 +- packages/relay/transform/Cargo.toml | 10 +- packages/remove-console/CHANGELOG.md | 6 + packages/remove-console/Cargo.toml | 8 +- packages/remove-console/README.md | 6 + packages/remove-console/package.json | 2 +- packages/remove-console/transform/Cargo.toml | 12 +- packages/styled-components/CHANGELOG.md | 6 + packages/styled-components/Cargo.toml | 8 +- packages/styled-components/README.md | 6 + packages/styled-components/package.json | 2 +- .../styled-components/transform/Cargo.toml | 14 +- .../tests/fixtures/next-59805/output.js | 3 - .../transpile-css-prop-add-import/output.js | 9 - .../output.js | 28 --- .../fixtures/transpile-css-prop/output.js | 42 ----- packages/styled-jsx/CHANGELOG.md | 6 + packages/styled-jsx/Cargo.toml | 14 +- packages/styled-jsx/README.md | 6 + packages/styled-jsx/package.json | 2 +- packages/styled-jsx/transform/Cargo.toml | 20 +-- .../nested-style-tags/output-lightningcss.js | 30 ---- .../errors/nested-style-tags/output-swc.js | 30 ---- .../errors/no-child/output-lightningcss.js | 2 - .../tests/errors/no-child/output-swc.js | 2 - .../two-children/output-lightningcss.js | 5 - .../tests/errors/two-children/output-swc.js | 5 - .../wrong-child-type/output-lightningcss.js | 2 - .../errors/wrong-child-type/output-swc.js | 2 - .../output-lightningcss.js | 2 - .../wrong-jsx-expression-type/output-swc.js | 2 - .../fixture/absent/output.lightningcss.js | 3 - .../tests/fixture/absent/output.swc.js | 3 - .../output.lightningcss.js | 49 ----- .../output.swc.js | 49 ----- .../output.lightningcss.js | 40 ----- .../attribute-generation-modes/output.swc.js | 40 ----- .../fixture/class/output.lightningcss.js | 3 - .../tests/fixture/class/output.swc.js | 3 - .../fixture/comments/1/output.lightningcss.js | 3 - .../tests/fixture/comments/1/output.swc.js | 3 - .../output.lightningcss.js | 4 - .../fixture/component-attribute/output.swc.js | 4 - .../output.lightningcss.js | 2 - .../css-selector-after-pseudo/output.swc.js | 2 - .../css-tag-same-file/output.lightningcss.js | 6 - .../fixture/css-tag-same-file/output.swc.js | 6 - .../different-jsx-ids/output.lightningcss.js | 9 - .../fixture/different-jsx-ids/output.swc.js | 9 - .../output.lightningcss.js | 6 - .../dynamic-element-class/output.swc.js | 6 - .../output.lightningcss.js | 3 - .../dynamic-element-external/output.swc.js | 3 - .../dynamic-element/output.lightningcss.js | 12 -- .../fixture/dynamic-element/output.swc.js | 12 -- .../output.lightningcss.js | 7 - .../external-stylesheet-global/output.swc.js | 7 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 14 -- .../fixture/external-stylesheet/output.swc.js | 14 -- .../fixture/fragment/output.lightningcss.js | 19 -- .../tests/fixture/fragment/output.swc.js | 19 -- .../output.lightningcss.js | 3 - .../global-child-selector/output.swc.js | 3 - .../global-redundant/output.lightningcss.js | 3 - .../fixture/global-redundant/output.swc.js | 3 - .../fixture/global/output.lightningcss.js | 2 - .../tests/fixture/global/output.swc.js | 2 - .../issue-30480/output.lightningcss.js | 2 - .../tests/fixture/issue-30480/output.swc.js | 2 - .../issue-30570/output.lightningcss.js | 4 - .../tests/fixture/issue-30570/output.swc.js | 4 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 4 - .../fixture/mixed-global-scoped/output.swc.js | 4 - .../multiple-jsx/output.lightningcss.js | 12 -- .../tests/fixture/multiple-jsx/output.swc.js | 12 -- .../fixture/next-55679/output.lightningcss.js | 3 - .../tests/fixture/next-55679/output.swc.js | 3 - .../fixture/next-61788/output.lightningcss.js | 3 - .../tests/fixture/next-61788/output.swc.js | 3 - .../fixture/next-64389/output.lightningcss.js | 4 - .../tests/fixture/next-64389/output.swc.js | 4 - .../next-65064/1/output.lightningcss.js | 4 - .../tests/fixture/next-65064/1/output.swc.js | 4 - .../next-65064/2/output.lightningcss.js | 4 - .../tests/fixture/next-65064/2/output.swc.js | 4 - .../fixture/next-65066/output.lightningcss.js | 8 - .../tests/fixture/next-65066/output.swc.js | 8 - .../output.lightningcss.js | 4 - .../non-styled-jsx-style/output.swc.js | 4 - .../output.lightningcss.js | 6 - .../number-after-placeholder/output.swc.js | 6 - .../output.lightningcss.js | 3 - .../one-off-global-selectors/output.swc.js | 3 - .../fixture/pack-2819/output.lightningcss.js | 5 - .../tests/fixture/pack-2819/output.swc.js | 5 - .../fixture/stateless/output.lightningcss.js | 5 - .../tests/fixture/stateless/output.swc.js | 5 - .../fixture/too-many/output.lightningcss.js | 3 - .../tests/fixture/too-many/output.swc.js | 3 - .../tpl-escape-1/output.lightningcss.js | 3 - .../tests/fixture/tpl-escape-1/output.swc.js | 3 - .../tpl-escape-2/output.lightningcss.js | 2 - .../tests/fixture/tpl-escape-2/output.swc.js | 2 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 3 - .../tpl-placeholder-3-as-value/output.swc.js | 3 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 3 - .../output.swc.js | 3 - .../output.lightningcss.js | 3 - .../transform-css-global/output.swc.js | 3 - .../output.lightningcss.js | 3 - .../transform-css-media-query/output.swc.js | 3 - .../output.lightningcss.js | 3 - .../transform-css-normal/output.swc.js | 3 - .../output.lightningcss.js | 3 - .../fixture/transform-css-nth-1/output.swc.js | 3 - .../transform-css/output.lightningcss.js | 3 - .../tests/fixture/transform-css/output.swc.js | 3 - .../fixture/whitespace/output.lightningcss.js | 5 - .../tests/fixture/whitespace/output.swc.js | 5 - packages/swc-confidential/CHANGELOG.md | 6 + packages/swc-confidential/Cargo.toml | 2 +- packages/swc-confidential/package.json | 2 +- .../swc-confidential/transform/Cargo.toml | 14 +- packages/swc-magic/CHANGELOG.md | 6 + packages/swc-magic/Cargo.toml | 2 +- packages/swc-magic/README.md | 6 + packages/swc-magic/package.json | 2 +- packages/swc-magic/transform/Cargo.toml | 14 +- packages/transform-imports/CHANGELOG.md | 6 + packages/transform-imports/Cargo.toml | 8 +- packages/transform-imports/README.md | 6 + packages/transform-imports/package.json | 2 +- .../transform-imports/transform/Cargo.toml | 10 +- 175 files changed, 352 insertions(+), 992 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4866b1032..bc06e6cce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -318,6 +318,24 @@ dependencies = [ "thiserror", ] +[[package]] +name = "browserslist-rs" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf0ca73de70c3da94e4194e4a01fe732378f55d47cf4c0588caab22a0dbfa14" +dependencies = [ + "ahash 0.8.11", + "chrono", + "either", + "indexmap", + "itertools 0.13.0", + "nom", + "once_cell", + "serde", + "serde_json", + "thiserror", +] + [[package]] name = "bumpalo" version = "3.16.0" @@ -590,7 +608,7 @@ dependencies = [ "cssparser-macros", "dtoa-short", "itoa", - "phf 0.10.1", + "phf 0.11.2", "smallvec", ] @@ -716,9 +734,9 @@ dependencies = [ [[package]] name = "either" -version = "1.11.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a47c1c47d2f5964e29c61246e81db715514cd532db6b5116a25ea3c03d6780a2" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "equivalent" @@ -987,6 +1005,15 @@ dependencies = [ "either", ] +[[package]] +name = "itertools" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186" +dependencies = [ + "either", +] + [[package]] name = "itoa" version = "1.0.11" @@ -1244,7 +1271,7 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.68.16" +version = "0.68.17" dependencies = [ "convert_case", "handlebars", @@ -1498,9 +1525,7 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ - "phf_macros 0.10.0", "phf_shared 0.10.0", - "proc-macro-hack", ] [[package]] @@ -1509,7 +1534,7 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "phf_macros 0.11.2", + "phf_macros", "phf_shared 0.11.2", ] @@ -1543,20 +1568,6 @@ dependencies = [ "rand", ] -[[package]] -name = "phf_macros" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "58fdf3184dd560f160dd73922bea2d5cd6e8f064bf4b13110abd81b03697b4e0" -dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", - "proc-macro-hack", - "proc-macro2", - "quote", - "syn 1.0.109", -] - [[package]] name = "phf_macros" version = "0.11.2" @@ -1614,7 +1625,25 @@ checksum = "08ccd15679953ae0d5fa716af78b58c0bfdc69a0534bfe9ea423abd1eaaf527b" dependencies = [ "ahash 0.8.11", "anyhow", - "browserslist-rs", + "browserslist-rs 0.15.0", + "dashmap", + "from_variant", + "once_cell", + "semver 1.0.23", + "serde", + "st-map", + "tracing", +] + +[[package]] +name = "preset_env_base" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ecfcd4aefde8c1ed1ac4f1118ca5021763a717ba87f5508db7785e864dac1d8" +dependencies = [ + "ahash 0.8.11", + "anyhow", + "browserslist-rs 0.16.0", "dashmap", "from_variant", "once_cell", @@ -1634,12 +1663,6 @@ dependencies = [ "yansi", ] -[[package]] -name = "proc-macro-hack" -version = "0.5.20+deprecated" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" - [[package]] name = "proc-macro2" version = "1.0.82" @@ -1751,7 +1774,7 @@ dependencies = [ [[package]] name = "react_remove_properties" -version = "0.24.14" +version = "0.24.15" dependencies = [ "serde", "swc_atoms", @@ -1826,7 +1849,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2" [[package]] name = "remove_console" -version = "0.25.14" +version = "0.25.15" dependencies = [ "serde", "swc_atoms", @@ -2004,10 +2027,10 @@ dependencies = [ ] [[package]] -name = "sha-1" -version = "0.10.0" +name = "sha1" +version = "0.10.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "028f48d513f9678cda28f6e4064755b3fbb2af6acd672f2c209b62323f7aea0f" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" dependencies = [ "cfg-if", "cpufeatures", @@ -2223,7 +2246,7 @@ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" [[package]] name = "styled_components" -version = "0.96.17" +version = "0.96.18" dependencies = [ "Inflector", "once_cell", @@ -2244,12 +2267,12 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.73.24" +version = "0.73.25" dependencies = [ "anyhow", "lightningcss", "parcel_selectors", - "preset_env_base", + "preset_env_base 0.4.13", "serde", "swc_common", "swc_css_ast", @@ -2329,9 +2352,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.34.0" +version = "0.34.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f79aace01c21f25090c75f5f7c6e3901498c062e2c1178c46866ed4e62e80aba" +checksum = "2b0d7bcbd9faf61cec1a552cbdaec57faefbb10be7cc5f959613c6f91b5a9254" dependencies = [ "anyhow", "ast_node", @@ -2361,7 +2384,7 @@ dependencies = [ [[package]] name = "swc_confidential" -version = "0.19.14" +version = "0.19.15" dependencies = [ "cipher 0.4.4", "hex", @@ -2407,9 +2430,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.95.0" +version = "0.96.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af4d760e2f7b1eec292dcc91a1188abc5be7f6dfaf86676b3e128fc898b3d13c" +checksum = "397aa4b60ac7eed394d0c1f9634ff0cf9dd5841bf1cd4ed2ef7f45955a40cb99" dependencies = [ "once_cell", "swc_atoms", @@ -2485,9 +2508,9 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.117.0" +version = "0.117.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "514de641204c8754865b70bbd5727c3244fafce08373e0dd496ad87e8919a8c4" +checksum = "ca3018ef38941e9b5681af7651047cd42af8bcb1635ba1d99eee182aafd84bb3" dependencies = [ "serde", "swc_atoms", @@ -2512,12 +2535,12 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.154.0" +version = "0.155.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90be51bf58aaff6d4682ada46bd44506d53b8aec8d1b0cebdc5bfe05b163f853" +checksum = "cc9930655060121c32d829e13fe4fa11294c03e71eb84c22e039703c929dcdf7" dependencies = [ "once_cell", - "preset_env_base", + "preset_env_base 0.5.0", "serde", "serde_json", "swc_atoms", @@ -2557,9 +2580,9 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.115.0" +version = "0.115.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "065b55c4d3bf7994a47abd420b9d69c69dd48e602030cbc85557077d5705fb63" +checksum = "7be1306930c235435a892104c00c2b5e16231043c085d5a10bd3e7537b15659b" dependencies = [ "bitflags", "bytecheck", @@ -2577,9 +2600,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen" -version = "0.151.0" +version = "0.151.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc6602bcf4fd78b2ef0c7b2abcdbd3e35dfa564a6bcfb0f256e86b41ff3299d7" +checksum = "f5141a8cb4eb69e090e6aea5d49061b46919be5210f3d084f9d9ad63d30f5cff" dependencies = [ "memchr", "num-bigint", @@ -2608,9 +2631,9 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.197.0" +version = "0.197.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d74a46ad5fa5c070d65454d6d20a833948a099082cc8bcf620c2a669eba3b43" +checksum = "42abacd1c2682fd238c682209a616ebfee96abe2b9583aba273e7f1532b62bfc" dependencies = [ "arrayvec", "indexmap", @@ -2641,11 +2664,12 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.146.0" +version = "0.146.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d0251795e14bd0c818d9f9f592096936f9b087dc39e6869995fc38fbb7ed9d8" +checksum = "417d95a184c1872bc4e4db82c721c20c38bdf01214a65ee512c37b9985b78c01" dependencies = [ "either", + "memchr", "new_debug_unreachable", "num-bigint", "num-traits", @@ -2663,9 +2687,9 @@ dependencies = [ [[package]] name = "swc_ecma_quote_macros" -version = "0.57.0" +version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79eedaab1225550fac9c364c9b07ce329fc4d67c2b4896d1c054aca0976f8f5f" +checksum = "9537bc1a7daca42be1922137f4e59458bd72dd330cf9c96877e191e632bc2a8a" dependencies = [ "anyhow", "proc-macro2", @@ -2693,9 +2717,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.232.0" +version = "0.232.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e8e66bc10715c10219239772abd2f6be99eda573e69e5abb8646b1f3fce83dc" +checksum = "6845e7a7001aa2793225568e0661b55f57352a2103fa28934dd9cbc0d41cd933" dependencies = [ "swc_atoms", "swc_common", @@ -2707,9 +2731,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.140.0" +version = "0.140.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "daee7af0abfccc9855656fc36ac472e1e6a61398a3a1a1b3bf05ef7a7e7af6b0" +checksum = "4341c6272c4feaaf22cc8104f65ebcadac8ad2098dfacb6eb62e8c053698a40d" dependencies = [ "better_scoped_tls", "bitflags", @@ -2742,9 +2766,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.201.0" +version = "0.201.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c58577833f2a748ce4f8d934b59e528cc2391c43dc716040b15952ce7a1afae6" +checksum = "c2f7845e59b50f8f6bf37a4067f6e91aad0c10fd5d2beb18df68b7ea7ee1ea09" dependencies = [ "dashmap", "indexmap", @@ -2766,16 +2790,16 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.186.0" +version = "0.186.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5209735a7136c17c08dc6af3031e73157cc5a59c1f176f0e160d799aaece227" +checksum = "446da32cac8299973aaf1d37496562bfd0c1e4f3c3ab5d0af6f07f42e8184102" dependencies = [ "base64 0.21.7", "dashmap", "indexmap", "once_cell", "serde", - "sha-1", + "sha1", "string_enum", "swc_atoms", "swc_common", @@ -2790,9 +2814,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_testing" -version = "0.143.0" +version = "0.143.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2622a94000bb4e04548afe0540150f616c58296d5485c0653d1fae69c23efd98" +checksum = "774e9741d3377635e9b48b8f118722d758f42e51743789c0852f4b1524b7c428" dependencies = [ "ansi_term", "anyhow", @@ -2833,9 +2857,9 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.130.0" +version = "0.130.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "831490c6d4a52f06932fa2c3d87fc0d0aa43211a5df6b5e05a1ec2c57a2f2519" +checksum = "ca6a7f430bd83e14f3bf39f01e25806a5c403af73ff2cf94b647132594ddd63c" dependencies = [ "indexmap", "num_cpus", @@ -2866,7 +2890,7 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.72.15" +version = "0.72.16" dependencies = [ "base64 0.22.1", "byteorder", @@ -2940,7 +2964,7 @@ dependencies = [ [[package]] name = "swc_magic" -version = "0.19.14" +version = "0.19.15" dependencies = [ "serde", "swc_atoms", @@ -3173,7 +3197,7 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.44.17" +version = "0.44.18" dependencies = [ "once_cell", "regex", diff --git a/packages/emotion/CHANGELOG.md b/packages/emotion/CHANGELOG.md index 78b3647a0..aa710ef08 100644 --- a/packages/emotion/CHANGELOG.md +++ b/packages/emotion/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-emotion +## 3.0.8 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 3.0.7 ### Patch Changes diff --git a/packages/emotion/Cargo.toml b/packages/emotion/Cargo.toml index 97d9f2f51..ecbcf20eb 100644 --- a/packages/emotion/Cargo.toml +++ b/packages/emotion/Cargo.toml @@ -17,10 +17,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] serde = "1" serde_json = "1.0.117" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_emotion = { path = "./transform" } swc_plugin_macro = "0.9.16" diff --git a/packages/emotion/README.md b/packages/emotion/README.md index eb16b8b0f..493665b5f 100644 --- a/packages/emotion/README.md +++ b/packages/emotion/README.md @@ -34,6 +34,12 @@ Source code for plugin itself (not transforms) are copied from https://github.co # @swc/plugin-emotion +## 3.0.8 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 3.0.7 ### Patch Changes diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 42dbca453..6ca6a4f21 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-emotion", - "version": "3.0.7", + "version": "3.0.8", "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 7fa58577f..b1b5b87b5 100644 --- a/packages/emotion/transform/Cargo.toml +++ b/packages/emotion/transform/Cargo.toml @@ -7,7 +7,7 @@ license = { workspace = true } name = "swc_emotion" repository = { workspace = true } rust-version = { workspace = true } -version = "0.72.15" +version = "0.72.16" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -22,17 +22,17 @@ regex = "1.10" serde = "1" sourcemap = "8.0.1" swc_atoms = "0.6.7" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" -swc_ecma_codegen = "0.151.0" -swc_ecma_utils = "0.130.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" +swc_ecma_codegen = "0.151.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_trace_macro = "0.1.3" tracing = { version = "0.1.40" } [dev-dependencies] serde_json = "1" -swc_ecma_parser = "0.146.0" -swc_ecma_transforms_react = "0.186.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms_react = "0.186.2" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/jest/CHANGELOG.md b/packages/jest/CHANGELOG.md index 1a0cda36b..5966c60b8 100644 --- a/packages/jest/CHANGELOG.md +++ b/packages/jest/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-jest +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/jest/Cargo.toml b/packages/jest/Cargo.toml index c4d47e808..4ed41d133 100644 --- a/packages/jest/Cargo.toml +++ b/packages/jest/Cargo.toml @@ -17,10 +17,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] phf = { version = "0.11.2", features = ["macros"] } serde = { version = "1.0.201", features = ["derive"] } -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } diff --git a/packages/jest/README.md b/packages/jest/README.md index b8931560c..c5aace982 100644 --- a/packages/jest/README.md +++ b/packages/jest/README.md @@ -2,6 +2,12 @@ # @swc/plugin-jest +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/jest/package.json b/packages/jest/package.json index 80209eb11..9dc3b39e1 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-jest", - "version": "2.0.6", + "version": "2.0.7", "description": "SWC plugin for jest", "main": "swc_plugin_jest.wasm", "scripts": { diff --git a/packages/loadable-components/CHANGELOG.md b/packages/loadable-components/CHANGELOG.md index 5941bde48..e22bb3358 100644 --- a/packages/loadable-components/CHANGELOG.md +++ b/packages/loadable-components/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-loadable-components +## 1.0.8 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 1.0.7 ### Patch Changes diff --git a/packages/loadable-components/Cargo.toml b/packages/loadable-components/Cargo.toml index 13b0c4e89..1cf99ab0f 100644 --- a/packages/loadable-components/Cargo.toml +++ b/packages/loadable-components/Cargo.toml @@ -19,13 +19,13 @@ crate-type = ["cdylib", "rlib"] once_cell = "1.19.0" regex = "1.10.4" serde_json = "1.0.117" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = [ +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = [ "ecma_quote", "ecma_plugin_transform", ] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" swc_plugin_proxy = "0.44.0" diff --git a/packages/loadable-components/README.md b/packages/loadable-components/README.md index b9bd04f7f..426799b72 100644 --- a/packages/loadable-components/README.md +++ b/packages/loadable-components/README.md @@ -8,6 +8,12 @@ # @swc/plugin-loadable-components +## 1.0.8 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 1.0.7 ### Patch Changes diff --git a/packages/loadable-components/package.json b/packages/loadable-components/package.json index 9b9c1347d..f6bab2ea1 100644 --- a/packages/loadable-components/package.json +++ b/packages/loadable-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-loadable-components", - "version": "1.0.7", + "version": "1.0.8", "description": "SWC plugin for `@loadable/components`", "main": "swc_plugin_loadable_components.wasm", "scripts": { diff --git a/packages/noop/CHANGELOG.md b/packages/noop/CHANGELOG.md index 87524d18a..14ca23042 100644 --- a/packages/noop/CHANGELOG.md +++ b/packages/noop/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-noop +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/noop/Cargo.toml b/packages/noop/Cargo.toml index 2c4d8bd53..cc642f546 100644 --- a/packages/noop/Cargo.toml +++ b/packages/noop/Cargo.toml @@ -18,10 +18,10 @@ version = "0.18.4" crate-type = ["cdylib", "rlib"] [dependencies] -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } diff --git a/packages/noop/README.md b/packages/noop/README.md index 8c7362849..43493b45b 100644 --- a/packages/noop/README.md +++ b/packages/noop/README.md @@ -2,6 +2,12 @@ # @swc/plugin-noop +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/noop/package.json b/packages/noop/package.json index 02a070c93..c40dedf08 100644 --- a/packages/noop/package.json +++ b/packages/noop/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-noop", - "version": "2.0.6", + "version": "2.0.7", "description": "Noop SWC plugin, for debugging", "main": "swc_plugin_noop.wasm", "scripts": { diff --git a/packages/react-remove-properties/CHANGELOG.md b/packages/react-remove-properties/CHANGELOG.md index 922775d23..9f57d3154 100644 --- a/packages/react-remove-properties/CHANGELOG.md +++ b/packages/react-remove-properties/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-react-remove-properties +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/react-remove-properties/Cargo.toml b/packages/react-remove-properties/Cargo.toml index b050899d4..d6e33273f 100644 --- a/packages/react-remove-properties/Cargo.toml +++ b/packages/react-remove-properties/Cargo.toml @@ -21,10 +21,10 @@ crate-type = ["cdylib", "rlib"] react_remove_properties = { path = "./transform" } serde_json = "1.0.117" swc_cached = "0.3.20" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } diff --git a/packages/react-remove-properties/README.md b/packages/react-remove-properties/README.md index 74ed25a07..68c7fd346 100644 --- a/packages/react-remove-properties/README.md +++ b/packages/react-remove-properties/README.md @@ -23,6 +23,12 @@ or # @swc/plugin-react-remove-properties +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/react-remove-properties/package.json b/packages/react-remove-properties/package.json index 3027d0ebf..0df7fbf27 100644 --- a/packages/react-remove-properties/package.json +++ b/packages/react-remove-properties/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-react-remove-properties", - "version": "2.0.6", + "version": "2.0.7", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-react-remove-properties", "main": "swc_plugin_react_remove_properties.wasm", "scripts": { diff --git a/packages/react-remove-properties/transform/Cargo.toml b/packages/react-remove-properties/transform/Cargo.toml index 7dc54ff5a..1593c4533 100644 --- a/packages/react-remove-properties/transform/Cargo.toml +++ b/packages/react-remove-properties/transform/Cargo.toml @@ -11,7 +11,7 @@ homepage = { workspace = true } license = { workspace = true } repository = { workspace = true } rust-version = { workspace = true } -version = "0.24.14" +version = "0.24.15" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -20,12 +20,12 @@ version = "0.24.14" serde = { version = "1", features = ["derive"] } swc_atoms = "0.6.7" swc_cached = "0.3.20" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" swc_ecma_visit = "0.101.0" [dev-dependencies] -swc_ecma_parser = "0.146.0" -swc_ecma_transforms_base = "0.140.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms_base = "0.140.1" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/react-remove-properties/transform/tests/fixture/custom/simple/output.js b/packages/react-remove-properties/transform/tests/fixture/custom/simple/output.js index d2224111f..23bb6eee1 100644 --- a/packages/react-remove-properties/transform/tests/fixture/custom/simple/output.js +++ b/packages/react-remove-properties/transform/tests/fixture/custom/simple/output.js @@ -1,11 +1,7 @@ export default function Home() { return
-
-

Hello World!

-
-
; } diff --git a/packages/react-remove-properties/transform/tests/fixture/default/simple/output.js b/packages/react-remove-properties/transform/tests/fixture/default/simple/output.js index 03621e62b..7d55065a7 100644 --- a/packages/react-remove-properties/transform/tests/fixture/default/simple/output.js +++ b/packages/react-remove-properties/transform/tests/fixture/default/simple/output.js @@ -1,15 +1,9 @@ export default function Home() { return
-
-

nested
}> - Hello World! -

-
-
; } diff --git a/packages/relay/CHANGELOG.md b/packages/relay/CHANGELOG.md index 955c589fd..d539aab7b 100644 --- a/packages/relay/CHANGELOG.md +++ b/packages/relay/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-relay +## 2.0.10 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.9 ### Patch Changes diff --git a/packages/relay/Cargo.toml b/packages/relay/Cargo.toml index 90e03675a..d13dbe6d8 100644 --- a/packages/relay/Cargo.toml +++ b/packages/relay/Cargo.toml @@ -19,10 +19,10 @@ once_cell = "1.19.0" regex = "1.10" serde = "1" serde_json = "1" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" swc_relay = { path = "./transform" } diff --git a/packages/relay/README.md b/packages/relay/README.md index dcd418857..0bb2d0e08 100644 --- a/packages/relay/README.md +++ b/packages/relay/README.md @@ -104,6 +104,12 @@ In this example typescript graphql files will output transpiled import path of ` # @swc/plugin-relay +## 2.0.10 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.9 ### Patch Changes diff --git a/packages/relay/package.json b/packages/relay/package.json index b8d68d671..335641c94 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-relay", - "version": "2.0.9", + "version": "2.0.10", "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 3ded8f5ce..ec1a8b875 100644 --- a/packages/relay/transform/Cargo.toml +++ b/packages/relay/transform/Cargo.toml @@ -11,7 +11,7 @@ homepage = { workspace = true } license = { workspace = true } repository = { workspace = true } rust-version = { workspace = true } -version = "0.44.17" +version = "0.44.18" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -22,12 +22,12 @@ regex = "1.10" serde = "1" serde_json = "1" swc_atoms = "0.6.7" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" tracing = { version = "0.1.40" } [dev-dependencies] -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/remove-console/CHANGELOG.md b/packages/remove-console/CHANGELOG.md index 59ff7dbcf..89e7be94b 100644 --- a/packages/remove-console/CHANGELOG.md +++ b/packages/remove-console/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-remove-console +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/remove-console/Cargo.toml b/packages/remove-console/Cargo.toml index a34b51ae4..2afe226b2 100644 --- a/packages/remove-console/Cargo.toml +++ b/packages/remove-console/Cargo.toml @@ -20,10 +20,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] remove_console = { path = "./transform" } serde_json = "1.0.117" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } diff --git a/packages/remove-console/README.md b/packages/remove-console/README.md index 7de03f548..46613b682 100644 --- a/packages/remove-console/README.md +++ b/packages/remove-console/README.md @@ -21,6 +21,12 @@ or # @swc/plugin-remove-console +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/remove-console/package.json b/packages/remove-console/package.json index e8fe40cc3..01f84ddf9 100644 --- a/packages/remove-console/package.json +++ b/packages/remove-console/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-remove-console", - "version": "2.0.6", + "version": "2.0.7", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-remove-console", "main": "swc_plugin_remove_console.wasm", "scripts": { diff --git a/packages/remove-console/transform/Cargo.toml b/packages/remove-console/transform/Cargo.toml index 9ea275ba5..15444a870 100644 --- a/packages/remove-console/transform/Cargo.toml +++ b/packages/remove-console/transform/Cargo.toml @@ -11,7 +11,7 @@ homepage = { workspace = true } license = { workspace = true } repository = { workspace = true } rust-version = { workspace = true } -version = "0.25.14" +version = "0.25.15" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -20,12 +20,12 @@ version = "0.25.14" serde = { version = "1", features = ["derive"] } swc_atoms = "0.6.7" swc_cached = "0.3.20" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" swc_ecma_visit = "0.101.0" [dev-dependencies] -swc_ecma_parser = "0.146.0" -swc_ecma_transforms_base = "0.140.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms_base = "0.140.1" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/styled-components/CHANGELOG.md b/packages/styled-components/CHANGELOG.md index 6217f12d6..e81388d47 100644 --- a/packages/styled-components/CHANGELOG.md +++ b/packages/styled-components/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-styled-components +## 2.0.9 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.8 ### Patch Changes diff --git a/packages/styled-components/Cargo.toml b/packages/styled-components/Cargo.toml index fa8342853..584a40b38 100644 --- a/packages/styled-components/Cargo.toml +++ b/packages/styled-components/Cargo.toml @@ -22,10 +22,10 @@ serde = { version = "1.0.201", features = ["derive"] } serde_json = "1.0.117" styled_components = { path = "./transform" } swc_atoms = "0.6.7" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } diff --git a/packages/styled-components/README.md b/packages/styled-components/README.md index 7d129803c..14b9a1c8c 100644 --- a/packages/styled-components/README.md +++ b/packages/styled-components/README.md @@ -28,6 +28,12 @@ Then update your `.swcrc` file like below: # @swc/plugin-styled-components +## 2.0.9 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.8 ### Patch Changes diff --git a/packages/styled-components/package.json b/packages/styled-components/package.json index 7168f4ccd..1fc0f5e59 100644 --- a/packages/styled-components/package.json +++ b/packages/styled-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-components", - "version": "2.0.8", + "version": "2.0.9", "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 bc0705152..d8d4ff6d7 100644 --- a/packages/styled-components/transform/Cargo.toml +++ b/packages/styled-components/transform/Cargo.toml @@ -12,7 +12,7 @@ homepage = { workspace = true } license = { workspace = true } repository = { workspace = true } rust-version = { workspace = true } -version = "0.96.17" +version = "0.96.18" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -26,15 +26,15 @@ regex = { version = "1.10.4", features = [ ], default-features = false } serde = { version = "1.0.201", features = ["derive"] } swc_atoms = "0.6.7" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" tracing = "0.1.40" [dev-dependencies] serde_json = "1" -swc_ecma_parser = "0.146.0" -swc_ecma_transforms = "0.232.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms = "0.232.1" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/styled-components/transform/tests/fixtures/next-59805/output.js b/packages/styled-components/transform/tests/fixtures/next-59805/output.js index 70ceececa..57e0cd0d6 100644 --- a/packages/styled-components/transform/tests/fixtures/next-59805/output.js +++ b/packages/styled-components/transform/tests/fixtures/next-59805/output.js @@ -8,10 +8,7 @@ const ReproElement = styled.p.withConfig({ ]); export function ReproComponent(props) { return - This should be preceded by a copyright symbol and not backslash, - letter A, digit nine - ; } diff --git a/packages/styled-components/transform/tests/fixtures/transpile-css-prop-add-import/output.js b/packages/styled-components/transform/tests/fixtures/transpile-css-prop-add-import/output.js index c06eabed3..0b93c5e38 100644 --- a/packages/styled-components/transform/tests/fixtures/transpile-css-prop-add-import/output.js +++ b/packages/styled-components/transform/tests/fixtures/transpile-css-prop-add-import/output.js @@ -4,23 +4,14 @@ import React from "react"; import Card from "../../shared/components/Card"; import config from "../../../config"; export default (()=><_StyledDiv> - -

Login or Sign Up

-

- - Sign up or login with Google - -

-
- ); var _StyledDiv = _styled("div")` width: 35em; diff --git a/packages/styled-components/transform/tests/fixtures/transpile-css-prop-all-options-on/output.js b/packages/styled-components/transform/tests/fixtures/transpile-css-prop-all-options-on/output.js index 20697bcd9..a9f3d1bc6 100644 --- a/packages/styled-components/transform/tests/fixtures/transpile-css-prop-all-options-on/output.js +++ b/packages/styled-components/transform/tests/fixtures/transpile-css-prop-all-options-on/output.js @@ -19,46 +19,32 @@ const Thing2 = styled(Thing).withConfig({ * Basic fixtures */ const StaticString = (p)=><_StyledP>A; const StaticTemplate = (p)=><_StyledP2> - A - ; const ObjectProp = (p)=><_StyledP3>A; const NoChildren = (p)=><_StyledP4/>; const CssHelperProp = (p)=><_StyledP5> - A - ; /* * Dynamic prop */ const CustomComp = (p)=><_StyledParagraph>H; const DynamicProp = (p)=><_StyledP6 $_css={props.cssText}>H; const LocalInterpolation = (p)=><_StyledP7 $_css2={props.bg}> - H - ; const FuncInterpolation = (p)=><_StyledP8> - H - ; const radius = 10; const GlobalInterpolation = (p)=><_StyledP9> - H - ; const LocalCssHelperProp = (p)=><_StyledP10 $_css3={p.color}> - A - ; const DynamicCssHelperProp = (p)=><_StyledP11> - A - ; const CustomCompWithDot = (p)=><_StyledButtonGhost>H; const NestedCompWithDot = (p)=><_StyledButtonGhostNew>H; @@ -69,17 +55,13 @@ const getAfterValue = ()=>'"bar"'; const ObjectPropMixedInputs = (p)=>{ const color = "red"; return <_StyledP12 $_css4={p.background} $_css5={color} $_css6={globalVar} $_css7={getAfterValue()}> - A - ; }; const SpreadObjectPropMixedInputs = (p)=>{ const color = "red"; return <_StyledP13 $_css8={globalVar} $_css9={getAfterValue()} $_css10={globalVar} $_css11={getAfterValue()} $_css12={p.background} $_css13={globalVar} $_css14={getAfterValue()}> - A - ; }; /* styled component defined after function it's used in */ const EarlyUsageComponent = (p)=><_StyledThing/>; @@ -134,41 +116,31 @@ const RequiredComponentUsage = (p)=><_StyledSomeOtherComponent/>; const ObjectInterpolation = (p)=>{ const theme = useTheme(); return <_StyledP14 $_css15={theme.colors.red}> - H - ; }; const ObjectInterpolationCustomComponent = (p)=>{ const theme = useTheme(); return <_StyledThing3 $_css16={theme.colors.red}> - H - ; }; const ObjectInterpolationInKey = (p)=>{ const theme = useTheme(); return <_StyledThing4 $_css17={theme.breakpoints.md}> - H - ; }; const ObjectFnInterpolationInKey = (p)=>{ const theme = useTheme(); return <_StyledThing5 $_css18={theme.breakpoints.md()}> - H - ; }; const ObjectFnSimpleInterpolationInKey = (p)=>{ const foo = "@media screen and (max-width: 600px)"; return <_StyledThing6 $_css19={foo}> - H - ; }; const ObjectPropWithSpread = ()=>{ diff --git a/packages/styled-components/transform/tests/fixtures/transpile-css-prop/output.js b/packages/styled-components/transform/tests/fixtures/transpile-css-prop/output.js index b066d2379..25198615f 100644 --- a/packages/styled-components/transform/tests/fixtures/transpile-css-prop/output.js +++ b/packages/styled-components/transform/tests/fixtures/transpile-css-prop/output.js @@ -3,46 +3,32 @@ */ import _styled from "styled-components"; const StaticString = (p)=><_StyledP>A; const StaticTemplate = (p)=><_StyledP2> - A - ; const ObjectProp = (p)=><_StyledP3>A; const NoChildren = (p)=><_StyledP4/>; const CssHelperProp = (p)=><_StyledP5> - A - ; /* * Dynamic prop */ const CustomComp = (p)=><_StyledParagraph>H; const DynamicProp = (p)=><_StyledP6 $_css={props.cssText}>H; const LocalInterpolation = (p)=><_StyledP7 $_css2={props.bg}> - H - ; const FuncInterpolation = (p)=><_StyledP8> - H - ; const radius = 10; const GlobalInterpolation = (p)=><_StyledP9> - H - ; const LocalCssHelperProp = (p)=><_StyledP10 $_css3={p.color}> - A - ; const DynamicCssHelperProp = (p)=><_StyledP11> - A - ; const CustomCompWithDot = (p)=><_StyledButtonGhost>H; const NestedCompWithDot = (p)=><_StyledButtonGhostNew>H; @@ -74,49 +60,37 @@ var _StyledThing = _styled(Thing3)`color: red;`; const ObjectInterpolation = (p)=>{ const theme = useTheme(); return <_StyledP12 $_css4={theme.colors.red}> - H - ; }; const ObjectInterpolationCustomComponent = (p)=>{ const theme = useTheme(); return <_StyledThing2 $_css5={theme.colors.red}> - H - ; }; const ObjectInterpolationInKey = (p)=>{ const theme = useTheme(); return <_StyledThing3 $_css6={theme.breakpoints.md}> - H - ; }; const ObjectFnInterpolationInKey = (p)=>{ const theme = useTheme(); return <_StyledThing4 $_css7={theme.breakpoints.md()}> - H - ; }; const ObjectFnSimpleInterpolationInKey = (p)=>{ const foo = "@media screen and (max-width: 600px)"; return <_StyledThing5 $_css8={foo}> - H - ; }; const ObjectPropMixedInputs = (p)=>{ const color = "red"; return <_StyledP13 $_css9={p.background} $_css10={color} $_css11={globalVar} $_css12={getAfterValue()}> - A - ; }; const ObjectPropWithSpread = ()=>{ @@ -133,24 +107,18 @@ const id = (x)=>x; const LocalCallInterpolation = (p)=>{ const color = "red"; return <_StyledP14 $_css15={id(color)}> - H - ; }; const LocalCallInterpolation2 = ()=>{ return <_StyledP15> - H - ; }; const LocalCallCssHelperProp = (p)=>{ const color = "red"; return <_StyledP16 $_css16={id(color)}> - H - ; }; // https://github.com/vercel/next.js/issues/38914 @@ -176,40 +144,30 @@ const colorMap2 = { const LocalMemberInterpolation = (p)=>{ const color = "red"; return <_StyledP17 $_css18={colorMap[color]}> - H - ; }; const LocalMemberInterpolation2 = (p)=>{ const color = "red"; return <_StyledP18 $_css19={colorMap[colorMap2[color]]}> - H - ; }; const LocalMemberInterpolation3 = (p)=>{ const color = "red"; return <_StyledP19 $_css20={colorMap[id(color)]}> - H - ; }; const LocalMemberInterpolation4 = ()=>{ return <_StyledP20> - H - ; }; const LocalMemberCssHelperProp = (p)=>{ const color = "red"; return <_StyledP21 $_css21={colorMap[color]}> - H - ; }; var _StyledP = _styled("p")`flex: 1;`; diff --git a/packages/styled-jsx/CHANGELOG.md b/packages/styled-jsx/CHANGELOG.md index ebe8136fa..026a3b120 100644 --- a/packages/styled-jsx/CHANGELOG.md +++ b/packages/styled-jsx/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-styled-jsx +## 2.0.12 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.11 ### Patch Changes diff --git a/packages/styled-jsx/Cargo.toml b/packages/styled-jsx/Cargo.toml index 2cc072954..b0a8ceac0 100644 --- a/packages/styled-jsx/Cargo.toml +++ b/packages/styled-jsx/Cargo.toml @@ -25,16 +25,16 @@ anyhow = "1" serde_json = "1" styled_jsx = { path = "./transform" } swc_atoms = "0.6.7" -swc_common = "0.34.0" -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_minifier = "0.197.0" -swc_ecma_parser = "0.146.0" -swc_ecma_utils = "0.130.0" +swc_common = "0.34.3" +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_minifier = "0.197.1" +swc_ecma_parser = "0.146.7" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } [dev-dependencies] -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/styled-jsx/README.md b/packages/styled-jsx/README.md index aa2e0ca54..b0c132b28 100644 --- a/packages/styled-jsx/README.md +++ b/packages/styled-jsx/README.md @@ -2,6 +2,12 @@ # @swc/plugin-styled-jsx +## 2.0.12 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.11 ### Patch Changes diff --git a/packages/styled-jsx/package.json b/packages/styled-jsx/package.json index 5d64c3eeb..4737a941d 100644 --- a/packages/styled-jsx/package.json +++ b/packages/styled-jsx/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-jsx", - "version": "2.0.11", + "version": "2.0.12", "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 67471c53b..8d0e9fdf0 100644 --- a/packages/styled-jsx/transform/Cargo.toml +++ b/packages/styled-jsx/transform/Cargo.toml @@ -10,7 +10,7 @@ license = { workspace = true } name = "styled_jsx" repository = { workspace = true } rust-version = { workspace = true } -version = "0.73.24" +version = "0.73.25" [features] @@ -27,22 +27,22 @@ serde = { version = "1", features = ["derive"] } tracing = "0.1.40" preset_env_base = "0.4.13" -swc_common = "0.34.0" +swc_common = "0.34.3" swc_css_ast = "0.141.0" swc_css_codegen = "0.152.0" swc_css_compat = "0.28.0" -swc_css_minifier = "0.117.0" +swc_css_minifier = "0.117.1" swc_css_parser = "0.151.0" -swc_css_prefixer = "0.154.0" +swc_css_prefixer = "0.155.0" swc_css_visit = "0.140.0" -swc_ecma_ast = "0.115.0" -swc_ecma_minifier = "0.197.0" -swc_ecma_parser = "0.146.0" -swc_ecma_utils = "0.130.0" +swc_ecma_ast = "0.115.1" +swc_ecma_minifier = "0.197.1" +swc_ecma_parser = "0.146.7" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" [dev-dependencies] -swc_ecma_transforms = "0.232.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_transforms = "0.232.1" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-lightningcss.js b/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-lightningcss.js index fd2c7788b..84e2e48f7 100644 --- a/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-lightningcss.js +++ b/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-lightningcss.js @@ -1,62 +1,32 @@ import _JSXStyle from "styled-jsx/style"; const Component = ()=><> -
- - <_JSXStyle id={styles.__hash}>{styles} - <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} - -

- <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -

-
-
-

- Welcome! - -

- <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -
-
- <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -

- Hello world! - -

-
-
- <> - - - <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -
- ; diff --git a/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-swc.js b/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-swc.js index fd2c7788b..84e2e48f7 100644 --- a/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-swc.js +++ b/packages/styled-jsx/transform/tests/errors/nested-style-tags/output-swc.js @@ -1,62 +1,32 @@ import _JSXStyle from "styled-jsx/style"; const Component = ()=><> -
- - <_JSXStyle id={styles.__hash}>{styles} - <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} - -

- <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -

-
-
-

- Welcome! - -

- <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -
-
- <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -

- Hello world! - -

-
-
- <> - - - <_JSXStyle id={"b3e1b6a7c9b96113"}>{""} -
- ; diff --git a/packages/styled-jsx/transform/tests/errors/no-child/output-lightningcss.js b/packages/styled-jsx/transform/tests/errors/no-child/output-lightningcss.js index 72083ac2d..c6cbf3462 100644 --- a/packages/styled-jsx/transform/tests/errors/no-child/output-lightningcss.js +++ b/packages/styled-jsx/transform/tests/errors/no-child/output-lightningcss.js @@ -1,6 +1,4 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/no-child/output-swc.js b/packages/styled-jsx/transform/tests/errors/no-child/output-swc.js index 72083ac2d..c6cbf3462 100644 --- a/packages/styled-jsx/transform/tests/errors/no-child/output-swc.js +++ b/packages/styled-jsx/transform/tests/errors/no-child/output-swc.js @@ -1,6 +1,4 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/two-children/output-lightningcss.js b/packages/styled-jsx/transform/tests/errors/two-children/output-lightningcss.js index d111353df..859ecdf97 100644 --- a/packages/styled-jsx/transform/tests/errors/two-children/output-lightningcss.js +++ b/packages/styled-jsx/transform/tests/errors/two-children/output-lightningcss.js @@ -1,18 +1,13 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/two-children/output-swc.js b/packages/styled-jsx/transform/tests/errors/two-children/output-swc.js index d111353df..859ecdf97 100644 --- a/packages/styled-jsx/transform/tests/errors/two-children/output-swc.js +++ b/packages/styled-jsx/transform/tests/errors/two-children/output-swc.js @@ -1,18 +1,13 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-lightningcss.js b/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-lightningcss.js index 74bee20c5..697f8041d 100644 --- a/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-lightningcss.js +++ b/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-lightningcss.js @@ -1,6 +1,4 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-swc.js b/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-swc.js index 74bee20c5..697f8041d 100644 --- a/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-swc.js +++ b/packages/styled-jsx/transform/tests/errors/wrong-child-type/output-swc.js @@ -1,6 +1,4 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.js b/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.js index 1263dcf28..02963b2f4 100644 --- a/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.js +++ b/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-lightningcss.js @@ -1,6 +1,4 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-swc.js b/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-swc.js index 1263dcf28..02963b2f4 100644 --- a/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-swc.js +++ b/packages/styled-jsx/transform/tests/errors/wrong-jsx-expression-type/output-swc.js @@ -1,6 +1,4 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
- -
); diff --git a/packages/styled-jsx/transform/tests/fixture/absent/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/absent/output.lightningcss.js index 92ca5deb0..7c390a192 100644 --- a/packages/styled-jsx/transform/tests/fixture/absent/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/absent/output.lightningcss.js @@ -1,7 +1,4 @@ const a = ()=>
-

hi

- -
; diff --git a/packages/styled-jsx/transform/tests/fixture/absent/output.swc.js b/packages/styled-jsx/transform/tests/fixture/absent/output.swc.js index 92ca5deb0..7c390a192 100644 --- a/packages/styled-jsx/transform/tests/fixture/absent/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/absent/output.swc.js @@ -1,7 +1,4 @@ const a = ()=>
-

hi

- -
; diff --git a/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.lightningcss.js index f66e9a9e9..d9d6fda87 100644 --- a/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.lightningcss.js @@ -2,111 +2,62 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>{ const Element = "div"; return
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - <_JSXStyle id={"abb4c2202db1a207"}>{"div.jsx-abb4c2202db1a207{color:red}"} -
; }); diff --git a/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.swc.js b/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.swc.js index f66e9a9e9..d9d6fda87 100644 --- a/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/attribute-generation-classname-rewriting/output.swc.js @@ -2,111 +2,62 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>{ const Element = "div"; return
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- - - - <_JSXStyle id={"abb4c2202db1a207"}>{"div.jsx-abb4c2202db1a207{color:red}"} -
; }); diff --git a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js index a828aa31e..2333b3720 100644 --- a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.lightningcss.js @@ -3,23 +3,15 @@ import styles from "./styles"; const styles2 = require("./styles2"); // external only export const Test1 = ()=>
-

external only

- <_JSXStyle id={styles.__hash}>{styles} - <_JSXStyle id={styles2.__hash}>{styles2} -
; // external and static export const Test2 = ()=>
-

external and static

- <_JSXStyle id={"81a68341e430a972"}>{"p.jsx-81a68341e430a972{color:red}"} - <_JSXStyle id={styles.__hash}>{styles} -
; // external and dynamic export const Test3 = ({ color })=>
-

external and dynamic

- <_JSXStyle id={"7148bb7ee4fbe10d"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} - <_JSXStyle id={styles.__hash}>{styles} -
; // external, static and dynamic export const Test4 = ({ color })=>
-

external, static and dynamic

- <_JSXStyle id={"ceba8c9ce34e3d0c"}>{"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"33057711e8314060"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} - <_JSXStyle id={styles.__hash}>{styles} -
; // static only export const Test5 = ()=>
-

static only

- <_JSXStyle id={"ceba8c9ce34e3d0c"}>{"p.jsx-df0159ebd3f9fb6f{display:inline-block}"} - <_JSXStyle id={"81a68341e430a972"}>{"p.jsx-df0159ebd3f9fb6f{color:red}"} -
; // static and dynamic export const Test6 = ({ color })=>
-

static and dynamic

- <_JSXStyle id={"ceba8c9ce34e3d0c"}>{"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"33057711e8314060"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} -
; // dynamic only export const Test7 = ({ color })=>
-

dynamic only

- <_JSXStyle id={"7148bb7ee4fbe10d"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} -
; // dynamic with scoped compound variable export const Test8 = ({ color })=>{ @@ -149,7 +121,6 @@ export const Test8 = ({ color })=>{ ] ] ])}> -

{ ] ] ])}>dynamic with scoped compound variable

- <_JSXStyle id={"6441d4f07e362f1"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} -
; } }; @@ -179,7 +148,6 @@ export const Test9 = ({ color })=>{ ] ] ])}> -

{ ] ] ])}>dynamic with compound variable

- <_JSXStyle id={"71fd8d88f94be286"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} -
; }; const foo = "red"; // dynamic with constant variable export const Test10 = ()=>
-

dynamic with constant variable

- <_JSXStyle id={"26bcb03111c69ebc"}>{`p.jsx-26bcb03111c69ebc{color:${foo}}`} -
; // dynamic with complex scope export const Test11 = ({ color })=>{ @@ -216,13 +179,10 @@ export const Test11 = ({ color })=>{ ] ] ]) + " " + "item"}> - <_JSXStyle id={"377d4c5029ec8f2d"} dynamic={[ color ]}>{`.item.__jsx-style-dynamic-selector{color:${color}}`} - Item #{i + 1} - ); return
    {items}
; }; diff --git a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js index a828aa31e..2333b3720 100644 --- a/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/attribute-generation-modes/output.swc.js @@ -3,23 +3,15 @@ import styles from "./styles"; const styles2 = require("./styles2"); // external only export const Test1 = ()=>
-

external only

- <_JSXStyle id={styles.__hash}>{styles} - <_JSXStyle id={styles2.__hash}>{styles2} -
; // external and static export const Test2 = ()=>
-

external and static

- <_JSXStyle id={"81a68341e430a972"}>{"p.jsx-81a68341e430a972{color:red}"} - <_JSXStyle id={styles.__hash}>{styles} -
; // external and dynamic export const Test3 = ({ color })=>
-

external and dynamic

- <_JSXStyle id={"7148bb7ee4fbe10d"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} - <_JSXStyle id={styles.__hash}>{styles} -
; // external, static and dynamic export const Test4 = ({ color })=>
-

external, static and dynamic

- <_JSXStyle id={"ceba8c9ce34e3d0c"}>{"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"33057711e8314060"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} - <_JSXStyle id={styles.__hash}>{styles} -
; // static only export const Test5 = ()=>
-

static only

- <_JSXStyle id={"ceba8c9ce34e3d0c"}>{"p.jsx-df0159ebd3f9fb6f{display:inline-block}"} - <_JSXStyle id={"81a68341e430a972"}>{"p.jsx-df0159ebd3f9fb6f{color:red}"} -
; // static and dynamic export const Test6 = ({ color })=>
-

static and dynamic

- <_JSXStyle id={"ceba8c9ce34e3d0c"}>{"p.jsx-ceba8c9ce34e3d0c{display:inline-block}"} - <_JSXStyle id={"33057711e8314060"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} -
; // dynamic only export const Test7 = ({ color })=>
-

dynamic only

- <_JSXStyle id={"7148bb7ee4fbe10d"} dynamic={[ color ]}>{`p.__jsx-style-dynamic-selector{color:${color}}`} -
; // dynamic with scoped compound variable export const Test8 = ({ color })=>{ @@ -149,7 +121,6 @@ export const Test8 = ({ color })=>{ ] ] ])}> -

{ ] ] ])}>dynamic with scoped compound variable

- <_JSXStyle id={"6441d4f07e362f1"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} -
; } }; @@ -179,7 +148,6 @@ export const Test9 = ({ color })=>{ ] ] ])}> -

{ ] ] ])}>dynamic with compound variable

- <_JSXStyle id={"71fd8d88f94be286"} dynamic={[ innerProps.color ]}>{`p.__jsx-style-dynamic-selector{color:${innerProps.color}}`} -
; }; const foo = "red"; // dynamic with constant variable export const Test10 = ()=>
-

dynamic with constant variable

- <_JSXStyle id={"26bcb03111c69ebc"}>{`p.jsx-26bcb03111c69ebc{color:${foo}}`} -
; // dynamic with complex scope export const Test11 = ({ color })=>{ @@ -216,13 +179,10 @@ export const Test11 = ({ color })=>{ ] ] ]) + " " + "item"}> - <_JSXStyle id={"377d4c5029ec8f2d"} dynamic={[ color ]}>{`.item.__jsx-style-dynamic-selector{color:${color}}`} - Item #{i + 1} - ); return
    {items}
; }; diff --git a/packages/styled-jsx/transform/tests/fixture/class/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/class/output.lightningcss.js index cc8252d40..ef0d74f9c 100644 --- a/packages/styled-jsx/transform/tests/fixture/class/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/class/output.lightningcss.js @@ -2,11 +2,8 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { return
-

test

- <_JSXStyle id={"b2b86d63f35d25ee"}>{"p.jsx-b2b86d63f35d25ee{color:red}"} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/class/output.swc.js b/packages/styled-jsx/transform/tests/fixture/class/output.swc.js index cc8252d40..ef0d74f9c 100644 --- a/packages/styled-jsx/transform/tests/fixture/class/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/class/output.swc.js @@ -2,11 +2,8 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { return
-

test

- <_JSXStyle id={"b2b86d63f35d25ee"}>{"p.jsx-b2b86d63f35d25ee{color:red}"} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/comments/1/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/comments/1/output.lightningcss.js index 7e87f083a..a965bfff8 100644 --- a/packages/styled-jsx/transform/tests/fixture/comments/1/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/comments/1/output.lightningcss.js @@ -2,11 +2,8 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { return
-

test

- <_JSXStyle id={"1952086b0a5ae64c"}>{"p.jsx-1952086b0a5ae64c{color:red}"} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/comments/1/output.swc.js b/packages/styled-jsx/transform/tests/fixture/comments/1/output.swc.js index 7e87f083a..a965bfff8 100644 --- a/packages/styled-jsx/transform/tests/fixture/comments/1/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/comments/1/output.swc.js @@ -2,11 +2,8 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { return
-

test

- <_JSXStyle id={"1952086b0a5ae64c"}>{"p.jsx-1952086b0a5ae64c{color:red}"} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/component-attribute/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/component-attribute/output.lightningcss.js index 70415dd66..db3002136 100644 --- a/packages/styled-jsx/transform/tests/fixture/component-attribute/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/component-attribute/output.lightningcss.js @@ -1,10 +1,6 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=>
- test - - <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"} -
; diff --git a/packages/styled-jsx/transform/tests/fixture/component-attribute/output.swc.js b/packages/styled-jsx/transform/tests/fixture/component-attribute/output.swc.js index 70415dd66..db3002136 100644 --- a/packages/styled-jsx/transform/tests/fixture/component-attribute/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/component-attribute/output.swc.js @@ -1,10 +1,6 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=>
- test - - <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"} -
; diff --git a/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.lightningcss.js index 6d7afa21c..64834e036 100644 --- a/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.lightningcss.js @@ -3,9 +3,7 @@ function NavigationItem({ active, className }) { return - <_JSXStyle id={"e73bf96b356a8634"}>{'.navigation-item.jsx-e73bf96b356a8634 a:after{content:attr(data-text);content:attr(data-text)/""}'} - ; } export default NavigationItem; diff --git a/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.swc.js b/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.swc.js index 6d7afa21c..64834e036 100644 --- a/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/css-selector-after-pseudo/output.swc.js @@ -3,9 +3,7 @@ function NavigationItem({ active, className }) { return - <_JSXStyle id={"e73bf96b356a8634"}>{'.navigation-item.jsx-e73bf96b356a8634 a:after{content:attr(data-text);content:attr(data-text)/""}'} - ; } export default NavigationItem; diff --git a/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.lightningcss.js index f97269274..95d731ea3 100644 --- a/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.lightningcss.js @@ -1,21 +1,15 @@ import _JSXStyle from "styled-jsx/style"; export default (({ children })=>
-

{children}

- <_JSXStyle id={styles.__hash}>{styles} -
); const styles = new String("p.jsx-556239d258b6d66a{color:red}"); styles.__hash = "556239d258b6d66a"; class Test extends React.Component { render() { return
-

{this.props.children}

- <_JSXStyle id={styles.__hash}>{styles} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.swc.js b/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.swc.js index f97269274..95d731ea3 100644 --- a/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/css-tag-same-file/output.swc.js @@ -1,21 +1,15 @@ import _JSXStyle from "styled-jsx/style"; export default (({ children })=>
-

{children}

- <_JSXStyle id={styles.__hash}>{styles} -
); const styles = new String("p.jsx-556239d258b6d66a{color:red}"); styles.__hash = "556239d258b6d66a"; class Test extends React.Component { render() { return
-

{this.props.children}

- <_JSXStyle id={styles.__hash}>{styles} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js index 80881cd8b..93f484d6d 100644 --- a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.lightningcss.js @@ -2,23 +2,14 @@ import _JSXStyle from "styled-jsx/style"; const color = "red"; const otherColor = "green"; const A = ()=>
-

test

- <_JSXStyle id={"7148bb7ee4fbe10d"}>{`p.jsx-7148bb7ee4fbe10d{color:${color}}`} -
; const B = ()=>
-

test

- <_JSXStyle id={"702a462674d88be"}>{`p.jsx-702a462674d88be{color:${otherColor}}`} -
; export default (()=>); diff --git a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js index 80881cd8b..93f484d6d 100644 --- a/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/different-jsx-ids/output.swc.js @@ -2,23 +2,14 @@ import _JSXStyle from "styled-jsx/style"; const color = "red"; const otherColor = "green"; const A = ()=>
-

test

- <_JSXStyle id={"7148bb7ee4fbe10d"}>{`p.jsx-7148bb7ee4fbe10d{color:${color}}`} -
; const B = ()=>
-

test

- <_JSXStyle id={"702a462674d88be"}>{`p.jsx-702a462674d88be{color:${otherColor}}`} -
; export default (()=>
); diff --git a/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.lightningcss.js index eaf4f97c2..c922735ac 100644 --- a/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.lightningcss.js @@ -3,11 +3,8 @@ export default class { render() { const Element = "div"; return -

dynamic element

- <_JSXStyle id={"f825b24bbab5b83b"}>{".root.jsx-f825b24bbab5b83b{background:red}"} -
; } } @@ -15,11 +12,8 @@ const Element2 = "div"; export const Test2 = class { render() { return -

dynamic element

- <_JSXStyle id={"f825b24bbab5b83b"}>{".root.jsx-f825b24bbab5b83b{background:red}"} -
; } }; diff --git a/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.swc.js b/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.swc.js index eaf4f97c2..c922735ac 100644 --- a/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/dynamic-element-class/output.swc.js @@ -3,11 +3,8 @@ export default class { render() { const Element = "div"; return -

dynamic element

- <_JSXStyle id={"f825b24bbab5b83b"}>{".root.jsx-f825b24bbab5b83b{background:red}"} -
; } } @@ -15,11 +12,8 @@ const Element2 = "div"; export const Test2 = class { render() { return -

dynamic element

- <_JSXStyle id={"f825b24bbab5b83b"}>{".root.jsx-f825b24bbab5b83b{background:red}"} -
; } }; diff --git a/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.lightningcss.js index 2565fee40..76e47f1f1 100644 --- a/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.lightningcss.js @@ -3,10 +3,7 @@ import styles from "./styles2"; export default (({ level = 1 })=>{ const Element = `h${level}`; return -

dynamic element

- <_JSXStyle id={styles.__hash}>{styles} -
; }); diff --git a/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.swc.js b/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.swc.js index 2565fee40..76e47f1f1 100644 --- a/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/dynamic-element-external/output.swc.js @@ -3,10 +3,7 @@ import styles from "./styles2"; export default (({ level = 1 })=>{ const Element = `h${level}`; return -

dynamic element

- <_JSXStyle id={styles.__hash}>{styles} -
; }); diff --git a/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.lightningcss.js index 52a67225f..726513c48 100644 --- a/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.lightningcss.js @@ -2,39 +2,27 @@ import _JSXStyle from "styled-jsx/style"; export default (({ level = 1 })=>{ const Element = `h${level}`; return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }); export const TestLowerCase = ({ level = 1 })=>{ const element = `h${level}`; return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }; const Element2 = "div"; export const Test2 = ()=>{ return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }; export const Test3 = ({ Component = "div" })=>{ return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }; diff --git a/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.swc.js b/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.swc.js index 52a67225f..726513c48 100644 --- a/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/dynamic-element/output.swc.js @@ -2,39 +2,27 @@ import _JSXStyle from "styled-jsx/style"; export default (({ level = 1 })=>{ const Element = `h${level}`; return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }); export const TestLowerCase = ({ level = 1 })=>{ const element = `h${level}`; return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }; const Element2 = "div"; export const Test2 = ()=>{ return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }; export const Test3 = ({ Component = "div" })=>{ return -

dynamic element

- <_JSXStyle id={"fca64cc3f069b519"}>{".root.jsx-fca64cc3f069b519{background:red}"} -
; }; diff --git a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.lightningcss.js index 2397cc591..8a077d2fd 100644 --- a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.lightningcss.js @@ -2,17 +2,10 @@ import _JSXStyle from "styled-jsx/style"; import styles, { foo as styles3 } from "./styles"; const styles2 = require("./styles2"); export default (()=>
-

test

-
woot
-

woot

- <_JSXStyle id={styles2.__hash}>{styles2} - <_JSXStyle id={styles3.__hash}>{styles3} - <_JSXStyle id={styles.__hash}>{styles} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.swc.js b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.swc.js index 2397cc591..8a077d2fd 100644 --- a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-global/output.swc.js @@ -2,17 +2,10 @@ import _JSXStyle from "styled-jsx/style"; import styles, { foo as styles3 } from "./styles"; const styles2 = require("./styles2"); export default (()=>
-

test

-
woot
-

woot

- <_JSXStyle id={styles2.__hash}>{styles2} - <_JSXStyle id={styles3.__hash}>{styles3} - <_JSXStyle id={styles.__hash}>{styles} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.lightningcss.js index 7fdd6167e..bc0275b8f 100644 --- a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.lightningcss.js @@ -1,9 +1,6 @@ import _JSXStyle from "styled-jsx/style"; import styles from "./styles"; export default (()=>
-

test

- <_JSXStyle id={styles.__hash}>{styles} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.swc.js b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.swc.js index 7fdd6167e..bc0275b8f 100644 --- a/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/external-stylesheet-multi-line/output.swc.js @@ -1,9 +1,6 @@ import _JSXStyle from "styled-jsx/style"; import styles from "./styles"; export default (()=>
-

test

- <_JSXStyle id={styles.__hash}>{styles} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.lightningcss.js index ba633d37f..182e5d55a 100644 --- a/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.lightningcss.js @@ -3,32 +3,18 @@ import styles from "./styles"; const styles2 = require("./styles2"); import { foo as styles3 } from "./styles"; export default (()=>
-

test

-

woot

- <_JSXStyle id={styles2.__hash}>{styles2} - <_JSXStyle id={styles3.__hash}>{styles3} -
woot
- <_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"} - <_JSXStyle id={styles.__hash}>{styles} -
); export const Test = ()=>
-

test

-

woot

- <_JSXStyle id={styles3.__hash}>{styles3} -
woot
- <_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"} -
; diff --git a/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.swc.js b/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.swc.js index ba633d37f..182e5d55a 100644 --- a/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/external-stylesheet/output.swc.js @@ -3,32 +3,18 @@ import styles from "./styles"; const styles2 = require("./styles2"); import { foo as styles3 } from "./styles"; export default (()=>
-

test

-

woot

- <_JSXStyle id={styles2.__hash}>{styles2} - <_JSXStyle id={styles3.__hash}>{styles3} -
woot
- <_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"} - <_JSXStyle id={styles.__hash}>{styles} -
); export const Test = ()=>
-

test

-

woot

- <_JSXStyle id={styles3.__hash}>{styles3} -
woot
- <_JSXStyle id={"bee92b62eadf8a14"}>{"p.jsx-bee92b62eadf8a14{color:red}div.jsx-bee92b62eadf8a14{color:green}"} -
; diff --git a/packages/styled-jsx/transform/tests/fixture/fragment/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/fragment/output.lightningcss.js index 7d3c4b956..3c073a799 100644 --- a/packages/styled-jsx/transform/tests/fixture/fragment/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/fragment/output.lightningcss.js @@ -1,47 +1,28 @@ import _JSXStyle from "styled-jsx/style"; import React from "react"; export default (()=><> -

Testing!!!

-

Bar

- <> - - -

hello

- <> -

foo

-

bar

- -

world

-
- - <_JSXStyle id={"6dd5f97e085c0297"}>{"p.jsx-6dd5f97e085c0297{color:#0ff}.foo.jsx-6dd5f97e085c0297{color:#ff69b4;font-size:18px}#head.jsx-6dd5f97e085c0297{text-decoration:underline}"} - ); function Component1() { return <> -
test
- ; } function Component2() { return
- <_JSXStyle id={"678f41ca6d3b294b"}>{"div.jsx-678f41ca6d3b294b{color:red}"} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/fragment/output.swc.js b/packages/styled-jsx/transform/tests/fixture/fragment/output.swc.js index f2959a80f..0d3b290a6 100644 --- a/packages/styled-jsx/transform/tests/fixture/fragment/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/fragment/output.swc.js @@ -1,47 +1,28 @@ import _JSXStyle from "styled-jsx/style"; import React from "react"; export default (()=><> -

Testing!!!

-

Bar

- <> - - -

hello

- <> -

foo

-

bar

- -

world

-
- - <_JSXStyle id={"6dd5f97e085c0297"}>{"p.jsx-6dd5f97e085c0297{color:#0ff}.foo.jsx-6dd5f97e085c0297{font-size:18px;color:#ff69b4}#head.jsx-6dd5f97e085c0297{text-decoration:underline}"} - ); function Component1() { return <> -
test
- ; } function Component2() { return
- <_JSXStyle id={"678f41ca6d3b294b"}>{"div.jsx-678f41ca6d3b294b{color:red}"} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.lightningcss.js index 521e38dde..a181fe063 100644 --- a/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=>
- test - <_JSXStyle id={"5a206f122d1cb32e"}>{"div.jsx-5a206f122d1cb32e>span{color:red}"} -
; diff --git a/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.swc.js b/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.swc.js index 521e38dde..a181fe063 100644 --- a/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/global-child-selector/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=>
- test - <_JSXStyle id={"5a206f122d1cb32e"}>{"div.jsx-5a206f122d1cb32e>span{color:red}"} -
; diff --git a/packages/styled-jsx/transform/tests/fixture/global-redundant/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/global-redundant/output.lightningcss.js index 5bd951fca..19f094d8c 100644 --- a/packages/styled-jsx/transform/tests/fixture/global-redundant/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/global-redundant/output.lightningcss.js @@ -1,10 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default function IndexPage() { return
- should be blue. - <_JSXStyle id={"b6abd0684ba81871"}>{"div{color:#00f}"} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/global-redundant/output.swc.js b/packages/styled-jsx/transform/tests/fixture/global-redundant/output.swc.js index 5bd951fca..19f094d8c 100644 --- a/packages/styled-jsx/transform/tests/fixture/global-redundant/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/global-redundant/output.swc.js @@ -1,10 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default function IndexPage() { return
- should be blue. - <_JSXStyle id={"b6abd0684ba81871"}>{"div{color:#00f}"} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/global/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/global/output.lightningcss.js index c1222dcb0..e94b32cb7 100644 --- a/packages/styled-jsx/transform/tests/fixture/global/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/global/output.lightningcss.js @@ -1,7 +1,5 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=>
- <_JSXStyle id={"f84dd0db2f59ea88"}>{"body{color:red}:hover{color:red;animation:1s ease-out foo;display:flex}div a{display:none}[data-test]>div{color:red}"} -
; const Test2 = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}; diff --git a/packages/styled-jsx/transform/tests/fixture/global/output.swc.js b/packages/styled-jsx/transform/tests/fixture/global/output.swc.js index c06d222e5..0bbf973e0 100644 --- a/packages/styled-jsx/transform/tests/fixture/global/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/global/output.swc.js @@ -1,7 +1,5 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=>
- <_JSXStyle id={"f84dd0db2f59ea88"}>{"body{color:red}:hover{color:red;display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-animation:1s ease-out foo;-moz-animation:1s ease-out foo;-o-animation:1s ease-out foo;animation:1s ease-out foo}div a{display:none}[data-test]>div{color:red}"} -
; const Test2 = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}; diff --git a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js index 819e72343..4856df90f 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.lightningcss.js @@ -7,9 +7,7 @@ export default (({ breakPoint })=>
- <_JSXStyle id={"a071f38f8da1d469"} dynamic={[ breakPoint ]}>{`@media (${breakPoint}){.test.__jsx-style-dynamic-selector{margin-bottom:1em}}`} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js index 819e72343..4856df90f 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-30480/output.swc.js @@ -7,9 +7,7 @@ export default (({ breakPoint })=>
- <_JSXStyle id={"a071f38f8da1d469"} dynamic={[ breakPoint ]}>{`@media (${breakPoint}){.test.__jsx-style-dynamic-selector{margin-bottom:1em}}`} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/issue-30570/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/issue-30570/output.lightningcss.js index cab36ceef..88d46b641 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-30570/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-30570/output.lightningcss.js @@ -1,12 +1,8 @@ import _JSXStyle from "styled-jsx/style"; export default function IndexPage() { return
-

Hello World.

- - <_JSXStyle id={"6226396a225d1c8b"}>{"@supports (display:flex){h1{color:#ff69b4}}"} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/issue-30570/output.swc.js b/packages/styled-jsx/transform/tests/fixture/issue-30570/output.swc.js index d0844d17e..3da742c13 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-30570/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-30570/output.swc.js @@ -1,12 +1,8 @@ import _JSXStyle from "styled-jsx/style"; export default function IndexPage() { return
-

Hello World.

- - <_JSXStyle id={"6226396a225d1c8b"}>{"@supports (display:flex) or (display:-webkit-box) or (display:-webkit-flex) or (display:-moz-box) or (display:-ms-flexbox){h1{color:#ff69b4}}"} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js index f3a9f682a..44b933c0e 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.lightningcss.js @@ -14,7 +14,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"469be1774c8967f0"} dynamic={[ Typography.base.size.default, Typography.base.lineHeight, @@ -37,7 +35,6 @@ export default class { Target.largePlus, Typography.base.size.largePlus ]}>{`html{font-size:${Typography.base.size.default};line-height:${Typography.base.lineHeight}}@media ${Target.mediumPlus}{html{font-size:${Typography.base.size.mediumPlus}}}@media ${Target.largePlus}{html{font-size:${Typography.base.size.largePlus}}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js index f3a9f682a..44b933c0e 100644 --- a/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/issue-31562-interpolation-in-mdea/output.swc.js @@ -14,7 +14,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"469be1774c8967f0"} dynamic={[ Typography.base.size.default, Typography.base.lineHeight, @@ -37,7 +35,6 @@ export default class { Target.largePlus, Typography.base.size.largePlus ]}>{`html{font-size:${Typography.base.size.default};line-height:${Typography.base.lineHeight}}@media ${Target.mediumPlus}{html{font-size:${Typography.base.size.mediumPlus}}}@media ${Target.largePlus}{html{font-size:${Typography.base.size.largePlus}}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.lightningcss.js index 079048b90..57e74470d 100644 --- a/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.lightningcss.js @@ -1,11 +1,7 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}; export default (()=>
-

test

- <_JSXStyle id={"80dff25115d29c0e"}>{"body{background:red}"} - <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-8de09a4a01c37bbf{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.swc.js b/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.swc.js index 079048b90..57e74470d 100644 --- a/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/mixed-global-scoped/output.swc.js @@ -1,11 +1,7 @@ import _JSXStyle from "styled-jsx/style"; const Test = ()=><_JSXStyle id={"94239b6d6b42c9b5"}>{"p{color:red}"}; export default (()=>
-

test

- <_JSXStyle id={"80dff25115d29c0e"}>{"body{background:red}"} - <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-8de09a4a01c37bbf{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.lightningcss.js index b940e83d3..d5393ee68 100644 --- a/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.lightningcss.js @@ -3,34 +3,22 @@ const attrs = { id: "test" }; const Test1 = ()=>
- - test - - - <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"} -
; const Test2 = ()=>test; const Test3 = ()=>
- test - <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"} -
; export default class { render() { return
-

test

- <_JSXStyle id={"b2b86d63f35d25ee"}>{"p.jsx-b2b86d63f35d25ee{color:red}"} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.swc.js b/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.swc.js index b940e83d3..d5393ee68 100644 --- a/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/multiple-jsx/output.swc.js @@ -3,34 +3,22 @@ const attrs = { id: "test" }; const Test1 = ()=>
- - test - - - <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"} -
; const Test2 = ()=>test; const Test3 = ()=>
- test - <_JSXStyle id={"a9535d7d5f32c3c4"}>{"span.jsx-a9535d7d5f32c3c4{color:red}"} -
; export default class { render() { return
-

test

- <_JSXStyle id={"b2b86d63f35d25ee"}>{"p.jsx-b2b86d63f35d25ee{color:red}"} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/next-55679/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/next-55679/output.lightningcss.js index 9c3ed6f48..f86626e4b 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-55679/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/next-55679/output.lightningcss.js @@ -3,10 +3,7 @@ import { AppProps } from "next/app"; const someVar = "--var-1"; export default function App({ Component, pageProps }) { return <> - <_JSXStyle id={"f559f0d916e6258b"}>{`:root{${someVar}:red;background-color:var(${someVar})}`} - - ; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-55679/output.swc.js b/packages/styled-jsx/transform/tests/fixture/next-55679/output.swc.js index 9c3ed6f48..f86626e4b 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-55679/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/next-55679/output.swc.js @@ -3,10 +3,7 @@ import { AppProps } from "next/app"; const someVar = "--var-1"; export default function App({ Component, pageProps }) { return <> - <_JSXStyle id={"f559f0d916e6258b"}>{`:root{${someVar}:red;background-color:var(${someVar})}`} - - ; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-61788/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/next-61788/output.lightningcss.js index 82de40d93..67c03f1b5 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-61788/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/next-61788/output.lightningcss.js @@ -9,7 +9,6 @@ export default function Home() { ] ] ])}> -

Hello

- <_JSXStyle id={"e9062ed9ed84de84"} dynamic={[ MOBILE_MAX ]}>{`.header.__jsx-style-dynamic-selector{font-size:48px}`} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-61788/output.swc.js b/packages/styled-jsx/transform/tests/fixture/next-61788/output.swc.js index 82de40d93..67c03f1b5 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-61788/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/next-61788/output.swc.js @@ -9,7 +9,6 @@ export default function Home() { ] ] ])}> -

Hello

- <_JSXStyle id={"e9062ed9ed84de84"} dynamic={[ MOBILE_MAX ]}>{`.header.__jsx-style-dynamic-selector{font-size:48px}`} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-64389/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/next-64389/output.lightningcss.js index a3683d037..b654d1678 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-64389/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/next-64389/output.lightningcss.js @@ -3,12 +3,8 @@ import _JSXStyle from "styled-jsx/style"; const color = "color: red;"; export default function RootLayout({ children }) { return - - {children} - <_JSXStyle id={"b0ba821eb5d16c3b"}>{`body{${color}}body p{font-size:72px}`} - ; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-64389/output.swc.js b/packages/styled-jsx/transform/tests/fixture/next-64389/output.swc.js index a3683d037..b654d1678 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-64389/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/next-64389/output.swc.js @@ -3,12 +3,8 @@ import _JSXStyle from "styled-jsx/style"; const color = "color: red;"; export default function RootLayout({ children }) { return - - {children} - <_JSXStyle id={"b0ba821eb5d16c3b"}>{`body{${color}}body p{font-size:72px}`} - ; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.lightningcss.js index 987efe312..0ef3fca34 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.lightningcss.js @@ -4,13 +4,9 @@ import React from "react"; // but does not. export default function SimplePage() { return -
Text
- - <_JSXStyle id={"68234eda9c798fae"}>{".text.jsx-68234eda9c798fae{color:#00f}.text.jsx-68234eda9c798fae.jsx-68234eda9c798fae:hover{color:red}"} - }/>; } const ComponentWithChildAsProp = ({ trigger })=>{ diff --git a/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.swc.js b/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.swc.js index 987efe312..0ef3fca34 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/next-65064/1/output.swc.js @@ -4,13 +4,9 @@ import React from "react"; // but does not. export default function SimplePage() { return -
Text
- - <_JSXStyle id={"68234eda9c798fae"}>{".text.jsx-68234eda9c798fae{color:#00f}.text.jsx-68234eda9c798fae.jsx-68234eda9c798fae:hover{color:red}"} - }/>; } const ComponentWithChildAsProp = ({ trigger })=>{ diff --git a/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.lightningcss.js index 8f6ba0d29..a775e7abb 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.lightningcss.js @@ -4,13 +4,9 @@ import React from "react"; // but does not. export default function SimplePage() { return -
Text
- - <_JSXStyle id={"68234eda9c798fae"}>{".text.jsx-68234eda9c798fae{color:#00f}.text.jsx-68234eda9c798fae.jsx-68234eda9c798fae:hover{color:red}"} -
}/>; } const ComponentWithChildAsProp = ({ trigger })=>{ diff --git a/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.swc.js b/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.swc.js index 8f6ba0d29..a775e7abb 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/next-65064/2/output.swc.js @@ -4,13 +4,9 @@ import React from "react"; // but does not. export default function SimplePage() { return -
Text
- - <_JSXStyle id={"68234eda9c798fae"}>{".text.jsx-68234eda9c798fae{color:#00f}.text.jsx-68234eda9c798fae.jsx-68234eda9c798fae:hover{color:red}"} -
}/>; } const ComponentWithChildAsProp = ({ trigger })=>{ diff --git a/packages/styled-jsx/transform/tests/fixture/next-65066/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/next-65066/output.lightningcss.js index badcad6e5..6ed3882a0 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-65066/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/next-65066/output.lightningcss.js @@ -4,24 +4,16 @@ import React from "react"; // but instead it crashes SWC. export default function Home() { return
-
-
Text
- - <_JSXStyle id={"915beb22be3340e9"}>{".text.jsx-915beb22be3340e9:hover{color:#ff0!important}"} -
- - -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/next-65066/output.swc.js b/packages/styled-jsx/transform/tests/fixture/next-65066/output.swc.js index badcad6e5..6ed3882a0 100644 --- a/packages/styled-jsx/transform/tests/fixture/next-65066/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/next-65066/output.swc.js @@ -4,24 +4,16 @@ import React from "react"; // but instead it crashes SWC. export default function Home() { return
-
-
Text
- - <_JSXStyle id={"915beb22be3340e9"}>{".text.jsx-915beb22be3340e9:hover{color:#ff0!important}"} -
- - -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.lightningcss.js index 5977ac8dd..b0d367f71 100644 --- a/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.lightningcss.js @@ -1,12 +1,8 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

woot

- - <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-94239b6d6b42c9b5{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.swc.js b/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.swc.js index 5977ac8dd..b0d367f71 100644 --- a/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/non-styled-jsx-style/output.swc.js @@ -1,12 +1,8 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

woot

- - <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-94239b6d6b42c9b5{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js index 7abb47ca7..027c86431 100644 --- a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.lightningcss.js @@ -2,16 +2,10 @@ import _JSXStyle from "styled-jsx/style"; import Link from "next/link"; export default function IndexPage() { return
- Hello World.{" "} - - Abound - - <_JSXStyle id={"bd85ff7a1926db15"}>{`a.jsx-bd85ff7a1926db15{color:${"#abcdef"}12}`} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js index 7abb47ca7..027c86431 100644 --- a/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/number-after-placeholder/output.swc.js @@ -2,16 +2,10 @@ import _JSXStyle from "styled-jsx/style"; import Link from "next/link"; export default function IndexPage() { return
- Hello World.{" "} - - Abound - - <_JSXStyle id={"bd85ff7a1926db15"}>{`a.jsx-bd85ff7a1926db15{color:${"#abcdef"}12}`} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.lightningcss.js index 479aff6f6..5f86f412e 100644 --- a/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"c7c3a8e231c9215a"}>{".container.jsx-c7c3a8e231c9215a>*{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.swc.js b/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.swc.js index 479aff6f6..5f86f412e 100644 --- a/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/one-off-global-selectors/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"c7c3a8e231c9215a"}>{".container.jsx-c7c3a8e231c9215a>*{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/pack-2819/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/pack-2819/output.lightningcss.js index c6991ca3b..f893ddee6 100644 --- a/packages/styled-jsx/transform/tests/fixture/pack-2819/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/pack-2819/output.lightningcss.js @@ -1,12 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

-

woot

-

woot

- <_JSXStyle id={"d3bc3634b8d1b3fb"}>{".container.jsx-d3bc3634b8d1b3fb{color:#00f;padding:3rem}.container.jsx-d3bc3634b8d1b3fb.inner.jsx-d3bc3634b8d1b3fb{color:#ff0}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/pack-2819/output.swc.js b/packages/styled-jsx/transform/tests/fixture/pack-2819/output.swc.js index c6991ca3b..f893ddee6 100644 --- a/packages/styled-jsx/transform/tests/fixture/pack-2819/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/pack-2819/output.swc.js @@ -1,12 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

-

woot

-

woot

- <_JSXStyle id={"d3bc3634b8d1b3fb"}>{".container.jsx-d3bc3634b8d1b3fb{color:#00f;padding:3rem}.container.jsx-d3bc3634b8d1b3fb.inner.jsx-d3bc3634b8d1b3fb{color:#ff0}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/stateless/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/stateless/output.lightningcss.js index 53d2bfccf..b3c3e9456 100644 --- a/packages/styled-jsx/transform/tests/fixture/stateless/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/stateless/output.lightningcss.js @@ -1,12 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

-

woot

-

woot

- <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-94239b6d6b42c9b5{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/stateless/output.swc.js b/packages/styled-jsx/transform/tests/fixture/stateless/output.swc.js index 53d2bfccf..b3c3e9456 100644 --- a/packages/styled-jsx/transform/tests/fixture/stateless/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/stateless/output.swc.js @@ -1,12 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

-

woot

-

woot

- <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-94239b6d6b42c9b5{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js index c4d4333ac..5acaabe94 100644 --- a/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/too-many/output.lightningcss.js @@ -22,9 +22,7 @@ export const Red = ({ Component = "button" })=>{ ] ] ])}> - {} - <_JSXStyle id={"559ffc47113f538e"} dynamic={[ e1, e2, @@ -42,6 +40,5 @@ export const Red = ({ Component = "button" })=>{ e14, e15 ]}>{`.button.__jsx-style-dynamic-selector{--button-1:${e1};--button-2:${e2};--button-3:${e3};--button-4:${e4};--button-5:${e5};--button-6:${e6};--button-7:${e7};--button-8:${e8};--button-9:${e9};--button-10:${e10};--button-11:${e11};--button-12:${e12};--button-13:${e13};--button-14:${e14};--button-15:${e15}}`} - ; }; diff --git a/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js b/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js index c4d4333ac..5acaabe94 100644 --- a/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/too-many/output.swc.js @@ -22,9 +22,7 @@ export const Red = ({ Component = "button" })=>{ ] ] ])}> - {} - <_JSXStyle id={"559ffc47113f538e"} dynamic={[ e1, e2, @@ -42,6 +40,5 @@ export const Red = ({ Component = "button" })=>{ e14, e15 ]}>{`.button.__jsx-style-dynamic-selector{--button-1:${e1};--button-2:${e2};--button-3:${e3};--button-4:${e4};--button-5:${e5};--button-6:${e6};--button-7:${e7};--button-8:${e8};--button-9:${e9};--button-10:${e10};--button-11:${e11};--button-12:${e12};--button-13:${e13};--button-14:${e14};--button-15:${e15}}`} - ; }; diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.lightningcss.js index 9f0362023..1fd34e775 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.lightningcss.js @@ -2,11 +2,8 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { return
-

test

- <_JSXStyle id={"71816f8e3c42a736"}>{'p.jsx-71816f8e3c42a736{content:"`"}'} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.swc.js index 9f0362023..1fd34e775 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-escape-1/output.swc.js @@ -2,11 +2,8 @@ import _JSXStyle from "styled-jsx/style"; export default class { render() { return
-

test

- <_JSXStyle id={"71816f8e3c42a736"}>{'p.jsx-71816f8e3c42a736{content:"`"}'} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js index e8c7e1a0a..cedb6ef6f 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.lightningcss.js @@ -8,10 +8,8 @@ export default function Home({ fontFamily }) { ] ] ])}> - <_JSXStyle id={"904817e7a643087b"} dynamic={[ fontFamily ]}>{`body{font-family:${fontFamily}}code:before,code:after{content:"\`"}`} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js index e8c7e1a0a..cedb6ef6f 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-escape-2/output.swc.js @@ -8,10 +8,8 @@ export default function Home({ fontFamily }) { ] ] ])}> - <_JSXStyle id={"904817e7a643087b"} dynamic={[ fontFamily ]}>{`body{font-family:${fontFamily}}code:before,code:after{content:"\`"}`} -
; } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js index 6625f9ae2..5f7dcae73 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.lightningcss.js @@ -9,7 +9,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"a173e97e0622f4f8"} dynamic={[ inputSize ? "height: calc(2 * var(--a)) !important;" : "" ]}>{`@media only screen{a.__jsx-style-dynamic-selector{${inputSize ? "height: calc(2 * var(--a)) !important;" : ""}}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js index 6625f9ae2..5f7dcae73 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-1-as-property/output.swc.js @@ -9,7 +9,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"a173e97e0622f4f8"} dynamic={[ inputSize ? "height: calc(2 * var(--a)) !important;" : "" ]}>{`@media only screen{a.__jsx-style-dynamic-selector{${inputSize ? "height: calc(2 * var(--a)) !important;" : ""}}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js index c5532741e..6a712b59b 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.lightningcss.js @@ -11,7 +11,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"9e70677f323bbc49"} dynamic={[ a[b], -1 * (c || 0), d ]}>{`.a:hover .b.__jsx-style-dynamic-selector{a:${a[b]}px!important;b:translate3d(0,${-1 * (c || 0)}px,-${d}px)scale(1)!important}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js index c5532741e..6a712b59b 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-2-as-part-of-value/output.swc.js @@ -11,7 +11,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"9e70677f323bbc49"} dynamic={[ a[b], -1 * (c || 0), d ]}>{`.a:hover .b.__jsx-style-dynamic-selector{a:${a[b]}px!important;b:translate3d(0,${-1 * (c || 0)}px,-${d}px)scale(1)!important}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js index f34856873..49483b616 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.lightningcss.js @@ -9,7 +9,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"1ba1d68ae392f2b1"} dynamic={[ a ]}>{`@media only screen{a.__jsx-style-dynamic-selector{color:${a}}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js index f34856873..49483b616 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-3-as-value/output.swc.js @@ -9,7 +9,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"1ba1d68ae392f2b1"} dynamic={[ a ]}>{`@media only screen{a.__jsx-style-dynamic-selector{color:${a}}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js index 848888e12..637b6c1fb 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.lightningcss.js @@ -10,7 +10,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"ad45da86ca763331"} dynamic={[ a || "var(--c)", b || "inherit" ]}>{`.a:hover .b.__jsx-style-dynamic-selector{padding:0 ${a || "var(--c)"};color:${b || "inherit"};display:inline-block}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js index 4ad642f7d..481f14b68 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-4-as-part-of-value-in-multiple/output.swc.js @@ -10,7 +10,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"ad45da86ca763331"} dynamic={[ a || "var(--c)", b || "inherit" ]}>{`.a:hover .b.__jsx-style-dynamic-selector{display:inline-block;padding:0 ${a || "var(--c)"};color:${b || "inherit"}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js index 9b17c607b..60d0893ac 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.lightningcss.js @@ -10,7 +10,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"d8bd1dd554bb6a3a"} dynamic={[ a ? "100%" : "200px", b ? "0" : "8px 20px" ]}>{`.item.__jsx-style-dynamic-selector{max-width:${a ? "100%" : "200px"};padding:${b ? "0" : "8px 20px"}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js index 9b17c607b..60d0893ac 100644 --- a/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/tpl-placeholder-5-values-of-multiple-properties/output.swc.js @@ -10,7 +10,6 @@ export default class { ] ] ])}> -

test

- <_JSXStyle id={"d8bd1dd554bb6a3a"} dynamic={[ a ? "100%" : "200px", b ? "0" : "8px 20px" ]}>{`.item.__jsx-style-dynamic-selector{max-width:${a ? "100%" : "200px"};padding:${b ? "0" : "8px 20px"}}`} -
; } } diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.lightningcss.js index e767a80bd..17f39d841 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"f12d8626937fd2c6"}>{".a-selector.jsx-f12d8626937fd2c6:hover,.a-selector.jsx-f12d8626937fd2c6:focus{outline:none}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.swc.js index e767a80bd..17f39d841 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector-2/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"f12d8626937fd2c6"}>{".a-selector.jsx-f12d8626937fd2c6:hover,.a-selector.jsx-f12d8626937fd2c6:focus{outline:none}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.lightningcss.js index bca81eb2d..903871ff4 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"2e0b2fdc9a904355"}>{"p.jsx-2e0b2fdc9a904355 a.jsx-2e0b2fdc9a904355 span.jsx-2e0b2fdc9a904355{color:red}p.jsx-2e0b2fdc9a904355 span{background:#00f}p.jsx-2e0b2fdc9a904355 a[title=\"'w ' ' t'\"].jsx-2e0b2fdc9a904355{margin:auto}p.jsx-2e0b2fdc9a904355 :not(.test)span{color:green}p.jsx-2e0b2fdc9a904355,h1.jsx-2e0b2fdc9a904355{color:#00f;animation:3s .1s infinite forwards hahaha}p.jsx-2e0b2fdc9a904355{animation:1s hahaha,2s hehehe}p.jsx-2e0b2fdc9a904355:hover,p.jsx-2e0b2fdc9a904355:before,.jsx-2e0b2fdc9a904355:hover,:before,.jsx-2e0b2fdc9a904355:hover p.jsx-2e0b2fdc9a904355,p.jsx-2e0b2fdc9a904355+a.jsx-2e0b2fdc9a904355,p.jsx-2e0b2fdc9a904355~a.jsx-2e0b2fdc9a904355,p.jsx-2e0b2fdc9a904355>a.jsx-2e0b2fdc9a904355{color:red}@keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (min-width:500px){.test.jsx-2e0b2fdc9a904355{color:red}}.test.jsx-2e0b2fdc9a904355{display:block}.inline-flex.jsx-2e0b2fdc9a904355{display:inline-flex}.flex.jsx-2e0b2fdc9a904355{display:flex}.test.jsx-2e0b2fdc9a904355{box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-2e0b2fdc9a904355{display:inline-block}.test.is-status.jsx-2e0b2fdc9a904355 .test.jsx-2e0b2fdc9a904355{color:red}.a-selector.jsx-2e0b2fdc9a904355:hover,.a-selector.jsx-2e0b2fdc9a904355:focus{outline:none}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.swc.js index 30fc25cc1..fb9b2c83a 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-complex-selector/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"2e0b2fdc9a904355"}>{"p.jsx-2e0b2fdc9a904355 a.jsx-2e0b2fdc9a904355 span.jsx-2e0b2fdc9a904355{color:red}p.jsx-2e0b2fdc9a904355 span{background:#00f}p.jsx-2e0b2fdc9a904355 a[title=\"'w ' ' t'\"].jsx-2e0b2fdc9a904355{margin:auto}p.jsx-2e0b2fdc9a904355 span:not(.test){color:green}p.jsx-2e0b2fdc9a904355,h1.jsx-2e0b2fdc9a904355{color:#00f;-webkit-animation:3s infinite forwards hahaha;-moz-animation:3s infinite forwards hahaha;-o-animation:3s infinite forwards hahaha;animation:3s infinite forwards hahaha;-webkit-animation-name:hahaha;-moz-animation-name:hahaha;-o-animation-name:hahaha;animation-name:hahaha;-webkit-animation-delay:.1s;-moz-animation-delay:.1s;-o-animation-delay:.1s;animation-delay:.1s}p.jsx-2e0b2fdc9a904355{-webkit-animation:1s hahaha,2s hehehe;-moz-animation:1s hahaha,2s hehehe;-o-animation:1s hahaha,2s hehehe;animation:1s hahaha,2s hehehe}p.jsx-2e0b2fdc9a904355:hover{color:red}p.jsx-2e0b2fdc9a904355:before{color:red}.jsx-2e0b2fdc9a904355:hover{color:red}.jsx-2e0b2fdc9a904355:before{color:red}.jsx-2e0b2fdc9a904355:hover p.jsx-2e0b2fdc9a904355{color:red}p.jsx-2e0b2fdc9a904355+a.jsx-2e0b2fdc9a904355{color:red}p.jsx-2e0b2fdc9a904355~a.jsx-2e0b2fdc9a904355{color:red}p.jsx-2e0b2fdc9a904355>a.jsx-2e0b2fdc9a904355{color:red}@-webkit-keyframes hahaha{0%{top:0}to{top:100px}}@-moz-keyframes hahaha{0%{top:0}to{top:100px}}@-o-keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hahaha{0%{top:0}to{top:100px}}@-webkit-keyframes hehehe{0%{left:0}to{left:100px}}@-moz-keyframes hehehe{0%{left:0}to{left:100px}}@-o-keyframes hehehe{0%{left:0}to{left:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (width>=500px){.test.jsx-2e0b2fdc9a904355{color:red}}.test.jsx-2e0b2fdc9a904355{display:block}.inline-flex.jsx-2e0b2fdc9a904355{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.flex.jsx-2e0b2fdc9a904355{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.test.jsx-2e0b2fdc9a904355{-webkit-box-shadow:0 0 10px #000,inset 0 0 5px #000;-moz-box-shadow:0 0 10px #000,inset 0 0 5px #000;box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-2e0b2fdc9a904355{display:inline-block}.test.is-status.jsx-2e0b2fdc9a904355 .test.jsx-2e0b2fdc9a904355{color:red}.a-selector.jsx-2e0b2fdc9a904355:hover,.a-selector.jsx-2e0b2fdc9a904355:focus{outline:none}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.lightningcss.js index 6aeeafa7d..0281bfd7e 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"13e06bb770708a4c"}>{"html.jsx-13e06bb770708a4c{background-image:linear-gradient(rgba(255,255,255,.8),rgba(255,255,255,.8)),url(/static/background.svg)}p{color:#001}h1{color:#002}h2,a.jsx-13e06bb770708a4c{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-global/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.swc.js index 511ddeab0..e70ae1743 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-global/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"13e06bb770708a4c"}>{"html.jsx-13e06bb770708a4c{background-image:-webkit-linear-gradient(#fffc,#fffc),url(/static/background.svg);background-image:-moz-linear-gradient(#fffc,#fffc),url(/static/background.svg);background-image:-o-linear-gradient(#fffc,#fffc),url(/static/background.svg);background-image:linear-gradient(#fffc,#fffc),url(/static/background.svg)}p{color:#001}h1{color:#002}h2,a.jsx-13e06bb770708a4c{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-media-query/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.lightningcss.js index 2625297d6..1c25bf5cf 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"ec1bf2b940b30dc"}>{"@media (min-width:1px) and (max-width:768px){[class*=grid__col--].jsx-ec1bf2b940b30dc{margin-top:12px;margin-bottom:12px}}@media (max-width:64em){.test.jsx-ec1bf2b940b30dc{margin-bottom:1em}@supports ((-moz-appearance:none)) and (display:contents){.test.jsx-ec1bf2b940b30dc{margin-bottom:2rem}}}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.swc.js index 8cee5c541..e7be185cf 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-media-query/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"ec1bf2b940b30dc"}>{"@media (width>=1px) and (width<=768px){[class*=grid__col--].jsx-ec1bf2b940b30dc{margin-top:12px;margin-bottom:12px}}@media (width<=64em){.test.jsx-ec1bf2b940b30dc{margin-bottom:1em}@supports ((-moz-appearance:none)) and (display:contents){.test.jsx-ec1bf2b940b30dc{margin-bottom:2rem}}}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.lightningcss.js index 020f14886..14f6d0096 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"292192d0348369b"}>{"p.jsx-292192d0348369b{color:red}.jsx-292192d0348369b{color:#00f}[href=woot].jsx-292192d0348369b{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.swc.js index e7b143613..a55202efb 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-normal/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"292192d0348369b"}>{"p.jsx-292192d0348369b{color:red}p.jsx-292192d0348369b{color:red}.jsx-292192d0348369b{color:#00f}[href=woot].jsx-292192d0348369b{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.lightningcss.js index 82fc6db50..c9c0bcf77 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"d8153edfc80ef241"}>{"li.jsx-d8153edfc80ef241:nth-child(2){color:#0f0}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.swc.js index 82fc6db50..c9c0bcf77 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css-nth-1/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"d8153edfc80ef241"}>{"li.jsx-d8153edfc80ef241:nth-child(2){color:#0f0}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/transform-css/output.lightningcss.js index 3b7f02bab..a879d8f29 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css/output.lightningcss.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"374655937fd2de40"}>{"html.jsx-374655937fd2de40{background-image:linear-gradient(rgba(255,255,255,.8),rgba(255,255,255,.8)),url(/static/background.svg)}p{color:#002}p,a.jsx-374655937fd2de40{color:#003}.foo+a{color:#004}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}p.jsx-374655937fd2de40{color:#006}.jsx-374655937fd2de40{color:#007}[href=woot].jsx-374655937fd2de40{color:#008}p.jsx-374655937fd2de40 a.jsx-374655937fd2de40 span.jsx-374655937fd2de40{color:#009}p.jsx-374655937fd2de40 span{background:#00a}p.jsx-374655937fd2de40 a[title=\"'w ' ' t'\"].jsx-374655937fd2de40{margin:auto}p.jsx-374655937fd2de40 :not(.test)span{color:#00b}p.jsx-374655937fd2de40,h1.jsx-374655937fd2de40{color:#00c;animation:3s .1s infinite forwards hahaha}p.jsx-374655937fd2de40{animation:1s hahaha,2s hehehe}p.jsx-374655937fd2de40:hover{color:#00d}p.jsx-374655937fd2de40:before{color:#00e}.jsx-374655937fd2de40:hover{color:#00f}:before{color:#010}.jsx-374655937fd2de40:hover p.jsx-374655937fd2de40{color:#011}p.jsx-374655937fd2de40+a.jsx-374655937fd2de40{color:#012}p.jsx-374655937fd2de40~a.jsx-374655937fd2de40{color:#013}p.jsx-374655937fd2de40>a.jsx-374655937fd2de40{color:#014}@keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (min-width:500px){.test.jsx-374655937fd2de40{color:#015}}.test.jsx-374655937fd2de40{display:block}.inline-flex.jsx-374655937fd2de40{display:inline-flex}.flex.jsx-374655937fd2de40{display:flex}.test.jsx-374655937fd2de40{box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-374655937fd2de40{display:inline-block}.test.is-status.jsx-374655937fd2de40 .test.jsx-374655937fd2de40{color:#016}.a-selector.jsx-374655937fd2de40:hover,.a-selector.jsx-374655937fd2de40:focus{outline:none}@media (min-width:1px) and (max-width:768px){[class*=grid__col--].jsx-374655937fd2de40{margin-top:12px;margin-bottom:12px}}@media (max-width:64em){.test.jsx-374655937fd2de40{margin-bottom:1em}@supports ((-moz-appearance:none)) and (display:contents){.test.jsx-374655937fd2de40{margin-bottom:2rem}}}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/transform-css/output.swc.js b/packages/styled-jsx/transform/tests/fixture/transform-css/output.swc.js index c3bdd9db9..d4384f858 100644 --- a/packages/styled-jsx/transform/tests/fixture/transform-css/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/transform-css/output.swc.js @@ -1,8 +1,5 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

- <_JSXStyle id={"374655937fd2de40"}>{"html.jsx-374655937fd2de40{background-image:-webkit-linear-gradient(#fffc,#fffc),url(/static/background.svg);background-image:-moz-linear-gradient(#fffc,#fffc),url(/static/background.svg);background-image:-o-linear-gradient(#fffc,#fffc),url(/static/background.svg);background-image:linear-gradient(#fffc,#fffc),url(/static/background.svg)}p{color:#001}p{color:#002}p,a.jsx-374655937fd2de40{color:#003}.foo+a{color:#004}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif}p.jsx-374655937fd2de40{color:#005}p.jsx-374655937fd2de40{color:#006}.jsx-374655937fd2de40{color:#007}[href=woot].jsx-374655937fd2de40{color:#008}p.jsx-374655937fd2de40 a.jsx-374655937fd2de40 span.jsx-374655937fd2de40{color:#009}p.jsx-374655937fd2de40 span{background:#00a}p.jsx-374655937fd2de40 a[title=\"'w ' ' t'\"].jsx-374655937fd2de40{margin:auto}p.jsx-374655937fd2de40 span:not(.test){color:#00b}p.jsx-374655937fd2de40,h1.jsx-374655937fd2de40{color:#00c;-webkit-animation:3s infinite forwards hahaha;-moz-animation:3s infinite forwards hahaha;-o-animation:3s infinite forwards hahaha;animation:3s infinite forwards hahaha;-webkit-animation-name:hahaha;-moz-animation-name:hahaha;-o-animation-name:hahaha;animation-name:hahaha;-webkit-animation-delay:.1s;-moz-animation-delay:.1s;-o-animation-delay:.1s;animation-delay:.1s}p.jsx-374655937fd2de40{-webkit-animation:1s hahaha,2s hehehe;-moz-animation:1s hahaha,2s hehehe;-o-animation:1s hahaha,2s hehehe;animation:1s hahaha,2s hehehe}p.jsx-374655937fd2de40:hover{color:#00d}p.jsx-374655937fd2de40:before{color:#00e}.jsx-374655937fd2de40:hover{color:#00f}.jsx-374655937fd2de40:before{color:#010}.jsx-374655937fd2de40:hover p.jsx-374655937fd2de40{color:#011}p.jsx-374655937fd2de40+a.jsx-374655937fd2de40{color:#012}p.jsx-374655937fd2de40~a.jsx-374655937fd2de40{color:#013}p.jsx-374655937fd2de40>a.jsx-374655937fd2de40{color:#014}@-webkit-keyframes hahaha{0%{top:0}to{top:100px}}@-moz-keyframes hahaha{0%{top:0}to{top:100px}}@-o-keyframes hahaha{0%{top:0}to{top:100px}}@keyframes hahaha{0%{top:0}to{top:100px}}@-webkit-keyframes hehehe{0%{left:0}to{left:100px}}@-moz-keyframes hehehe{0%{left:0}to{left:100px}}@-o-keyframes hehehe{0%{left:0}to{left:100px}}@keyframes hehehe{0%{left:0}to{left:100px}}@media (width>=500px){.test.jsx-374655937fd2de40{color:#015}}.test.jsx-374655937fd2de40{display:block}.inline-flex.jsx-374655937fd2de40{display:-webkit-inline-box;display:-webkit-inline-flex;display:-moz-inline-box;display:-ms-inline-flexbox;display:inline-flex}.flex.jsx-374655937fd2de40{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex}.test.jsx-374655937fd2de40{-webkit-box-shadow:0 0 10px #000,inset 0 0 5px #000;-moz-box-shadow:0 0 10px #000,inset 0 0 5px #000;box-shadow:0 0 10px #000,inset 0 0 5px #000}.test[title=\\,].jsx-374655937fd2de40{display:inline-block}.test.is-status.jsx-374655937fd2de40 .test.jsx-374655937fd2de40{color:#016}.a-selector.jsx-374655937fd2de40:hover,.a-selector.jsx-374655937fd2de40:focus{outline:none}@media (width>=1px) and (width<=768px){[class*=grid__col--].jsx-374655937fd2de40{margin-top:12px;margin-bottom:12px}}@media (width<=64em){.test.jsx-374655937fd2de40{margin-bottom:1em}@supports ((-moz-appearance:none)) and (display:contents){.test.jsx-374655937fd2de40{margin-bottom:2rem}}}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/whitespace/output.lightningcss.js b/packages/styled-jsx/transform/tests/fixture/whitespace/output.lightningcss.js index 53d2bfccf..b3c3e9456 100644 --- a/packages/styled-jsx/transform/tests/fixture/whitespace/output.lightningcss.js +++ b/packages/styled-jsx/transform/tests/fixture/whitespace/output.lightningcss.js @@ -1,12 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

-

woot

-

woot

- <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-94239b6d6b42c9b5{color:red}"} -
); diff --git a/packages/styled-jsx/transform/tests/fixture/whitespace/output.swc.js b/packages/styled-jsx/transform/tests/fixture/whitespace/output.swc.js index 53d2bfccf..b3c3e9456 100644 --- a/packages/styled-jsx/transform/tests/fixture/whitespace/output.swc.js +++ b/packages/styled-jsx/transform/tests/fixture/whitespace/output.swc.js @@ -1,12 +1,7 @@ import _JSXStyle from "styled-jsx/style"; export default (()=>
-

test

-

woot

-

woot

- <_JSXStyle id={"94239b6d6b42c9b5"}>{"p.jsx-94239b6d6b42c9b5{color:red}"} -
); diff --git a/packages/swc-confidential/CHANGELOG.md b/packages/swc-confidential/CHANGELOG.md index 5ede3e2a5..f4ec0eef6 100644 --- a/packages/swc-confidential/CHANGELOG.md +++ b/packages/swc-confidential/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-swc-confidential +## 1.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 1.0.6 ### Patch Changes diff --git a/packages/swc-confidential/Cargo.toml b/packages/swc-confidential/Cargo.toml index d91015aa9..5125629db 100644 --- a/packages/swc-confidential/Cargo.toml +++ b/packages/swc-confidential/Cargo.toml @@ -19,7 +19,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] serde_json = "1.0.117" -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } swc_confidential = { path = "./transform" } diff --git a/packages/swc-confidential/package.json b/packages/swc-confidential/package.json index 332f6fa3c..a7b82c2aa 100644 --- a/packages/swc-confidential/package.json +++ b/packages/swc-confidential/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-swc-confidential", - "version": "1.0.6", + "version": "1.0.7", "description": "SWC plugin for swc-confidential", "main": "swc_plugin_swc_confidential.wasm", "scripts": { diff --git a/packages/swc-confidential/transform/Cargo.toml b/packages/swc-confidential/transform/Cargo.toml index 215a76530..5ff3ae934 100644 --- a/packages/swc-confidential/transform/Cargo.toml +++ b/packages/swc-confidential/transform/Cargo.toml @@ -10,7 +10,7 @@ license = { workspace = true } name = "swc_confidential" repository = { workspace = true } rust-version = { workspace = true } -version = "0.19.14" +version = "0.19.15" [dependencies] @@ -19,13 +19,13 @@ hex = "0.4.3" magic-crypt = "3.1.13" serde = { version = "1.0.201", features = ["derive"] } swc_atoms = "0.6.7" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" [dev-dependencies] -swc_ecma_parser = "0.146.0" -swc_ecma_transforms_base = "0.140.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms_base = "0.140.1" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/swc-magic/CHANGELOG.md b/packages/swc-magic/CHANGELOG.md index b98386661..efcc88d9c 100644 --- a/packages/swc-magic/CHANGELOG.md +++ b/packages/swc-magic/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-swc-magic +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/swc-magic/Cargo.toml b/packages/swc-magic/Cargo.toml index 7b60a9419..3c1f04d40 100644 --- a/packages/swc-magic/Cargo.toml +++ b/packages/swc-magic/Cargo.toml @@ -19,7 +19,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] serde_json = "1.0.117" -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } swc_magic = { path = "./transform" } diff --git a/packages/swc-magic/README.md b/packages/swc-magic/README.md index f2b078a3e..a8bc03584 100644 --- a/packages/swc-magic/README.md +++ b/packages/swc-magic/README.md @@ -24,6 +24,12 @@ markAsPure(() => console.log("This will be removed by the SWC minifier")); # @swc/plugin-swc-magic +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/swc-magic/package.json b/packages/swc-magic/package.json index 9d76e75c3..c7e558ae7 100644 --- a/packages/swc-magic/package.json +++ b/packages/swc-magic/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-swc-magic", - "version": "2.0.6", + "version": "2.0.7", "description": "SWC plugin for swc-magic", "main": "swc_plugin_swc_magic.wasm", "scripts": { diff --git a/packages/swc-magic/transform/Cargo.toml b/packages/swc-magic/transform/Cargo.toml index 2d176c1bb..58de6076b 100644 --- a/packages/swc-magic/transform/Cargo.toml +++ b/packages/swc-magic/transform/Cargo.toml @@ -10,19 +10,19 @@ license = { workspace = true } name = "swc_magic" repository = { workspace = true } rust-version = { workspace = true } -version = "0.19.14" +version = "0.19.15" [dependencies] serde = { version = "1.0.201", features = ["derive"] } swc_atoms = "0.6.7" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" [dev-dependencies] -swc_ecma_parser = "0.146.0" -swc_ecma_transforms_base = "0.140.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms_base = "0.140.1" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0" diff --git a/packages/transform-imports/CHANGELOG.md b/packages/transform-imports/CHANGELOG.md index 037cff6f2..248f4ec4c 100644 --- a/packages/transform-imports/CHANGELOG.md +++ b/packages/transform-imports/CHANGELOG.md @@ -1,5 +1,11 @@ # @swc/plugin-transform-imports +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/transform-imports/Cargo.toml b/packages/transform-imports/Cargo.toml index 1987f69fd..eb18e1d89 100644 --- a/packages/transform-imports/Cargo.toml +++ b/packages/transform-imports/Cargo.toml @@ -20,10 +20,10 @@ crate-type = ["cdylib", "rlib"] [dependencies] modularize_imports = { path = "./transform" } serde_json = "1.0.117" -swc_common = { version = "0.34.0", features = ["concurrent"] } -swc_core = { version = "0.95.0", features = ["ecma_plugin_transform"] } -swc_ecma_ast = "0.115.0" -swc_ecma_utils = "0.130.0" +swc_common = { version = "0.34.3", features = ["concurrent"] } +swc_core = { version = "0.96.0", features = ["ecma_plugin_transform"] } +swc_ecma_ast = "0.115.1" +swc_ecma_utils = "0.130.1" swc_ecma_visit = "0.101.0" swc_plugin_macro = "0.9.16" tracing = { version = "0.1.40", features = ["release_max_level_off"] } diff --git a/packages/transform-imports/README.md b/packages/transform-imports/README.md index 50d51d1dd..82148e58f 100644 --- a/packages/transform-imports/README.md +++ b/packages/transform-imports/README.md @@ -18,6 +18,12 @@ # @swc/plugin-transform-imports +## 2.0.7 + +### Patch Changes + +- af25741: Update swc_core to 0.96.0 + ## 2.0.6 ### Patch Changes diff --git a/packages/transform-imports/package.json b/packages/transform-imports/package.json index 05b1bb2de..dd3865e81 100644 --- a/packages/transform-imports/package.json +++ b/packages/transform-imports/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-transform-imports", - "version": "2.0.6", + "version": "2.0.7", "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 b5741d258..ace744dcf 100644 --- a/packages/transform-imports/transform/Cargo.toml +++ b/packages/transform-imports/transform/Cargo.toml @@ -11,7 +11,7 @@ homepage = { workspace = true } license = { workspace = true } repository = { workspace = true } rust-version = { workspace = true } -version = "0.68.16" +version = "0.68.17" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -23,11 +23,11 @@ regex = "1.10" serde = "1" swc_atoms = "0.6.7" swc_cached = "0.3.20" -swc_common = "0.34.0" -swc_ecma_ast = "0.115.0" +swc_common = "0.34.3" +swc_ecma_ast = "0.115.1" swc_ecma_visit = "0.101.0" [dev-dependencies] -swc_ecma_parser = "0.146.0" -swc_ecma_transforms_testing = "0.143.0" +swc_ecma_parser = "0.146.7" +swc_ecma_transforms_testing = "0.143.1" testing = "0.36.0"