diff --git a/CHANGELOG.md b/CHANGELOG.md index 436e916f616..a7253bae38e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,9 @@ - **(html/parser)** Improve memory allocation (#4884) ([ce4d577](https://github.com/swc-project/swc/commit/ce4d57735e6cfe240967c8d4c6655bfaca107eea)) + +- **(html/parser)** Reduce cloning (#4901) ([e365766](https://github.com/swc-project/swc/commit/e3657660701366ca5c5e03876fe032d5a011b92a)) + ### Refactor diff --git a/Cargo.lock b/Cargo.lock index c8915a8fe99..65f8ad1f82a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3888,7 +3888,7 @@ dependencies = [ [[package]] name = "swc_html" -version = "0.11.0" +version = "0.12.0" dependencies = [ "swc_html_ast", "swc_html_codegen", @@ -3899,7 +3899,7 @@ dependencies = [ [[package]] name = "swc_html_ast" -version = "0.8.0" +version = "0.9.0" dependencies = [ "is-macro", "serde", @@ -3910,7 +3910,7 @@ dependencies = [ [[package]] name = "swc_html_codegen" -version = "0.11.0" +version = "0.12.0" dependencies = [ "auto_impl", "bitflags", @@ -3937,7 +3937,7 @@ dependencies = [ [[package]] name = "swc_html_minifier" -version = "0.8.1" +version = "0.9.0" dependencies = [ "serde_json", "swc_atoms", @@ -3951,7 +3951,7 @@ dependencies = [ [[package]] name = "swc_html_parser" -version = "0.11.2" +version = "0.12.0" dependencies = [ "bitflags", "criterion", @@ -3979,7 +3979,7 @@ dependencies = [ [[package]] name = "swc_html_visit" -version = "0.8.0" +version = "0.9.0" dependencies = [ "swc_atoms", "swc_common", diff --git a/crates/swc_html/Cargo.toml b/crates/swc_html/Cargo.toml index 8f0df1393e4..0592bed4c1f 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.11.0" +version = "0.12.0" [package.metadata.docs.rs] all-features = true @@ -19,8 +19,8 @@ bench = false minifier = ["swc_html_minifier"] [dependencies] -swc_html_ast = {version = "0.8.0", path = "../swc_html_ast"} -swc_html_codegen = {version = "0.11.0", path = "../swc_html_codegen"} -swc_html_minifier = {version = "0.8.0", path = "../swc_html_minifier", optional = true} -swc_html_parser = {version = "0.11.0", path = "../swc_html_parser"} -swc_html_visit = {version = "0.8.0", path = "../swc_html_visit"} +swc_html_ast = {version = "0.9.0", path = "../swc_html_ast"} +swc_html_codegen = {version = "0.12.0", path = "../swc_html_codegen"} +swc_html_minifier = {version = "0.9.0", path = "../swc_html_minifier", optional = true} +swc_html_parser = {version = "0.12.0", path = "../swc_html_parser"} +swc_html_visit = {version = "0.9.0", path = "../swc_html_visit"} diff --git a/crates/swc_html_ast/Cargo.toml b/crates/swc_html_ast/Cargo.toml index c13a4e6558f..442caada014 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.8.0" +version = "0.9.0" [lib] bench = false diff --git a/crates/swc_html_codegen/Cargo.toml b/crates/swc_html_codegen/Cargo.toml index 37d20a21d45..9ca04093b4c 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.11.0" +version = "0.12.0" [lib] bench = false @@ -17,7 +17,7 @@ auto_impl = "0.5.0" bitflags = "1.3.2" swc_atoms = {version = "0.2.7", path = "../swc_atoms"} swc_common = { version = "0.18.0", path = "../swc_common"} -swc_html_ast = {version = "0.8.0", path = "../swc_html_ast"} +swc_html_ast = {version = "0.9.0", path = "../swc_html_ast"} swc_html_codegen_macros = {version = "0.1.0", path = "../swc_html_codegen_macros"} swc_html_utils = { version = "0.1.0", path = "../swc_html_utils" } @@ -25,6 +25,6 @@ swc_html_utils = { version = "0.1.0", path = "../swc_html_utils" } swc_common = { version = "0.18.0", path = "../swc_common", features = [ "sourcemap", ]} -swc_html_parser = {version = "0.11.0", path = "../swc_html_parser"} -swc_html_visit = {version = "0.8.0", path = "../swc_html_visit"} +swc_html_parser = {version = "0.12.0", path = "../swc_html_parser"} +swc_html_visit = {version = "0.9.0", path = "../swc_html_visit"} testing = {version = "0.20.0", path = "../testing"} diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index 0e750f60c13..c8ace64fc15 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.8.1" +version = "0.9.0" [lib] bench = false @@ -16,10 +16,10 @@ bench = false serde_json = "1.0.61" swc_atoms = {version = "0.2.9", path = "../swc_atoms"} swc_common = { version = "0.18.0", path = "../swc_common"} -swc_html_ast = {version = "0.8.0", path = "../swc_html_ast"} -swc_html_visit = {version = "0.8.0", path = "../swc_html_visit"} +swc_html_ast = {version = "0.9.0", path = "../swc_html_ast"} +swc_html_visit = {version = "0.9.0", path = "../swc_html_visit"} [dev-dependencies] -swc_html_codegen = {version = "0.11.0", path = "../swc_html_codegen"} -swc_html_parser = {version = "0.11.0", path = "../swc_html_parser"} +swc_html_codegen = {version = "0.12.0", path = "../swc_html_codegen"} +swc_html_parser = {version = "0.12.0", path = "../swc_html_parser"} testing = {version = "0.20.0", path = "../testing"} diff --git a/crates/swc_html_parser/Cargo.toml b/crates/swc_html_parser/Cargo.toml index 6f60068a53e..7efe374c3e7 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.11.2" +version = "0.12.0" [lib] bench = false @@ -23,14 +23,14 @@ bitflags = "1.2.1" lexical = "6.1.0" swc_atoms = { version = "0.2.7", path = "../swc_atoms" } swc_common = { version = "0.18.0", path = "../swc_common" } -swc_html_ast = { version = "0.8.0", path = "../swc_html_ast" } +swc_html_ast = { version = "0.9.0", path = "../swc_html_ast" } swc_html_utils = { version = "0.1.0", path = "../swc_html_utils" } [dev-dependencies] criterion = "0.3" serde = "1.0.127" serde_json = "1.0.66" -swc_html_visit = { version = "0.8.0", path = "../swc_html_visit" } +swc_html_visit = { version = "0.9.0", path = "../swc_html_visit" } swc_node_base = { version = "0.5.0", path = "../swc_node_base" } testing = { version = "0.20.0", path = "../testing" } diff --git a/crates/swc_html_visit/Cargo.toml b/crates/swc_html_visit/Cargo.toml index b4034834c3e..03ebcb30f4f 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.8.0" +version = "0.9.0" [lib] bench = false @@ -14,5 +14,5 @@ bench = false [dependencies] swc_atoms = {version = "0.2.7", path = "../swc_atoms"} swc_common = { version = "0.18.0", path = "../swc_common"} -swc_html_ast = {version = "0.8.0", path = "../swc_html_ast"} +swc_html_ast = {version = "0.9.0", path = "../swc_html_ast"} swc_visit = {version = "0.3.0", path = "../swc_visit"}