diff --git a/CHANGELOG.md b/CHANGELOG.md index 7765f3c15bc..343395d4941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,9 @@ - **(es/transforms)** Fix `this` in async arrow class properties (#3252) ([7c19e26](https://github.com/swc-project/swc/commit/7c19e26d0f41002a35c1695c259172916e578eab)) +- **(es/transforms)** Remove unsafe `new String("...")` optimization (#3284) ([162c1fe](https://github.com/swc-project/swc/commit/162c1fe047631c35f8b8105c1a40ad6728e6edff)) + + - **(swc)** Remove `wrong-target` (#3251) ([0843f74](https://github.com/swc-project/swc/commit/0843f742c5db3e0a8dc2fc2767b96fe0fad76bd1)) ### Documentation diff --git a/Cargo.lock b/Cargo.lock index 064783ad42d..6d970335c56 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -622,7 +622,7 @@ dependencies = [ [[package]] name = "dbg-swc" -version = "0.7.0" +version = "0.8.0" dependencies = [ "anyhow", "pretty_assertions 1.0.0", @@ -2652,7 +2652,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.114.3" +version = "0.115.0" dependencies = [ "ahash", "anyhow", @@ -2706,7 +2706,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.101.0" +version = "0.102.0" dependencies = [ "ahash", "anyhow", @@ -3011,7 +3011,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.68.1" +version = "0.69.0" dependencies = [ "ahash", "ansi_term", @@ -3068,7 +3068,7 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.84.0" +version = "0.85.0" dependencies = [ "ahash", "anyhow", @@ -3096,7 +3096,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.111.3" +version = "0.112.0" dependencies = [ "pretty_assertions 0.7.2", "sourcemap", @@ -3218,7 +3218,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.81.1" +version = "0.82.0" dependencies = [ "ahash", "dashmap", @@ -3364,7 +3364,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.108.4" +version = "0.109.0" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -3400,7 +3400,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.32.0" +version = "0.33.0" dependencies = [ "ahash", "anyhow", @@ -3589,7 +3589,7 @@ dependencies = [ [[package]] name = "swc_webpack_ast" -version = "0.30.0" +version = "0.31.0" dependencies = [ "anyhow", "rayon", diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index c38143433fa..a9037a32362 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "dbg-swc" repository = "https://github.com/swc-project/swc.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 @@ -23,7 +23,7 @@ swc_ecma_codegen = {version = "0.89.0", path = "../swc_ecma_codegen"} swc_ecma_dep_graph = {version = "0.58.0", path = "../swc_ecma_dep_graph/"} swc_ecma_diff = {version = "0.6.0", path = "../swc_ecma_diff/"} swc_ecma_loader = {version = "0.27.0", path = "../swc_ecma_loader/", features = ["lru", "node", "tsc"]} -swc_ecma_minifier = {version = "0.68.0", path = "../swc_ecma_minifier/"} +swc_ecma_minifier = {version = "0.69.0", path = "../swc_ecma_minifier/"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser/"} swc_ecma_transforms_base = {version = "0.56.0", path = "../swc_ecma_transforms_base/"} swc_ecma_transforms_react = {version = "0.75.0", path = "../swc_ecma_transforms_react/"} diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 67c6fdaffae..1a2b51e60f5 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc" repository = "https://github.com/swc-project/swc.git" -version = "0.114.3" +version = "0.115.0" [lib] name = "swc" @@ -52,10 +52,10 @@ swc_ecma_codegen = {version = "0.89.0", path = "../swc_ecma_codegen"} swc_ecma_ext_transforms = {version = "0.49.0", path = "../swc_ecma_ext_transforms"} swc_ecma_lints = {version = "0.8.0", path = "../swc_ecma_lints"} swc_ecma_loader = {version = "0.27.0", path = "../swc_ecma_loader", features = ["lru", "node", "tsc"]} -swc_ecma_minifier = {version = "0.68.1", path = "../swc_ecma_minifier"} +swc_ecma_minifier = {version = "0.69.0", path = "../swc_ecma_minifier"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} -swc_ecma_preset_env = {version = "0.84.0", path = "../swc_ecma_preset_env"} -swc_ecma_transforms = {version = "0.111.3", path = "../swc_ecma_transforms", features = [ +swc_ecma_preset_env = {version = "0.85.0", path = "../swc_ecma_preset_env"} +swc_ecma_transforms = {version = "0.112.0", path = "../swc_ecma_transforms", features = [ "compat", "module", "optimization", @@ -65,10 +65,10 @@ swc_ecma_transforms = {version = "0.111.3", path = "../swc_ecma_transforms", fea ]} swc_ecma_transforms_base = {version = "0.56.0", path = "../swc_ecma_transforms_base"} swc_ecma_transforms_compat = {version = "0.67.2", path = "../swc_ecma_transforms_compat"} -swc_ecma_transforms_optimization = {version = "0.81.0", path = "../swc_ecma_transforms_optimization"} +swc_ecma_transforms_optimization = {version = "0.82.0", path = "../swc_ecma_transforms_optimization"} swc_ecma_utils = {version = "0.63.0", path = "../swc_ecma_utils"} swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit"} -swc_ecmascript = {version = "0.108.4", path = "../swc_ecmascript"} +swc_ecmascript = {version = "0.109.0", path = "../swc_ecmascript"} swc_node_comments = {version = "0.4.0", path = "../swc_node_comments"} swc_plugin_runner = {version = "0.30.0", path = "../swc_plugin_runner", optional = true} swc_visit = {version = "0.3.0", path = "../swc_visit"} diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 7d577622b57..af5a1e0384f 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"] license = "Apache-2.0" name = "swc_bundler" repository = "https://github.com/swc-project/swc.git" -version = "0.101.0" +version = "0.102.0" [package.metadata.docs.rs] all-features = true @@ -47,7 +47,7 @@ swc_ecma_codegen = {version = "0.89.0", path = "../swc_ecma_codegen"} swc_ecma_loader = {version = "0.27.0", path = "../swc_ecma_loader"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} swc_ecma_transforms_base = {version = "0.56.0", path = "../swc_ecma_transforms_base"} -swc_ecma_transforms_optimization = {version = "0.81.0", path = "../swc_ecma_transforms_optimization"} +swc_ecma_transforms_optimization = {version = "0.82.0", path = "../swc_ecma_transforms_optimization"} swc_ecma_utils = {version = "0.63.0", path = "../swc_ecma_utils"} swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit"} swc_fast_graph = {version = "0.4.0", path = "../swc_fast_graph/"} @@ -61,7 +61,7 @@ path-clean = "=0.1.0" reqwest = {version = "0.11.4", features = ["blocking"]} sha-1 = "0.9" swc_ecma_loader = {version = "0.27.0", path = "../swc_ecma_loader", features = ["node", "lru"]} -swc_ecma_minifier = {version = "0.68.0", path = "../swc_ecma_minifier"} +swc_ecma_minifier = {version = "0.69.0", path = "../swc_ecma_minifier"} swc_ecma_transforms_react = {version = "0.75.0", path = "../swc_ecma_transforms_react"} swc_ecma_transforms_typescript = {version = "0.77.0", path = "../swc_ecma_transforms_typescript"} swc_node_base = {version = "0.5.0", path = "../swc_node_base"} diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 9c4928316e5..533a4f2d9d8 100644 --- a/crates/swc_ecma_minifier/Cargo.toml +++ b/crates/swc_ecma_minifier/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/lists/*.json"] license = "Apache-2.0" name = "swc_ecma_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.68.1" +version = "0.69.0" [package.metadata.docs.rs] all-features = true @@ -33,7 +33,7 @@ swc_common = {version = "0.17.0", path = "../swc_common"} swc_ecma_ast = {version = "0.65.0", path = "../swc_ecma_ast"} swc_ecma_codegen = {version = "0.89.0", path = "../swc_ecma_codegen"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} -swc_ecma_transforms = {version = "0.111.0", path = "../swc_ecma_transforms/", features = ["optimization"]} +swc_ecma_transforms = {version = "0.112.0", path = "../swc_ecma_transforms/", features = ["optimization"]} swc_ecma_transforms_base = {version = "0.56.0", path = "../swc_ecma_transforms_base"} swc_ecma_utils = {version = "0.63.0", path = "../swc_ecma_utils"} swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit"} diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index a9dafe49252..22e38bfe7d3 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -5,7 +5,7 @@ documentation = "https://rustdoc.swc.rs/swc_ecma_preset_env/" edition = "2021" license = "Apache-2.0" name = "swc_ecma_preset_env" -version = "0.84.0" +version = "0.85.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -24,7 +24,7 @@ string_enum = {version = "0.3.1", path = "../string_enum"} swc_atoms = {version = "0.2", path = "../swc_atoms"} swc_common = {version = "0.17.0", path = "../swc_common"} swc_ecma_ast = {version = "0.65.0", path = "../swc_ecma_ast"} -swc_ecma_transforms = {version = "0.111.0", path = "../swc_ecma_transforms", features = ["compat", "proposal"]} +swc_ecma_transforms = {version = "0.112.0", path = "../swc_ecma_transforms", features = ["compat", "proposal"]} swc_ecma_utils = {version = "0.63.0", path = "../swc_ecma_utils"} swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit"} walkdir = "2" diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml index 9c0b652ac4c..271b18cd99f 100644 --- a/crates/swc_ecma_transforms/Cargo.toml +++ b/crates/swc_ecma_transforms/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_ecma_transforms" repository = "https://github.com/swc-project/swc.git" -version = "0.111.3" +version = "0.112.0" [package.metadata.docs.rs] all-features = true @@ -30,7 +30,7 @@ swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} swc_ecma_transforms_base = {version = "0.56.0", path = "../swc_ecma_transforms_base"} swc_ecma_transforms_compat = {version = "0.67.2", path = "../swc_ecma_transforms_compat", optional = true} swc_ecma_transforms_module = {version = "0.73.0", path = "../swc_ecma_transforms_module", optional = true} -swc_ecma_transforms_optimization = {version = "0.81.0", path = "../swc_ecma_transforms_optimization", optional = true} +swc_ecma_transforms_optimization = {version = "0.82.0", path = "../swc_ecma_transforms_optimization", optional = true} swc_ecma_transforms_proposal = {version = "0.73.0", path = "../swc_ecma_transforms_proposal", optional = true} swc_ecma_transforms_react = {version = "0.75.1", path = "../swc_ecma_transforms_react", optional = true} swc_ecma_transforms_typescript = {version = "0.77.1", path = "../swc_ecma_transforms_typescript", optional = true} diff --git a/crates/swc_ecma_transforms_optimization/Cargo.toml b/crates/swc_ecma_transforms_optimization/Cargo.toml index 04624a29e6c..3fa432078d6 100644 --- a/crates/swc_ecma_transforms_optimization/Cargo.toml +++ b/crates/swc_ecma_transforms_optimization/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_ecma_transforms_optimization" repository = "https://github.com/swc-project/swc.git" -version = "0.81.1" +version = "0.82.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [features] diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index 46703478e22..d27d9a328f4 100644 --- a/crates/swc_ecmascript/Cargo.toml +++ b/crates/swc_ecmascript/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_ecmascript" repository = "https://github.com/swc-project/swc.git" -version = "0.108.4" +version = "0.109.0" [package.metadata.docs.rs] all-features = true @@ -36,10 +36,10 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = {version = "0.65.0", path = "../swc_ecma_ast"} swc_ecma_codegen = {version = "0.89.0", path = "../swc_ecma_codegen", optional = true} swc_ecma_dep_graph = {version = "0.58.0", path = "../swc_ecma_dep_graph", optional = true} -swc_ecma_minifier = {version = "0.68.1", path = "../swc_ecma_minifier", optional = true} +swc_ecma_minifier = {version = "0.69.0", path = "../swc_ecma_minifier", optional = true} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser", optional = true, default-features = false} -swc_ecma_preset_env = {version = "0.84.0", path = "../swc_ecma_preset_env", optional = true} -swc_ecma_transforms = {version = "0.111.3", path = "../swc_ecma_transforms", optional = true} +swc_ecma_preset_env = {version = "0.85.0", path = "../swc_ecma_preset_env", optional = true} +swc_ecma_transforms = {version = "0.112.0", path = "../swc_ecma_transforms", optional = true} swc_ecma_utils = {version = "0.63.0", path = "../swc_ecma_utils", optional = true} swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit", optional = true} diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 28dba48828b..a395bafbdcd 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_estree_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.32.0" +version = "0.33.0" [package.metadata.docs.rs] all-features = true @@ -29,9 +29,9 @@ swc_node_comments = {version = "0.4.0", path = "../swc_node_comments/"} [dev-dependencies] pretty_assertions = "0.7.2" -swc = {version = "0.114.0", path = "../swc"} +swc = {version = "0.115.0", path = "../swc"} swc_ecma_ast = {version = "0.65.0", path = "../swc_ecma_ast"} swc_ecma_parser = {version = "0.87.0", path = "../swc_ecma_parser"} -swc_ecma_transforms = {version = "0.111.0", path = "../swc_ecma_transforms/"} +swc_ecma_transforms = {version = "0.112.0", path = "../swc_ecma_transforms/"} testing = {version = "0.18.0", path = "../testing"} walkdir = "2" diff --git a/crates/swc_webpack_ast/Cargo.toml b/crates/swc_webpack_ast/Cargo.toml index 573eb6eed7a..2fbec0c2780 100644 --- a/crates/swc_webpack_ast/Cargo.toml +++ b/crates/swc_webpack_ast/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_webpack_ast" repository = "https://github.com/swc-project/swc.git" -version = "0.30.0" +version = "0.31.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -22,7 +22,7 @@ swc_ecma_transforms_base = {version = "0.56.0", path = "../swc_ecma_transforms_b swc_ecma_utils = {version = "0.63.0", path = "../swc_ecma_utils"} swc_ecma_visit = {version = "0.51.0", path = "../swc_ecma_visit"} swc_estree_ast = {version = "0.7.0", path = "../swc_estree_ast"} -swc_estree_compat = {version = "0.32.0", path = "../swc_estree_compat"} +swc_estree_compat = {version = "0.33.0", path = "../swc_estree_compat"} swc_timer = {version = "0.4.0", path = "../swc_timer"} tracing = "0.1.29"