diff --git a/CHANGELOG.md b/CHANGELOG.md index 270fb7c5cdc..a06bebbd7a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,9 @@ - **(es/compat)** Generate `OptCall` for `OptCall` for private fields (#8031) ([06b6eb9](https://github.com/swc-project/swc/commit/06b6eb999964c25a964b0105bd7a4f20b51300dd)) +- **(es/minifier)** Check if object shorthand is skippable for seq inliner (#8036) ([01391e3](https://github.com/swc-project/swc/commit/01391e3c13e42b7f42f80ab13b396cad182942ff)) + + - **(es/module)** Sort the exported ESM bindings (#8024) ([990ca06](https://github.com/swc-project/swc/commit/990ca06aca3242a789e165f4318c95d0bb64b02e)) @@ -41,7 +44,7 @@ - **(ci)** Expose more crates to JS (#8033) ([186ecfa](https://github.com/swc-project/swc/commit/186ecfadb55430405d1a4e1400574a6e958f9458)) -- **(ci)** Remove wrong `if`s ([dec68c3](https://github.com/swc-project/swc/commit/dec68c32126e38066feb813fce4635e7d40a8429))- **general**: Fix yarn lockfile ([7f91274](https://github.com/swc-project/swc/commit/7f9127420867cba856faa4ede8ef62ec3146e382)) +- **(ci)** Remove wrong `if`s ([dec68c3](https://github.com/swc-project/swc/commit/dec68c32126e38066feb813fce4635e7d40a8429))- **general**: Fix yarn lockfile ([7f91274](https://github.com/swc-project/swc/commit/7f9127420867cba856faa4ede8ef62ec3146e382))- **general**: Fix yarn lockfile ([c062536](https://github.com/swc-project/swc/commit/c0625361a1ad7537ca53a157fbdc8599fbbe2a44)) ### Refactor diff --git a/Cargo.lock b/Cargo.lock index cdbe6e838e0..eaedd8b24d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -235,7 +235,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.57.31" +version = "0.57.32" dependencies = [ "anyhow", "console_error_panic_hook", @@ -964,7 +964,7 @@ checksum = "23d8666cb01533c39dde32bcbab8e227b4ed6679b2c925eba05feabea39508fb" [[package]] name = "dbg-swc" -version = "0.87.42" +version = "0.87.43" dependencies = [ "anyhow", "clap 3.1.0", @@ -3525,7 +3525,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.266.31" +version = "0.266.32" dependencies = [ "ansi_term", "anyhow", @@ -3596,7 +3596,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.220.24" +version = "0.220.25" dependencies = [ "anyhow", "crc", @@ -3687,7 +3687,7 @@ dependencies = [ [[package]] name = "swc_compiler_base" -version = "0.1.3" +version = "0.1.4" dependencies = [ "anyhow", "base64 0.13.1", @@ -3730,7 +3730,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.83.33" +version = "0.83.34" dependencies = [ "anyhow", "binding_macros", @@ -4087,7 +4087,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.187.24" +version = "0.187.25" dependencies = [ "ansi_term", "anyhow", @@ -4527,7 +4527,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.234.26" +version = "0.234.27" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -4575,7 +4575,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.191.31" +version = "0.191.32" dependencies = [ "ahash 0.8.3", "anyhow", @@ -4623,7 +4623,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.131.24" +version = "0.131.25" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4674,7 +4674,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.128.24" +version = "0.128.25" dependencies = [ "criterion", "once_cell", @@ -4760,7 +4760,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.55.31" +version = "0.55.32" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 043d0c6f1cb..2d97ebbe8bc 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.57.31" +version = "0.57.32" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.266.31", path = "../swc" } +swc = { optional = true, version = "0.266.32", path = "../swc" } swc_common = { optional = true, version = "0.32.1", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.224.22", path = "../swc_ecma_transforms" } diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index 27a40695089..55db6fe9dcc 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.87.42" +version = "0.87.43" [[bin]] bench = false @@ -32,7 +32,7 @@ swc_common = { version = "0.32.1", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.145.5", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.187.24", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.187.25", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 0aaeb537861..3e3c84da3ef 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.266.31" +version = "0.266.32" [lib] bench = false @@ -73,7 +73,7 @@ swc_common = { version = "0.32.1", path = "../swc_common", features = [ "sourcemap", "parking_lot", ] } -swc_compiler_base = { version = "0.1.3", path = "../swc_compiler_base" } +swc_compiler_base = { version = "0.1.4", path = "../swc_compiler_base" } swc_config = { version = "0.1.7", path = "../swc_config" } swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.145.5", path = "../swc_ecma_codegen" } @@ -84,7 +84,7 @@ swc_ecma_loader = { version = "0.44.4", path = "../swc_ecma_loader", features = "node", "tsc", ] } -swc_ecma_minifier = { version = "0.187.24", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.187.25", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "0.201.24", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.224.22", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 5ee02f4ec4c..946521cb45b 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.220.24" +version = "0.220.25" [package.metadata.docs.rs] all-features = true @@ -63,7 +63,7 @@ swc_ecma_loader = { version = "0.44.4", path = "../swc_ecma_loader", features = "node", "cache", ] } -swc_ecma_minifier = { version = "0.187.24", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.187.25", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "0.167.14", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_compiler_base/Cargo.toml b/crates/swc_compiler_base/Cargo.toml index 52363b70575..40c8b96f200 100644 --- a/crates/swc_compiler_base/Cargo.toml +++ b/crates/swc_compiler_base/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_compiler_base" repository = "https://github.com/swc-project/swc.git" -version = "0.1.3" +version = "0.1.4" [features] node = ["napi", "napi-derive"] @@ -23,7 +23,7 @@ swc_common = { version = "0.32.1", path = "../swc_common" } swc_config = { version = "0.1.7", path = "../swc_config" } swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.145.5", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.187.24", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.187.25", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" } swc_ecma_visit = { version = "0.95.1", path = "../swc_ecma_visit" } swc_timer = { version = "0.20.1", path = "../swc_timer" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index e0bd10f235f..6e178ed4a23 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.83.33" +version = "0.83.34" [package.metadata.docs.rs] features = [ "allocator_node", @@ -324,10 +324,10 @@ __visit = ["__ecma", "swc_ecma_visit"] once_cell = { optional = true, version = "1.18.0" } # swc_* dependencies -binding_macros = { optional = true, version = "0.57.31", path = "../binding_macros" } -swc = { optional = true, version = "0.266.31", path = "../swc" } +binding_macros = { optional = true, version = "0.57.32", path = "../binding_macros" } +swc = { optional = true, version = "0.266.32", path = "../swc" } swc_atoms = { optional = true, version = "0.5.9", path = "../swc_atoms" } -swc_bundler = { optional = true, version = "0.220.24", path = "../swc_bundler" } +swc_bundler = { optional = true, version = "0.220.25", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.17", path = "../swc_cached" } swc_common = { optional = true, version = "0.32.1", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.139.1", path = "../swc_css_ast" } @@ -342,7 +342,7 @@ swc_css_visit = { optional = true, version = "0.138.1", path swc_ecma_ast = { optional = true, version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.145.5", path = "../swc_ecma_codegen" } swc_ecma_loader = { optional = true, version = "0.44.4", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "0.187.24", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "0.187.25", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.140.0", path = "../swc_ecma_parser" } swc_ecma_preset_env = { optional = true, version = "0.201.24", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "0.51.0", path = "../swc_ecma_quote_macros" } @@ -358,7 +358,7 @@ swc_ecma_usage_analyzer = { optional = true, version = "0.19.0", path = swc_ecma_utils = { optional = true, version = "0.123.0", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.95.1", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.8", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.55.31", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.55.32", 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 f7e2e58d5ae..7d7eb947c5c 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.187.24" +version = "0.187.25" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index a8e0f1c4de4..4912e6fc0c2 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.234.26" +version = "0.234.27" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.145.5", path = "../swc_ecma_codegen", optional = true } swc_ecma_dep_graph = { version = "0.112.0", path = "../swc_ecma_dep_graph", optional = true } -swc_ecma_minifier = { version = "0.187.24", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "0.187.25", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "0.201.24", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.56.0", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index bfc84ac4564..f83d7ed3227 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.191.31" +version = "0.191.32" [package.metadata.docs.rs] all-features = true @@ -40,7 +40,7 @@ swc_node_comments = { version = "0.19.1", path = "../swc_node_comments/" } criterion = "0.5" pretty_assertions = "1.3" -swc = { version = "0.266.31", path = "../swc" } +swc = { version = "0.266.32", path = "../swc" } swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.224.22", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 2bc878e7eda..e5719df9f0f 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.131.24" +version = "0.131.25" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.32.1", path = "../swc_html_ast"} swc_html_codegen = {version = "0.41.1", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.128.24", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.128.25", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.38.1", path = "../swc_html_parser"} swc_html_visit = {version = "0.32.1", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 20e6380ee63..5e8b542cb6e 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.128.24" +version = "0.128.25" [lib] bench = false @@ -31,7 +31,7 @@ swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.145.5", path = "../swc_ecma_codegen", features = [ "serde-impl", ] } -swc_ecma_minifier = { version = "0.187.24", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.187.25", path = "../swc_ecma_minifier", features = [ "extra-serde", ] } swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index 24fdd21b846..2aedc062305 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.55.31" +version = "0.55.32" [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.266.31", path = "../swc" } +swc = { version = "0.266.32", path = "../swc" } swc_atoms = { version = "0.5.9", path = "../swc_atoms" } -swc_bundler = { version = "0.220.24", path = "../swc_bundler", features = [ +swc_bundler = { version = "0.220.25", path = "../swc_bundler", features = [ "concurrent", ] } swc_common = { version = "0.32.1", path = "../swc_common", features = [