From 0bd2a3a07ece7eee38140e52e167758bb6c120d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Sat, 5 Jun 2021 11:13:42 +0900 Subject: [PATCH] fix(es/transforms): Fix bugs (#1783) swc_ecma_transforms_base: - `fixer`: Wrap operand of a unary expression if it's a binary expression. (#1781, #1789) swc_ecma_transforms_module: - Allow multiple `export *` even if it has the same item. (#1780) --- Cargo.toml | 6 +-- bundler/Cargo.toml | 6 +-- ecmascript/Cargo.toml | 6 +-- ecmascript/minifier/Cargo.toml | 6 +-- .../unary_binary_parenthesis/output.js | 20 +++++-- ecmascript/preset_env/Cargo.toml | 4 +- ecmascript/transforms/Cargo.toml | 18 +++---- ecmascript/transforms/base/Cargo.toml | 2 +- ecmascript/transforms/base/src/fixer.rs | 6 +-- ecmascript/transforms/classes/Cargo.toml | 4 +- ecmascript/transforms/compat/Cargo.toml | 8 +-- ecmascript/transforms/module/Cargo.toml | 8 +-- ecmascript/transforms/module/src/common_js.rs | 2 +- .../transforms/module/tests/common_js.rs | 53 +++++++++++++++++++ ecmascript/transforms/optimization/Cargo.toml | 16 +++--- ecmascript/transforms/proposal/Cargo.toml | 12 ++--- ecmascript/transforms/react/Cargo.toml | 10 ++-- ecmascript/transforms/testing/Cargo.toml | 4 +- ecmascript/transforms/typescript/Cargo.toml | 12 ++--- 19 files changed, 134 insertions(+), 69 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e99c19d3e50d..2fc4f467fd17 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc" repository = "https://github.com/swc-project/swc.git" -version = "0.20.0" +version = "0.20.1" [lib] name = "swc" @@ -34,8 +34,8 @@ swc_ecma_ast = {version = "0.45.0", path = "./ecmascript/ast"} swc_ecma_codegen = {version = "0.55.0", path = "./ecmascript/codegen"} swc_ecma_ext_transforms = {version = "0.15.0", path = "./ecmascript/ext-transforms"} swc_ecma_parser = {version = "0.57.0", path = "./ecmascript/parser"} -swc_ecma_preset_env = {version = "0.20.0", path = "./ecmascript/preset_env"} -swc_ecma_transforms = {version = "0.50.0", path = "./ecmascript/transforms", features = [ +swc_ecma_preset_env = {version = "0.20.4", path = "./ecmascript/preset_env"} +swc_ecma_transforms = {version = "0.50.1", path = "./ecmascript/transforms", features = [ "compat", "module", "optimization", diff --git a/bundler/Cargo.toml b/bundler/Cargo.toml index 689ab68ed95e..71f2fa971a64 100644 --- a/bundler/Cargo.toml +++ b/bundler/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"] license = "Apache-2.0/MIT" name = "swc_bundler" repository = "https://github.com/swc-project/swc.git" -version = "0.37.3" +version = "0.37.4" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] @@ -36,7 +36,7 @@ swc_common = {version = "0.10.16", path = "../common"} swc_ecma_ast = {version = "0.45.0", path = "../ecmascript/ast"} swc_ecma_codegen = {version = "0.55.0", path = "../ecmascript/codegen"} swc_ecma_parser = {version = "0.57.0", path = "../ecmascript/parser"} -swc_ecma_transforms = {version = "0.50.0", path = "../ecmascript/transforms", features = ["optimization"]} +swc_ecma_transforms = {version = "0.50.1", path = "../ecmascript/transforms", features = ["optimization"]} swc_ecma_utils = {version = "0.36.0", path = "../ecmascript/utils"} swc_ecma_visit = {version = "0.31.0", path = "../ecmascript/visit"} @@ -45,7 +45,7 @@ hex = "0.4" ntest = "0.7.2" reqwest = {version = "0.10.8", features = ["blocking"]} sha-1 = "0.9" -swc_ecma_transforms = {version = "0.50.0", path = "../ecmascript/transforms", features = ["react", "typescript"]} +swc_ecma_transforms = {version = "0.50.1", path = "../ecmascript/transforms", features = ["react", "typescript"]} tempfile = "3.1.0" testing = {version = "0.10.5", path = "../testing"} url = "2.1.1" diff --git a/ecmascript/Cargo.toml b/ecmascript/Cargo.toml index 00db59c6663d..6c0ac7067ef9 100644 --- a/ecmascript/Cargo.toml +++ b/ecmascript/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecmascript" repository = "https://github.com/swc-project/swc.git" -version = "0.36.0" +version = "0.36.1" [package.metadata.docs.rs] all-features = true @@ -31,9 +31,9 @@ typescript = ["swc_ecma_transforms/typescript"] swc_ecma_ast = {version = "0.45.0", path = "./ast"} swc_ecma_codegen = {version = "0.55.0", path = "./codegen", optional = true} swc_ecma_dep_graph = {version = "0.25.0", path = "./dep-graph", optional = true} -swc_ecma_minifier = {version = "0.2.2-beta.0", path = "./minifier", optional = true} +swc_ecma_minifier = {version = "0.2.3", path = "./minifier", optional = true} swc_ecma_parser = {version = "0.57.0", path = "./parser", optional = true} -swc_ecma_transforms = {version = "0.50.0", path = "./transforms", optional = true} +swc_ecma_transforms = {version = "0.50.1", path = "./transforms", optional = true} swc_ecma_utils = {version = "0.36.0", path = "./utils", optional = true} swc_ecma_visit = {version = "0.31.0", path = "./visit", optional = true} diff --git a/ecmascript/minifier/Cargo.toml b/ecmascript/minifier/Cargo.toml index 8bc531da2f18..ad36851b31a4 100644 --- a/ecmascript/minifier/Cargo.toml +++ b/ecmascript/minifier/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/lists/*.json"] license = "Apache-2.0/MIT" name = "swc_ecma_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.2.2-beta.0" +version = "0.2.3" [features] debug = [] @@ -27,8 +27,8 @@ swc_common = {version = "0.10.8", path = "../../common"} swc_ecma_ast = {version = "0.45.0", path = "../ast"} swc_ecma_codegen = {version = "0.55.0", path = "../codegen"} swc_ecma_parser = {version = "0.57.0", path = "../parser"} -swc_ecma_transforms = {version = "0.50.0", path = "../transforms/", features = ["optimization"]} -swc_ecma_transforms_base = {version = "0.15.0", path = "../transforms/base"} +swc_ecma_transforms = {version = "0.50.1", path = "../transforms/", features = ["optimization"]} +swc_ecma_transforms_base = {version = "0.15.6", path = "../transforms/base"} swc_ecma_utils = {version = "0.36.0", path = "../utils"} swc_ecma_visit = {version = "0.31.0", path = "../visit"} diff --git a/ecmascript/minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.js b/ecmascript/minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.js index 0aee82d67cee..d6c6ad9cf60d 100644 --- a/ecmascript/minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.js +++ b/ecmascript/minifier/tests/terser/compress/numbers/unary_binary_parenthesis/output.js @@ -1,6 +1,18 @@ -var v = [0, 1, NaN, 1 / 0, null, void 0, true, false, "", "foo", /foo/]; -v.forEach(function (x) { - v.forEach(function (y) { - console.log(+x * y, +x / y, +x % y, -x * y, -x / y, -x % y); +var v = [ + 0, + 1, + NaN, + 1 / 0, + null, + void 0, + true, + false, + "", + "foo", + /foo/ +]; +v.forEach(function(x) { + v.forEach(function(y) { + console.log(+(x * y), +x / y, +x % y, -(x * y), -x / y, -x % y); }); }); diff --git a/ecmascript/preset_env/Cargo.toml b/ecmascript/preset_env/Cargo.toml index 34facf360c48..fcbdc14b8ca1 100644 --- a/ecmascript/preset_env/Cargo.toml +++ b/ecmascript/preset_env/Cargo.toml @@ -5,7 +5,7 @@ documentation = "https://rustdoc.swc.rs/swc_ecma_preset_env/" edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_preset_env" -version = "0.20.3" +version = "0.20.4" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -22,7 +22,7 @@ string_enum = {version = "0.3.1", path = "../../macros/string_enum"} swc_atoms = {version = "0.2", path = "../../atoms"} swc_common = {version = "0.10.16", path = "../../common"} swc_ecma_ast = {version = "0.45.0", path = "../ast"} -swc_ecma_transforms = {version = "0.50.0", path = "../transforms", features = ["compat", "proposal"]} +swc_ecma_transforms = {version = "0.50.1", path = "../transforms", features = ["compat", "proposal"]} swc_ecma_utils = {version = "0.36.0", path = "../utils"} swc_ecma_visit = {version = "0.31.0", path = "../visit"} walkdir = "2" diff --git a/ecmascript/transforms/Cargo.toml b/ecmascript/transforms/Cargo.toml index 6b879382be1c..8b9713b78fa8 100644 --- a/ecmascript/transforms/Cargo.toml +++ b/ecmascript/transforms/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms" repository = "https://github.com/swc-project/swc.git" -version = "0.50.0" +version = "0.50.1" [package.metadata.docs.rs] all-features = true @@ -25,13 +25,13 @@ swc_atoms = {version = "0.2.0", path = "../../atoms"} swc_common = {version = "0.10.16", path = "../../common"} swc_ecma_ast = {version = "0.45.0", path = "../ast"} swc_ecma_parser = {version = "0.57.0", path = "../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "./base"} -swc_ecma_transforms_compat = {version = "0.17.0", path = "./compat", optional = true} -swc_ecma_transforms_module = {version = "0.17.0", path = "./module", optional = true} -swc_ecma_transforms_optimization = {version = "0.20.0", path = "./optimization", optional = true} -swc_ecma_transforms_proposal = {version = "0.17.0", path = "./proposal", optional = true} -swc_ecma_transforms_react = {version = "0.18.0", path = "./react", optional = true} -swc_ecma_transforms_typescript = {version = "0.19.0", path = "./typescript", optional = true} +swc_ecma_transforms_base = {version = "0.15.6", path = "./base"} +swc_ecma_transforms_compat = {version = "0.17.9", path = "./compat", optional = true} +swc_ecma_transforms_module = {version = "0.17.1", path = "./module", optional = true} +swc_ecma_transforms_optimization = {version = "0.20.3", path = "./optimization", optional = true} +swc_ecma_transforms_proposal = {version = "0.17.1", path = "./proposal", optional = true} +swc_ecma_transforms_react = {version = "0.18.2", path = "./react", optional = true} +swc_ecma_transforms_typescript = {version = "0.19.4", path = "./typescript", optional = true} swc_ecma_utils = {version = "0.36.0", path = "../utils"} swc_ecma_visit = {version = "0.31.0", path = "../visit"} unicode-xid = "0.2" @@ -40,7 +40,7 @@ unicode-xid = "0.2" pretty_assertions = "0.6" sourcemap = "6" swc_ecma_codegen = {version = "0.55.0", path = "../codegen"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "./testing"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "./testing"} tempfile = "3" testing = {version = "0.10.5", path = "../../testing"} walkdir = "2" diff --git a/ecmascript/transforms/base/Cargo.toml b/ecmascript/transforms/base/Cargo.toml index 6697033ff9b0..95196f3c8cd4 100644 --- a/ecmascript/transforms/base/Cargo.toml +++ b/ecmascript/transforms/base/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_base" repository = "https://github.com/swc-project/swc.git" -version = "0.15.5" +version = "0.15.6" [dependencies] fxhash = "0.2.1" diff --git a/ecmascript/transforms/base/src/fixer.rs b/ecmascript/transforms/base/src/fixer.rs index b70566e7f233..885ab0694231 100644 --- a/ecmascript/transforms/base/src/fixer.rs +++ b/ecmascript/transforms/base/src/fixer.rs @@ -279,9 +279,7 @@ impl VisitMut for Fixer<'_> { match *n.arg { // Don't wrap - Expr::Bin(BinExpr { op: op!("*"), .. }) - | Expr::Bin(BinExpr { op: op!("%"), .. }) - | Expr::Bin(BinExpr { op: op!("/"), .. }) => {} + Expr::Bin(BinExpr { op: op!("%"), .. }) | Expr::Bin(BinExpr { op: op!("/"), .. }) => {} Expr::Assign(..) | Expr::Bin(..) @@ -1220,4 +1218,6 @@ var store = global[SHARED] || (global[SHARED] = {}); identical!(minifier_003, "(four ** one) ** two"); identical!(minifier_004, "(void 0)(0)"); + + identical!(issue_1781, "const n = ~~(Math.PI * 10)"); } diff --git a/ecmascript/transforms/classes/Cargo.toml b/ecmascript/transforms/classes/Cargo.toml index 86fd5d35e831..d3345413254f 100644 --- a/ecmascript/transforms/classes/Cargo.toml +++ b/ecmascript/transforms/classes/Cargo.toml @@ -6,12 +6,12 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_classes" repository = "https://github.com/swc-project/swc.git" -version = "0.1.0" +version = "0.1.1" [dependencies] swc_atoms = {version = "0.2.6", path = "../../../atoms"} swc_common = {version = "0.10.20", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} -swc_ecma_transforms_base = {version = "0.15.5", path = "../base"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} diff --git a/ecmascript/transforms/compat/Cargo.toml b/ecmascript/transforms/compat/Cargo.toml index d9e685343b8e..5d0f114c66c2 100644 --- a/ecmascript/transforms/compat/Cargo.toml +++ b/ecmascript/transforms/compat/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.17.8" +version = "0.17.9" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -21,13 +21,13 @@ smallvec = "1.6.0" swc_atoms = {version = "0.2.5", path = "../../../atoms"} swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} -swc_ecma_transforms_classes = {version = "0.1.0", path = "../classes"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} +swc_ecma_transforms_classes = {version = "0.1.1", path = "../classes"} swc_ecma_transforms_macros = {version = "0.2.1", path = "../macros"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} [dev-dependencies] swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "../testing"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "../testing"} testing = {version = "0.10.5", path = "../../../testing"} diff --git a/ecmascript/transforms/module/Cargo.toml b/ecmascript/transforms/module/Cargo.toml index 6e0d31eda200..60075bf2c1df 100644 --- a/ecmascript/transforms/module/Cargo.toml +++ b/ecmascript/transforms/module/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_module" repository = "https://github.com/swc-project/swc.git" -version = "0.17.0" +version = "0.17.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -18,11 +18,11 @@ swc_atoms = {version = "0.2", path = "../../../atoms"} swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} [dev-dependencies] -swc_ecma_transforms_compat = {version = "0.17.0", path = "../compat"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "../testing/"} +swc_ecma_transforms_compat = {version = "0.17.9", path = "../compat"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "../testing/"} testing = {version = "0.10.5", path = "../../../testing/"} diff --git a/ecmascript/transforms/module/src/common_js.rs b/ecmascript/transforms/module/src/common_js.rs index 231a834c4e80..2b6456184210 100644 --- a/ecmascript/transforms/module/src/common_js.rs +++ b/ecmascript/transforms/module/src/common_js.rs @@ -461,7 +461,7 @@ impl Fold for CommonJs { // Used only if export * exists let exported_names = { - if !export_alls.is_empty() && has_export { + if (!export_alls.is_empty() && has_export) || export_alls.len() >= 2 { let exported_names = private_ident!("_exportNames"); stmts.push(ModuleItem::Stmt(Stmt::Decl(Decl::Var(VarDecl { span: DUMMY_SP, diff --git a/ecmascript/transforms/module/tests/common_js.rs b/ecmascript/transforms/module/tests/common_js.rs index 86622aab6061..600847fb6df1 100644 --- a/ecmascript/transforms/module/tests/common_js.rs +++ b/ecmascript/transforms/module/tests/common_js.rs @@ -1244,12 +1244,15 @@ export * from "black"; Object.defineProperty(exports, "__esModule", { value: true }); +var _exportNames = { +}; var _white = require("white"); var _black = require("black"); Object.keys(_white).forEach(function (key) { if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { @@ -1260,6 +1263,7 @@ Object.keys(_white).forEach(function (key) { Object.keys(_black).forEach(function (key) { if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; Object.defineProperty(exports, key, { enumerable: true, get: function () { @@ -4191,6 +4195,8 @@ export * from './pipes'; Object.defineProperty(exports, "__esModule", { value: true }); + var _exportNames = { + }; require("reflect-metadata"); var _http = require("./http"); var _interfaces = require("./interfaces"); @@ -4203,6 +4209,7 @@ export * from './pipes'; }); Object.keys(_http).forEach(function(key) { if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; Object.defineProperty(exports, key, { enumerable: true, get: function() { @@ -4212,6 +4219,7 @@ export * from './pipes'; }); Object.keys(_pipes).forEach(function(key) { if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; Object.defineProperty(exports, key, { enumerable: true, get: function() { @@ -4712,3 +4720,48 @@ test!( })(); " ); + +test!( + syntax(), + |_| tr(Default::default()), + issue_1780_1, + " + export const BIZ = 'biz'; + export * from './File1'; + export * from './File2'; + ", + " + 'use strict'; + Object.defineProperty(exports, '__esModule', { + value: true + }); + var _exportNames = { + BIZ: true + }; + exports.BIZ = void 0; + var _file1 = require('./File1'); + var _file2 = require('./File2'); + const BIZ = 'biz'; + exports.BIZ = BIZ; + Object.keys(_file1).forEach(function(key) { + if (key === 'default' || key === '__esModule') return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function() { + return _file1[key]; + } + }); + }); + Object.keys(_file2).forEach(function(key) { + if (key === 'default' || key === '__esModule') return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function() { + return _file2[key]; + } + }); + }); + " +); diff --git a/ecmascript/transforms/optimization/Cargo.toml b/ecmascript/transforms/optimization/Cargo.toml index c1e4a502b3f8..fe5b011b6ec9 100644 --- a/ecmascript/transforms/optimization/Cargo.toml +++ b/ecmascript/transforms/optimization/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_optimization" repository = "https://github.com/swc-project/swc.git" -version = "0.20.2" +version = "0.20.3" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -21,15 +21,15 @@ swc_atoms = {version = "0.2", path = "../../../atoms"} swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} [dev-dependencies] -swc_ecma_transforms_compat = {version = "0.17.0", path = "../compat"} -swc_ecma_transforms_module = {version = "0.17.0", path = "../module"} -swc_ecma_transforms_proposal = {version = "0.17.0", path = "../proposal"} -swc_ecma_transforms_react = {version = "0.18.0", path = "../react"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "../testing"} -swc_ecma_transforms_typescript = {version = "0.19.0", path = "../typescript"} +swc_ecma_transforms_compat = {version = "0.17.9", path = "../compat"} +swc_ecma_transforms_module = {version = "0.17.1", path = "../module"} +swc_ecma_transforms_proposal = {version = "0.17.1", path = "../proposal"} +swc_ecma_transforms_react = {version = "0.18.2", path = "../react"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "../testing"} +swc_ecma_transforms_typescript = {version = "0.19.4", path = "../typescript"} testing = {version = "0.10.5", path = "../../../testing"} diff --git a/ecmascript/transforms/proposal/Cargo.toml b/ecmascript/transforms/proposal/Cargo.toml index 71a2fd61c055..7a1bc1cfdee9 100644 --- a/ecmascript/transforms/proposal/Cargo.toml +++ b/ecmascript/transforms/proposal/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_proposal" repository = "https://github.com/swc-project/swc.git" -version = "0.17.0" +version = "0.17.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -24,12 +24,12 @@ swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} swc_ecma_loader = {version = "0.6.0", path = "../../loader", optional = true} swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} -swc_ecma_transforms_classes = {version = "0.1.0", path = "../classes"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} +swc_ecma_transforms_classes = {version = "0.1.1", path = "../classes"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} [dev-dependencies] -swc_ecma_transforms_compat = {version = "0.17.0", path = "../compat"} -swc_ecma_transforms_module = {version = "0.17.0", path = "../module"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "../testing"} +swc_ecma_transforms_compat = {version = "0.17.9", path = "../compat"} +swc_ecma_transforms_module = {version = "0.17.1", path = "../module"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "../testing"} diff --git a/ecmascript/transforms/react/Cargo.toml b/ecmascript/transforms/react/Cargo.toml index e2821084aa64..ea79873ae52a 100644 --- a/ecmascript/transforms/react/Cargo.toml +++ b/ecmascript/transforms/react/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0/MIT" name = "swc_ecma_transforms_react" repository = "https://github.com/swc-project/swc.git" -version = "0.18.1" +version = "0.18.2" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -23,13 +23,13 @@ swc_atoms = {version = "0.2", path = "../../../atoms"} swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} [dev-dependencies] swc_ecma_codegen = {version = "0.55.0", path = "../../codegen/"} -swc_ecma_transforms_compat = {version = "0.17.0", path = "../compat/"} -swc_ecma_transforms_module = {version = "0.17.0", path = "../module"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "../testing/"} +swc_ecma_transforms_compat = {version = "0.17.9", path = "../compat/"} +swc_ecma_transforms_module = {version = "0.17.1", path = "../module"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "../testing/"} testing = {version = "0.10.5", path = "../../../testing"} diff --git a/ecmascript/transforms/testing/Cargo.toml b/ecmascript/transforms/testing/Cargo.toml index a510f9ac1251..45341d904f4f 100644 --- a/ecmascript/transforms/testing/Cargo.toml +++ b/ecmascript/transforms/testing/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_testing" repository = "https://github.com/swc-project/swc.git" -version = "0.15.0" +version = "0.15.1" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -18,7 +18,7 @@ swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} swc_ecma_codegen = {version = "0.55.0", path = "../../codegen"} swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} tempfile = "3.1.0" diff --git a/ecmascript/transforms/typescript/Cargo.toml b/ecmascript/transforms/typescript/Cargo.toml index b8bb63801da9..fe79a1a5525f 100644 --- a/ecmascript/transforms/typescript/Cargo.toml +++ b/ecmascript/transforms/typescript/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "Apache-2.0/MIT" name = "swc_ecma_transforms_typescript" repository = "https://github.com/swc-project/swc.git" -version = "0.19.3" +version = "0.19.4" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] @@ -16,15 +16,15 @@ swc_atoms = {version = "0.2", path = "../../../atoms"} swc_common = {version = "0.10.16", path = "../../../common"} swc_ecma_ast = {version = "0.45.0", path = "../../ast"} swc_ecma_parser = {version = "0.57.0", path = "../../parser"} -swc_ecma_transforms_base = {version = "0.15.0", path = "../base"} +swc_ecma_transforms_base = {version = "0.15.6", path = "../base"} swc_ecma_utils = {version = "0.36.0", path = "../../utils"} swc_ecma_visit = {version = "0.31.0", path = "../../visit"} [dev-dependencies] swc_ecma_codegen = {version = "0.55.0", path = "../../codegen"} -swc_ecma_transforms_compat = {version = "0.17.0", path = "../compat"} -swc_ecma_transforms_module = {version = "0.17.0", path = "../module"} -swc_ecma_transforms_proposal = {version = "0.17.0", path = "../proposal/"} -swc_ecma_transforms_testing = {version = "0.15.0", path = "../testing"} +swc_ecma_transforms_compat = {version = "0.17.9", path = "../compat"} +swc_ecma_transforms_module = {version = "0.17.1", path = "../module"} +swc_ecma_transforms_proposal = {version = "0.17.1", path = "../proposal/"} +swc_ecma_transforms_testing = {version = "0.15.1", path = "../testing"} testing = {version = "0.10.5", path = "../../../testing"} walkdir = "2.3.1"