diff --git a/CHANGELOG.md b/CHANGELOG.md index 84612469de2..4adb51fc10c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,9 @@ - **(css/parser)** Use ascii operations (#5808) ([96cc888](https://github.com/swc-project/swc/commit/96cc888ef21299f6bcfdd21d576879857c3062a5)) +- **(css/parser)** Remove needless branching (#5809) ([91ed13e](https://github.com/swc-project/swc/commit/91ed13e098bc53551332902e43f4d539829fb00f)) + + - **(es/codegen)** Skip useless operations if not required (#5803) ([49942ca](https://github.com/swc-project/swc/commit/49942ca773d6fe6f44efa92625e274d01f9cdce0)) ### Refactor diff --git a/Cargo.lock b/Cargo.lock index 6afc96cde65..8a9055742b3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3110,7 +3110,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.22.7" +version = "0.22.8" dependencies = [ "binding_macros", "once_cell", @@ -3157,7 +3157,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.124.4" +version = "0.124.5" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -3182,7 +3182,7 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.121.3" +version = "0.121.4" dependencies = [ "auto_impl", "bitflags", @@ -3210,7 +3210,7 @@ dependencies = [ [[package]] name = "swc_css_lints" -version = "0.30.2" +version = "0.30.3" dependencies = [ "auto_impl", "parking_lot", @@ -3229,7 +3229,7 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.86.4" +version = "0.86.5" dependencies = [ "criterion", "serde", @@ -3246,7 +3246,7 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.120.2" +version = "0.120.3" dependencies = [ "bitflags", "criterion", @@ -3263,7 +3263,7 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.122.3" +version = "0.122.4" dependencies = [ "once_cell", "preset_env_base", @@ -3947,7 +3947,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.72.6" +version = "0.72.7" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -3999,7 +3999,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.69.6" +version = "0.69.7" dependencies = [ "once_cell", "serde", diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 09633c88e5d..9eca2b77318 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.22.7" +version = "0.22.8" [package.metadata.docs.rs] features = [ "common_perf", @@ -304,10 +304,10 @@ swc_bundler = { optional = true, version = "0.187.3", path swc_cached = { optional = true, version = "0.3.8", path = "../swc_cached" } swc_common = { optional = true, version = "0.28.1", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.111.1", path = "../swc_css_ast" } -swc_css_codegen = { optional = true, version = "0.121.3", path = "../swc_css_codegen" } -swc_css_minifier = { optional = true, version = "0.86.4", path = "../swc_css_minifier" } -swc_css_parser = { optional = true, version = "0.120.2", path = "../swc_css_parser" } -swc_css_prefixer = { optional = true, version = "0.122.3", path = "../swc_css_prefixer" } +swc_css_codegen = { optional = true, version = "0.121.4", path = "../swc_css_codegen" } +swc_css_minifier = { optional = true, version = "0.86.5", path = "../swc_css_minifier" } +swc_css_parser = { optional = true, version = "0.120.3", path = "../swc_css_parser" } +swc_css_prefixer = { optional = true, version = "0.122.4", path = "../swc_css_prefixer" } swc_css_utils = { optional = true, version = "0.108.1", path = "../swc_css_utils/" } swc_css_visit = { optional = true, version = "0.110.1", path = "../swc_css_visit" } swc_ecma_ast = { optional = true, version = "0.91.1", path = "../swc_ecma_ast" } diff --git a/crates/swc_css/Cargo.toml b/crates/swc_css/Cargo.toml index 18ab9589629..0f09e44da29 100644 --- a/crates/swc_css/Cargo.toml +++ b/crates/swc_css/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_css" repository = "https://github.com/swc-project/swc.git" -version = "0.124.4" +version = "0.124.5" [package.metadata.docs.rs] all-features = true @@ -20,8 +20,8 @@ minifier = ["swc_css_minifier"] [dependencies] swc_css_ast = {version = "0.111.1", path = "../swc_css_ast"} -swc_css_codegen = {version = "0.121.3", path = "../swc_css_codegen"} -swc_css_minifier = {version = "0.86.4", path = "../swc_css_minifier", optional = true} -swc_css_parser = {version = "0.120.2", path = "../swc_css_parser"} +swc_css_codegen = {version = "0.121.4", path = "../swc_css_codegen"} +swc_css_minifier = {version = "0.86.5", path = "../swc_css_minifier", optional = true} +swc_css_parser = {version = "0.120.3", path = "../swc_css_parser"} swc_css_utils = {version = "0.108.1", path = "../swc_css_utils/"} swc_css_visit = {version = "0.110.1", path = "../swc_css_visit"} diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index 0763dac13d2..3cb8fa97a75 100644 --- a/crates/swc_css_codegen/Cargo.toml +++ b/crates/swc_css_codegen/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_css_codegen" repository = "https://github.com/swc-project/swc.git" -version = "0.121.3" +version = "0.121.4" [lib] bench = false @@ -26,6 +26,6 @@ swc_css_codegen_macros = { version = "0.2.0", path = "../swc_css_codegen_macros" swc_common = { version = "0.28.1", path = "../swc_common", features = [ "sourcemap", ] } -swc_css_parser = { version = "0.120.2", path = "../swc_css_parser" } +swc_css_parser = { version = "0.120.3", path = "../swc_css_parser" } swc_css_visit = { version = "0.110.1", path = "../swc_css_visit" } testing = { version = "0.30.1", path = "../testing" } diff --git a/crates/swc_css_lints/Cargo.toml b/crates/swc_css_lints/Cargo.toml index fa1aaee8549..1c2a6bd30a6 100644 --- a/crates/swc_css_lints/Cargo.toml +++ b/crates/swc_css_lints/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_css_lints" repository = "https://github.com/swc-project/swc.git" -version = "0.30.2" +version = "0.30.3" [lib] bench = false @@ -26,5 +26,5 @@ thiserror = "1.0.30" [dev-dependencies] serde_json = "1.0.79" -swc_css_parser = { version = "0.120.2", path = "../swc_css_parser" } +swc_css_parser = { version = "0.120.3", path = "../swc_css_parser" } testing = { version = "0.30.1", path = "../testing" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 0308003c0c1..bf52115acbe 100644 --- a/crates/swc_css_minifier/Cargo.toml +++ b/crates/swc_css_minifier/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_css_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.86.4" +version = "0.86.5" [lib] bench = false @@ -22,8 +22,8 @@ swc_css_visit = { version = "0.110.1", path = "../swc_css_visit" } [dev-dependencies] criterion = "0.3" -swc_css_codegen = { version = "0.121.3", path = "../swc_css_codegen" } -swc_css_parser = { version = "0.120.2", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.121.4", path = "../swc_css_codegen" } +swc_css_parser = { version = "0.120.3", path = "../swc_css_parser" } swc_node_base = { version = "0.5.0", path = "../swc_node_base" } testing = { version = "0.30.1", path = "../testing" } diff --git a/crates/swc_css_parser/Cargo.toml b/crates/swc_css_parser/Cargo.toml index a0c5a7359db..1b7364c0cbb 100644 --- a/crates/swc_css_parser/Cargo.toml +++ b/crates/swc_css_parser/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_css_parser" repository = "https://github.com/swc-project/swc.git" -version = "0.120.2" +version = "0.120.3" [lib] bench = false diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 462f87b0165..d33c4292834 100644 --- a/crates/swc_css_prefixer/Cargo.toml +++ b/crates/swc_css_prefixer/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/**/*.json", "data/**/*.json"] license = "Apache-2.0" name = "swc_css_prefixer" repository = "https://github.com/swc-project/swc.git" -version = "0.122.3" +version = "0.122.4" [lib] bench = false @@ -24,6 +24,6 @@ swc_css_utils = { version = "0.108.1", path = "../swc_css_utils/" } swc_css_visit = { version = "0.110.1", path = "../swc_css_visit" } [dev-dependencies] -swc_css_codegen = { version = "0.121.3", path = "../swc_css_codegen" } -swc_css_parser = { version = "0.120.2", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.121.4", path = "../swc_css_codegen" } +swc_css_parser = { version = "0.120.3", path = "../swc_css_parser" } testing = { version = "0.30.1", path = "../testing" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 77539e18229..a64c5bee0e9 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.72.6" +version = "0.72.7" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.25.1", path = "../swc_html_ast"} swc_html_codegen = {version = "0.33.1", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.69.6", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.69.7", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.30.1", path = "../swc_html_parser"} swc_html_visit = {version = "0.25.1", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 55f355c99d2..e37b95b5b0d 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.69.6" +version = "0.69.7" [lib] bench = false @@ -23,9 +23,9 @@ swc_atoms = { version = "0.4.12", path = "../swc_atoms" } swc_cached = { version = "0.3.8", path = "../swc_cached" } swc_common = { version = "0.28.1", path = "../swc_common" } swc_css_ast = { version = "0.111.1", path = "../swc_css_ast" } -swc_css_codegen = { version = "0.121.3", path = "../swc_css_codegen" } -swc_css_minifier = { version = "0.86.4", path = "../swc_css_minifier" } -swc_css_parser = { version = "0.120.2", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.121.4", path = "../swc_css_codegen" } +swc_css_minifier = { version = "0.86.5", path = "../swc_css_minifier" } +swc_css_parser = { version = "0.120.3", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.91.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.124.2", path = "../swc_ecma_codegen" } swc_ecma_minifier = { version = "0.154.3", path = "../swc_ecma_minifier" }