diff --git a/.changeset/swift-experts-dance.md b/.changeset/swift-experts-dance.md deleted file mode 100644 index 1dc252def71d..000000000000 --- a/.changeset/swift-experts-dance.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -swc_atoms: patch -swc_ecma_utils: patch ---- - -refactor(atoms): Rename `FastAtom` to `UnsafeAtom` diff --git a/CHANGELOG.md b/CHANGELOG.md index 371f46029390..fbacb6599b9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ # Changelog ## [unreleased] +### Bug Fixes + + + +- **(es/decorators)** Fix init order of `2022-03` impl ([#9760](https://github.com/swc-project/swc/issues/9760)) ([751a310](https://github.com/swc-project/swc/commit/751a310e87cbbb61ebd76671018bf01d07487792)) + ### Features @@ -11,6 +17,9 @@ +- **(bench)** Run benchmark on a custom runner ([#9877](https://github.com/swc-project/swc/issues/9877)) ([2d6f9a5](https://github.com/swc-project/swc/commit/2d6f9a5c27803257635b4b008c5d3b0592478e1d)) + + - **(es/minifier)** Make the first run of DCE more efficient ([#9868](https://github.com/swc-project/swc/issues/9868)) ([7329824](https://github.com/swc-project/swc/commit/7329824b825663c6c51c48dd5ace097da87e2c88)) @@ -25,6 +34,12 @@ - Enable `concurrent` in codspeed bench ([#9862](https://github.com/swc-project/swc/issues/9862)) ([6c2bb13](https://github.com/swc-project/swc/commit/6c2bb13f9d9ec522a938d8aba535a8a93758e43d)) +### Refactor + + + +- **(atoms)** Rename `FastAtom` to `UnsafeAtom` ([#9873](https://github.com/swc-project/swc/issues/9873)) ([3df8b44](https://github.com/swc-project/swc/commit/3df8b443a129cfcb5ec79f37e2fcf6a2a9468cad)) + ## [1.10.7] - 2025-01-10 ### Bug Fixes @@ -1550,15 +1565,6 @@ -- **(es/lexer)** Apply various optimizations ([#9095](https://github.com/swc-project/swc/issues/9095)) ([2f02630](https://github.com/swc-project/swc/commit/2f02630b1e597692ce5a3d946f8d498ca33709dd)) - - - **(es/lexer)** Use `memchr::memmem` for lexing block comments ([#9096](https://github.com/swc-project/swc/issues/9096)) ([1b3672f](https://github.com/swc-project/swc/commit/1b3672f1e7d38a0039b1ba0ebc136133dd8c907f)) -### Refactor - - - -- **(es/parser)** Rename `EsConfig` and `TsConfig` ([#9094](https://github.com/swc-project/swc/issues/9094)) ([5520b23](https://github.com/swc-project/swc/commit/5520b236dd40fdd579c99cb6d66eef094cabc3fc)) - diff --git a/Cargo.lock b/Cargo.lock index 31908ce6eff8..3ba9ea617c57 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4502,7 +4502,7 @@ dependencies = [ [[package]] name = "swc_atoms" -version = "3.0.2" +version = "3.0.3" dependencies = [ "arbitrary", "bytecheck 0.8.0", @@ -4680,7 +4680,7 @@ dependencies = [ [[package]] name = "swc_core" -version = "10.2.0" +version = "10.2.1" dependencies = [ "anyhow", "binding_macros", @@ -5549,7 +5549,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "7.0.0" +version = "7.0.1" dependencies = [ "either", "rustc-hash", @@ -5664,7 +5664,7 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "7.0.0" +version = "7.0.1" dependencies = [ "indexmap 2.5.0", "num_cpus", diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/Cargo.toml index 00f1b6efabc1..8c406859c65e 100644 --- a/crates/dbg-swc/Cargo.toml +++ b/crates/dbg-swc/Cargo.toml @@ -26,7 +26,7 @@ url = { workspace = true } clap = { version = "3", features = ["derive"] } tracing-subscriber = { workspace = true, features = ["fmt", "env-filter"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", features = [ "concurrent", "tty-emitter", diff --git a/crates/jsdoc/Cargo.toml b/crates/jsdoc/Cargo.toml index bf8d98c362a8..38bdb05255af 100644 --- a/crates/jsdoc/Cargo.toml +++ b/crates/jsdoc/Cargo.toml @@ -19,7 +19,7 @@ serde-impl = ["serde"] nom = { workspace = true } serde = { workspace = true, features = ["derive"], optional = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } [dev-dependencies] diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 69650ed333d3..0becb2382eb0 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -70,7 +70,7 @@ sourcemap = { workspace = true } tracing = { workspace = true } url = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_cached = { version = "1.0.0", path = "../swc_cached" } swc_common = { version = "5.0.0", path = "../swc_common", features = [ "ahash", @@ -102,7 +102,7 @@ swc_ecma_transforms = { version = "9.0.0", path = "../swc_ecma_transforms", feat swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_compat = { version = "8.0.0", path = "../swc_ecma_transforms_compat" } swc_ecma_transforms_optimization = { version = "7.1.0", path = "../swc_ecma_transforms_optimization" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_error_reporters = { version = "6.0.0", path = "../swc_error_reporters" } swc_node_comments = { version = "5.0.0", path = "../swc_node_comments" } diff --git a/crates/swc/tests/fixture/issues-7xxx/7220/1/output/index.js b/crates/swc/tests/fixture/issues-7xxx/7220/1/output/index.js index 2aed3ac071de..316c10d336a8 100644 --- a/crates/swc/tests/fixture/issues-7xxx/7220/1/output/index.js +++ b/crates/swc/tests/fixture/issues-7xxx/7220/1/output/index.js @@ -14,8 +14,7 @@ var TestClass = /*#__PURE__*/ function() { "use strict"; function TestClass() { _class_call_check(this, TestClass); - _define_property(this, "calls", []); - _initProto(this); + _define_property(this, "calls", (_initProto(this), [])); } _create_class(TestClass, [ { diff --git a/crates/swc_atoms/Cargo.toml b/crates/swc_atoms/Cargo.toml index 40eda3a4358b..4fcfb57598c1 100644 --- a/crates/swc_atoms/Cargo.toml +++ b/crates/swc_atoms/Cargo.toml @@ -6,7 +6,7 @@ edition = { workspace = true } license = { workspace = true } name = "swc_atoms" repository = { workspace = true } -version = "3.0.2" +version = "3.0.3" [lib] bench = false diff --git a/crates/swc_bundler/Cargo.toml b/crates/swc_bundler/Cargo.toml index 1af7176b158f..9dd798f1889d 100644 --- a/crates/swc_bundler/Cargo.toml +++ b/crates/swc_bundler/Cargo.toml @@ -37,7 +37,7 @@ rayon = { workspace = true, optional = true } relative-path = { workspace = true } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" } @@ -45,7 +45,7 @@ swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_load swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_optimization = { version = "7.1.0", path = "../swc_ecma_transforms_optimization" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_fast_graph = { version = "6.0.0", path = "../swc_fast_graph/" } swc_graph_analyzer = { version = "5.0.0", path = "../swc_graph_analyzer/" } @@ -66,7 +66,7 @@ swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader", features = [ swc_ecma_minifier = { version = "7.1.0", path = "../swc_ecma_minifier", features = [ "concurrent", ] } -swc_ecma_transforms_proposal = { version = "7.0.0", path = "../swc_ecma_transforms_proposal" } +swc_ecma_transforms_proposal = { version = "7.0.1", path = "../swc_ecma_transforms_proposal" } swc_ecma_transforms_react = { version = "7.0.0", path = "../swc_ecma_transforms_react" } swc_ecma_transforms_typescript = { version = "7.0.0", path = "../swc_ecma_transforms_typescript" } swc_malloc = { version = "1.0.0", path = "../swc_malloc" } diff --git a/crates/swc_cli_impl/Cargo.toml b/crates/swc_cli_impl/Cargo.toml index b4d71024ae49..3517aaeceb2a 100644 --- a/crates/swc_cli_impl/Cargo.toml +++ b/crates/swc_cli_impl/Cargo.toml @@ -39,7 +39,7 @@ tracing-futures = { workspace = true } tracing-subscriber = { workspace = true, features = ["env-filter"] } walkdir = { workspace = true } -swc_core = { version = "10.2.0", features = [ +swc_core = { version = "10.2.1", features = [ "trace_macro", "common_concurrent", "base_concurrent", diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index 9e1c1c0ba8d6..0e3bc3b32dce 100644 --- a/crates/swc_common/Cargo.toml +++ b/crates/swc_common/Cargo.toml @@ -62,7 +62,7 @@ ast_node = { version = "3.0.0", path = "../ast_node" } better_scoped_tls = { version = "1.0.0", path = "../better_scoped_tls" } from_variant = { version = "2.0.0", path = "../from_variant" } swc_allocator = { version = "2.0.0", path = "../swc_allocator", default-features = false } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_eq_ignore_macros = { version = "1.0.0", path = "../swc_eq_ignore_macros" } swc_visit = { version = "2.0.0", path = "../swc_visit" } diff --git a/crates/swc_compiler_base/Cargo.toml b/crates/swc_compiler_base/Cargo.toml index 92b1164d8bda..88a40611fc20 100644 --- a/crates/swc_compiler_base/Cargo.toml +++ b/crates/swc_compiler_base/Cargo.toml @@ -23,7 +23,7 @@ serde_json = { workspace = true } sourcemap = { workspace = true } swc_allocator = { version = "2.0.0", path = "../swc_allocator", default-features = false } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common", features = [ "sourcemap", ] } diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml index 16164a6a25d8..28275963be84 100644 --- a/crates/swc_core/Cargo.toml +++ b/crates/swc_core/Cargo.toml @@ -6,7 +6,7 @@ edition = { workspace = true } license = { workspace = true } name = "swc_core" repository = { workspace = true } -version = "10.2.0" +version = "10.2.1" [package.metadata.docs.rs] features = [ "allocator_node", @@ -340,7 +340,7 @@ once_cell = { workspace = true, optional = true } # swc_* dependencies binding_macros = { optional = true, version = "10.0.0", path = "../binding_macros" } swc = { optional = true, version = "10.0.0", path = "../swc" } -swc_atoms = { optional = true, version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { optional = true, version = "3.0.3", path = "../swc_atoms" } swc_bundler = { optional = true, version = "7.0.0", path = "../swc_bundler" } swc_cached = { optional = true, version = "1.0.0", path = "../swc_cached" } swc_common = { optional = true, version = "5.0.0", path = "../swc_common" } @@ -365,12 +365,12 @@ swc_ecma_transforms_base = { optional = true, version = "7.1.0", path = swc_ecma_transforms_compat = { optional = true, version = "8.0.0", path = "../swc_ecma_transforms_compat" } swc_ecma_transforms_module = { optional = true, version = "8.0.0", path = "../swc_ecma_transforms_module" } swc_ecma_transforms_optimization = { optional = true, version = "7.1.0", path = "../swc_ecma_transforms_optimization" } -swc_ecma_transforms_proposal = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_proposal" } +swc_ecma_transforms_proposal = { optional = true, version = "7.0.1", path = "../swc_ecma_transforms_proposal" } swc_ecma_transforms_react = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_react" } swc_ecma_transforms_testing = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_testing" } swc_ecma_transforms_typescript = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_typescript" } swc_ecma_usage_analyzer = { optional = true, version = "7.0.0", path = "../swc_ecma_usage_analyzer" } -swc_ecma_utils = { optional = true, version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { optional = true, version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { optional = true, version = "5.0.0", path = "../swc_ecma_visit" } swc_malloc = { optional = true, version = "1.0.0", path = "../swc_malloc" } swc_node_bundler = { optional = true, version = "10.0.0", path = "../swc_node_bundler" } diff --git a/crates/swc_css_ast/Cargo.toml b/crates/swc_css_ast/Cargo.toml index 5be9b4eb4f77..9636391764d2 100644 --- a/crates/swc_css_ast/Cargo.toml +++ b/crates/swc_css_ast/Cargo.toml @@ -31,7 +31,7 @@ rancor = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "1.0.0", path = "../string_enum/" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } rkyv = { workspace = true, optional = true } diff --git a/crates/swc_css_codegen/Cargo.toml b/crates/swc_css_codegen/Cargo.toml index 39a01f92c38d..4fee7a4c22cf 100644 --- a/crates/swc_css_codegen/Cargo.toml +++ b/crates/swc_css_codegen/Cargo.toml @@ -18,7 +18,7 @@ bitflags = { workspace = true } rustc-hash = { workspace = true } serde = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_css_codegen_macros = { version = "1.0.0", path = "../swc_css_codegen_macros" } diff --git a/crates/swc_css_compat/Cargo.toml b/crates/swc_css_compat/Cargo.toml index 262478ab21ee..444b6b3918b5 100644 --- a/crates/swc_css_compat/Cargo.toml +++ b/crates/swc_css_compat/Cargo.toml @@ -18,7 +18,7 @@ once_cell = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_css_utils = { version = "5.0.0", path = "../swc_css_utils/" } diff --git a/crates/swc_css_lints/Cargo.toml b/crates/swc_css_lints/Cargo.toml index 6be210cff4bc..4eb53860119f 100644 --- a/crates/swc_css_lints/Cargo.toml +++ b/crates/swc_css_lints/Cargo.toml @@ -19,7 +19,7 @@ rayon = { workspace = true } serde = { workspace = true, features = ["derive"] } thiserror = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_cached = { version = "1.0.0", path = "../swc_cached" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } diff --git a/crates/swc_css_minifier/Cargo.toml b/crates/swc_css_minifier/Cargo.toml index 75bf6080e4ea..f6f51c521397 100644 --- a/crates/swc_css_minifier/Cargo.toml +++ b/crates/swc_css_minifier/Cargo.toml @@ -15,7 +15,7 @@ bench = false [dependencies] serde = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_css_utils = { version = "5.0.0", path = "../swc_css_utils/" } diff --git a/crates/swc_css_modules/Cargo.toml b/crates/swc_css_modules/Cargo.toml index 8856dba848f9..f9777fc12848 100644 --- a/crates/swc_css_modules/Cargo.toml +++ b/crates/swc_css_modules/Cargo.toml @@ -18,7 +18,7 @@ bench = false rustc-hash = { workspace = true } serde = { workspace = true, features = ["derive"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_css_codegen = { version = "5.0.0", path = "../swc_css_codegen" } diff --git a/crates/swc_css_parser/Cargo.toml b/crates/swc_css_parser/Cargo.toml index aafc9be5fa43..9be74d91a75c 100644 --- a/crates/swc_css_parser/Cargo.toml +++ b/crates/swc_css_parser/Cargo.toml @@ -19,7 +19,7 @@ debug = [] lexical = { workspace = true } serde = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } diff --git a/crates/swc_css_prefixer/Cargo.toml b/crates/swc_css_prefixer/Cargo.toml index 5581ca2d49f3..6eca63e1e51e 100644 --- a/crates/swc_css_prefixer/Cargo.toml +++ b/crates/swc_css_prefixer/Cargo.toml @@ -18,7 +18,7 @@ serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } preset_env_base = { version = "1.0.0", path = "../preset_env_base" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_css_utils = { version = "5.0.0", path = "../swc_css_utils/" } diff --git a/crates/swc_css_utils/Cargo.toml b/crates/swc_css_utils/Cargo.toml index 4b5704800314..602b146666fd 100644 --- a/crates/swc_css_utils/Cargo.toml +++ b/crates/swc_css_utils/Cargo.toml @@ -17,7 +17,7 @@ once_cell = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_css_visit = { version = "5.0.0", path = "../swc_css_visit" } diff --git a/crates/swc_css_visit/Cargo.toml b/crates/swc_css_visit/Cargo.toml index 69c14967551c..c7944a1f3669 100644 --- a/crates/swc_css_visit/Cargo.toml +++ b/crates/swc_css_visit/Cargo.toml @@ -23,7 +23,7 @@ serde-impl = ["serde"] [dependencies] serde = { workspace = true, optional = true, features = ["derive"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast" } swc_visit = { version = "2.0.0", path = "../swc_visit" } diff --git a/crates/swc_ecma_ast/Cargo.toml b/crates/swc_ecma_ast/Cargo.toml index 834880ea19c3..7165795386e6 100644 --- a/crates/swc_ecma_ast/Cargo.toml +++ b/crates/swc_ecma_ast/Cargo.toml @@ -41,7 +41,7 @@ rkyv = { workspace = true, optional = true } scoped-tls = { workspace = true } serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "1.0.0", path = "../string_enum" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_visit = { version = "2.0.0", path = "../swc_visit" } unicode-id-start = { workspace = true } diff --git a/crates/swc_ecma_codegen/Cargo.toml b/crates/swc_ecma_codegen/Cargo.toml index 8efc701e276a..da575bd324e5 100644 --- a/crates/swc_ecma_codegen/Cargo.toml +++ b/crates/swc_ecma_codegen/Cargo.toml @@ -26,7 +26,7 @@ sourcemap = { workspace = true } tracing = { workspace = true } swc_allocator = { version = "2.0.0", path = "../swc_allocator", default-features = false } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_codegen_macros = { version = "1.0.0", path = "../swc_ecma_codegen_macros" } diff --git a/crates/swc_ecma_compat_bugfixes/Cargo.toml b/crates/swc_ecma_compat_bugfixes/Cargo.toml index f8ad87ed4e25..20e1cbc1aaaa 100644 --- a/crates/swc_ecma_compat_bugfixes/Cargo.toml +++ b/crates/swc_ecma_compat_bugfixes/Cargo.toml @@ -11,12 +11,12 @@ version = "7.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_compat_es2015 = { version = "7.0.0", path = "../swc_ecma_compat_es2015" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } tracing = { workspace = true } diff --git a/crates/swc_ecma_compat_common/Cargo.toml b/crates/swc_ecma_compat_common/Cargo.toml index 6d86156a901d..84dd14d7d401 100644 --- a/crates/swc_ecma_compat_common/Cargo.toml +++ b/crates/swc_ecma_compat_common/Cargo.toml @@ -14,6 +14,6 @@ version = "7.0.0" [dependencies] swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_compat_es2015/Cargo.toml b/crates/swc_ecma_compat_es2015/Cargo.toml index 02b792ebd1cb..992029d79689 100644 --- a/crates/swc_ecma_compat_es2015/Cargo.toml +++ b/crates/swc_ecma_compat_es2015/Cargo.toml @@ -20,7 +20,7 @@ rustc-hash = { workspace = true } serde = { workspace = true } serde_derive = { workspace = true } smallvec = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } @@ -30,7 +30,7 @@ swc_ecma_compat_common = { version = "7.0.0", path = "../swc_ecma_compat_co swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_classes = { version = "7.0.0", path = "../swc_ecma_transforms_classes" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } tracing = { workspace = true } diff --git a/crates/swc_ecma_compat_es2016/Cargo.toml b/crates/swc_ecma_compat_es2016/Cargo.toml index 41dc66f50d25..661ddbb193ad 100644 --- a/crates/swc_ecma_compat_es2016/Cargo.toml +++ b/crates/swc_ecma_compat_es2016/Cargo.toml @@ -13,12 +13,12 @@ version = "7.0.0" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } tracing = { workspace = true } diff --git a/crates/swc_ecma_compat_es2017/Cargo.toml b/crates/swc_ecma_compat_es2017/Cargo.toml index 20152b16ba6b..3cb71eb7a871 100644 --- a/crates/swc_ecma_compat_es2017/Cargo.toml +++ b/crates/swc_ecma_compat_es2017/Cargo.toml @@ -16,12 +16,12 @@ version = "7.0.0" serde = { workspace = true, features = ["derive"] } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_compat_es2018/Cargo.toml b/crates/swc_ecma_compat_es2018/Cargo.toml index c96b42e895f4..1e17b098a261 100644 --- a/crates/swc_ecma_compat_es2018/Cargo.toml +++ b/crates/swc_ecma_compat_es2018/Cargo.toml @@ -16,13 +16,13 @@ version = "7.0.0" serde = { workspace = true, features = ["derive"] } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_compat_common = { version = "7.0.0", path = "../swc_ecma_compat_common" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_compat_es2019/Cargo.toml b/crates/swc_ecma_compat_es2019/Cargo.toml index d0c1da3fa27f..860f45bf659a 100644 --- a/crates/swc_ecma_compat_es2019/Cargo.toml +++ b/crates/swc_ecma_compat_es2019/Cargo.toml @@ -16,11 +16,11 @@ version = "7.0.0" tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_compat_es2020/Cargo.toml b/crates/swc_ecma_compat_es2020/Cargo.toml index 157d8e4f530c..ecb744d5364f 100644 --- a/crates/swc_ecma_compat_es2020/Cargo.toml +++ b/crates/swc_ecma_compat_es2020/Cargo.toml @@ -14,12 +14,12 @@ version = "8.0.0" [dependencies] serde = { workspace = true, features = ["derive"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_compat_es2022 = { version = "8.0.0", path = "../swc_ecma_compat_es2022" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } tracing = { workspace = true } diff --git a/crates/swc_ecma_compat_es2021/Cargo.toml b/crates/swc_ecma_compat_es2021/Cargo.toml index 7011cb4c9d07..1c4486340c1d 100644 --- a/crates/swc_ecma_compat_es2021/Cargo.toml +++ b/crates/swc_ecma_compat_es2021/Cargo.toml @@ -15,10 +15,10 @@ version = "7.0.0" [dependencies] tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_compat_es2022/Cargo.toml b/crates/swc_ecma_compat_es2022/Cargo.toml index e932adc398cd..3d1e99b2af9c 100644 --- a/crates/swc_ecma_compat_es2022/Cargo.toml +++ b/crates/swc_ecma_compat_es2022/Cargo.toml @@ -16,13 +16,13 @@ version = "8.0.0" tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_compat_common = { version = "7.0.0", path = "../swc_ecma_compat_common" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_classes = { version = "7.0.0", path = "../swc_ecma_transforms_classes" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_compat_es3/Cargo.toml b/crates/swc_ecma_compat_es3/Cargo.toml index 65db20527142..ce7f4e9517bd 100644 --- a/crates/swc_ecma_compat_es3/Cargo.toml +++ b/crates/swc_ecma_compat_es3/Cargo.toml @@ -18,7 +18,7 @@ tracing = { workspace = true } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_ext_transforms/Cargo.toml b/crates/swc_ecma_ext_transforms/Cargo.toml index 803cb63ba56a..855543868764 100644 --- a/crates/swc_ecma_ext_transforms/Cargo.toml +++ b/crates/swc_ecma_ext_transforms/Cargo.toml @@ -14,8 +14,8 @@ bench = false [dependencies] phf = { workspace = true, features = ["macros"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } diff --git a/crates/swc_ecma_lints/Cargo.toml b/crates/swc_ecma_lints/Cargo.toml index 0d2d2fa9667a..e894dcf6513a 100644 --- a/crates/swc_ecma_lints/Cargo.toml +++ b/crates/swc_ecma_lints/Cargo.toml @@ -19,7 +19,7 @@ parking_lot = { workspace = true } regex = { workspace = true } serde = { workspace = true, features = ["derive"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common", features = [ "concurrent", ] } @@ -27,7 +27,7 @@ swc_config = { version = "1.0.0", path = "../swc_config" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast", features = [ "serde", ] } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_parallel = { version = "1.0.1", path = "../swc_parallel", default-features = false } diff --git a/crates/swc_ecma_loader/Cargo.toml b/crates/swc_ecma_loader/Cargo.toml index 36b490368ee0..c3142422bb26 100644 --- a/crates/swc_ecma_loader/Cargo.toml +++ b/crates/swc_ecma_loader/Cargo.toml @@ -36,7 +36,7 @@ serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true, optional = true } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_cached = { version = "1.0.0", optional = true, path = "../swc_cached" } swc_common = { version = "5.0.0", path = "../swc_common" } diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Cargo.toml index 350ae3c2ff31..98b4672a6422 100644 --- a/crates/swc_ecma_minifier/Cargo.toml +++ b/crates/swc_ecma_minifier/Cargo.toml @@ -53,7 +53,7 @@ tracing = { workspace = true } swc_allocator = { version = "2.0.0", path = "../swc_allocator", default-features = false } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_config = { version = "1.0.0", path = "../swc_config", features = [ "sourcemap", @@ -66,7 +66,7 @@ swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_optimization = { version = "7.1.0", path = "../swc_ecma_transforms_optimization" } swc_ecma_usage_analyzer = { version = "7.0.0", path = "../swc_ecma_usage_analyzer" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_parallel = { version = "1.0.1", path = "../swc_parallel", default-features = false } swc_timer = { version = "1.0.0", path = "../swc_timer" } diff --git a/crates/swc_ecma_parser/Cargo.toml b/crates/swc_ecma_parser/Cargo.toml index 6790021ee1e1..52786dc40491 100644 --- a/crates/swc_ecma_parser/Cargo.toml +++ b/crates/swc_ecma_parser/Cargo.toml @@ -36,7 +36,7 @@ typed-arena = { workspace = true } new_debug_unreachable = { workspace = true } phf = { workspace = true, features = ["macros"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit", optional = true } diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index 556c17313dac..b72c77e9a4fe 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -29,14 +29,14 @@ st-map = { workspace = true } preset_env_base = { version = "1.0.0", path = "../preset_env_base" } rustc-hash = { workspace = true } string_enum = { version = "1.0.0", path = "../string_enum" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms = { version = "9.0.0", path = "../swc_ecma_transforms", features = [ "compat", "proposal", ] } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } [dev-dependencies] diff --git a/crates/swc_ecma_quote/Cargo.toml b/crates/swc_ecma_quote/Cargo.toml index 19bde5bdbe71..c3bf10d5936b 100644 --- a/crates/swc_ecma_quote/Cargo.toml +++ b/crates/swc_ecma_quote/Cargo.toml @@ -12,7 +12,7 @@ version = "6.0.0" bench = false [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_quote_macros = { version = "6.0.0", path = "../swc_ecma_quote_macros" } diff --git a/crates/swc_ecma_quote_macros/Cargo.toml b/crates/swc_ecma_quote_macros/Cargo.toml index 76ea1a1215f8..feb67b37053a 100644 --- a/crates/swc_ecma_quote_macros/Cargo.toml +++ b/crates/swc_ecma_quote_macros/Cargo.toml @@ -18,7 +18,7 @@ proc-macro2 = { workspace = true } quote = { workspace = true } syn = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml index 44a9be7602b6..7890d664af9e 100644 --- a/crates/swc_ecma_transforms/Cargo.toml +++ b/crates/swc_ecma_transforms/Cargo.toml @@ -32,17 +32,17 @@ stacker = ["swc_ecma_utils/stacker"] typescript = ["swc_ecma_transforms_typescript"] [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_compat = { version = "8.0.0", path = "../swc_ecma_transforms_compat", optional = true } swc_ecma_transforms_module = { version = "8.0.0", path = "../swc_ecma_transforms_module", optional = true } swc_ecma_transforms_optimization = { version = "7.1.0", path = "../swc_ecma_transforms_optimization", optional = true } -swc_ecma_transforms_proposal = { version = "7.0.0", path = "../swc_ecma_transforms_proposal", optional = true } +swc_ecma_transforms_proposal = { version = "7.0.1", path = "../swc_ecma_transforms_proposal", optional = true } swc_ecma_transforms_react = { version = "7.0.0", path = "../swc_ecma_transforms_react", optional = true } swc_ecma_transforms_typescript = { version = "7.0.0", path = "../swc_ecma_transforms_typescript", optional = true } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } [dev-dependencies] diff --git a/crates/swc_ecma_transforms_base/Cargo.toml b/crates/swc_ecma_transforms_base/Cargo.toml index 75752083a44f..a3172f830bf8 100644 --- a/crates/swc_ecma_transforms_base/Cargo.toml +++ b/crates/swc_ecma_transforms_base/Cargo.toml @@ -28,13 +28,13 @@ serde = { workspace = true, features = ["derive"] } smallvec = { workspace = true } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } -swc_parallel = { version = "1.0.1", path = "../swc_parallel", default-features = false } +swc_parallel = { version = "1.0.1", path = "../swc_parallel", default-features = false } [dev-dependencies] codspeed-criterion-compat = { workspace = true } @@ -51,7 +51,4 @@ harness = false name = "base" [[bench]] harness = false -name = "deps" -[[bench]] -harness = false name = "parallel" diff --git a/crates/swc_ecma_transforms_base/benches/deps.rs b/crates/swc_ecma_transforms_base/benches/deps.rs deleted file mode 100644 index 0ff1e1c611de..000000000000 --- a/crates/swc_ecma_transforms_base/benches/deps.rs +++ /dev/null @@ -1,240 +0,0 @@ -use codspeed_criterion_compat::{black_box, criterion_group, criterion_main, Bencher, Criterion}; -use swc_common::{FileName, DUMMY_SP}; -use swc_ecma_ast::*; -use swc_ecma_parser::{lexer::Lexer, parse_file_as_module, Parser, StringInput, Syntax}; -use swc_ecma_utils::ExprFactory; -use swc_ecma_visit::{Fold, FoldWith, Visit, VisitWith}; - -static SOURCE: &str = include_str!("assets/AjaxObservable.ts"); - -fn module_clone(b: &mut Bencher) { - let _ = ::testing::run_test(false, |cm, handler| { - let fm = cm.new_source_file(FileName::Anon.into(), SOURCE.into()); - - let mut errors = Vec::new(); - let module = parse_file_as_module( - &fm, - Syntax::Typescript(Default::default()), - Default::default(), - None, - &mut errors, - ) - .map_err(|e| { - e.into_diagnostic(handler).emit(); - }) - .unwrap(); - - for e in errors { - e.into_diagnostic(handler).emit(); - } - - b.iter(|| black_box(module.clone())); - Ok(()) - }); -} - -fn fold_empty(b: &mut Bencher) { - let _ = ::testing::run_test(false, |cm, handler| { - let fm = cm.new_source_file(FileName::Anon.into(), SOURCE.into()); - - let mut errors = Vec::new(); - let module = parse_file_as_module( - &fm, - Syntax::Typescript(Default::default()), - Default::default(), - None, - &mut errors, - ) - .map_err(|e| { - e.into_diagnostic(handler).emit(); - }) - .unwrap(); - - for e in errors { - e.into_diagnostic(handler).emit(); - } - - let mut folder = noop_pass(); - - b.iter(|| black_box(Program::Module(module.clone()).apply(&mut folder))); - Ok(()) - }); -} - -/// Optimized out -fn fold_noop_impl_all(b: &mut Bencher) { - let _ = ::testing::run_test(false, |cm, handler| { - let fm = cm.new_source_file(FileName::Anon.into(), SOURCE.into()); - - let mut errors = Vec::new(); - let module = parse_file_as_module( - &fm, - Syntax::Typescript(Default::default()), - Default::default(), - None, - &mut errors, - ) - .map_err(|e| e.into_diagnostic(handler).emit()) - .unwrap(); - - for e in errors { - e.into_diagnostic(handler).emit(); - } - - let mut folder = noop_pass(); - - b.iter(|| black_box(Program::Module(module.clone()).apply(&mut folder))); - Ok(()) - }); -} - -/// Optimized out -fn fold_noop_impl_vec(b: &mut Bencher) { - let _ = ::testing::run_test(false, |cm, handler| { - let fm = cm.new_source_file(FileName::Anon.into(), SOURCE.into()); - let mut errors = Vec::new(); - let module = parse_file_as_module( - &fm, - Syntax::Typescript(Default::default()), - Default::default(), - None, - &mut errors, - ) - .map_err(|e| { - e.into_diagnostic(handler).emit(); - }) - .unwrap(); - - for e in errors { - e.into_diagnostic(handler).emit(); - } - - let mut folder = noop_pass(); - - b.iter(|| black_box(Program::Module(module.clone()).apply(&mut folder))); - Ok(()) - }); -} - -fn mk_expr() -> Expr { - CallExpr { - span: DUMMY_SP, - callee: Ident::new_no_ctxt("foo".into(), DUMMY_SP).as_callee(), - args: Vec::new(), - ..Default::default() - } - .into() -} - -fn boxing_boxed_clone(b: &mut Bencher) { - let _ = ::testing::run_test(false, |_, _| { - let expr = Box::new(mk_expr()); - - b.iter(|| black_box(expr.clone())); - Ok(()) - }); -} - -fn boxing_unboxed_clone(b: &mut Bencher) { - let _ = ::testing::run_test(false, |_, _| { - let expr = mk_expr(); - - b.iter(|| black_box(expr.clone())); - Ok(()) - }); -} - -fn boxing_boxed(b: &mut Bencher) { - let _ = ::testing::run_test(false, |_, _| { - let mut folder = noop_fold(); - let expr = Box::new(mk_expr()); - - b.iter(|| black_box(expr.clone().fold_with(&mut folder))); - Ok(()) - }); -} - -fn boxing_unboxed(b: &mut Bencher) { - let _ = ::testing::run_test(false, |_, _| { - let mut folder = noop_fold(); - let expr = mk_expr(); - - b.iter(|| black_box(expr.clone().fold_with(&mut folder))); - Ok(()) - }); -} - -fn visit_contains_this(b: &mut Bencher) { - fn contains_this_expr(body: &Module) -> bool { - struct Visitor { - found: bool, - } - - impl Visit for Visitor { - /// Don't recurse into fn - fn visit_fn_expr(&mut self, _: &FnExpr) {} - - /// Don't recurse into fn - fn visit_fn_decl(&mut self, _: &FnDecl) {} - - fn visit_this_expr(&mut self, _: &ThisExpr) { - self.found = true; - } - } - - let mut visitor = Visitor { found: false }; - body.visit_with(&mut visitor); - visitor.found - } - - let _ = ::testing::run_test(false, |cm, _| { - let fm = cm.new_source_file(FileName::Anon.into(), SOURCE.into()); - let lexer = Lexer::new( - Syntax::Typescript(Default::default()), - Default::default(), - StringInput::from(&*fm), - None, - ); - let mut parser = Parser::new_from(lexer); - let module = parser.parse_module().map_err(|_| ()).unwrap(); - - b.iter(|| black_box(contains_this_expr(&module))); - Ok(()) - }); -} - -fn bench_cases(c: &mut Criterion) { - c.bench_function("es/visitor/base-perf/module_clone", module_clone); - c.bench_function("es/visitor/base-perf/fold_empty", fold_empty); - c.bench_function( - "es/visitor/base-perf/fold_noop_impl_all", - fold_noop_impl_all, - ); - c.bench_function( - "es/visitor/base-perf/fold_noop_impl_vec", - fold_noop_impl_vec, - ); - c.bench_function( - "es/visitor/base-perf/boxing_boxed_clone", - boxing_boxed_clone, - ); - c.bench_function( - "es/visitor/base-perf/boxing_unboxed_clone", - boxing_unboxed_clone, - ); - c.bench_function("es/visitor/base-perf/boxing_boxed", boxing_boxed); - c.bench_function("es/visitor/base-perf/boxing_unboxed", boxing_unboxed); - c.bench_function( - "es/visitor/base-perf/visit_contains_this", - visit_contains_this, - ); -} - -criterion_group!(benches, bench_cases); -criterion_main!(benches); - -fn noop_fold() -> impl Fold { - struct Noop; - impl Fold for Noop {} - Noop -} diff --git a/crates/swc_ecma_transforms_classes/Cargo.toml b/crates/swc_ecma_transforms_classes/Cargo.toml index 11164b5dc89c..f4af7bf883f6 100644 --- a/crates/swc_ecma_transforms_classes/Cargo.toml +++ b/crates/swc_ecma_transforms_classes/Cargo.toml @@ -12,9 +12,9 @@ version = "7.0.0" bench = false [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } diff --git a/crates/swc_ecma_transforms_compat/Cargo.toml b/crates/swc_ecma_transforms_compat/Cargo.toml index c6a20a282206..3780e66d144e 100644 --- a/crates/swc_ecma_transforms_compat/Cargo.toml +++ b/crates/swc_ecma_transforms_compat/Cargo.toml @@ -29,7 +29,7 @@ serde = { workspace = true, features = ["derive"] } smallvec = { workspace = true } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_config = { version = "1.0.0", path = "../swc_config" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } @@ -47,7 +47,7 @@ swc_ecma_compat_es3 = { version = "7.0.0", path = "../swc_ecma_compat_es swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_classes = { version = "7.0.0", path = "../swc_ecma_transforms_classes" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_trace_macro = { version = "2.0.0", path = "../swc_trace_macro" } diff --git a/crates/swc_ecma_transforms_module/Cargo.toml b/crates/swc_ecma_transforms_module/Cargo.toml index 8cb629d7560e..484342242347 100644 --- a/crates/swc_ecma_transforms_module/Cargo.toml +++ b/crates/swc_ecma_transforms_module/Cargo.toml @@ -24,7 +24,7 @@ regex = { workspace = true } serde = { workspace = true, features = ["derive"] } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_cached = { version = "1.0.0", path = "../swc_cached" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } @@ -33,7 +33,7 @@ swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader", features = [ ] } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } [dev-dependencies] diff --git a/crates/swc_ecma_transforms_optimization/Cargo.toml b/crates/swc_ecma_transforms_optimization/Cargo.toml index c8e1fff18c68..809fea27b02e 100644 --- a/crates/swc_ecma_transforms_optimization/Cargo.toml +++ b/crates/swc_ecma_transforms_optimization/Cargo.toml @@ -33,20 +33,20 @@ serde_json = { workspace = true } thread_local = { workspace = true } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_fast_graph = { version = "6.0.0", path = "../swc_fast_graph" } [dev-dependencies] swc_ecma_transforms_compat = { version = "8.0.0", path = "../swc_ecma_transforms_compat" } swc_ecma_transforms_module = { version = "8.0.0", path = "../swc_ecma_transforms_module" } -swc_ecma_transforms_proposal = { version = "7.0.0", path = "../swc_ecma_transforms_proposal" } +swc_ecma_transforms_proposal = { version = "7.0.1", path = "../swc_ecma_transforms_proposal" } swc_ecma_transforms_react = { version = "7.0.0", path = "../swc_ecma_transforms_react" } swc_ecma_transforms_testing = { version = "7.0.0", path = "../swc_ecma_transforms_testing" } swc_ecma_transforms_typescript = { version = "7.0.0", path = "../swc_ecma_transforms_typescript" } diff --git a/crates/swc_ecma_transforms_proposal/Cargo.toml b/crates/swc_ecma_transforms_proposal/Cargo.toml index 2c21c7f2a9f3..22c2ef4d8425 100644 --- a/crates/swc_ecma_transforms_proposal/Cargo.toml +++ b/crates/swc_ecma_transforms_proposal/Cargo.toml @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"] license = { workspace = true } name = "swc_ecma_transforms_proposal" repository = { workspace = true } -version = "7.0.0" +version = "7.0.1" [lib] bench = false @@ -22,14 +22,14 @@ rustc-hash = { workspace = true } serde = { workspace = true, features = ["derive"] } smallvec = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader", optional = true } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_classes = { version = "7.0.0", path = "../swc_ecma_transforms_classes" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } [dev-dependencies] diff --git a/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs b/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs index 0b5221b1f4c6..eb3a6b0dceb4 100644 --- a/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs +++ b/crates/swc_ecma_transforms_proposal/src/decorator_impl.rs @@ -51,7 +51,6 @@ struct ClassState { /// If not empty, `initProto` should be injected to the constructor. init_proto: Option, init_proto_args: Vec>, - is_init_proto_called: bool, init_static: Option, init_static_args: Vec>, @@ -718,10 +717,10 @@ impl DecoratorPass { } } body.visit_mut_with(self); - c.visit_mut_with(self); c.ident = preserved_class_name.clone(); replace_ident(&mut c.class, c.ident.to_id(), &preserved_class_name); c.class.body.extend(body); + c.visit_mut_with(self); c.class.body.push(ClassMember::StaticBlock(StaticBlock { span: DUMMY_SP, body: BlockStmt { @@ -814,19 +813,48 @@ impl VisitMut for DecoratorPass { n.visit_mut_children_with(self); - if !self.state.is_init_proto_called { - if let Some(init_proto) = self.state.init_proto.clone() { + if let Some(init_proto) = self.state.init_proto.clone() { + let init_proto_expr = CallExpr { + span: DUMMY_SP, + callee: init_proto.clone().as_callee(), + args: vec![ThisExpr { span: DUMMY_SP }.as_arg()], + ..Default::default() + }; + let mut proto_inited = false; + for member in n.body.iter_mut() { + if let ClassMember::ClassProp(prop) = member { + if prop.is_static { + continue; + } + if let Some(value) = prop.value.clone() { + prop.value = Some(Expr::from_exprs(vec![ + init_proto_expr.clone().into(), + value, + ])); + + proto_inited = true; + break; + } + } else if let ClassMember::PrivateProp(prop) = member { + if prop.is_static { + continue; + } + if let Some(value) = prop.value.clone() { + prop.value = Some(Expr::from_exprs(vec![ + init_proto_expr.clone().into(), + value, + ])); + + proto_inited = true; + break; + } + } + } + + if !proto_inited { let c = self.ensure_constructor(n); - inject_after_super( - c, - vec![Box::new(Expr::Call(CallExpr { - span: DUMMY_SP, - callee: init_proto.as_callee(), - args: vec![ThisExpr { span: DUMMY_SP }.as_arg()], - ..Default::default() - }))], - ) + inject_after_super(c, vec![Box::new(init_proto_expr.into())]) } } @@ -847,7 +875,6 @@ impl VisitMut for DecoratorPass { } self.state.init_proto = None; - self.state.is_init_proto_called = false; self.state.extra_stmts = old_stmts; } @@ -1045,29 +1072,6 @@ impl VisitMut for DecoratorPass { value: if accessor.decorators.is_empty() { accessor.value } else { - let init_proto = - if self.state.is_init_proto_called || accessor.is_static { - None - } else { - self.state.is_init_proto_called = true; - - let init_proto = self - .state - .init_proto - .get_or_insert_with(|| private_ident!("_initProto")) - .clone(); - - Some( - CallExpr { - span: DUMMY_SP, - callee: init_proto.clone().as_callee(), - args: vec![ThisExpr { span: DUMMY_SP }.as_arg()], - ..Default::default() - } - .into(), - ) - }; - let init_call = CallExpr { span: DUMMY_SP, callee: init.clone().as_callee(), @@ -1078,9 +1082,7 @@ impl VisitMut for DecoratorPass { } .into(); - Some(Expr::from_exprs( - init_proto.into_iter().chain(once(init_call)).collect(), - )) + Some(init_call) }, type_ann: None, is_static: accessor.is_static, diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-duplicated-keys/method-and-field/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-duplicated-keys/method-and-field/output.js index 97e1546d73e6..7c5f45ec7e36 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-duplicated-keys/method-and-field/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-duplicated-keys/method-and-field/output.js @@ -2,7 +2,7 @@ var _init_a, _initProto; const dec = ()=>{}; class Foo { static{ - ({ e: [_init_a, _initProto] } = _apply_decs_2203_r(this, [ + ({ e: [_init_a, _initProto] } = _apply_decs_2203_r(this, [ [ dec, 2, @@ -15,10 +15,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - a = _init_a(this, 123); + a = (_initProto(this), _init_a(this, 123)); a() { return 1; } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/private/output.js index 676763b985bb..f3ceafa4db98 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/private/output.js @@ -10,8 +10,7 @@ class Foo { get: get_a, set: void 0 }); - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_call_a, _initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/public/output.js index 2e5140f683ef..784fba5644f8 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters--to-es2015/public/output.js @@ -10,8 +10,7 @@ class Foo { return this.value; } constructor(){ - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/private/output.js index a4058bb38f0d..18a0d5dd0550 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/private/output.js @@ -13,8 +13,7 @@ class Foo { get: get_a, set: set_a }); - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_call_a, _call_a1, _initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/public/output.js index 6087418acd63..b70764d6f90c 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters--to-es2015/public/output.js @@ -16,8 +16,7 @@ class Foo { this.value = v; } constructor(){ - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/private/output.js index bf868142d4fe..b4b55534ad67 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/private/output.js @@ -21,10 +21,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); get #a() { return _call_a(this); } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/public/output.js index e1f56c6c39b2..f36175396d1c 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters-and-setters/public/output.js @@ -3,7 +3,7 @@ const dec = ()=>{}; _computedKey = 'b', _computedKey1 = 'b'; class Foo { static{ - ({ e: [_initProto] } = _apply_decs_2203_r(this, [ + ({ e: [_initProto] } = _apply_decs_2203_r(this, [ [ dec, 3, @@ -26,10 +26,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); get a() { return this.value; } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/private/output.js index 03c3c990fad6..d6c081b17186 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/private/output.js @@ -2,7 +2,7 @@ var _call_a, _initProto; const dec = ()=>{}; class Foo { static{ - ({ e: [_call_a, _initProto] } = _apply_decs_2203_r(this, [ + ({ e: [_call_a, _initProto] } = _apply_decs_2203_r(this, [ [ dec, 3, @@ -13,10 +13,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); get #a() { return _call_a(this); } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/public/output.js index 6dc21675b736..6465c1017e7b 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-getters/public/output.js @@ -3,7 +3,7 @@ const dec = ()=>{}; _computedKey = 'b'; class Foo { static{ - ({ e: [_initProto] } = _apply_decs_2203_r(this, [ + ({ e: [_initProto] } = _apply_decs_2203_r(this, [ [ dec, 3, @@ -16,10 +16,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); get a() { return this.value; } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/private/output.js index 8015fce99f82..6d64f8737fea 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/private/output.js @@ -10,8 +10,7 @@ class Foo { get: get_a, set: void 0 }); - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_call_a, _initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/public/output.js index ae9b5f0f3373..e71667b3a948 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods--to-es2015/public/output.js @@ -10,8 +10,7 @@ class Foo { return this.value; } constructor(){ - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/private/output.js index 6b13fc8df81a..e0ea231af691 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/private/output.js @@ -13,10 +13,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); get #a() { return _call_a; } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/public/output.js index 846e860e53e6..3de6c5a04a21 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-methods/public/output.js @@ -3,7 +3,7 @@ const dec = ()=>{}; _computedKey = 'b'; class Foo { static{ - ({ e: [_initProto] } = _apply_decs_2203_r(this, [ + ({ e: [_initProto] } = _apply_decs_2203_r(this, [ [ dec, 2, @@ -16,10 +16,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); a() { return this.value; } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-misc/all-decorators/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-misc/all-decorators/output.js index 18826e02d768..db3dbf8a9f99 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-misc/all-decorators/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-misc/all-decorators/output.js @@ -144,11 +144,11 @@ new class extends _identity { ])); _initStatic(this); } - a = _init_a(this); + a = (_initProto(this), _init_a(this)); b() {} get c() {} set c(v) {} - #___private_d_1 = (_initProto(this), _init_d(this)); + #___private_d_1 = _init_d(this); get d() { return this.#___private_d_1; } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/private/output.js index 5a8ca1bb289f..a8fa7f9adad4 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/private/output.js @@ -10,8 +10,7 @@ class Foo { get: void 0, set: set_a }); - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_call_a, _initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/public/output.js index c5fdd8e6788c..3b6acbdb1f58 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters--to-es2015/public/output.js @@ -10,8 +10,7 @@ class Foo { return this.value = v; } constructor(){ - _define_property(this, "value", 1); - _initProto(this); + _define_property(this, "value", (_initProto(this), 1)); } } ({ e: [_initProto] } = _apply_decs_2203_r(Foo, [ diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/private/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/private/output.js index de3ab531e1ab..fb0608802bc7 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/private/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/private/output.js @@ -13,10 +13,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); set #a(v) { return _call_a(this, v); } diff --git a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/public/output.js b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/public/output.js index 5c8fea71f6e0..c365616ec45b 100644 --- a/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/public/output.js +++ b/crates/swc_ecma_transforms_proposal/tests/decorators/2022-03-setters/public/output.js @@ -3,7 +3,7 @@ const dec = ()=>{}; _computedKey = 'b'; class Foo { static{ - ({ e: [_initProto] } = _apply_decs_2203_r(this, [ + ({ e: [_initProto] } = _apply_decs_2203_r(this, [ [ dec, 4, @@ -16,10 +16,7 @@ class Foo { ] ], [])); } - constructor(){ - _initProto(this); - } - value = 1; + value = (_initProto(this), 1); set a(v) { return this.value = v; } diff --git a/crates/swc_ecma_transforms_react/Cargo.toml b/crates/swc_ecma_transforms_react/Cargo.toml index 89a5260e2af2..203a65a760c7 100644 --- a/crates/swc_ecma_transforms_react/Cargo.toml +++ b/crates/swc_ecma_transforms_react/Cargo.toml @@ -28,14 +28,14 @@ sha1 = { workspace = true } string_enum = { version = "1.0.0", path = "../string_enum" } swc_allocator = { version = "2.0.0", path = "../swc_allocator", default-features = false } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_config = { version = "1.0.0", path = "../swc_config" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_macros = { version = "1.0.0", path = "../swc_ecma_transforms_macros" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } [dev-dependencies] diff --git a/crates/swc_ecma_transforms_testing/Cargo.toml b/crates/swc_ecma_transforms_testing/Cargo.toml index c4be69a86ed9..b9129c78f3ef 100644 --- a/crates/swc_ecma_transforms_testing/Cargo.toml +++ b/crates/swc_ecma_transforms_testing/Cargo.toml @@ -30,6 +30,6 @@ swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_testing = { version = "5.0.0", path = "../swc_ecma_testing" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } testing = { version = "5.0.0", path = "../testing" } diff --git a/crates/swc_ecma_transforms_typescript/Cargo.toml b/crates/swc_ecma_transforms_typescript/Cargo.toml index f771ce73dec2..da38622a8cae 100644 --- a/crates/swc_ecma_transforms_typescript/Cargo.toml +++ b/crates/swc_ecma_transforms_typescript/Cargo.toml @@ -16,12 +16,12 @@ bench = false serde = { workspace = true, features = ["derive"] } ryu-js = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" } swc_ecma_transforms_react = { version = "7.0.0", path = "../swc_ecma_transforms_react" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } [dev-dependencies] @@ -31,7 +31,7 @@ criterion = { workspace = true } swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms_compat = { version = "8.0.0", path = "../swc_ecma_transforms_compat" } -swc_ecma_transforms_proposal = { version = "7.0.0", path = "../swc_ecma_transforms_proposal" } +swc_ecma_transforms_proposal = { version = "7.0.1", path = "../swc_ecma_transforms_proposal" } swc_ecma_transforms_testing = { version = "7.0.0", path = "../swc_ecma_transforms_testing" } testing = { version = "5.0.0", path = "../testing" } diff --git a/crates/swc_ecma_usage_analyzer/Cargo.toml b/crates/swc_ecma_usage_analyzer/Cargo.toml index 3fc16994cdf6..de0cc16d692c 100644 --- a/crates/swc_ecma_usage_analyzer/Cargo.toml +++ b/crates/swc_ecma_usage_analyzer/Cargo.toml @@ -27,9 +27,9 @@ indexmap = { workspace = true } rustc-hash = { workspace = true } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_timer = { version = "1.0.0", path = "../swc_timer" } diff --git a/crates/swc_ecma_utils/Cargo.toml b/crates/swc_ecma_utils/Cargo.toml index c6fd73ea1748..f7b8b3d0a373 100644 --- a/crates/swc_ecma_utils/Cargo.toml +++ b/crates/swc_ecma_utils/Cargo.toml @@ -6,7 +6,7 @@ edition = { workspace = true } license = { workspace = true } name = "swc_ecma_utils" repository = { workspace = true } -version = "7.0.0" +version = "7.0.1" [package.metadata.docs.rs] all-features = true @@ -29,7 +29,7 @@ ryu-js = { workspace = true } tracing = { workspace = true } unicode-id = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } diff --git a/crates/swc_ecma_visit/Cargo.toml b/crates/swc_ecma_visit/Cargo.toml index 3956d49b9dfd..063f02b026be 100644 --- a/crates/swc_ecma_visit/Cargo.toml +++ b/crates/swc_ecma_visit/Cargo.toml @@ -27,7 +27,7 @@ num-bigint = { workspace = true, features = ["serde"] } serde = { workspace = true, optional = true, features = ["derive"] } tracing = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_visit = { version = "2.0.0", path = "../swc_visit" } diff --git a/crates/swc_ecmascript/Cargo.toml b/crates/swc_ecmascript/Cargo.toml index f7c5d9056b12..423a22ec1b03 100644 --- a/crates/swc_ecmascript/Cargo.toml +++ b/crates/swc_ecmascript/Cargo.toml @@ -45,7 +45,7 @@ swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser", optional swc_ecma_preset_env = { version = "9.0.0", path = "../swc_ecma_preset_env", optional = true } swc_ecma_quote = { version = "6.0.0", path = "../swc_ecma_quote", optional = true } swc_ecma_transforms = { version = "9.0.0", path = "../swc_ecma_transforms", optional = true } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils", optional = true } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils", optional = true } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit", optional = true } [dev-dependencies] diff --git a/crates/swc_estree_ast/Cargo.toml b/crates/swc_estree_ast/Cargo.toml index c71e11222cbf..71b4c8f8985c 100644 --- a/crates/swc_estree_ast/Cargo.toml +++ b/crates/swc_estree_ast/Cargo.toml @@ -26,5 +26,5 @@ serde = { workspace = true, features = ["derive"], optional = true } serde_json = { workspace = true } better_scoped_tls = { version = "1.0.0", path = "../better_scoped_tls" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } diff --git a/crates/swc_estree_compat/Cargo.toml b/crates/swc_estree_compat/Cargo.toml index eb1fd4fe37c6..8be62833ad8d 100644 --- a/crates/swc_estree_compat/Cargo.toml +++ b/crates/swc_estree_compat/Cargo.toml @@ -24,14 +24,14 @@ copyless = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common", features = [ "sourcemap", "tty-emitter", ] } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_estree_ast = { version = "5.0.0", path = "../swc_estree_ast" } swc_node_comments = { version = "5.0.0", path = "../swc_node_comments/" } diff --git a/crates/swc_html_ast/Cargo.toml b/crates/swc_html_ast/Cargo.toml index 58085e4df2b4..1547adf6eafd 100644 --- a/crates/swc_html_ast/Cargo.toml +++ b/crates/swc_html_ast/Cargo.toml @@ -32,5 +32,5 @@ rkyv = { workspace = true, optional = true } serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "1.0.0", path = "../string_enum/" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } diff --git a/crates/swc_html_codegen/Cargo.toml b/crates/swc_html_codegen/Cargo.toml index be2e0a667f8e..93d94214848d 100644 --- a/crates/swc_html_codegen/Cargo.toml +++ b/crates/swc_html_codegen/Cargo.toml @@ -20,7 +20,7 @@ auto_impl = { workspace = true } bitflags = { workspace = true } rustc-hash = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_html_ast = { version = "5.0.0", path = "../swc_html_ast" } swc_html_codegen_macros = { version = "1.0.0", path = "../swc_html_codegen_macros" } diff --git a/crates/swc_html_minifier/Cargo.toml b/crates/swc_html_minifier/Cargo.toml index d9e8e8a40557..3bfaa2ac203b 100644 --- a/crates/swc_html_minifier/Cargo.toml +++ b/crates/swc_html_minifier/Cargo.toml @@ -25,7 +25,7 @@ once_cell = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_cached = { version = "1.0.0", path = "../swc_cached" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast", optional = true } diff --git a/crates/swc_html_parser/Cargo.toml b/crates/swc_html_parser/Cargo.toml index 4c408c6bc38e..9a63aefca499 100644 --- a/crates/swc_html_parser/Cargo.toml +++ b/crates/swc_html_parser/Cargo.toml @@ -19,7 +19,7 @@ bench = false debug = [] [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_html_ast = { version = "5.0.0", path = "../swc_html_ast" } swc_html_utils = { version = "5.0.0", path = "../swc_html_utils" } diff --git a/crates/swc_html_utils/Cargo.toml b/crates/swc_html_utils/Cargo.toml index 65de7a0adbfe..8386a833bb69 100644 --- a/crates/swc_html_utils/Cargo.toml +++ b/crates/swc_html_utils/Cargo.toml @@ -20,5 +20,5 @@ once_cell = { workspace = true } serde = { workspace = true, features = ["derive"] } serde_json = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } diff --git a/crates/swc_html_visit/Cargo.toml b/crates/swc_html_visit/Cargo.toml index 5248671d2885..b068081879a0 100644 --- a/crates/swc_html_visit/Cargo.toml +++ b/crates/swc_html_visit/Cargo.toml @@ -26,7 +26,7 @@ serde-impl = ["serde"] [dependencies] serde = { workspace = true, optional = true, features = ["derive"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_html_ast = { version = "5.0.0", path = "../swc_html_ast" } swc_visit = { version = "2.0.0", path = "../swc_visit" } diff --git a/crates/swc_node_bundler/Cargo.toml b/crates/swc_node_bundler/Cargo.toml index 1c7b821b2c99..a7af4d5c48dc 100644 --- a/crates/swc_node_bundler/Cargo.toml +++ b/crates/swc_node_bundler/Cargo.toml @@ -30,7 +30,7 @@ tracing = { workspace = true } string_enum = { version = "1.0.0", path = "../string_enum" } swc = { version = "10.0.0", path = "../swc" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_bundler = { version = "7.0.0", path = "../swc_bundler", features = [ "concurrent", ] } @@ -42,7 +42,7 @@ swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" } swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader" } swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" } swc_ecma_transforms = { version = "9.0.0", path = "../swc_ecma_transforms" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } swc_malloc = { version = "1.0.0", path = "../swc_malloc" } diff --git a/crates/swc_node_comments/Cargo.toml b/crates/swc_node_comments/Cargo.toml index d539598c947e..f23eb0e30018 100644 --- a/crates/swc_node_comments/Cargo.toml +++ b/crates/swc_node_comments/Cargo.toml @@ -17,5 +17,5 @@ bench = false [dependencies] dashmap = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml index cc07020ea35e..aa9469d4f500 100644 --- a/crates/swc_plugin_runner/Cargo.toml +++ b/crates/swc_plugin_runner/Cargo.toml @@ -78,7 +78,7 @@ wasmer-compiler-cranelift = { version = "=5.0.5-rc1", default-features = false } codspeed-criterion-compat = { workspace = true } criterion = { workspace = true } -swc_atoms = { version = "3.0.2", path = '../swc_atoms' } +swc_atoms = { version = "3.0.3", path = '../swc_atoms' } swc_css_ast = { version = "5.0.0", path = "../swc_css_ast", features = [ "rkyv-impl", ] } diff --git a/crates/swc_typescript/Cargo.toml b/crates/swc_typescript/Cargo.toml index ca412883c59f..df0f2f4fe020 100644 --- a/crates/swc_typescript/Cargo.toml +++ b/crates/swc_typescript/Cargo.toml @@ -13,10 +13,10 @@ petgraph = { workspace = true } rustc-hash = { workspace = true } thiserror = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" } -swc_ecma_utils = { version = "7.0.0", path = "../swc_ecma_utils" } +swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" } swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" } diff --git a/crates/swc_xml_ast/Cargo.toml b/crates/swc_xml_ast/Cargo.toml index 396c14f398db..9b0cd51a680e 100644 --- a/crates/swc_xml_ast/Cargo.toml +++ b/crates/swc_xml_ast/Cargo.toml @@ -22,5 +22,5 @@ is-macro = { workspace = true } serde = { workspace = true, features = ["derive"], optional = true } string_enum = { version = "1.0.0", path = "../string_enum/" } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } diff --git a/crates/swc_xml_codegen/Cargo.toml b/crates/swc_xml_codegen/Cargo.toml index 0dc6b675b7c9..9b2100a43e25 100644 --- a/crates/swc_xml_codegen/Cargo.toml +++ b/crates/swc_xml_codegen/Cargo.toml @@ -20,7 +20,7 @@ auto_impl = { workspace = true } bitflags = { workspace = true } rustc-hash = { workspace = true } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_xml_ast = { version = "5.0.0", path = "../swc_xml_ast" } swc_xml_codegen_macros = { version = "1.0.0", path = "../swc_xml_codegen_macros" } diff --git a/crates/swc_xml_parser/Cargo.toml b/crates/swc_xml_parser/Cargo.toml index 34b176890306..7530586038c6 100644 --- a/crates/swc_xml_parser/Cargo.toml +++ b/crates/swc_xml_parser/Cargo.toml @@ -19,7 +19,7 @@ bench = false debug = [] [dependencies] -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_xml_ast = { version = "5.0.0", path = "../swc_xml_ast" } diff --git a/crates/swc_xml_visit/Cargo.toml b/crates/swc_xml_visit/Cargo.toml index 8efe433f6d59..543f0269d53f 100644 --- a/crates/swc_xml_visit/Cargo.toml +++ b/crates/swc_xml_visit/Cargo.toml @@ -26,7 +26,7 @@ serde-impl = ["serde"] [dependencies] serde = { workspace = true, optional = true, features = ["derive"] } -swc_atoms = { version = "3.0.2", path = "../swc_atoms" } +swc_atoms = { version = "3.0.3", path = "../swc_atoms" } swc_common = { version = "5.0.0", path = "../swc_common" } swc_visit = { version = "2.0.0", path = "../swc_visit" } swc_xml_ast = { version = "5.0.0", path = "../swc_xml_ast" }