diff --git a/CHANGELOG.md b/CHANGELOG.md index df286782c93..ccf6b21920c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -79,6 +79,9 @@ - **(css/parser)** Union input types (#6385) ([434a765](https://github.com/swc-project/swc/commit/434a7657ed7d1705c90711853b1dcdf3579528c8)) + +- **(css/parser)** Skip whitespaces in correct places (#6382) ([56bc6b8](https://github.com/swc-project/swc/commit/56bc6b87948a41ccf8e6e7ac2da0c19ead2b451b)) + ### Testing diff --git a/Cargo.lock b/Cargo.lock index abd7d3cd39e..f4749274109 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3162,7 +3162,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.41.1" +version = "0.41.2" dependencies = [ "binding_macros", "once_cell", @@ -3212,7 +3212,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.138.1" +version = "0.138.2" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -3240,7 +3240,7 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.135.1" +version = "0.135.2" dependencies = [ "auto_impl", "bitflags", @@ -3269,7 +3269,7 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.10.1" +version = "0.10.2" dependencies = [ "once_cell", "serde", @@ -3286,7 +3286,7 @@ dependencies = [ [[package]] name = "swc_css_lints" -version = "0.44.1" +version = "0.44.2" dependencies = [ "auto_impl", "parking_lot", @@ -3305,7 +3305,7 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.100.1" +version = "0.100.2" dependencies = [ "criterion", "serde", @@ -3322,7 +3322,7 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.11.1" +version = "0.11.2" dependencies = [ "rustc-hash", "serde", @@ -3339,7 +3339,7 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.134.1" +version = "0.134.2" dependencies = [ "bitflags", "criterion", @@ -3356,7 +3356,7 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.136.1" +version = "0.136.2" dependencies = [ "once_cell", "preset_env_base", @@ -4041,7 +4041,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.94.1" +version = "0.94.2" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4093,7 +4093,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.91.1" +version = "0.91.2" dependencies = [ "criterion", "once_cell", diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 1e296dc5cb5..1ae7007a164 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.41.1" +version = "0.41.2" [package.metadata.docs.rs] features = [ "common_perf", @@ -325,11 +325,11 @@ swc_bundler = { optional = true, version = "0.192.73", path swc_cached = { optional = true, version = "0.3.15", path = "../swc_cached" } swc_common = { optional = true, version = "0.29.13", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.125.0", path = "../swc_css_ast" } -swc_css_codegen = { optional = true, version = "0.135.1", path = "../swc_css_codegen" } -swc_css_minifier = { optional = true, version = "0.100.1", path = "../swc_css_minifier" } -swc_css_modules = { optional = true, version = "0.11.1", path = "../swc_css_modules" } -swc_css_parser = { optional = true, version = "0.134.1", path = "../swc_css_parser" } -swc_css_prefixer = { optional = true, version = "0.136.1", path = "../swc_css_prefixer" } +swc_css_codegen = { optional = true, version = "0.135.2", path = "../swc_css_codegen" } +swc_css_minifier = { optional = true, version = "0.100.2", path = "../swc_css_minifier" } +swc_css_modules = { optional = true, version = "0.11.2", path = "../swc_css_modules" } +swc_css_parser = { optional = true, version = "0.134.2", path = "../swc_css_parser" } +swc_css_prefixer = { optional = true, version = "0.136.2", path = "../swc_css_prefixer" } swc_css_utils = { optional = true, version = "0.122.0", path = "../swc_css_utils/" } swc_css_visit = { optional = true, version = "0.124.0", path = "../swc_css_visit" } swc_ecma_ast = { optional = true, version = "0.94.18", path = "../swc_ecma_ast" } @@ -357,7 +357,7 @@ swc_plugin_proxy = { optional = true, version = "0.22.18", path swc_trace_macro = { optional = true, version = "0.1.2", path = "../swc_trace_macro" } testing = { optional = true, version = "0.31.13", path = "../testing" } # TODO: eventually swc_plugin_runner needs to remove default features -swc_css_compat = { version = "0.10.1", path = "../swc_css_compat", optional = true } +swc_css_compat = { version = "0.10.2", path = "../swc_css_compat", optional = true } swc_plugin_runner = { optional = true, version = "0.77.30", path = "../swc_plugin_runner", default-features = false } [build-dependencies] diff --git a/crates/swc_css/Cargo.toml b/crates/swc_css/Cargo.toml index b092ad995b0..b87d9935ab4 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.138.1" +version = "0.138.2" [package.metadata.docs.rs] all-features = true @@ -23,11 +23,11 @@ prefixer = ["swc_css_prefixer"] [dependencies] swc_css_ast = {version = "0.125.0", path = "../swc_css_ast"} -swc_css_codegen = {version = "0.135.1", path = "../swc_css_codegen"} -swc_css_compat = {version = "0.10.1", path = "../swc_css_compat", optional = true} -swc_css_minifier = {version = "0.100.1", path = "../swc_css_minifier", optional = true} -swc_css_modules = {version = "0.11.1", path = "../swc_css_modules", optional = true} -swc_css_parser = {version = "0.134.1", path = "../swc_css_parser"} -swc_css_prefixer = {version = "0.136.1", path = "../swc_css_prefixer", optional = true} +swc_css_codegen = {version = "0.135.2", path = "../swc_css_codegen"} +swc_css_compat = {version = "0.10.2", path = "../swc_css_compat", optional = true} +swc_css_minifier = {version = "0.100.2", path = "../swc_css_minifier", optional = true} +swc_css_modules = {version = "0.11.2", path = "../swc_css_modules", optional = true} +swc_css_parser = {version = "0.134.2", path = "../swc_css_parser"} +swc_css_prefixer = {version = "0.136.2", path = "../swc_css_prefixer", optional = true} swc_css_utils = {version = "0.122.0", path = "../swc_css_utils/"} swc_css_visit = {version = "0.124.0", path = "../swc_css_visit"} diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index cf47bedffa2..912336a516d 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.135.1" +version = "0.135.2" [lib] bench = false @@ -27,6 +27,6 @@ swc_css_utils = { version = "0.122.0", path = "../swc_css_utils" } swc_common = { version = "0.29.13", path = "../swc_common", features = [ "sourcemap", ] } -swc_css_parser = { version = "0.134.1", path = "../swc_css_parser" } +swc_css_parser = { version = "0.134.2", path = "../swc_css_parser" } swc_css_visit = { version = "0.124.0", path = "../swc_css_visit" } testing = { version = "0.31.13", path = "../testing" } diff --git a/crates/swc_css_compat/Cargo.toml b/crates/swc_css_compat/Cargo.toml index 2216e032b7d..2a7460102ce 100644 --- a/crates/swc_css_compat/Cargo.toml +++ b/crates/swc_css_compat/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/**/*.json", "data/**/*.json"] license = "Apache-2.0" name = "swc_css_compat" repository = "https://github.com/swc-project/swc.git" -version = "0.10.1" +version = "0.10.2" [lib] bench = false @@ -23,6 +23,6 @@ swc_css_utils = {version = "0.122.0", path = "../swc_css_utils/"} swc_css_visit = {version = "0.124.0", path = "../swc_css_visit"} [dev-dependencies] -swc_css_codegen = {version = "0.135.1", path = "../swc_css_codegen"} -swc_css_parser = {version = "0.134.1", path = "../swc_css_parser"} +swc_css_codegen = {version = "0.135.2", path = "../swc_css_codegen"} +swc_css_parser = {version = "0.134.2", path = "../swc_css_parser"} testing = {version = "0.31.13", path = "../testing"} diff --git a/crates/swc_css_lints/Cargo.toml b/crates/swc_css_lints/Cargo.toml index b25868fa7e8..5e1329856b2 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.44.1" +version = "0.44.2" [lib] bench = false @@ -26,5 +26,5 @@ thiserror = "1.0.30" [dev-dependencies] serde_json = "1.0.79" -swc_css_parser = { version = "0.134.1", path = "../swc_css_parser" } +swc_css_parser = { version = "0.134.2", path = "../swc_css_parser" } testing = { version = "0.31.13", path = "../testing" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 31f850776f7..2a8e2927ff6 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.100.1" +version = "0.100.2" [lib] bench = false @@ -22,8 +22,8 @@ swc_css_visit = { version = "0.124.0", path = "../swc_css_visit" } [dev-dependencies] criterion = "0.3" -swc_css_codegen = { version = "0.135.1", path = "../swc_css_codegen" } -swc_css_parser = { version = "0.134.1", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.135.2", path = "../swc_css_codegen" } +swc_css_parser = { version = "0.134.2", path = "../swc_css_parser" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.13", path = "../testing" } diff --git a/crates/swc_css_modules/Cargo.toml b/crates/swc_css_modules/Cargo.toml index ef815206a7c..a5033344046 100644 --- a/crates/swc_css_modules/Cargo.toml +++ b/crates/swc_css_modules/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_css_modules" repository = "https://github.com/swc-project/swc.git" -version = "0.11.1" +version = "0.11.2" [lib] bench = false @@ -20,11 +20,11 @@ serde = {version = "1", features = ["derive"]} swc_atoms = {version = "0.4.24", path = "../swc_atoms"} swc_common = {version = "0.29.13", path = "../swc_common"} swc_css_ast = {version = "0.125.0", path = "../swc_css_ast"} -swc_css_codegen = {version = "0.135.1", path = "../swc_css_codegen"} -swc_css_parser = {version = "0.134.1", path = "../swc_css_parser"} +swc_css_codegen = {version = "0.135.2", path = "../swc_css_codegen"} +swc_css_parser = {version = "0.134.2", path = "../swc_css_parser"} swc_css_visit = {version = "0.124.0", path = "../swc_css_visit"} [dev-dependencies] serde_json = "1" -swc_css_compat = {version = "0.10.1", path = "../swc_css_compat"} +swc_css_compat = {version = "0.10.2", path = "../swc_css_compat"} testing = {version = "0.31.13", path = "../testing"} diff --git a/crates/swc_css_parser/Cargo.toml b/crates/swc_css_parser/Cargo.toml index 23acef31405..ce330d42c96 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.134.1" +version = "0.134.2" [lib] bench = false diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 03bc701eeb9..eee345a75db 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.136.1" +version = "0.136.2" [lib] bench = false @@ -24,6 +24,6 @@ swc_css_utils = {version = "0.122.0", path = "../swc_css_utils/"} swc_css_visit = {version = "0.124.0", path = "../swc_css_visit"} [dev-dependencies] -swc_css_codegen = {version = "0.135.1", path = "../swc_css_codegen"} -swc_css_parser = {version = "0.134.1", path = "../swc_css_parser"} +swc_css_codegen = {version = "0.135.2", path = "../swc_css_codegen"} +swc_css_parser = {version = "0.134.2", path = "../swc_css_parser"} testing = {version = "0.31.13", path = "../testing"} diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 4054cd0dded..7e3a32904bf 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.94.1" +version = "0.94.2" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.28.4", path = "../swc_html_ast"} swc_html_codegen = {version = "0.37.10", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.91.1", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.91.2", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.34.10", path = "../swc_html_parser"} swc_html_visit = {version = "0.28.4", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index ec9838bc30d..0a407a60614 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.91.1" +version = "0.91.2" [lib] bench = false @@ -23,9 +23,9 @@ swc_atoms = { version = "0.4.24", path = "../swc_atoms" } swc_cached = { version = "0.3.15", path = "../swc_cached" } swc_common = { version = "0.29.13", path = "../swc_common" } swc_css_ast = { version = "0.125.0", path = "../swc_css_ast" } -swc_css_codegen = { version = "0.135.1", path = "../swc_css_codegen" } -swc_css_minifier = { version = "0.100.1", path = "../swc_css_minifier" } -swc_css_parser = { version = "0.134.1", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.135.2", path = "../swc_css_codegen" } +swc_css_minifier = { version = "0.100.2", path = "../swc_css_minifier" } +swc_css_parser = { version = "0.134.2", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.94.18", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.127.30", path = "../swc_ecma_codegen" } swc_ecma_minifier = { version = "0.159.73", path = "../swc_ecma_minifier" }