Skip to content

Commit

Permalink
build: Update swc_core to v1.0.0 (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Oct 14, 2024
1 parent 5457bd3 commit b87b782
Show file tree
Hide file tree
Showing 56 changed files with 355 additions and 172 deletions.
228 changes: 114 additions & 114 deletions Cargo.lock

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,37 @@ magic-crypt = "3.1.13"
once_cell = "1.19.0"
parcel_selectors = "0.27.0"
phf = "0.11.2"
preset_env_base = "0.6.0"
preset_env_base = "1.0.0"
radix_fmt = "1"
regex = { version = "1.10.4", default-features = false }
serde = "1.0.203"
serde_json = "1.0.117"
sourcemap = "9.0.0"
swc_atoms = "1.0.0"
swc_cached = "0.3.20"
swc_common = "0.40.0"
swc_core = "0.106.0"
swc_css_ast = "0.147.0"
swc_css_codegen = "0.158.0"
swc_css_compat = "0.34.0"
swc_css_minifier = "0.123.0"
swc_css_parser = "0.157.0"
swc_css_prefixer = "0.161.0"
swc_css_visit = "0.146.0"
swc_ecma_ast = "0.121.0"
swc_ecma_codegen = "0.158.0"
swc_ecma_minifier = "0.208.0"
swc_ecma_parser = "0.152.0"
swc_ecma_transforms = "0.243.0"
swc_ecma_transforms_base = "0.149.0"
swc_ecma_transforms_react = "0.195.0"
swc_ecma_transforms_testing = "0.152.0"
swc_ecma_utils = "0.137.0"
swc_ecma_visit = "0.107.0"
swc_plugin_macro = "0.9.16"
swc_plugin_proxy = "0.50.0"
swc_trace_macro = "1.0.0"
testing = "0.42.0"
swc_atoms = "2.0.0"
swc_cached = "1.0.0"
swc_common = "1.0.0"
swc_core = "1.0.0"
swc_css_ast = "1.0.0"
swc_css_codegen = "1.0.0"
swc_css_compat = "1.0.0"
swc_css_minifier = "1.0.0"
swc_css_parser = "1.0.0"
swc_css_prefixer = "1.0.0"
swc_css_visit = "1.0.0"
swc_ecma_ast = "1.0.0"
swc_ecma_codegen = "1.0.0"
swc_ecma_minifier = "1.0.0"
swc_ecma_parser = "1.0.0"
swc_ecma_transforms = "1.0.0"
swc_ecma_transforms_base = "1.0.0"
swc_ecma_transforms_react = "1.0.0"
swc_ecma_transforms_testing = "1.0.0"
swc_ecma_utils = "1.0.0"
swc_ecma_visit = "1.0.0"
swc_plugin_macro = "1.0.0"
swc_plugin_proxy = "1.0.0"
swc_trace_macro = "2.0.0"
testing = "1.0.0"
tracing = "0.1.40"


Expand Down
6 changes: 6 additions & 0 deletions packages/emotion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-emotion

## 4.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 4.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/emotion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Source code for plugin itself (not transforms) are copied from https://github.co
# @swc/plugin-emotion
## 4.0.3
### Patch Changes
- cd5ad2a: Update swc_core to 1.0
## 4.0.2
### Patch Changes
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": "4.0.2",
"version": "4.0.3",
"description": "SWC plugin for emotion css-in-js library",
"main": "swc_plugin_emotion.wasm",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/emotion/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = { workspace = true }
name = "swc_emotion"
repository = { workspace = true }
rust-version = { workspace = true }
version = "0.72.23"
version = "0.72.24"


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions packages/jest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-jest

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# @swc/plugin-jest

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
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": "3.0.2",
"version": "3.0.3",
"description": "SWC plugin for jest",
"main": "swc_plugin_jest.wasm",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/loadable-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-loadable-components

## 2.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 2.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/loadable-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ By default `loadable-components` are configured to transform dynamic imports use

# @swc/plugin-loadable-components

## 2.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 2.0.2

### Patch Changes
Expand Down
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": "2.0.2",
"version": "2.0.3",
"description": "SWC plugin for `@loadable/components`",
"main": "swc_plugin_loadable_components.wasm",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/noop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-noop

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/noop/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

# @swc/plugin-noop

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
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": "3.0.2",
"version": "3.0.3",
"description": "Noop SWC plugin, for debugging",
"main": "swc_plugin_noop.wasm",
"scripts": {
Expand Down
6 changes: 6 additions & 0 deletions packages/prefresh/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-prefresh

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/prefresh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ And SWC has built-in React Refresh transformation, therefore, this plugin only i

# @swc/plugin-prefresh

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/prefresh/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-prefresh",
"version": "3.0.2",
"version": "3.0.3",
"description": "SWC plugin for preact refresh",
"main": "swc_plugin_prefresh.wasm",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/prefresh/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
version = "0.1.7"
version = "0.1.8"

[dependencies]
serde = { workspace = true, features = ["derive"] }
Expand Down
6 changes: 6 additions & 0 deletions packages/react-remove-properties/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-react-remove-properties

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/react-remove-properties/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ or

# @swc/plugin-react-remove-properties

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react-remove-properties/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@swc/plugin-react-remove-properties",
"version": "3.0.2",
"version": "3.0.3",
"description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-react-remove-properties",
"main": "swc_plugin_react_remove_properties.wasm",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-remove-properties/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
version = "0.24.21"
version = "0.24.22"


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
6 changes: 6 additions & 0 deletions packages/relay/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @swc/plugin-relay

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
6 changes: 6 additions & 0 deletions packages/relay/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ In this example typescript graphql files will output transpiled import path of `

# @swc/plugin-relay

## 3.0.3

### Patch Changes

- cd5ad2a: Update swc_core to 1.0

## 3.0.2

### Patch Changes
Expand Down
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": "3.0.2",
"version": "3.0.3",
"description": "SWC plugin for relay",
"main": "swc_plugin_relay.wasm",
"types": "./types.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/relay/transform/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
rust-version = { workspace = true }
version = "0.44.26"
version = "0.44.27"


# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
27 changes: 21 additions & 6 deletions packages/relay/transform/tests/fixture.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::path::{Path, PathBuf};

use swc_common::FileName;
use swc_ecma_transforms_testing::test_fixture;
use swc_ecma_transforms_testing::{test_fixture, FixtureTestConfig};
use swc_relay::{relay, Config, OutputFileExtension, ProjectConfig, RelayLanguageConfig};

#[testing::fixture("tests/fixture/simple/**/input.js")]
Expand All @@ -28,7 +28,10 @@ fn fixture(input: PathBuf) {
},
&input,
&output,
Default::default(),
FixtureTestConfig {
module: Some(true),
..Default::default()
},
);
}

Expand Down Expand Up @@ -56,7 +59,10 @@ fn fixture_es_modules(input: PathBuf) {
},
&input,
&output,
Default::default(),
FixtureTestConfig {
module: Some(true),
..Default::default()
},
);
}

Expand Down Expand Up @@ -84,7 +90,10 @@ fn fixture_output_file_extension_javascript(input: PathBuf) {
},
&input,
&output,
Default::default(),
FixtureTestConfig {
module: Some(true),
..Default::default()
},
);
}

Expand Down Expand Up @@ -112,7 +121,10 @@ fn fixture_output_file_extension_typescript(input: PathBuf) {
},
&input,
&output,
Default::default(),
FixtureTestConfig {
module: Some(true),
..Default::default()
},
);
}

Expand Down Expand Up @@ -160,6 +172,9 @@ fn fixture_multi_projects(input: PathBuf) {
},
&input,
&output,
Default::default(),
FixtureTestConfig {
module: Some(true),
..Default::default()
},
);
}
Loading

0 comments on commit b87b782

Please sign in to comment.