diff --git a/.changeset/forty-maps-smoke.md b/.changeset/forty-maps-smoke.md deleted file mode 100644 index 405467276f04..000000000000 --- a/.changeset/forty-maps-smoke.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -swc_core: patch -swc_ecma_minifier: patch ---- - -perf(es/minifier): Speed up `merge_sequences_in_exprs` by caching computation diff --git a/CHANGELOG.md b/CHANGELOG.md index 108044ee5203..1391bf9cb828 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,12 @@ # Changelog +## [unreleased] + +### Performance + + + +- **(es/minifier)** Speed up `merge_sequences_in_exprs` by caching computation ([#9843](https://github.com/swc-project/swc/issues/9843)) ([6e5632f](https://github.com/swc-project/swc/commit/6e5632fa413c73ea5e1393a0b28b93d4000a3ac1)) + ## [1.10.5] - 2025-01-07 ### Bug Fixes @@ -1510,9 +1518,6 @@ -- **(css/minifier)** Don't tranform rotate deg ([#9072](https://github.com/swc-project/swc/issues/9072)) ([8d37dae](https://github.com/swc-project/swc/commit/8d37daedf10cbf5fa7ac8ceeb4192ddd6241e310)) - - - **(es/decorators)** Reduce the number of sourcemap mappings ([#9074](https://github.com/swc-project/swc/issues/9074)) ([cfe3ba3](https://github.com/swc-project/swc/commit/cfe3ba306dc709149c496f67dbb7f35dc4f86819)) ### Performance diff --git a/Cargo.lock b/Cargo.lock index 6762fcfa1e3e..cc650cd466a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4614,7 +4614,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "10.0.0" +version = "10.0.1" dependencies = [ "anyhow", "binding_macros", @@ -5167,7 +5167,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "7.0.0" +version = "7.0.1" dependencies = [ "ansi_term", "anyhow", diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index 49c8f2038340..03530cb0645a 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -33,7 +33,7 @@ swc_common = { version = "5.0.0", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "7.0.0", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "7.0.1", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "6.0.1", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 378b44173684..38db9e54989a 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -88,7 +88,7 @@ swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader", features = [ "node", "tsc", ] } -swc_ecma_minifier = { version = "7.0.0", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "7.0.1", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "6.0.1", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "9.0.0", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "9.0.0", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 37d0f47e1629..da10b185eb28 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -63,7 +63,7 @@ swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader", features = [ "node", "cache", ] } -swc_ecma_minifier = { version = "7.0.0", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "7.0.1", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "7.0.0", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_cli_impl/Cargo.toml b/crates/swc_cli_impl/Cargo.toml index 123821f8ecb4..f36cd9482ec1 100644 --- a/crates/swc_cli_impl/Cargo.toml +++ b/crates/swc_cli_impl/Cargo.toml @@ -39,7 +39,7 @@ tracing-futures = { workspace = true } tracing-subscriber = { workspace = true, features = ["env-filter"] } walkdir = { workspace = true } -swc_core = { version = "10.0.0", features = [ +swc_core = { version = "10.0.1", features = [ "trace_macro", "common_concurrent", "base_concurrent", diff --git a/crates/swc_compiler_base/Cargo.toml b/crates/swc_compiler_base/Cargo.toml index d6079fb90ac5..403e77c2a0d3 100644 --- a/crates/swc_compiler_base/Cargo.toml +++ b/crates/swc_compiler_base/Cargo.toml @@ -30,7 +30,7 @@ swc_common = { version = "5.0.0", path = "../swc_common", features = [ swc_config = { version = "1.0.0", path = "../swc_config" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "7.0.0", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "7.0.1", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "6.0.1", path = "../swc_ecma_parser" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_timer = { version = "1.0.0", path = "../swc_timer" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index b2b88f298edf..5c0f3c4555aa 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -6,7 +6,7 @@ edition = { workspace = true } license = { workspace = true } name = "swc_core" repository = { workspace = true } -version = "10.0.0" +version = "10.0.1" [package.metadata.docs.rs] features = [ "allocator_node", @@ -357,7 +357,7 @@ swc_ecma_ast = { optional = true, version = "5.0.1", path = swc_ecma_codegen = { optional = true, version = "5.0.1", path = "../swc_ecma_codegen" } swc_ecma_lints = { optional = true, version = "7.0.0", path = "../swc_ecma_lints" } swc_ecma_loader = { optional = true, version = "5.0.0", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "7.0.0", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "7.0.1", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "6.0.1", path = "../swc_ecma_parser" } swc_ecma_preset_env = { optional = true, version = "9.0.0", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "6.0.0", path = "../swc_ecma_quote_macros" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index e33e6260c093..4fe3f402be86 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 = { workspace = true } name = "swc_ecma_minifier" repository = { workspace = true } -version = "7.0.0" +version = "7.0.1" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index 9c779f2fc857..e52e57ea2c48 100644 --- a/crates/swc_ecmascript/Cargo.toml +++ b/crates/swc_ecmascript/Cargo.toml @@ -40,7 +40,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] [dependencies] swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen", optional = true } -swc_ecma_minifier = { version = "7.0.0", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "7.0.1", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "6.0.1", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "9.0.0", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "6.0.0", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 3e2a633114bb..e8cd5fc1dce6 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -36,7 +36,7 @@ swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen", features = [ "serde-impl", ] } -swc_ecma_minifier = { version = "7.0.0", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "7.0.1", path = "../swc_ecma_minifier", features = [ "extra-serde", ] } swc_ecma_parser = { version = "6.0.1", path = "../swc_ecma_parser" }