diff --git a/CHANGELOG.md b/CHANGELOG.md index 5286d572db4..4f1458d38a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ - **(es/compat)** Use separate `SyntaxContext` for class names (#5566) ([b717a68](https://github.com/swc-project/swc/commit/b717a68199fc965632e9513d2c57a47af23231d8)) +### Features + + + +- **(css/ast)** Make `keyword` optional (#5543) ([a3c1ac6](https://github.com/swc-project/swc/commit/a3c1ac67d708b6c95ef9a9b0892df90bdb26ffe5)) + ## [1.2.241] - 2022-08-19 ### Bug Fixes diff --git a/Cargo.lock b/Cargo.lock index bc717d76584..4a36f992df7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3095,7 +3095,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.120.0" +version = "0.121.0" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -3107,7 +3107,7 @@ dependencies = [ [[package]] name = "swc_css_ast" -version = "0.107.3" +version = "0.108.0" dependencies = [ "bytecheck", "is-macro", @@ -3120,7 +3120,7 @@ dependencies = [ [[package]] name = "swc_css_codegen" -version = "0.117.3" +version = "0.118.0" dependencies = [ "auto_impl", "bitflags", @@ -3148,7 +3148,7 @@ dependencies = [ [[package]] name = "swc_css_lints" -version = "0.26.0" +version = "0.27.0" dependencies = [ "auto_impl", "parking_lot", @@ -3167,7 +3167,7 @@ dependencies = [ [[package]] name = "swc_css_minifier" -version = "0.82.1" +version = "0.83.0" dependencies = [ "serde", "swc_atoms", @@ -3182,7 +3182,7 @@ dependencies = [ [[package]] name = "swc_css_parser" -version = "0.116.0" +version = "0.117.0" dependencies = [ "bitflags", "criterion", @@ -3199,7 +3199,7 @@ dependencies = [ [[package]] name = "swc_css_prefixer" -version = "0.118.0" +version = "0.119.0" dependencies = [ "once_cell", "preset_env_base", @@ -3217,7 +3217,7 @@ dependencies = [ [[package]] name = "swc_css_utils" -version = "0.104.0" +version = "0.105.0" dependencies = [ "once_cell", "serde", @@ -3230,7 +3230,7 @@ dependencies = [ [[package]] name = "swc_css_visit" -version = "0.106.0" +version = "0.107.0" dependencies = [ "serde", "swc_atoms", @@ -3881,7 +3881,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.59.1" +version = "0.60.0" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -3933,7 +3933,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.56.2" +version = "0.57.0" dependencies = [ "once_cell", "serde", diff --git a/crates/swc_css/Cargo.toml b/crates/swc_css/Cargo.toml index 46db30fc478..67fbde5a576 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.120.0" +version = "0.121.0" [package.metadata.docs.rs] all-features = true @@ -19,9 +19,9 @@ bench = false minifier = ["swc_css_minifier"] [dependencies] -swc_css_ast = {version = "0.107.0", path = "../swc_css_ast"} -swc_css_codegen = {version = "0.117.0", path = "../swc_css_codegen"} -swc_css_minifier = {version = "0.82.0", path = "../swc_css_minifier", optional = true} -swc_css_parser = {version = "0.116.0", path = "../swc_css_parser"} -swc_css_utils = {version = "0.104.0", path = "../swc_css_utils/"} -swc_css_visit = {version = "0.106.0", path = "../swc_css_visit"} +swc_css_ast = {version = "0.108.0", path = "../swc_css_ast"} +swc_css_codegen = {version = "0.118.0", path = "../swc_css_codegen"} +swc_css_minifier = {version = "0.83.0", path = "../swc_css_minifier", optional = true} +swc_css_parser = {version = "0.117.0", path = "../swc_css_parser"} +swc_css_utils = {version = "0.105.0", path = "../swc_css_utils/"} +swc_css_visit = {version = "0.107.0", path = "../swc_css_visit"} diff --git a/crates/swc_css_ast/Cargo.toml b/crates/swc_css_ast/Cargo.toml index f0b87fec8ac..27b1bf6e373 100644 --- a/crates/swc_css_ast/Cargo.toml +++ b/crates/swc_css_ast/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_css_ast" repository = "https://github.com/swc-project/swc.git" -version = "0.107.3" +version = "0.108.0" [lib] bench = false diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index 2349fe3b4b2..f47ea9c81d5 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.117.3" +version = "0.118.0" [lib] bench = false @@ -19,13 +19,13 @@ rustc-hash = "1.1.0" serde = "1.0.127" swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } swc_css_codegen_macros = { version = "0.2.0", path = "../swc_css_codegen_macros" } [dev-dependencies] swc_common = { version = "0.27.7", path = "../swc_common", features = [ "sourcemap", ] } -swc_css_parser = { version = "0.116.0", path = "../swc_css_parser" } -swc_css_visit = { version = "0.106.0", path = "../swc_css_visit" } +swc_css_parser = { version = "0.117.0", path = "../swc_css_parser" } +swc_css_visit = { version = "0.107.0", path = "../swc_css_visit" } testing = { version = "0.29.4", path = "../testing" } diff --git a/crates/swc_css_lints/Cargo.toml b/crates/swc_css_lints/Cargo.toml index 58ef44a2436..23481f149cc 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.26.0" +version = "0.27.0" [lib] bench = false @@ -20,11 +20,11 @@ serde = { version = "1.0.133", features = ["derive"] } swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_cached = { version = "0.3.5", path = "../swc_cached" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } -swc_css_visit = { version = "0.106.0", path = "../swc_css_visit" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } +swc_css_visit = { version = "0.107.0", path = "../swc_css_visit" } thiserror = "1.0.30" [dev-dependencies] serde_json = "1.0.79" -swc_css_parser = { version = "0.116.0", path = "../swc_css_parser" } +swc_css_parser = { version = "0.117.0", path = "../swc_css_parser" } testing = { version = "0.29.4", path = "../testing" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 7a15644630a..2c05dea60fa 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.82.1" +version = "0.83.0" [lib] bench = false @@ -16,11 +16,11 @@ bench = false serde = "1.0.118" swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } -swc_css_utils = { version = "0.104.0", path = "../swc_css_utils/" } -swc_css_visit = { version = "0.106.0", path = "../swc_css_visit" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } +swc_css_utils = { version = "0.105.0", path = "../swc_css_utils/" } +swc_css_visit = { version = "0.107.0", path = "../swc_css_visit" } [dev-dependencies] -swc_css_codegen = { version = "0.117.0", path = "../swc_css_codegen" } -swc_css_parser = { version = "0.116.0", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.118.0", path = "../swc_css_codegen" } +swc_css_parser = { version = "0.117.0", path = "../swc_css_parser" } testing = { version = "0.29.4", path = "../testing" } diff --git a/crates/swc_css_parser/Cargo.toml b/crates/swc_css_parser/Cargo.toml index 3394710c59b..146bbcc5c81 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.116.0" +version = "0.117.0" [lib] bench = false @@ -21,12 +21,12 @@ lexical = "6.1.0" serde = "1.0.127" swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } [dev-dependencies] criterion = "0.3" serde_json = "1.0.66" -swc_css_visit = { version = "0.106.0", path = "../swc_css_visit" } +swc_css_visit = { version = "0.107.0", path = "../swc_css_visit" } swc_node_base = { version = "0.5.0", path = "../swc_node_base" } testing = { version = "0.29.4", path = "../testing" } diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 42cc01fbe69..5592bd87bcb 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.118.0" +version = "0.119.0" [lib] bench = false @@ -19,11 +19,11 @@ serde = { version = "1.0.118", features = ["derive"] } serde_json = "1.0.61" swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } -swc_css_utils = { version = "0.104.0", path = "../swc_css_utils/" } -swc_css_visit = { version = "0.106.0", path = "../swc_css_visit" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } +swc_css_utils = { version = "0.105.0", path = "../swc_css_utils/" } +swc_css_visit = { version = "0.107.0", path = "../swc_css_visit" } [dev-dependencies] -swc_css_codegen = { version = "0.117.0", path = "../swc_css_codegen" } -swc_css_parser = { version = "0.116.0", path = "../swc_css_parser" } +swc_css_codegen = { version = "0.118.0", path = "../swc_css_codegen" } +swc_css_parser = { version = "0.117.0", path = "../swc_css_parser" } testing = { version = "0.29.4", path = "../testing" } diff --git a/crates/swc_css_utils/Cargo.toml b/crates/swc_css_utils/Cargo.toml index 4face4a724a..5ed2225d13d 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.104.0" +version = "0.105.0" [lib] bench = false @@ -18,5 +18,5 @@ serde = { version = "1.0.118", features = ["derive"] } serde_json = "1.0.61" swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } -swc_css_visit = { version = "0.106.0", path = "../swc_css_visit" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } +swc_css_visit = { version = "0.107.0", path = "../swc_css_visit" } diff --git a/crates/swc_css_visit/Cargo.toml b/crates/swc_css_visit/Cargo.toml index 856252eb1b7..e78658e7d93 100644 --- a/crates/swc_css_visit/Cargo.toml +++ b/crates/swc_css_visit/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_css_visit" repository = "https://github.com/swc-project/swc.git" -version = "0.106.0" +version = "0.107.0" [package.metadata.docs.rs] all-features = true @@ -23,5 +23,5 @@ path = [] serde = { version = "1", optional = true } swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } swc_visit = { version = "0.5.2", path = "../swc_visit" } diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 59546d446df..295d5a5de55 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.59.1" +version = "0.60.0" [package.metadata.docs.rs] all-features = true @@ -21,6 +21,6 @@ minifier = ["swc_html_minifier"] [dependencies] swc_html_ast = {version = "0.24.4", path = "../swc_html_ast"} swc_html_codegen = {version = "0.32.4", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.56.1", path = "../swc_html_minifier", optional = true} +swc_html_minifier = {version = "0.57.0", path = "../swc_html_minifier", optional = true} swc_html_parser = {version = "0.29.4", path = "../swc_html_parser"} swc_html_visit = {version = "0.24.4", path = "../swc_html_visit"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 7a2a5446c5d..a19f7dccbe4 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.56.2" +version = "0.57.0" [lib] bench = false @@ -22,10 +22,10 @@ serde_json = "1.0.61" swc_atoms = { version = "0.4.5", path = "../swc_atoms" } swc_cached = { version = "0.3.5", path = "../swc_cached" } swc_common = { version = "0.27.7", path = "../swc_common" } -swc_css_ast = { version = "0.107.0", path = "../swc_css_ast" } -swc_css_codegen = { version = "0.117.0", path = "../swc_css_codegen" } -swc_css_minifier = { version = "0.82.0", path = "../swc_css_minifier" } -swc_css_parser = { version = "0.116.0", path = "../swc_css_parser" } +swc_css_ast = { version = "0.108.0", path = "../swc_css_ast" } +swc_css_codegen = { version = "0.118.0", path = "../swc_css_codegen" } +swc_css_minifier = { version = "0.83.0", path = "../swc_css_minifier" } +swc_css_parser = { version = "0.117.0", path = "../swc_css_parser" } swc_ecma_ast = { version = "0.90.10", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "0.121.5", path = "../swc_ecma_codegen" } swc_ecma_minifier = { version = "0.144.7", path = "../swc_ecma_minifier" }