From 12d6b66606c34511ba093d52fb51ce77d03a7884 Mon Sep 17 00:00:00 2001 From: Julien Karst Date: Tue, 24 Oct 2023 12:22:10 +0200 Subject: [PATCH 01/25] fix: does not specify import path --- packages/relay/transform/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/relay/transform/src/lib.rs b/packages/relay/transform/src/lib.rs index 22bff3a87..c697a0cba 100644 --- a/packages/relay/transform/src/lib.rs +++ b/packages/relay/transform/src/lib.rs @@ -162,7 +162,7 @@ impl<'a> Relay<'a> { let filename = match &self.config.language { RelayLanguageConfig::Flow => format!("{}.graphql.js", definition_name), RelayLanguageConfig::TypeScript => { - format!("{}.graphql.ts", definition_name) + format!("{}.graphql", definition_name) } RelayLanguageConfig::JavaScript => { format!("{}.graphql.js", definition_name) From 9bc221ee9153a40e43bef5a8e380235e67a4ead9 Mon Sep 17 00:00:00 2001 From: Julien Karst Date: Tue, 24 Oct 2023 21:08:02 +0200 Subject: [PATCH 02/25] feat: add outputFileExtension to specify which output extension to use --- packages/relay/src/lib.rs | 6 +++- packages/relay/transform/src/lib.rs | 45 ++++++++++++++++++++++++----- 2 files changed, 42 insertions(+), 9 deletions(-) diff --git a/packages/relay/src/lib.rs b/packages/relay/src/lib.rs index c7c296b27..7af81836c 100644 --- a/packages/relay/src/lib.rs +++ b/packages/relay/src/lib.rs @@ -6,7 +6,7 @@ use swc_core::{ ecma::{ast::Program, visit::FoldWith}, plugin::{plugin_transform, proxies::TransformPluginProgramMetadata}, }; -use swc_relay::{relay, Config, RelayLanguageConfig}; +use swc_relay::{relay, Config, RelayLanguageConfig, OutputFileExtension}; #[plugin_transform] fn relay_plugin_transform(program: Program, metadata: TransformPluginProgramMetadata) -> Program { @@ -40,6 +40,9 @@ fn relay_plugin_transform(program: Program, metadata: TransformPluginProgramMeta let language = plugin_config["language"] .as_str() .map_or(RelayLanguageConfig::TypeScript, |v| v.try_into().unwrap()); + let output_file_extension = plugin_config["outputFileExtension"] + .as_str() + .map_or(OutputFileExtension::Undefined, |v| v.try_into().unwrap()); let eager_es_modules = plugin_config["eagerEsModules"] .as_bool() .unwrap_or_default(); @@ -48,6 +51,7 @@ fn relay_plugin_transform(program: Program, metadata: TransformPluginProgramMeta artifact_directory, language, eager_es_modules, + output_file_extension }; let mut relay = relay( diff --git a/packages/relay/transform/src/lib.rs b/packages/relay/transform/src/lib.rs index c697a0cba..200a85e84 100644 --- a/packages/relay/transform/src/lib.rs +++ b/packages/relay/transform/src/lib.rs @@ -21,6 +21,14 @@ pub enum RelayLanguageConfig { Flow, } +#[derive(Copy, Clone, Debug, Deserialize)] +#[serde(rename_all = "lowercase")] +pub enum OutputFileExtension { + TypeScript, + JavaScript, + Undefined +} + impl<'a> TryFrom<&'a str> for RelayLanguageConfig { type Error = String; @@ -33,12 +41,31 @@ impl<'a> TryFrom<&'a str> for RelayLanguageConfig { } } + +impl<'a> TryFrom<&'a str> for OutputFileExtension { + type Error = String; + + fn try_from(value: &'a str) -> Result { + match value { + "ts" => Ok(Self::TypeScript), + "js" => Ok(Self::JavaScript), + _ => Err(format!("Unexpected output file extension value '{}'", value)), + } + } +} + impl Default for RelayLanguageConfig { fn default() -> Self { Self::Flow } } +impl Default for OutputFileExtension { + fn default() -> Self { + Self::Undefined + } +} + #[derive(Debug, Clone)] struct RelayImport { path: JsWord, @@ -81,6 +108,8 @@ pub struct Config { pub language: RelayLanguageConfig, #[serde(default)] pub eager_es_modules: bool, + #[serde(default)] + pub output_file_extension: OutputFileExtension, } fn pull_first_operation_name_from_tpl(tpl: &TaggedTpl) -> Option { @@ -159,14 +188,14 @@ impl<'a> Relay<'a> { real_file_name: &Path, definition_name: &str, ) -> Result { - let filename = match &self.config.language { - RelayLanguageConfig::Flow => format!("{}.graphql.js", definition_name), - RelayLanguageConfig::TypeScript => { - format!("{}.graphql", definition_name) - } - RelayLanguageConfig::JavaScript => { - format!("{}.graphql.js", definition_name) - } + let filename = match &self.config.output_file_extension { + OutputFileExtension::JavaScript => format!("{}.graphql.js", definition_name), + OutputFileExtension::TypeScript => format!("{}.graphql.ts", definition_name), + OutputFileExtension::Undefined => match &self.config.language { + RelayLanguageConfig::Flow => format!("{}.graphql.js", definition_name), + RelayLanguageConfig::TypeScript => format!("{}.graphql.ts", definition_name), + RelayLanguageConfig::JavaScript => format!("{}.graphql.js", definition_name), + }, }; if let Some(artifact_directory) = &self.config.artifact_directory { From 3d788f223fe417d03edf2470972ac1fbe5ae7ccd Mon Sep 17 00:00:00 2001 From: Julien Karst Date: Tue, 24 Oct 2023 21:08:14 +0200 Subject: [PATCH 03/25] test: add outputFileExtension to specify which output extension to use --- packages/relay/transform/tests/fixture.rs | 56 ++++++++++++++++++- .../outputFileExtension/javascript/input.js | 10 ++++ .../outputFileExtension/javascript/output.js | 4 ++ .../outputFileExtension/typescript/input.js | 10 ++++ .../outputFileExtension/typescript/output.js | 4 ++ 5 files changed, 83 insertions(+), 1 deletion(-) create mode 100644 packages/relay/transform/tests/fixture/outputFileExtension/javascript/input.js create mode 100644 packages/relay/transform/tests/fixture/outputFileExtension/javascript/output.js create mode 100644 packages/relay/transform/tests/fixture/outputFileExtension/typescript/input.js create mode 100644 packages/relay/transform/tests/fixture/outputFileExtension/typescript/output.js diff --git a/packages/relay/transform/tests/fixture.rs b/packages/relay/transform/tests/fixture.rs index 603b04eb2..9f13bd3d6 100644 --- a/packages/relay/transform/tests/fixture.rs +++ b/packages/relay/transform/tests/fixture.rs @@ -2,7 +2,7 @@ use std::path::PathBuf; use swc_common::FileName; use swc_ecma_transforms_testing::test_fixture; -use swc_relay::{relay, Config, RelayLanguageConfig}; +use swc_relay::{relay, Config, RelayLanguageConfig, OutputFileExtension}; #[testing::fixture("tests/fixture/simple/**/input.js")] fn fixture(input: PathBuf) { @@ -16,6 +16,7 @@ fn fixture(input: PathBuf) { artifact_directory: None, language: RelayLanguageConfig::TypeScript, eager_es_modules: false, + output_file_extension: OutputFileExtension::Undefined, }, FileName::Real("file.js".parse().unwrap()), Default::default(), @@ -41,6 +42,59 @@ fn fixture_es_modules(input: PathBuf) { artifact_directory: None, language: RelayLanguageConfig::TypeScript, eager_es_modules: true, + output_file_extension: OutputFileExtension::Undefined, + }, + FileName::Real("file.js".parse().unwrap()), + Default::default(), + None, + None, + ) + }, + &input, + &output, + Default::default(), + ); +} + +#[testing::fixture("tests/fixture/outputFileExtension/javascript/**/input.js")] +fn fixture_output_file_extension_javascript(input: PathBuf) { + let output = input.parent().unwrap().join("output.js"); + + test_fixture( + Default::default(), + &|_| { + relay( + &Config { + artifact_directory: None, + language: RelayLanguageConfig::TypeScript, + eager_es_modules: true, + output_file_extension: OutputFileExtension::JavaScript, + }, + FileName::Real("file.js".parse().unwrap()), + Default::default(), + None, + None, + ) + }, + &input, + &output, + Default::default(), + ); +} + +#[testing::fixture("tests/fixture/outputFileExtension/typescript/**/input.js")] +fn fixture_output_file_extension_typescript(input: PathBuf) { + let output = input.parent().unwrap().join("output.js"); + + test_fixture( + Default::default(), + &|_| { + relay( + &Config { + artifact_directory: None, + language: RelayLanguageConfig::JavaScript, + eager_es_modules: true, + output_file_extension: OutputFileExtension::TypeScript, }, FileName::Real("file.js".parse().unwrap()), Default::default(), diff --git a/packages/relay/transform/tests/fixture/outputFileExtension/javascript/input.js b/packages/relay/transform/tests/fixture/outputFileExtension/javascript/input.js new file mode 100644 index 000000000..7998bde80 --- /dev/null +++ b/packages/relay/transform/tests/fixture/outputFileExtension/javascript/input.js @@ -0,0 +1,10 @@ +const myFragment = graphql` + fragment FooFragment on Bar { + id + } +` +useQuery(graphql` + query FooQuery { + id + } +`) \ No newline at end of file diff --git a/packages/relay/transform/tests/fixture/outputFileExtension/javascript/output.js b/packages/relay/transform/tests/fixture/outputFileExtension/javascript/output.js new file mode 100644 index 000000000..8d1e17239 --- /dev/null +++ b/packages/relay/transform/tests/fixture/outputFileExtension/javascript/output.js @@ -0,0 +1,4 @@ +import __FooFragment from "__generated__/FooFragment.graphql.js"; +import __FooQuery from "__generated__/FooQuery.graphql.js"; +const myFragment = __FooFragment; +useQuery(__FooQuery); diff --git a/packages/relay/transform/tests/fixture/outputFileExtension/typescript/input.js b/packages/relay/transform/tests/fixture/outputFileExtension/typescript/input.js new file mode 100644 index 000000000..7998bde80 --- /dev/null +++ b/packages/relay/transform/tests/fixture/outputFileExtension/typescript/input.js @@ -0,0 +1,10 @@ +const myFragment = graphql` + fragment FooFragment on Bar { + id + } +` +useQuery(graphql` + query FooQuery { + id + } +`) \ No newline at end of file diff --git a/packages/relay/transform/tests/fixture/outputFileExtension/typescript/output.js b/packages/relay/transform/tests/fixture/outputFileExtension/typescript/output.js new file mode 100644 index 000000000..ab4df6280 --- /dev/null +++ b/packages/relay/transform/tests/fixture/outputFileExtension/typescript/output.js @@ -0,0 +1,4 @@ +import __FooFragment from "__generated__/FooFragment.graphql.ts"; +import __FooQuery from "__generated__/FooQuery.graphql.ts"; +const myFragment = __FooFragment; +useQuery(__FooQuery); From f612da4bbb905a8a1b263a4d905993d4b6769249 Mon Sep 17 00:00:00 2001 From: Julien Karst Date: Tue, 24 Oct 2023 21:19:11 +0200 Subject: [PATCH 04/25] docs: add information on the readme --- packages/relay/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/packages/relay/README.md b/packages/relay/README.md index d90e41799..85e5cae58 100644 --- a/packages/relay/README.md +++ b/packages/relay/README.md @@ -63,3 +63,24 @@ const swcConfig = require("./.swcrc.js") ``` > Note: We're using a `.swcrc.js` file extension up above and importing the config directly because Relay needs access to `__dirname`, which can't be derived from the default JSON parsed from `.swcrc`. + +#### Output import paths + +By default, `@swc/plugin-relay` will transpile import paths based on the `language` option. +You can use `outputFileExtension` to change the file extension of the generated import paths. + +```js +plugins: [ + [ + "@swc/plugin-relay", + { + rootDir: __dirname, + artifactDirectory: "src/__generated__", + language: "typescript", + eagerEsModules: true, + outputFileExtension: "js", + }, + ], +], +``` +In this example typescript graphql files will output transpiled import path of `javascript` ending with `.js`. \ No newline at end of file From b075d50371b0aa245de36e315762f8ea1542e6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:49 -0700 Subject: [PATCH 05/25] Bump npm package: ./packages/constify --- packages/constify/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/constify/package.json b/packages/constify/package.json index 6bc56e251..3eac0c027 100644 --- a/packages/constify/package.json +++ b/packages/constify/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-constify", - "version": "0.1.23", + "version": "0.1.24", "description": "SWC plugin for optimization", "main": "swc_plugin_constify.wasm", "scripts": { From 407466366db3122a12ad6043af168f7213915be7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:49 -0700 Subject: [PATCH 06/25] Bump npm package: ./packages/emotion --- packages/emotion/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/emotion/package.json b/packages/emotion/package.json index 1463ad15b..4b7360944 100644 --- a/packages/emotion/package.json +++ b/packages/emotion/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-emotion", - "version": "2.5.93", + "version": "2.5.94", "description": "SWC plugin for emotion css-in-js library", "main": "swc_plugin_emotion.wasm", "scripts": { From 6d3818259a10153b3ed6c02be75712a0a86a2e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:50 -0700 Subject: [PATCH 07/25] Bump npm package: ./packages/jest --- packages/jest/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest/package.json b/packages/jest/package.json index f126d3ae4..47e705630 100644 --- a/packages/jest/package.json +++ b/packages/jest/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-jest", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for jest", "main": "swc_plugin_jest.wasm", "scripts": { From 646bb0ed803e7debebe3bd4a9511dcb5ee412cd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:50 -0700 Subject: [PATCH 08/25] Bump npm package: ./packages/loadable-components --- packages/loadable-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/loadable-components/package.json b/packages/loadable-components/package.json index ea6bfa09e..e898f47f1 100644 --- a/packages/loadable-components/package.json +++ b/packages/loadable-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-loadable-components", - "version": "0.3.93", + "version": "0.3.94", "description": "SWC plugin for `@loadable/components`", "main": "swc_plugin_loadable_components.wasm", "scripts": { From 923eb69118e3fe7476a8890a588fbafd457ff859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:50 -0700 Subject: [PATCH 09/25] Bump npm package: ./packages/noop --- packages/noop/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/noop/package.json b/packages/noop/package.json index b4c881cd8..9f67ef89f 100644 --- a/packages/noop/package.json +++ b/packages/noop/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-noop", - "version": "1.5.91", + "version": "1.5.92", "description": "Noop SWC plugin, for debugging", "main": "swc_plugin_noop.wasm", "scripts": { From 06d1a3bf4e581ac1a10732ac9cca72e96580ccc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:50 -0700 Subject: [PATCH 10/25] Bump npm package: ./packages/react-remove-properties --- packages/react-remove-properties/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-remove-properties/package.json b/packages/react-remove-properties/package.json index 14907ac21..0af6bfff7 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": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-react-remove-properties", "main": "swc_plugin_react_remove_properties.wasm", "scripts": { From 053e9fc243c9083782e1a49ed1338dde91144656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:50 -0700 Subject: [PATCH 11/25] Bump npm package: ./packages/relay --- packages/relay/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/relay/package.json b/packages/relay/package.json index 20f7c7fde..8d844492e 100644 --- a/packages/relay/package.json +++ b/packages/relay/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-relay", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for relay", "main": "swc_plugin_relay.wasm", "types": "./types.d.ts", From dba513107dfe1e287f0917dabbeefbdb96138016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:50 -0700 Subject: [PATCH 12/25] Bump npm package: ./packages/remove-console --- packages/remove-console/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/remove-console/package.json b/packages/remove-console/package.json index ce166400f..eecdc8844 100644 --- a/packages/remove-console/package.json +++ b/packages/remove-console/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-remove-console", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-remove-console", "main": "swc_plugin_remove_console.wasm", "scripts": { From 89478312e96961b8b839d7dfda68515e7d351503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:51 -0700 Subject: [PATCH 13/25] Bump npm package: ./packages/styled-components --- packages/styled-components/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/styled-components/package.json b/packages/styled-components/package.json index c4307bf8e..902f9aaaf 100644 --- a/packages/styled-components/package.json +++ b/packages/styled-components/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-components", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for styled-components", "main": "swc_plugin_styled_components.wasm", "scripts": { From d686ca3ce4789c59a99feab27def817d265b1a95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:51 -0700 Subject: [PATCH 14/25] Bump npm package: ./packages/styled-jsx --- packages/styled-jsx/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/styled-jsx/package.json b/packages/styled-jsx/package.json index 47950b389..9317ecb94 100644 --- a/packages/styled-jsx/package.json +++ b/packages/styled-jsx/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-styled-jsx", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for styled-jsx", "main": "swc_plugin_styled_jsx.wasm", "scripts": { From 82e49c6079e5b4bc53e664ddb7f59b871f180fdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:51 -0700 Subject: [PATCH 15/25] Bump npm package: ./packages/swc-magic --- packages/swc-magic/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/swc-magic/package.json b/packages/swc-magic/package.json index 5d3de3942..875ecf3cf 100644 --- a/packages/swc-magic/package.json +++ b/packages/swc-magic/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-swc-magic", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for swc-magic", "main": "swc_plugin_swc_magic.wasm", "scripts": { From e252b0399a7bdee61e4a71cd35a6c26c024a5f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:51 -0700 Subject: [PATCH 16/25] Bump npm package: ./packages/transform-imports --- packages/transform-imports/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/transform-imports/package.json b/packages/transform-imports/package.json index ba4a7c701..f67714845 100644 --- a/packages/transform-imports/package.json +++ b/packages/transform-imports/package.json @@ -1,6 +1,6 @@ { "name": "@swc/plugin-transform-imports", - "version": "1.5.93", + "version": "1.5.94", "description": "SWC plugin for https://www.npmjs.com/package/babel-plugin-transform-imports", "main": "swc_plugin_transform_imports.wasm", "scripts": { From b64c13f2424133519aaa9ced7fa8aaa99addad30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:53 -0700 Subject: [PATCH 17/25] Bump cargo crate: modularize_imports --- Cargo.lock | 2 +- packages/transform-imports/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba5d1c620..4d3cb11c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1166,7 +1166,7 @@ dependencies = [ [[package]] name = "modularize_imports" -version = "0.51.0" +version = "0.52.0" dependencies = [ "convert_case", "handlebars", diff --git a/packages/transform-imports/transform/Cargo.toml b/packages/transform-imports/transform/Cargo.toml index 15d92698e..a1940f3c0 100644 --- a/packages/transform-imports/transform/Cargo.toml +++ b/packages/transform-imports/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "modularize_imports" repository = "https://github.com/swc-project/plugins.git" -version = "0.51.0" +version = "0.52.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From 4aeff99727fd79f95da6d2d4660363d808166564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:54 -0700 Subject: [PATCH 18/25] Bump cargo crate: react_remove_properties --- Cargo.lock | 2 +- packages/react-remove-properties/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4d3cb11c1..69eaf556a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1668,7 +1668,7 @@ dependencies = [ [[package]] name = "react_remove_properties" -version = "0.6.0" +version = "0.7.0" dependencies = [ "serde", "swc_atoms", diff --git a/packages/react-remove-properties/transform/Cargo.toml b/packages/react-remove-properties/transform/Cargo.toml index 6764088b0..b3f0d2d7b 100644 --- a/packages/react-remove-properties/transform/Cargo.toml +++ b/packages/react-remove-properties/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "react_remove_properties" repository = "https://github.com/swc-project/plugins.git" -version = "0.6.0" +version = "0.7.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From 250c7500705d71442360808b1a4e3f1c3b9b2b88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:54 -0700 Subject: [PATCH 19/25] Bump cargo crate: remove_console --- Cargo.lock | 2 +- packages/remove-console/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 69eaf556a..35cdc7282 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1743,7 +1743,7 @@ checksum = "c707298afce11da2efef2f600116fa93ffa7a032b5d7b628aa17711ec81383ca" [[package]] name = "remove_console" -version = "0.7.0" +version = "0.8.0" dependencies = [ "serde", "swc_atoms", diff --git a/packages/remove-console/transform/Cargo.toml b/packages/remove-console/transform/Cargo.toml index d19901a85..4ff9a14a1 100644 --- a/packages/remove-console/transform/Cargo.toml +++ b/packages/remove-console/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "remove_console" repository = "https://github.com/swc-project/plugins.git" -version = "0.7.0" +version = "0.8.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From 07b189aaece8e008f3d6d5a7589a22254537d6ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:55 -0700 Subject: [PATCH 20/25] Bump cargo crate: styled_components --- Cargo.lock | 2 +- packages/styled-components/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 35cdc7282..d831488a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2136,7 +2136,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "styled_components" -version = "0.78.0" +version = "0.79.0" dependencies = [ "Inflector", "once_cell", diff --git a/packages/styled-components/transform/Cargo.toml b/packages/styled-components/transform/Cargo.toml index fedef5eec..aa17d8c57 100644 --- a/packages/styled-components/transform/Cargo.toml +++ b/packages/styled-components/transform/Cargo.toml @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "styled_components" repository = "https://github.com/swc-project/plugins.git" -version = "0.78.0" +version = "0.79.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From d9a4e3b5559370b69fa0208cb1281473fa1df95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:56 -0700 Subject: [PATCH 21/25] Bump cargo crate: styled_jsx --- Cargo.lock | 2 +- packages/styled-jsx/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d831488a3..51c0af60c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2157,7 +2157,7 @@ dependencies = [ [[package]] name = "styled_jsx" -version = "0.55.0" +version = "0.56.0" dependencies = [ "easy-error", "lightningcss", diff --git a/packages/styled-jsx/transform/Cargo.toml b/packages/styled-jsx/transform/Cargo.toml index 9da1c914d..1dd82286d 100644 --- a/packages/styled-jsx/transform/Cargo.toml +++ b/packages/styled-jsx/transform/Cargo.toml @@ -4,7 +4,7 @@ description = "AST transforms visitor for styled-jsx" edition = "2021" license = "Apache-2.0" name = "styled_jsx" -version = "0.55.0" +version = "0.56.0" [features] custom_transform = ["swc_common/concurrent"] From 7ebe699636e53caa1aea1a9aa10a82e8ffc43946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:56 -0700 Subject: [PATCH 22/25] Bump cargo crate: swc_constify --- Cargo.lock | 2 +- packages/constify/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 51c0af60c..8d882922d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2300,7 +2300,7 @@ dependencies = [ [[package]] name = "swc_constify" -version = "0.18.0" +version = "0.19.0" dependencies = [ "once_cell", "rustc-hash", diff --git a/packages/constify/transform/Cargo.toml b/packages/constify/transform/Cargo.toml index dd9532a79..4569274be 100644 --- a/packages/constify/transform/Cargo.toml +++ b/packages/constify/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_constify" repository = "https://github.com/swc-project/plugins.git" -version = "0.18.0" +version = "0.19.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From c298fe5ccc17ba93ef6ed2b180e04a1a5ec77b26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:57 -0700 Subject: [PATCH 23/25] Bump cargo crate: swc_emotion --- Cargo.lock | 2 +- packages/emotion/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8d882922d..8afda2e13 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2762,7 +2762,7 @@ dependencies = [ [[package]] name = "swc_emotion" -version = "0.54.0" +version = "0.55.0" dependencies = [ "base64", "byteorder", diff --git a/packages/emotion/transform/Cargo.toml b/packages/emotion/transform/Cargo.toml index 70da1bfdd..8868a2ff2 100644 --- a/packages/emotion/transform/Cargo.toml +++ b/packages/emotion/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_emotion" repository = "https://github.com/swc-project/plugins.git" -version = "0.54.0" +version = "0.55.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html From 1d6037867f32e1757075cd6f676e32d0a0722836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:40:58 -0700 Subject: [PATCH 24/25] Bump cargo crate: swc_magic --- Cargo.lock | 2 +- packages/swc-magic/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8afda2e13..d6aba3318 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2838,7 +2838,7 @@ dependencies = [ [[package]] name = "swc_magic" -version = "0.1.0" +version = "0.2.0" dependencies = [ "serde", "swc_atoms", diff --git a/packages/swc-magic/transform/Cargo.toml b/packages/swc-magic/transform/Cargo.toml index 4020efd51..8d56598ed 100644 --- a/packages/swc-magic/transform/Cargo.toml +++ b/packages/swc-magic/transform/Cargo.toml @@ -4,7 +4,7 @@ description = "AST transforms visitor for swc-magic" edition = "2021" license = "Apache-2.0" name = "swc_magic" -version = "0.1.0" +version = "0.2.0" [dependencies] serde = { version = "1.0.189", features = ["derive"] } From 6930097d69cce813b0c3f9f34b57e96d8b68703f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4=20=28Donny=29?= Date: Tue, 24 Oct 2023 20:41:06 -0700 Subject: [PATCH 25/25] Bump cargo crate: swc_relay --- Cargo.lock | 2 +- packages/relay/transform/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d6aba3318..29ad66aba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3075,7 +3075,7 @@ dependencies = [ [[package]] name = "swc_relay" -version = "0.26.0" +version = "0.27.0" dependencies = [ "once_cell", "regex", diff --git a/packages/relay/transform/Cargo.toml b/packages/relay/transform/Cargo.toml index f5c470844..6695301d7 100644 --- a/packages/relay/transform/Cargo.toml +++ b/packages/relay/transform/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_relay" repository = "https://github.com/swc-project/plugins.git" -version = "0.26.0" +version = "0.27.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html