From d23adda1535ff508697072a39cdbad5592857d86 Mon Sep 17 00:00:00 2001 From: Timofei Iatsenko Date: Wed, 7 Feb 2024 15:51:05 +0100 Subject: [PATCH] fix: set version of swc_common (#81) https://github.com/swc-project/swc/issues/8613 --- Cargo.lock | 17 +++++++++-------- Cargo.toml | 1 + README.md | 3 ++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 0c8ecec..2a0a9f0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -526,6 +526,7 @@ dependencies = [ "serde", "serde_json", "sha2", + "swc_common", "swc_core", ] @@ -1229,9 +1230,9 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.33.16" +version = "0.33.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0a15b8a5ec7b3c87b5c602dec00caf3dbb07fe2daaaa1d144d0c00a612e0890c" +checksum = "3792c10fa5d3e93a705b31f13fdea4a6e68c3c20d4351e84ed1741b7864399cd" dependencies = [ "anyhow", "ast_node", @@ -1354,9 +1355,9 @@ dependencies = [ [[package]] name = "swc_ecma_testing" -version = "0.22.18" +version = "0.22.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bfc1ad4ecd99954ab9304eaaeccce7ba5d1e2d27102eea78e6817d1d21bea58" +checksum = "8b73fd79980ad3182437a62dc0413bcd00e6157a7fcf5a64a86fa264ec6672ba" dependencies = [ "anyhow", "hex", @@ -1459,9 +1460,9 @@ dependencies = [ [[package]] name = "swc_error_reporters" -version = "0.17.15" +version = "0.17.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aed28e3bcc05839332abfbdeeb49686083f5542452aed7662d76cf062f1cbbc" +checksum = "be42e786ee9bda3f72f7d7de791e1d7b49ab7f86ed54fdc5808681ae04406080" dependencies = [ "anyhow", "miette", @@ -1613,9 +1614,9 @@ dependencies = [ [[package]] name = "testing" -version = "0.35.17" +version = "0.35.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c090eccb0eab8cc5ef0667d76f0d8b6dfaf264ed76f94d24f72d54421604a8d" +checksum = "42599f638bd2b48c2892cf330862aca433c86286ae776d75c5074ba3b4935ed8" dependencies = [ "ansi_term", "cargo_metadata", diff --git a/Cargo.toml b/Cargo.toml index 350d4e8..05c692c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,6 +22,7 @@ serde = "1" serde_json = "1.0.95" regex = "1.7.3" once_cell = "1.17.1" +swc_common = "=0.33.15" swc_core = { version = "0.87.28", features = [ "ecma_plugin_transform", "ecma_utils", diff --git a/README.md b/README.md index b2aa20d..54b95de 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,8 @@ So you need to select an appropriate version of the plugin to match compatible ` | `4.0.2` | `0.76.41` | `@swc/core@1.3.58` ~ `@swc/core@1.3.62`
`next@v13.4.3-canary.2` ~ | | `4.0.3` | `0.78.28` | `@swc/core@1.3.63` ~ `@swc/core@1.3.67`
`next@v13.4.8 ~ next@v13.4.10-canary.0` | | `4.0.4` | `0.79.x` | `@swc/core@1.3.68` ~ `@swc/core@1.3.80`
`next@v13.4.10-canary.1` ~ | -| `4.0.5` | `0.87.x` | `@swc/core@1.3.81 ~ @swc/core@1.3.105`
`~ next@v14.1.0` | +| `4.0.5` | `0.87.x` | broken due incorrect version of `swc_common` | +| `4.0.6` | `0.87.x` | `@swc/core@1.3.81 ~ @swc/core@1.3.105`
`~ next@v14.1.0` | This table may become outdated. If you don't see a particular version of `@swc/core` or `next` check the compatibility by referring to the upstream's [Selecting the version](https://swc.rs/docs/plugin/selecting-swc-core) article. This will help you select the appropriate plugin version for your project.