Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): Update swc_core to v0.69.0 #158

Merged
merged 14 commits into from
Mar 13, 2023
439 changes: 280 additions & 159 deletions Cargo.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/emotion/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
serde = "1"
serde_json = "1.0.79"
swc_common = {version = "0.29.29", features = ["concurrent"]}
swc_core = {version = "0.59.14", features = [
swc_common = {version = "0.29.37", features = ["concurrent"]}
swc_core = {version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-emotion",
"version": "2.5.46",
"version": "2.5.47",
"description": "SWC plugin for emotion css-in-js library",
"main": "swc_plugin_emotion.wasm",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions packages/emotion/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "swc_emotion"
repository = "https://github.com/swc-project/plugins.git"
version = "0.29.9"
version = "0.29.10"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -25,7 +25,7 @@ swc_core = { features = [
"ecma_utils",
"ecma_visit",
"trace_macro",
], version = "0.59.14" }
], version = "0.69.0" }
tracing = {version = "0.1.37", features = ["release_max_level_info"]}

[dev-dependencies]
Expand All @@ -34,5 +34,5 @@ swc_core = { features = [
"testing_transform",
"ecma_parser",
"ecma_transforms_react",
], version = "0.59.14" }
testing = "0.31.31"
], version = "0.69.0" }
testing = "0.31.39"
4 changes: 2 additions & 2 deletions packages/jest/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
phf = { version = "0.10.0", features = ["macros"] }
serde = { version = "1.0.130", features = ["derive"] }
swc_common = { version = "0.29.29", features = ["concurrent"] }
swc_core = { version = "0.59.14", features = [
swc_common = { version = "0.29.37", features = ["concurrent"] }
swc_core = { version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-jest",
"version": "1.5.46",
"version": "1.5.47",
"description": "SWC plugin for jest",
"main": "swc_plugin_jest.wasm",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/loadable-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ crate-type = ["cdylib", "rlib"]
once_cell = "1.13.1"
regex = "1.6.0"
serde_json = "1.0.79"
swc_common = { version = "0.29.29", features = ["concurrent"] }
swc_core = { version = "0.59.14", features = [
swc_common = { version = "0.29.37", features = ["concurrent"] }
swc_core = { version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand All @@ -26,4 +26,4 @@ swc_core = { version = "0.59.14", features = [
tracing = { version = "0.1.37", features = ["release_max_level_off"] }

[dev-dependencies]
testing = "0.31.31"
testing = "0.31.39"
2 changes: 1 addition & 1 deletion packages/loadable-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-loadable-components",
"version": "0.3.46",
"version": "0.3.47",
"description": "SWC plugin for `@loadable/components`",
"main": "swc_plugin_loadable_components.wasm",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/noop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ version = "0.12.3"
crate-type = ["cdylib", "rlib"]

[dependencies]
swc_common = { version = "0.29.29", features = ["concurrent"] }
swc_core = { version = "0.59.14", features = [
swc_common = { version = "0.29.37", features = ["concurrent"] }
swc_core = { version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand Down
2 changes: 1 addition & 1 deletion packages/noop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-noop",
"version": "1.5.44",
"version": "1.5.45",
"description": "Noop SWC plugin, for debugging",
"main": "swc_plugin_noop.wasm",
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions packages/relay/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ once_cell = "1.8.0"
regex = "1.5"
serde = "1"
serde_json = "1"
swc_common = { version = "0.29.29", features = ["concurrent"] }
swc_core = { version = "0.59.14", features = [
swc_common = { version = "0.29.37", features = ["concurrent"] }
swc_core = { version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand All @@ -26,4 +26,4 @@ swc_core = { version = "0.59.14", features = [
tracing = { version = "0.1.37", features = ["release_max_level_off"] }

[dev-dependencies]
testing = "0.31.14"
testing = "0.31.39"
2 changes: 1 addition & 1 deletion packages/relay/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-relay",
"version": "1.5.46",
"version": "1.5.47",
"description": "SWC plugin for relay",
"main": "swc_plugin_relay.wasm",
"types": "./types.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/styled-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ crate-type = ["cdylib", "rlib"]
serde = {version = "1.0.136", features = ["derive"]}
serde_json = "1.0.79"
styled_components = {version = "0.53.0", path = "./transform"}
swc_common = {version = "0.29.29", features = ["concurrent"]}
swc_core = {version = "0.59.14", features = [
swc_common = {version = "0.29.37", features = ["concurrent"]}
swc_core = {version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand Down
2 changes: 1 addition & 1 deletion packages/styled-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-styled-components",
"version": "1.5.46",
"version": "1.5.47",
"description": "SWC plugin for styled-components",
"main": "swc_plugin_styled_components.wasm",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions packages/styled-components/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0"
name = "styled_components"
repository = "https://github.com/swc-project/plugins.git"
version = "0.53.9"
version = "0.53.10"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -23,7 +23,7 @@ swc_core = { features = [
"ecma_ast",
"ecma_utils",
"ecma_visit",
], version = "0.59.14" }
], version = "0.69.0" }
tracing = "0.1.37"

[dev-dependencies]
Expand All @@ -32,5 +32,5 @@ swc_core = { features = [
"ecma_parser",
"ecma_transforms",
"testing_transform",
], version = "0.59.14" }
testing = "0.31.31"
], version = "0.69.0" }
testing = "0.31.39"
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ impl VisitMut for TranspileCssProp {
_ => false,
} =>
{
Expr::Tpl(v.tpl.take())
Expr::Tpl(*v.tpl.take())
}
Expr::Object(..) => *v.take(),
_ => Expr::Tpl(Tpl {
Expand Down Expand Up @@ -234,7 +234,7 @@ impl VisitMut for TranspileCssProp {
css = Expr::Arrow(ArrowExpr {
span: DUMMY_SP,
params: vec![Pat::Ident(p.clone().into())],
body: BlockStmtOrExpr::Expr(Box::new(css.take())),
body: Box::new(BlockStmtOrExpr::Expr(Box::new(css.take()))),
is_async: false,
is_generator: false,
type_params: Default::default(),
Expand Down Expand Up @@ -277,9 +277,9 @@ impl VisitMut for TranspileCssProp {
acc.push(Box::new(Expr::Arrow(ArrowExpr {
span: DUMMY_SP,
params: vec![Pat::Ident(p.clone().into())],
body: BlockStmtOrExpr::Expr(Box::new(
body: Box::new(BlockStmtOrExpr::Expr(Box::new(
p.make_member(identifier),
)),
))),
is_async: false,
is_generator: false,
type_params: Default::default(),
Expand All @@ -306,7 +306,7 @@ impl VisitMut for TranspileCssProp {
span: DUMMY_SP,
tag: Box::new(styled),
type_params: Default::default(),
tpl: css.expect_tpl(),
tpl: Box::new(css.expect_tpl()),
})),
}),
definite: false,
Expand Down
6 changes: 3 additions & 3 deletions packages/styled-jsx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ custom_transform = ["swc_core/common_concurrent"]
[dependencies]
easy-error = "1.0.0"
styled_jsx = {version = "0.30.0", path = "./transform"}
swc_core = {version = "0.59.14", features = [
swc_core = {version = "0.69.0", features = [
"common",
"ecma_ast",
"ecma_plugin_transform",
Expand All @@ -33,5 +33,5 @@ swc_core = {version = "0.59.14", features = [
tracing = {version = "0.1.37", features = ["release_max_level_off"]}

[dev-dependencies]
swc_core = {features = ["testing_transform"], version = "0.59.14"}
testing = "0.31.31"
swc_core = {features = ["testing_transform"], version = "0.69.0"}
testing = "0.31.39"
2 changes: 1 addition & 1 deletion packages/styled-jsx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-styled-jsx",
"version": "1.5.46",
"version": "1.5.47",
"description": "SWC plugin for styled-jsx",
"main": "swc_plugin_styled_jsx.wasm",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions packages/styled-jsx/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description = "AST transforms visitor for styled-jsx"
edition = "2021"
license = "Apache-2.0"
name = "styled_jsx"
version = "0.30.9"
version = "0.30.10"

[features]
custom_transform = ["swc_core/common_concurrent"]
Expand All @@ -13,7 +13,7 @@ custom_transform = ["swc_core/common_concurrent"]
easy-error = "1.0.0"
tracing = "0.1.37"

swc_core = { version = "0.59.14", features = [
swc_core = { version = "0.69.0", features = [
"common",
"ecma_ast",
"css_ast",
Expand All @@ -28,5 +28,5 @@ swc_core = { version = "0.59.14", features = [
] }

[dev-dependencies]
testing = "0.31.31"
swc_core = { features = ["testing_transform"], version = "0.59.14" }
testing = "0.31.39"
swc_core = { features = ["testing_transform"], version = "0.69.0" }
2 changes: 1 addition & 1 deletion packages/styled-jsx/transform/src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ impl StyledJSXTransformer {
}

let style = self.get_jsx_style(
StyleExpr::Tpl(&tagged_tpl.tpl, &Expr::Tpl(tagged_tpl.tpl.clone())),
StyleExpr::Tpl(&tagged_tpl.tpl, &Expr::Tpl(*tagged_tpl.tpl.clone())),
false,
);
let styles = vec![style];
Expand Down
4 changes: 2 additions & 2 deletions packages/transform-imports/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
modularize_imports = {version = "0.26.0", path = "./transform"}
serde_json = "1.0.79"
swc_common = {version = "0.29.29", features = ["concurrent"]}
swc_core = {version = "0.59.14", features = [
swc_common = {version = "0.29.37", features = ["concurrent"]}
swc_core = {version = "0.69.0", features = [
"ecma_plugin_transform",
"ecma_utils",
"ecma_visit",
Expand Down
2 changes: 1 addition & 1 deletion packages/transform-imports/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-transform-imports",
"version": "1.5.46",
"version": "1.5.47",
"description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-transform-imports",
"main": "swc_plugin_transform_imports.wasm",
"scripts": {
Expand Down
8 changes: 4 additions & 4 deletions packages/transform-imports/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "modularize_imports"
repository = "https://github.com/swc-project/plugins.git"
version = "0.26.9"
version = "0.26.10"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -19,8 +19,8 @@ swc_core = { features = [
"cached",
"ecma_ast",
"ecma_visit",
], version = "0.59.14" }
], version = "0.69.0" }

[dev-dependencies]
swc_core = { features = ["testing_transform", "ecma_parser"], version = "0.59.14" }
testing = "0.31.31"
swc_core = { features = ["testing_transform", "ecma_parser"], version = "0.69.0" }
testing = "0.31.39"