diff --git a/CHANGELOG.md b/CHANGELOG.md index 611a7a7cdb8f..19ecbe8f74db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ +- **(css/utils)** Fix minification of class names with whitespace (#6983) ([cc1d9bd](https://github.com/swc-project/swc/commit/cc1d9bd567340203d5d2bd228a4d0b19f8052202)) + + - **(es/decorator)** Preserve evaluation order (#6972) ([703b340](https://github.com/swc-project/swc/commit/703b340d39c3efb69f4a0d375ab6e5a2f9a4acd9)) ### Miscellaneous Tasks diff --git a/Cargo.lock b/Cargo.lock index 8d23bfc5df1f..7541e3eb1480 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3306,7 +3306,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.59.39" +version = "0.59.40" dependencies = [ "anyhow", "binding_macros", @@ -3359,7 +3359,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.149.7" +version = "0.149.8" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -3387,7 +3387,7 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.144.5" +version = "0.144.6" dependencies = [ "auto_impl", "bitflags", @@ -3416,7 +3416,7 @@ dependencies = [ [[package]] name = "swc_css_compat" -version = "0.20.5" +version = "0.20.6" dependencies = [ "bitflags", "once_cell", @@ -3453,7 +3453,7 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.109.5" +version = "0.109.6" dependencies = [ "criterion", "serde", @@ -3470,7 +3470,7 @@ dependencies = [ [[package]] name = "swc_css_modules" -version = "0.21.7" +version = "0.21.8" dependencies = [ "rustc-hash", "serde", @@ -3504,7 +3504,7 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.146.5" +version = "0.146.6" dependencies = [ "once_cell", "preset_env_base", @@ -3522,7 +3522,7 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.131.5" +version = "0.131.6" dependencies = [ "once_cell", "serde", @@ -4208,7 +4208,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.109.30" +version = "0.109.31" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -4260,7 +4260,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.106.30" +version = "0.106.31" dependencies = [ "criterion", "once_cell", diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 5d43ddacf518..d7922ad7851b 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.59.39" +version = "0.59.40" [package.metadata.docs.rs] features = [ "common_perf", @@ -347,12 +347,12 @@ swc_bundler = { optional = true, version = "0.199.31", path swc_cached = { optional = true, version = "0.3.15", path = "../swc_cached" } swc_common = { optional = true, version = "0.29.32", path = "../swc_common" } swc_css_ast = { optional = true, version = "0.134.5", path = "../swc_css_ast" } -swc_css_codegen = { optional = true, version = "0.144.5", path = "../swc_css_codegen" } -swc_css_minifier = { optional = true, version = "0.109.5", path = "../swc_css_minifier" } -swc_css_modules = { optional = true, version = "0.21.7", path = "../swc_css_modules" } +swc_css_codegen = { optional = true, version = "0.144.6", path = "../swc_css_codegen" } +swc_css_minifier = { optional = true, version = "0.109.6", path = "../swc_css_minifier" } +swc_css_modules = { optional = true, version = "0.21.8", path = "../swc_css_modules" } swc_css_parser = { optional = true, version = "0.143.5", path = "../swc_css_parser" } -swc_css_prefixer = { optional = true, version = "0.146.5", path = "../swc_css_prefixer" } -swc_css_utils = { optional = true, version = "0.131.5", path = "../swc_css_utils/" } +swc_css_prefixer = { optional = true, version = "0.146.6", path = "../swc_css_prefixer" } +swc_css_utils = { optional = true, version = "0.131.6", path = "../swc_css_utils/" } swc_css_visit = { optional = true, version = "0.133.5", path = "../swc_css_visit" } swc_ecma_ast = { optional = true, version = "0.96.7", path = "../swc_ecma_ast" } swc_ecma_codegen = { optional = true, version = "0.129.15", path = "../swc_ecma_codegen" } @@ -381,7 +381,7 @@ swc_plugin_proxy = { optional = true, version = "0.25.5", path = swc_trace_macro = { optional = true, version = "0.1.2", path = "../swc_trace_macro" } testing = { optional = true, version = "0.31.34", path = "../testing" } # TODO: eventually swc_plugin_runner needs to remove default features -swc_css_compat = { version = "0.20.5", path = "../swc_css_compat", optional = true } +swc_css_compat = { version = "0.20.6", path = "../swc_css_compat", optional = true } swc_plugin_runner = { optional = true, version = "0.85.13", path = "../swc_plugin_runner", default-features = false } [build-dependencies] diff --git a/crates/swc_css/Cargo.toml b/crates/swc_css/Cargo.toml index 0d5b19339045..188718412600 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.149.7" +version = "0.149.8" [package.metadata.docs.rs] all-features = true @@ -23,11 +23,11 @@ prefixer = ["swc_css_prefixer"] [dependencies] swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } -swc_css_codegen = { version = "0.144.5", path = "../swc_css_codegen" } -swc_css_compat = { version = "0.20.5", path = "../swc_css_compat", optional = true } -swc_css_minifier = { version = "0.109.5", path = "../swc_css_minifier", optional = true } -swc_css_modules = { version = "0.21.7", path = "../swc_css_modules", optional = true } +swc_css_codegen = { version = "0.144.6", path = "../swc_css_codegen" } +swc_css_compat = { version = "0.20.6", path = "../swc_css_compat", optional = true } +swc_css_minifier = { version = "0.109.6", path = "../swc_css_minifier", optional = true } +swc_css_modules = { version = "0.21.8", path = "../swc_css_modules", optional = true } swc_css_parser = { version = "0.143.5", path = "../swc_css_parser" } -swc_css_prefixer = { version = "0.146.5", path = "../swc_css_prefixer", optional = true } -swc_css_utils = { version = "0.131.5", path = "../swc_css_utils/" } +swc_css_prefixer = { version = "0.146.6", path = "../swc_css_prefixer", optional = true } +swc_css_utils = { version = "0.131.6", path = "../swc_css_utils/" } swc_css_visit = { version = "0.133.5", path = "../swc_css_visit" } diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index 89395dca09a0..8987dd229953 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.144.5" +version = "0.144.6" [lib] bench = false @@ -21,7 +21,7 @@ swc_atoms = { version = "0.4.37", path = "../swc_atoms" } swc_common = { version = "0.29.32", path = "../swc_common" } swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } swc_css_codegen_macros = { version = "0.2.0", path = "../swc_css_codegen_macros" } -swc_css_utils = { version = "0.131.5", path = "../swc_css_utils" } +swc_css_utils = { version = "0.131.6", path = "../swc_css_utils" } [dev-dependencies] swc_common = { version = "0.29.32", path = "../swc_common", features = [ diff --git a/crates/swc_css_compat/Cargo.toml b/crates/swc_css_compat/Cargo.toml index dc820851af5c..82d5134869c4 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.20.5" +version = "0.20.6" [lib] bench = false @@ -20,10 +20,10 @@ serde_json = "1.0.61" swc_atoms = { version = "0.4.37", path = "../swc_atoms" } swc_common = { version = "0.29.32", path = "../swc_common" } swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } -swc_css_utils = { version = "0.131.5", path = "../swc_css_utils/" } +swc_css_utils = { version = "0.131.6", path = "../swc_css_utils/" } swc_css_visit = { version = "0.133.5", path = "../swc_css_visit" } [dev-dependencies] -swc_css_codegen = { version = "0.144.5", path = "../swc_css_codegen" } +swc_css_codegen = { version = "0.144.6", path = "../swc_css_codegen" } swc_css_parser = { version = "0.143.5", path = "../swc_css_parser" } testing = { version = "0.31.34", path = "../testing" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 44d96eb0d4ac..2318a1d954c4 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.109.5" +version = "0.109.6" [lib] bench = false @@ -17,12 +17,12 @@ serde = "1.0.118" swc_atoms = { version = "0.4.37", path = "../swc_atoms" } swc_common = { version = "0.29.32", path = "../swc_common" } swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } -swc_css_utils = { version = "0.131.5", path = "../swc_css_utils/" } +swc_css_utils = { version = "0.131.6", path = "../swc_css_utils/" } swc_css_visit = { version = "0.133.5", path = "../swc_css_visit" } [dev-dependencies] criterion = "0.3" -swc_css_codegen = { version = "0.144.5", path = "../swc_css_codegen" } +swc_css_codegen = { version = "0.144.6", path = "../swc_css_codegen" } swc_css_parser = { version = "0.143.5", path = "../swc_css_parser" } swc_node_base = { version = "0.5.8", path = "../swc_node_base" } testing = { version = "0.31.34", path = "../testing" } diff --git a/crates/swc_css_modules/Cargo.toml b/crates/swc_css_modules/Cargo.toml index 38589ffc31df..9dda24f04a83 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.21.7" +version = "0.21.8" [lib] bench = false @@ -20,11 +20,11 @@ serde = { version = "1", features = ["derive"] } swc_atoms = { version = "0.4.37", path = "../swc_atoms" } swc_common = { version = "0.29.32", path = "../swc_common" } swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } -swc_css_codegen = { version = "0.144.5", path = "../swc_css_codegen" } +swc_css_codegen = { version = "0.144.6", path = "../swc_css_codegen" } swc_css_parser = { version = "0.143.5", path = "../swc_css_parser" } swc_css_visit = { version = "0.133.5", path = "../swc_css_visit" } [dev-dependencies] serde_json = "1" -swc_css_compat = { version = "0.20.5", path = "../swc_css_compat" } +swc_css_compat = { version = "0.20.6", path = "../swc_css_compat" } testing = { version = "0.31.34", path = "../testing" } diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 2c8e808bb443..97cf93013a22 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.146.5" +version = "0.146.6" [lib] bench = false @@ -20,10 +20,10 @@ serde_json = "1.0.61" swc_atoms = { version = "0.4.37", path = "../swc_atoms" } swc_common = { version = "0.29.32", path = "../swc_common" } swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } -swc_css_utils = { version = "0.131.5", path = "../swc_css_utils/" } +swc_css_utils = { version = "0.131.6", path = "../swc_css_utils/" } swc_css_visit = { version = "0.133.5", path = "../swc_css_visit" } [dev-dependencies] -swc_css_codegen = { version = "0.144.5", path = "../swc_css_codegen" } +swc_css_codegen = { version = "0.144.6", path = "../swc_css_codegen" } swc_css_parser = { version = "0.143.5", path = "../swc_css_parser" } testing = { version = "0.31.34", path = "../testing" } diff --git a/crates/swc_css_utils/Cargo.toml b/crates/swc_css_utils/Cargo.toml index ef0552c1b0e4..6f41cc0e8ca4 100644 --- a/crates/swc_css_utils/Cargo.toml +++ b/crates/swc_css_utils/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/**/*.json"] license = "Apache-2.0" name = "swc_css_utils" repository = "https://github.com/swc-project/swc.git" -version = "0.131.5" +version = "0.131.6" [lib] bench = false diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index afc63835164b..aa05e4f8c9cc 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.109.30" +version = "0.109.31" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.28.24", path = "../swc_html_ast"} swc_html_codegen = {version = "0.37.36", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.106.30", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.106.31", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.34.35", path = "../swc_html_parser"} swc_html_visit = {version = "0.28.24", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 747212ff4f6b..d842f6620c12 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.106.30" +version = "0.106.31" [lib] bench = false @@ -23,8 +23,8 @@ swc_atoms = { version = "0.4.37", path = "../swc_atoms" } swc_cached = { version = "0.3.15", path = "../swc_cached" } swc_common = { version = "0.29.32", path = "../swc_common" } swc_css_ast = { version = "0.134.5", path = "../swc_css_ast" } -swc_css_codegen = { version = "0.144.5", path = "../swc_css_codegen" } -swc_css_minifier = { version = "0.109.5", path = "../swc_css_minifier" } +swc_css_codegen = { version = "0.144.6", path = "../swc_css_codegen" } +swc_css_minifier = { version = "0.109.6", path = "../swc_css_minifier" } swc_css_parser = { version = "0.143.5", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.96.7", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.129.15", path = "../swc_ecma_codegen" }