Skip to content

Commit

Permalink
Merge branch 'main' into dce-par
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jan 15, 2025
2 parents 493b053 + 92fd3d2 commit 313dc2f
Show file tree
Hide file tree
Showing 94 changed files with 195 additions and 472 deletions.
6 changes: 0 additions & 6 deletions .changeset/swift-experts-dance.md

This file was deleted.

24 changes: 15 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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


Expand All @@ -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))


Expand All @@ -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
Expand Down Expand Up @@ -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))

<!-- generated by git-cliff -->
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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" }
Expand Down
3 changes: 1 addition & 2 deletions crates/swc/tests/fixture/issues-7xxx/7220/1/output/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, [
{
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_atoms/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ 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" }
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_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/" }
Expand All @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_cli_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_compiler_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
] }
Expand Down
8 changes: 4 additions & 4 deletions crates/swc_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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" }
Expand All @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
2 changes: 1 addition & 1 deletion crates/swc_css_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_compat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_lints/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_minifier/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_modules/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_parser/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }

Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_prefixer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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/" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_utils/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion crates/swc_css_visit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
2 changes: 1 addition & 1 deletion crates/swc_ecma_ast/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_ecma_compat_bugfixes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_compat_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
4 changes: 2 additions & 2 deletions crates/swc_ecma_compat_es2015/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand All @@ -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 }
Expand Down
Loading

0 comments on commit 313dc2f

Please sign in to comment.