diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c9861b5b1a..fc17b909de9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -41,6 +41,9 @@ - **(es/minifier)** Fix infection analysis of sequential inliner (#6053) ([d65fba1](https://github.com/swc-project/swc/commit/d65fba134d50609543c1d1ef0dc07db9891913ac)) +- **(es/minifier)** Mark `delete` as a property mutation (#6063) ([38df597](https://github.com/swc-project/swc/commit/38df5978c14c1fd7c24c0881f7cd1c19021b3f9f)) + + - **(es/renamer)** Use a separate scope for the name of `FnExpr` (#6008) ([31ffd5a](https://github.com/swc-project/swc/commit/31ffd5a01dc9a20de36c9b9606a15c42f023e72f)) ### Features diff --git a/Cargo.lock b/Cargo.lock index e1a6139278e..64f8c42e839 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,7 +168,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.19.8" +version = "0.19.9" dependencies = [ "anyhow", "console_error_panic_hook", @@ -742,7 +742,7 @@ dependencies = [ [[package]] name = "dbg-swc" -version = "0.57.9" +version = "0.57.10" dependencies = [ "anyhow", "clap 3.1.0", @@ -2957,7 +2957,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.231.8" +version = "0.231.9" dependencies = [ "ahash", "ansi_term", @@ -3028,7 +3028,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.191.7" +version = "0.191.8" dependencies = [ "ahash", "anyhow", @@ -3145,7 +3145,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.29.9" +version = "0.29.10" dependencies = [ "binding_macros", "once_cell", @@ -3483,7 +3483,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.158.7" +version = "0.158.8" dependencies = [ "ahash", "ansi_term", @@ -3909,7 +3909,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.204.7" +version = "0.204.8" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -3957,7 +3957,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.153.8" +version = "0.153.9" dependencies = [ "ahash", "anyhow", @@ -4005,7 +4005,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.79.8" +version = "0.79.9" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4057,7 +4057,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.76.8" +version = "0.76.9" dependencies = [ "criterion", "once_cell", @@ -4143,7 +4143,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.17.8" +version = "0.17.9" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 220cfe5b7f1..70585b48217 100644 --- a/crates/binding_macros/Cargo.toml +++ b/crates/binding_macros/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "binding_macros" repository = "https://github.com/swc-project/swc.git" -version = "0.19.8" +version = "0.19.9" [lib] bench = false @@ -30,7 +30,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.231.8", path = "../swc" } +swc = { optional = true, version = "0.231.9", path = "../swc" } swc_common = { optional = true, version = "0.29.4", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.94.4", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.197.3", path = "../swc_ecma_transforms" } diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index fd16b70115b..09881fa684b 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -5,7 +5,7 @@ edition = "2021" license = "Apache-2.0" name = "dbg-swc" repository = "https://github.com/kdy1/dbg-swc.git" -version = "0.57.9" +version = "0.57.10" [[bin]] bench = false @@ -27,7 +27,7 @@ swc_common = { version = "0.29.4", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "0.94.4", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.7", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.158.7", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.158.8", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "0.122.5", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 0e105b9e524..38daae5d5f5 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.231.8" +version = "0.231.9" [lib] bench = false @@ -75,7 +75,7 @@ swc_ecma_loader = { version = "0.41.4", path = "../swc_ecma_loader", features = "node", "tsc", ] } -swc_ecma_minifier = { version = "0.158.7", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.158.8", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.122.5", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "0.173.3", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.197.3", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 4b72663d64f..eb512365e28 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.191.7" +version = "0.191.8" [package.metadata.docs.rs] all-features = true @@ -61,7 +61,7 @@ swc_ecma_loader = { version = "0.41.4", path = "../swc_ecma_loader", features = "node", "cache", ] } -swc_ecma_minifier = { version = "0.158.7", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.158.8", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "0.143.3", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index eb8a439c2a7..5c3e68212ff 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_core" repository = "https://github.com/swc-project/swc.git" -version = "0.29.9" +version = "0.29.10" [package.metadata.docs.rs] features = [ "common_perf", @@ -316,10 +316,10 @@ wasmer = { optional = true, version = "2.3.0", default-features = false } wasmer-wasi = { optional = true, version = "2.3.0", default-features = false } # swc_* dependencies -binding_macros = { optional = true, version = "0.19.8", path = "../binding_macros" } -swc = { optional = true, version = "0.231.8", path = "../swc" } +binding_macros = { optional = true, version = "0.19.9", path = "../binding_macros" } +swc = { optional = true, version = "0.231.9", path = "../swc" } swc_atoms = { optional = true, version = "0.4.18", path = "../swc_atoms" } -swc_bundler = { optional = true, version = "0.191.7", path = "../swc_bundler" } +swc_bundler = { optional = true, version = "0.191.8", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.14", path = "../swc_cached" } swc_common = { optional = true, version = "0.29.4", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.114.6", path = "../swc_css_ast" } @@ -332,7 +332,7 @@ swc_css_visit = { optional = true, version = "0.113.6", path swc_ecma_ast = { optional = true, version = "0.94.4", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.127.7", path = "../swc_ecma_codegen" } swc_ecma_loader = { optional = true, version = "0.41.4", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "0.158.7", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "0.158.8", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.122.5", path = "../swc_ecma_parser" } swc_ecma_quote_macros = { optional = true, version = "0.33.5", path = "../swc_ecma_quote_macros" } swc_ecma_transforms_base = { optional = true, version = "0.111.13", path = "../swc_ecma_transforms_base" } @@ -345,7 +345,7 @@ swc_ecma_transforms_typescript = { optional = true, version = "0.158.3", path swc_ecma_utils = { optional = true, version = "0.105.7", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.80.4", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.5", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.17.8", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.17.9", path = "../swc_node_bundler" } swc_nodejs_common = { optional = true, version = "0.0.1", path = "../swc_nodejs_common" } swc_plugin = { optional = true, version = "0.90.0", path = "../swc_plugin" } swc_plugin_macro = { optional = true, version = "0.9.8", path = "../swc_plugin_macro" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index f063d91f138..da14961e3c9 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.158.7" +version = "0.158.8" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index 257e545abab..c4b31c101be 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.204.7" +version = "0.204.8" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = { version = "0.94.4", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.7", path = "../swc_ecma_codegen", optional = true } swc_ecma_dep_graph = { version = "0.94.5", path = "../swc_ecma_dep_graph", optional = true } -swc_ecma_minifier = { version = "0.158.7", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "0.158.8", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.122.5", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "0.173.3", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.38.7", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 703d9b8c377..733b2a9438e 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_estree_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.153.8" +version = "0.153.9" [package.metadata.docs.rs] all-features = true @@ -38,7 +38,7 @@ swc_node_comments = { version = "0.16.4", path = "../swc_node_comments/" } [dev-dependencies] criterion = "0.3" pretty_assertions = "1.1" -swc = { version = "0.231.8", path = "../swc" } +swc = { version = "0.231.9", path = "../swc" } swc_ecma_ast = { version = "0.94.4", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.122.5", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.197.3", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index d41bf46119f..bf04a73848d 100644 --- a/crates/swc_html/Cargo.toml +++ b/crates/swc_html/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_html" repository = "https://github.com/swc-project/swc.git" -version = "0.79.8" +version = "0.79.9" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.26.5", path = "../swc_html_ast"} swc_html_codegen = {version = "0.35.6", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.76.8", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.76.9", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.32.6", path = "../swc_html_parser"} swc_html_visit = {version = "0.26.5", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index d14bc12268b..621dd0c3973 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -10,7 +10,7 @@ include = ["Cargo.toml", "src/**/*.rs", "data/**/*.json"] license = "Apache-2.0" name = "swc_html_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.76.8" +version = "0.76.9" [lib] bench = false @@ -28,7 +28,7 @@ swc_css_minifier = { version = "0.89.7", path = "../swc_css_minifier" } swc_css_parser = { version = "0.123.6", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.94.4", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.7", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.158.7", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.158.8", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.122.5", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "0.111.13", path = "../swc_ecma_transforms_base" } swc_ecma_visit = { version = "0.80.4", path = "../swc_ecma_visit" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index 482c071a4ca..902f21f7a39 100644 --- a/crates/swc_node_bundler/Cargo.toml +++ b/crates/swc_node_bundler/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_node_bundler" repository = "https://github.com/swc-project/swc.git" -version = "0.17.8" +version = "0.17.9" [lib] bench = false @@ -26,9 +26,9 @@ regex = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" string_enum = { version = "0.3", path = "../string_enum" } -swc = { version = "0.231.8", path = "../swc" } +swc = { version = "0.231.9", path = "../swc" } swc_atoms = { version = "0.4.18", path = "../swc_atoms" } -swc_bundler = { version = "0.191.7", path = "../swc_bundler", features = [ +swc_bundler = { version = "0.191.8", path = "../swc_bundler", features = [ "concurrent", ] } swc_common = { version = "0.29.4", path = "../swc_common", features = [