diff --git a/CHANGELOG.md b/CHANGELOG.md index e6af03d7c7a..0776cb0dad3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog ## [unreleased] +### Bug Fixes + + + +- **(html/parser)** Parse foreign attributes (#4400) ([cf3be64](https://github.com/swc-project/swc/commit/cf3be649bb327feda8bce4e7ab7eca92d248c2da)) + ### Features diff --git a/Cargo.lock b/Cargo.lock index 5ae6f696802..bd8ca89e564 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3752,7 +3752,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.4.1" +version = "0.5.0" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -3763,7 +3763,7 @@ dependencies = [ [[package]] name = "swc_html_ast" -version = "0.4.0" +version = "0.5.0" dependencies = [ "is-macro", "serde", @@ -3774,7 +3774,7 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "0.4.0" +version = "0.5.0" dependencies = [ "auto_impl", "bitflags", @@ -3800,7 +3800,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.1.0" +version = "0.2.0" dependencies = [ "swc_atoms", "swc_common", @@ -3813,7 +3813,7 @@ dependencies = [ [[package]] name = "swc_html_parser" -version = "0.4.0" +version = "0.5.0" dependencies = [ "bitflags", "lexical", @@ -3829,7 +3829,7 @@ dependencies = [ [[package]] name = "swc_html_visit" -version = "0.4.0" +version = "0.5.0" dependencies = [ "swc_atoms", "swc_common", diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 46935605cbf..373d54c4017 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.4.1" +version = "0.5.0" [package.metadata.docs.rs] all-features = true @@ -19,8 +19,8 @@ bench = false minifier = ["swc_html_minifier"] [dependencies] -swc_html_ast = {version = "0.4.0", path = "../swc_html_ast"} -swc_html_codegen = {version = "0.4.0", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.1.0", path = "../swc_html_minifier", optional = true} -swc_html_parser = {version = "0.4.0", path = "../swc_html_parser"} -swc_html_visit = {version = "0.4.0", path = "../swc_html_visit"} +swc_html_ast = {version = "0.5.0", path = "../swc_html_ast"} +swc_html_codegen = {version = "0.5.0", path = "../swc_html_codegen"} +swc_html_minifier = {version = "0.2.0", path = "../swc_html_minifier", optional = true} +swc_html_parser = {version = "0.5.0", path = "../swc_html_parser"} +swc_html_visit = {version = "0.5.0", path = "../swc_html_visit"} diff --git a/crates/swc_html_ast/Cargo.toml b/crates/swc_html_ast/Cargo.toml index 1c2906b373e..c8d7bbfcd80 100644 --- a/crates/swc_html_ast/Cargo.toml +++ b/crates/swc_html_ast/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_html_ast" repository = "https://github.com/swc-project/swc.git" -version = "0.4.0" +version = "0.5.0" [lib] bench = false diff --git a/crates/swc_html_codegen/Cargo.toml b/crates/swc_html_codegen/Cargo.toml index c02becebe2d..1f1e567bb83 100644 --- a/crates/swc_html_codegen/Cargo.toml +++ b/crates/swc_html_codegen/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_html_codegen" repository = "https://github.com/swc-project/swc.git" -version = "0.4.0" +version = "0.5.0" [lib] bench = false @@ -17,13 +17,13 @@ auto_impl = "0.5.0" bitflags = "1.3.2" swc_atoms = {version = "0.2.7", path = "../swc_atoms"} swc_common = { version = "0.17.23", path = "../swc_common"} -swc_html_ast = {version = "0.4.0", path = "../swc_html_ast"} +swc_html_ast = {version = "0.5.0", path = "../swc_html_ast"} swc_html_codegen_macros = {version = "0.1.0", path = "../swc_html_codegen_macros"} [dev-dependencies] swc_common = { version = "0.17.23", path = "../swc_common", features = [ "sourcemap", ]} -swc_html_parser = {version = "0.4.0", path = "../swc_html_parser"} -swc_html_visit = {version = "0.4.0", path = "../swc_html_visit"} +swc_html_parser = {version = "0.5.0", path = "../swc_html_parser"} +swc_html_visit = {version = "0.5.0", path = "../swc_html_visit"} testing = {version = "0.19.0", path = "../testing"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 4dc3377cd96..ef8d072c271 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = "Apache-2.0" name = "swc_html_minifier" repository = "https://github.com/swc-project/swc.git" -version = "0.1.0" +version = "0.2.0" [lib] bench = false @@ -15,10 +15,10 @@ bench = false [dependencies] swc_atoms = {version = "0.2.9", path = "../swc_atoms"} swc_common = { version = "0.17.23", path = "../swc_common"} -swc_html_ast = {version = "0.4.0", path = "../swc_html_ast"} -swc_html_visit = {version = "0.4.0", path = "../swc_html_visit"} +swc_html_ast = {version = "0.5.0", path = "../swc_html_ast"} +swc_html_visit = {version = "0.5.0", path = "../swc_html_visit"} [dev-dependencies] -swc_html_codegen = {version = "0.4.0", path = "../swc_html_codegen"} -swc_html_parser = {version = "0.4.0", path = "../swc_html_parser"} +swc_html_codegen = {version = "0.5.0", path = "../swc_html_codegen"} +swc_html_parser = {version = "0.5.0", path = "../swc_html_parser"} testing = {version = "0.19.0", path = "../testing"} diff --git a/crates/swc_html_parser/Cargo.toml b/crates/swc_html_parser/Cargo.toml index 86bed6e374b..ae1ba40f84c 100644 --- a/crates/swc_html_parser/Cargo.toml +++ b/crates/swc_html_parser/Cargo.toml @@ -10,7 +10,7 @@ include = ["Cargo.toml", "src/**/*.rs", "src/**/*.json"] license = "Apache-2.0" name = "swc_html_parser" repository = "https://github.com/swc-project/swc.git" -version = "0.4.0" +version = "0.5.0" [lib] bench = false @@ -26,10 +26,10 @@ serde = { version = "1.0.118", features = ["derive"] } serde_json = "1.0.61" swc_atoms = { version = "0.2.7", path = "../swc_atoms" } swc_common = { version = "0.17.23", path = "../swc_common" } -swc_html_ast = { version = "0.4.0", path = "../swc_html_ast" } +swc_html_ast = { version = "0.5.0", path = "../swc_html_ast" } [dev-dependencies] serde = "1.0.127" serde_json = "1.0.66" -swc_html_visit = { version = "0.4.0", path = "../swc_html_visit" } +swc_html_visit = { version = "0.5.0", path = "../swc_html_visit" } testing = { version = "0.19.0", path = "../testing" } diff --git a/crates/swc_html_visit/Cargo.toml b/crates/swc_html_visit/Cargo.toml index 60d12a69390..2417a3384d6 100644 --- a/crates/swc_html_visit/Cargo.toml +++ b/crates/swc_html_visit/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" license = "Apache-2.0" name = "swc_html_visit" repository = "https://github.com/swc-project/swc.git" -version = "0.4.0" +version = "0.5.0" [lib] bench = false @@ -14,5 +14,5 @@ bench = false [dependencies] swc_atoms = {version = "0.2.7", path = "../swc_atoms"} swc_common = { version = "0.17.23", path = "../swc_common"} -swc_html_ast = {version = "0.4.0", path = "../swc_html_ast"} +swc_html_ast = {version = "0.5.0", path = "../swc_html_ast"} swc_visit = {version = "0.3.0", path = "../swc_visit"}