diff --git a/CHANGELOG.md b/CHANGELOG.md index be725d338dd..99b42d54e54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,9 @@ - **(es/compat)** Fix syntax context of `async-to-generator` (#6741) ([206c0db](https://github.com/swc-project/swc/commit/206c0dbebe5eecaa8a5c1846189b26cb5517d84c)) +- **(es/minifier)** Fix usage counter to fix infinite loop (#6744) ([88d40e8](https://github.com/swc-project/swc/commit/88d40e8ab899976c123b5b5f74f0ad02ec9d7868)) + + - **(es/plugin)** Fix plugin starter template (#6723) ([082dc21](https://github.com/swc-project/swc/commit/082dc2101b8f3c05b103cf59484355ef87016a57)) diff --git a/Cargo.lock b/Cargo.lock index eb799ce5b78..90cc7f52254 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -177,7 +177,7 @@ dependencies = [ [[package]] name = "binding_macros" -version = "0.27.0" +version = "0.27.1" dependencies = [ "anyhow", "console_error_panic_hook", @@ -845,7 +845,7 @@ dependencies = [ [[package]] name = "dbg-swc" -version = "0.60.20" +version = "0.60.21" dependencies = [ "anyhow", "clap 3.1.0", @@ -3077,7 +3077,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.239.0" +version = "0.238.5" dependencies = [ "ahash", "ansi_term", @@ -3149,7 +3149,7 @@ dependencies = [ [[package]] name = "swc_bundler" -version = "0.193.30" +version = "0.193.31" dependencies = [ "ahash", "anyhow", @@ -3264,7 +3264,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.52.0" +version = "0.52.1" dependencies = [ "anyhow", "binding_macros", @@ -3628,7 +3628,7 @@ dependencies = [ [[package]] name = "swc_ecma_minifier" -version = "0.160.30" +version = "0.160.31" dependencies = [ "ahash", "ansi_term", @@ -4069,7 +4069,7 @@ dependencies = [ [[package]] name = "swc_ecmascript" -version = "0.207.0" +version = "0.207.1" dependencies = [ "swc_ecma_ast", "swc_ecma_codegen", @@ -4117,7 +4117,7 @@ dependencies = [ [[package]] name = "swc_estree_compat" -version = "0.161.0" +version = "0.161.1" dependencies = [ "ahash", "anyhow", @@ -4165,7 +4165,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.102.2" +version = "0.102.3" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4217,7 +4217,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.99.2" +version = "0.99.3" dependencies = [ "criterion", "once_cell", @@ -4303,7 +4303,7 @@ dependencies = [ [[package]] name = "swc_node_bundler" -version = "0.25.0" +version = "0.25.1" dependencies = [ "anyhow", "dashmap", diff --git a/crates/binding_macros/Cargo.toml b/crates/binding_macros/Cargo.toml index 86412bd0cde..83842b1f474 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.27.0" +version = "0.27.1" [lib] bench = false @@ -33,7 +33,7 @@ binding_wasm = [ [dependencies] # Common deps for the SWC imports -swc = { optional = true, version = "0.239.0", path = "../swc" } +swc = { optional = true, version = "0.238.5", path = "../swc" } swc_common = { optional = true, version = "0.29.25", path = "../swc_common" } swc_ecma_ast = { optional = true, version = "0.95.9", path = "../swc_ecma_ast" } swc_ecma_transforms = { optional = true, version = "0.199.21", path = "../swc_ecma_transforms" } diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index e2f9da07e63..3012288d173 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.60.20" +version = "0.60.21" [[bin]] bench = false @@ -27,7 +27,7 @@ swc_common = { version = "0.29.25", features = [ ], path = "../swc_common" } swc_ecma_ast = { version = "0.95.9", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.128.15", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.160.30", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.160.31", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_parser = { version = "0.123.13", path = "../swc_ecma_parser" } diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 7a3c9541bed..c163a8d2f0c 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.239.0" +version = "0.238.5" [lib] bench = false @@ -79,7 +79,7 @@ swc_ecma_loader = { version = "0.41.26", path = "../swc_ecma_loader", features = "node", "tsc", ] } -swc_ecma_minifier = { version = "0.160.30", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.160.31", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.123.13", path = "../swc_ecma_parser" } swc_ecma_preset_env = { version = "0.176.0", path = "../swc_ecma_preset_env" } swc_ecma_transforms = { version = "0.199.21", path = "../swc_ecma_transforms", features = [ diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 043e0160b65..c91f19cd152 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.193.30" +version = "0.193.31" [package.metadata.docs.rs] all-features = true @@ -61,7 +61,7 @@ swc_ecma_loader = { version = "0.41.26", path = "../swc_ecma_loader", features = "node", "cache", ] } -swc_ecma_minifier = { version = "0.160.30", path = "../swc_ecma_minifier", features = [ +swc_ecma_minifier = { version = "0.160.31", path = "../swc_ecma_minifier", features = [ "concurrent", ] } swc_ecma_transforms_proposal = { version = "0.145.20", path = "../swc_ecma_transforms_proposal" } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 6c195876df4..ef8b469d96b 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.52.0" +version = "0.52.1" [package.metadata.docs.rs] features = [ "common_perf", @@ -340,10 +340,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.27.0", path = "../binding_macros" } -swc = { optional = true, version = "0.239.0", path = "../swc" } +binding_macros = { optional = true, version = "0.27.1", path = "../binding_macros" } +swc = { optional = true, version = "0.238.5", path = "../swc" } swc_atoms = { optional = true, version = "0.4.32", path = "../swc_atoms" } -swc_bundler = { optional = true, version = "0.193.30", path = "../swc_bundler" } +swc_bundler = { optional = true, version = "0.193.31", path = "../swc_bundler" } swc_cached = { optional = true, version = "0.3.15", path = "../swc_cached" } swc_common = { optional = true, version = "0.29.25", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.133.0", path = "../swc_css_ast" } @@ -357,7 +357,7 @@ swc_css_visit = { optional = true, version = "0.132.0", path swc_ecma_ast = { optional = true, version = "0.95.9", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.128.15", path = "../swc_ecma_codegen" } swc_ecma_loader = { optional = true, version = "0.41.26", path = "../swc_ecma_loader" } -swc_ecma_minifier = { optional = true, version = "0.160.30", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { optional = true, version = "0.160.31", path = "../swc_ecma_minifier" } swc_ecma_parser = { optional = true, version = "0.123.13", path = "../swc_ecma_parser" } swc_ecma_preset_env = { optional = true, version = "0.176.0", path = "../swc_ecma_preset_env" } swc_ecma_quote_macros = { optional = true, version = "0.34.13", path = "../swc_ecma_quote_macros" } @@ -373,7 +373,7 @@ swc_ecma_usage_analyzer = { optional = true, version = "0.1.10", path = swc_ecma_utils = { optional = true, version = "0.106.15", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "0.81.9", path = "../swc_ecma_visit" } swc_node_base = { optional = true, version = "0.5.8", path = "../swc_node_base" } -swc_node_bundler = { optional = true, version = "0.25.0", path = "../swc_node_bundler" } +swc_node_bundler = { optional = true, version = "0.25.1", 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.10", path = "../swc_plugin_macro" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 64bec0b2480..33ccca945c2 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.160.30" +version = "0.160.31" [package.metadata.docs.rs] all-features = true diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index f2fb8841334..87f52545d76 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.207.0" +version = "0.207.1" [package.metadata.docs.rs] all-features = true @@ -42,7 +42,7 @@ typescript = ["typescript-parser", "swc_ecma_transforms/typescript"] swc_ecma_ast = { version = "0.95.9", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.128.15", path = "../swc_ecma_codegen", optional = true } swc_ecma_dep_graph = { version = "0.95.13", path = "../swc_ecma_dep_graph", optional = true } -swc_ecma_minifier = { version = "0.160.30", path = "../swc_ecma_minifier", optional = true } +swc_ecma_minifier = { version = "0.160.31", path = "../swc_ecma_minifier", optional = true } swc_ecma_parser = { version = "0.123.13", path = "../swc_ecma_parser", optional = true, default-features = false } swc_ecma_preset_env = { version = "0.176.0", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "0.39.13", path = "../swc_ecma_quote", optional = true } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index 38f958c5dde..d273ebe32b8 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.161.0" +version = "0.161.1" [package.metadata.docs.rs] all-features = true @@ -38,7 +38,7 @@ swc_node_comments = { version = "0.16.25", path = "../swc_node_comments/" } [dev-dependencies] criterion = "0.3" pretty_assertions = "1.1" -swc = { version = "0.239.0", path = "../swc" } +swc = { version = "0.238.5", path = "../swc" } swc_ecma_ast = { version = "0.95.9", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "0.123.13", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "0.199.21", path = "../swc_ecma_transforms/" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 8f6a9a66efb..a8e6309bed0 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.102.2" +version = "0.102.3" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.28.17", path = "../swc_html_ast"} swc_html_codegen = {version = "0.37.29", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.99.2", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.99.3", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.34.28", path = "../swc_html_parser"} swc_html_visit = {version = "0.28.17", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index c265b789e12..94a84c68e00 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.99.2" +version = "0.99.3" [lib] bench = false @@ -28,7 +28,7 @@ swc_css_minifier = { version = "0.108.0", path = "../swc_css_minifier" } swc_css_parser = { version = "0.142.0", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.95.9", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.128.15", path = "../swc_ecma_codegen" } -swc_ecma_minifier = { version = "0.160.30", path = "../swc_ecma_minifier" } +swc_ecma_minifier = { version = "0.160.31", path = "../swc_ecma_minifier" } swc_ecma_parser = { version = "0.123.13", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "0.112.19", path = "../swc_ecma_transforms_base" } swc_ecma_visit = { version = "0.81.9", path = "../swc_ecma_visit" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index bbba56f716a..74359e26ba0 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.25.0" +version = "0.25.1" [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.239.0", path = "../swc" } +swc = { version = "0.238.5", path = "../swc" } swc_atoms = { version = "0.4.32", path = "../swc_atoms" } -swc_bundler = { version = "0.193.30", path = "../swc_bundler", features = [ +swc_bundler = { version = "0.193.31", path = "../swc_bundler", features = [ "concurrent", ] } swc_common = { version = "0.29.25", path = "../swc_common", features = [