diff --git a/CHANGELOG.md b/CHANGELOG.md index fa6811b0de88..6f2872ee1b2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,9 @@ - **(es/minifier)** Make sequential inliner respect resolution order (#6509) ([27ae59e](https://github.com/swc-project/swc/commit/27ae59e77bb8cb1f1d1dbbba3f8dec58359bc2ba)) +- **(es/minifier)** Use unsafe option for arrow => method (#6521) ([9752b43](https://github.com/swc-project/swc/commit/9752b43f94313fe2902ad04e5b01b865e0180155)) + + - **(html/parser)** Fix parsing of cdata (#6534) ([e3cbe7e](https://github.com/swc-project/swc/commit/e3cbe7e9a98149bfc05421a264d4e421fb543f7e)) ### Features diff --git a/Cargo.lock b/Cargo.lock index 87ca46961d07..8d54b3c32ef8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,7 +168,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.20.118" +version = "0.20.119" dependencies = [ "anyhow", "console_error_panic_hook", @@ -779,7 +779,7 @@ dependencies = [ [[package]] name = "dbg-swc" -version = "0.58.149" +version = "0.58.150" dependencies = [ "anyhow", "clap 3.1.0", @@ -2979,7 +2979,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.232.115" +version = "0.232.116" dependencies = [ "ahash", "ansi_term", @@ -3050,7 +3050,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.192.101" +version = "0.192.102" dependencies = [ "ahash", "anyhow", @@ -3165,7 +3165,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.43.35" +version = "0.43.36" dependencies = [ "anyhow", "binding_macros", @@ -3526,7 +3526,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.159.101" +version = "0.159.102" dependencies = [ "ahash", "ansi_term", @@ -3949,7 +3949,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.205.102" +version = "0.205.103" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -3997,7 +3997,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.154.115" +version = "0.154.116" dependencies = [ "ahash", "anyhow", @@ -4045,7 +4045,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.96.33" +version = "0.96.34" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4097,7 +4097,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.93.33" +version = "0.93.34" dependencies = [ "criterion", "once_cell", @@ -4183,7 +4183,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.18.115" +version = "0.18.116" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 0b139c876cdb..da0ef2653a19 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.20.118" +version = "0.20.119" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.232.115", path = "../swc" } +swc = { optional = true, version = "0.232.116", path = "../swc" } swc_common = { optional = true, version = "0.29.16", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.94.21", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.198.63", path = "../swc_ecma_transforms" } diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index 18e9d0a873ce..fce3aab77ee2 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.58.149" +version = "0.58.150" [[bin]] bench = false @@ -27,7 +27,7 @@ swc_common = { version = "0.29.16", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "0.94.21", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.38", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.159.101", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.159.102", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "0.122.31", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 99552e4ab208..cb1d35c08eaa 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.232.115" +version = "0.232.116" [lib] bench = false @@ -75,7 +75,7 @@ swc_ecma_loader = { version = "0.41.17", path = "../swc_ecma_loader", features = "node", "tsc", ] } -swc_ecma_minifier = { version = "0.159.101", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.159.102", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.122.31", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "0.174.63", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.198.63", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 9fb81da6e281..677b53c5d451 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.192.101" +version = "0.192.102" [package.metadata.docs.rs] all-features = true @@ -61,7 +61,7 @@ swc_ecma_loader = { version = "0.41.17", path = "../swc_ecma_loader", features = "node", "cache", ] } -swc_ecma_minifier = { version = "0.159.101", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.159.102", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "0.144.51", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 3c553ab304a1..3a8934b47352 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.43.35" +version = "0.43.36" [package.metadata.docs.rs] features = [ "common_perf", @@ -318,10 +318,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.20.118", path = "../binding_macros" } -swc = { optional = true, version = "0.232.115", path = "../swc" } +binding_macros = { optional = true, version = "0.20.119", path = "../binding_macros" } +swc = { optional = true, version = "0.232.116", path = "../swc" } swc_atoms = { optional = true, version = "0.4.25", path = "../swc_atoms" } -swc_bundler = { optional = true, version = "0.192.101", path = "../swc_bundler" } +swc_bundler = { optional = true, version = "0.192.102", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.15", path = "../swc_cached" } swc_common = { optional = true, version = "0.29.16", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.127.3", path = "../swc_css_ast" } @@ -335,7 +335,7 @@ swc_css_visit = { optional = true, version = "0.126.3", path swc_ecma_ast = { optional = true, version = "0.94.21", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.127.38", path = "../swc_ecma_codegen" } swc_ecma_loader = { optional = true, version = "0.41.17", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "0.159.101", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "0.159.102", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.122.31", path = "../swc_ecma_parser" } swc_ecma_preset_env = { optional = true, version = "0.174.63", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "0.33.32", path = "../swc_ecma_quote_macros" } @@ -349,7 +349,7 @@ swc_ecma_transforms_typescript = { optional = true, version = "0.159.58", path swc_ecma_utils = { optional = true, version = "0.105.39", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.80.21", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.8", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.18.115", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.18.116", path = "../swc_node_bundler" } swc_nodejs_common = { optional = true, version = "0.0.4", path = "../swc_nodejs_common" } swc_plugin = { optional = true, version = "0.90.0", path = "../swc_plugin" } swc_plugin_macro = { optional = true, version = "0.9.9", path = "../swc_plugin_macro" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 5917542fa9ed..224cb2708afa 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.159.101" +version = "0.159.102" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index d477127c19fd..00e54bcdbc71 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.205.102" +version = "0.205.103" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = { version = "0.94.21", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.38", path = "../swc_ecma_codegen", optional = true } swc_ecma_dep_graph = { version = "0.94.31", path = "../swc_ecma_dep_graph", optional = true } -swc_ecma_minifier = { version = "0.159.101", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "0.159.102", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.122.31", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "0.174.63", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.38.34", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 66bd5261a382..3358776be126 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.154.115" +version = "0.154.116" [package.metadata.docs.rs] all-features = true @@ -38,7 +38,7 @@ swc_node_comments = { version = "0.16.16", path = "../swc_node_comments/" } [dev-dependencies] criterion = "0.3" pretty_assertions = "1.1" -swc = { version = "0.232.115", path = "../swc" } +swc = { version = "0.232.116", path = "../swc" } swc_ecma_ast = { version = "0.94.21", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.122.31", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.198.63", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index d3576b58b6ee..78cccef4e402 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.96.33" +version = "0.96.34" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.28.7", path = "../swc_html_ast"} swc_html_codegen = {version = "0.37.15", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.93.33", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.93.34", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.34.15", path = "../swc_html_parser"} swc_html_visit = {version = "0.28.7", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index de162b9d1ed9..426ad8614ad6 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.93.33" +version = "0.93.34" [lib] bench = false @@ -28,7 +28,7 @@ swc_css_minifier = { version = "0.102.5", path = "../swc_css_minifier" } swc_css_parser = { version = "0.136.5", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.94.21", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.38", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.159.101", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.159.102", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.122.31", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "0.111.58", path = "../swc_ecma_transforms_base" } swc_ecma_visit = { version = "0.80.21", path = "../swc_ecma_visit" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index 2d03388fe450..586f70aeca69 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.18.115" +version = "0.18.116" [lib] bench = false @@ -26,9 +26,9 @@ regex = "1" serde = { version = "1", features = ["derive"] } serde_json = "1" string_enum = { version = "0.3.2", path = "../string_enum" } -swc = { version = "0.232.115", path = "../swc" } +swc = { version = "0.232.116", path = "../swc" } swc_atoms = { version = "0.4.25", path = "../swc_atoms" } -swc_bundler = { version = "0.192.101", path = "../swc_bundler", features = [ +swc_bundler = { version = "0.192.102", path = "../swc_bundler", features = [ "concurrent", ] } swc_common = { version = "0.29.16", path = "../swc_common", features = [