diff --git a/CHANGELOG.md b/CHANGELOG.md index cd5512a9f7d..4c1e0463f09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,9 @@ - **(es/minifier)** Abort seq inliner if a same var is defined in outer scope (#7772) ([ef8d121](https://github.com/swc-project/swc/commit/ef8d12154ddaad47eddb41298bae14460834be0c)) +- **(es/minifier)** Do not drop properties used via `this` (#7785) ([552d9aa](https://github.com/swc-project/swc/commit/552d9aa344cb6db2dff1e20011411a56f92d4f06)) + + - **(es/module)** Use `jsc.baseUrl` while resolving absolute paths (#7775) ([5c4bfa6](https://github.com/swc-project/swc/commit/5c4bfa61f9e4f7732bc1a9da6cd25f52e593a374)) ### Features diff --git a/Cargo.lock b/Cargo.lock index 3ee33bdcaee..8626e4e22d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -235,7 +235,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.53.50" +version = "0.53.51" dependencies = [ "anyhow", "console_error_panic_hook", @@ -964,7 +964,7 @@ checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" [[package]] name = "dbg-swc" -version = "0.84.58" +version = "0.84.59" dependencies = [ "anyhow", "clap 3.1.0", @@ -3525,7 +3525,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.264.50" +version = "0.264.51" dependencies = [ "ahash 0.8.3", "ansi_term", @@ -3596,7 +3596,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.217.42" +version = "0.217.43" dependencies = [ "ahash 0.8.3", "anyhow", @@ -3709,7 +3709,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.79.53" +version = "0.79.54" dependencies = [ "anyhow", "binding_macros", @@ -4068,7 +4068,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.184.42" +version = "0.184.43" dependencies = [ "ahash 0.8.3", "ansi_term", @@ -4514,7 +4514,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.231.44" +version = "0.231.45" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -4562,7 +4562,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.187.50" +version = "0.187.51" dependencies = [ "ahash 0.8.3", "anyhow", @@ -4610,7 +4610,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.127.42" +version = "0.127.43" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4661,7 +4661,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.124.42" +version = "0.124.43" dependencies = [ "criterion", "once_cell", @@ -4747,7 +4747,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.51.50" +version = "0.51.51" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index eaf8c998ef7..c03cff81f50 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.53.50" +version = "0.53.51" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.264.50", path = "../swc" } +swc = { optional = true, version = "0.264.51", path = "../swc" } swc_common = { optional = true, version = "0.31.18", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.107.3", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.221.29", path = "../swc_ecma_transforms" } diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index be78af1cc61..1823112b9a2 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.84.58" +version = "0.84.59" [[bin]] bench = false @@ -32,7 +32,7 @@ swc_common = { version = "0.31.18", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "0.107.3", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.142.9", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.184.42", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.184.43", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "0.137.8", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 44f5135df1b..0b3060c88b2 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.264.50" +version = "0.264.51" [lib] bench = false @@ -83,7 +83,7 @@ swc_ecma_loader = { version = "0.43.20", path = "../swc_ecma_loader", features = "node", "tsc", ] } -swc_ecma_minifier = { version = "0.184.42", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.184.43", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.137.8", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "0.198.31", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.221.29", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index d7cb3ae0df7..87f0727f289 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.217.42" +version = "0.217.43" [package.metadata.docs.rs] all-features = true @@ -64,7 +64,7 @@ swc_ecma_loader = { version = "0.43.20", path = "../swc_ecma_loader", features = "node", "cache", ] } -swc_ecma_minifier = { version = "0.184.42", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.184.43", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "0.164.23", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 4494cdc440c..bc20cdd8d51 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.79.53" +version = "0.79.54" [package.metadata.docs.rs] features = [ "common_perf", @@ -325,10 +325,10 @@ __visit = ["__ecma", "swc_ecma_visit"] once_cell = { optional = true, version = "1.18.0" } # swc_* dependencies -binding_macros = { optional = true, version = "0.53.50", path = "../binding_macros" } -swc = { optional = true, version = "0.264.50", path = "../swc" } +binding_macros = { optional = true, version = "0.53.51", path = "../binding_macros" } +swc = { optional = true, version = "0.264.51", path = "../swc" } swc_atoms = { optional = true, version = "0.5.8", path = "../swc_atoms" } -swc_bundler = { optional = true, version = "0.217.42", path = "../swc_bundler" } +swc_bundler = { optional = true, version = "0.217.43", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.17", path = "../swc_cached" } swc_common = { optional = true, version = "0.31.18", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.137.18", path = "../swc_css_ast" } @@ -343,7 +343,7 @@ swc_css_visit = { optional = true, version = "0.136.18", path swc_ecma_ast = { optional = true, version = "0.107.3", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.142.9", path = "../swc_ecma_codegen" } swc_ecma_loader = { optional = true, version = "0.43.20", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "0.184.42", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "0.184.43", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.137.8", path = "../swc_ecma_parser" } swc_ecma_preset_env = { optional = true, version = "0.198.31", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "0.48.8", path = "../swc_ecma_quote_macros" } @@ -359,7 +359,7 @@ swc_ecma_usage_analyzer = { optional = true, version = "0.16.16", path swc_ecma_utils = { optional = true, version = "0.120.12", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.93.3", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.8", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.51.50", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.51.51", path = "../swc_node_bundler" } swc_nodejs_common = { optional = true, version = "0.0.8", path = "../swc_nodejs_common" } swc_plugin = { optional = true, version = "0.90.0", path = "../swc_plugin" } swc_plugin_macro = { optional = true, version = "0.9.15", path = "../swc_plugin_macro" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index d691f650078..3e9a91fc314 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.184.42" +version = "0.184.43" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index 55432fb3146..ff3d5e19aeb 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.231.44" +version = "0.231.45" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = { version = "0.107.3", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.142.9", path = "../swc_ecma_codegen", optional = true } swc_ecma_dep_graph = { version = "0.109.8", path = "../swc_ecma_dep_graph", optional = true } -swc_ecma_minifier = { version = "0.184.42", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "0.184.43", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.137.8", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "0.198.31", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.53.8", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 32495fdf39e..17759e7961a 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.187.50" +version = "0.187.51" [package.metadata.docs.rs] all-features = true @@ -40,7 +40,7 @@ swc_node_comments = { version = "0.18.18", path = "../swc_node_comments/" } criterion = "0.5" pretty_assertions = "1.3" -swc = { version = "0.264.50", path = "../swc" } +swc = { version = "0.264.51", path = "../swc" } swc_ecma_ast = { version = "0.107.3", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.137.8", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.221.29", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index a30de4eab76..0588608ddb9 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.127.42" +version = "0.127.43" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.31.18", path = "../swc_html_ast"} swc_html_codegen = {version = "0.40.21", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.124.42", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.124.43", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.37.21", path = "../swc_html_parser"} swc_html_visit = {version = "0.31.18", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 08a6e6686d5..e306773f6ae 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.124.42" +version = "0.124.43" [lib] bench = false @@ -31,7 +31,7 @@ swc_ecma_ast = { version = "0.107.3", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.142.9", path = "../swc_ecma_codegen", features = [ "serde-impl", ] } -swc_ecma_minifier = { version = "0.184.42", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.184.43", path = "../swc_ecma_minifier", features = [ "extra-serde", ] } swc_ecma_parser = { version = "0.137.8", path = "../swc_ecma_parser" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index ff9d01c8cd2..9d4b012dc41 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.51.50" +version = "0.51.51" [lib] bench = false @@ -29,9 +29,9 @@ serde_json = "1" tracing = "0.1.37" string_enum = { version = "0.4.1", path = "../string_enum" } -swc = { version = "0.264.50", path = "../swc" } +swc = { version = "0.264.51", path = "../swc" } swc_atoms = { version = "0.5.8", path = "../swc_atoms" } -swc_bundler = { version = "0.217.42", path = "../swc_bundler", features = [ +swc_bundler = { version = "0.217.43", path = "../swc_bundler", features = [ "concurrent", ] } swc_common = { version = "0.31.18", path = "../swc_common", features = [