Skip to content

Commit d8eb351

Browse files
authored
Merge branch 'main' into r/ast-non-exhaustive
2 parents 9ee1a15 + dfe9670 commit d8eb351

File tree

52 files changed

+564
-292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+564
-292
lines changed

.changeset/tender-buses-allow.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/claude.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
actions: read
4242
4343
# Optional: Specify model (defaults to Claude Sonnet 4, uncomment for Claude Opus 4)
44-
model: "claude-opus-4-20250514"
44+
# model: "claude-opus-4-20250514"
4545

4646
# Optional: Customize the trigger phrase (default: @claude)
4747
# trigger_phrase: "/claude"

CHANGELOG-CORE.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,42 @@
11
# Changelog
22
## [unreleased]
33

4+
### Bug Fixes
5+
6+
7+
8+
- **(es/react)** Use correct span for `@jsxFrag` as null literal ([#11139](https://github.com/swc-project/swc/issues/11139)) ([9353763](https://github.com/swc-project/swc/commit/9353763e4d7f880ac3175bbdc058a3c3b3bea3bb))
9+
10+
## [[email protected]] - 2025-10-02
11+
12+
### Bug Fixes
13+
14+
15+
16+
- **(es/parser)** Handle JSX attributes with keyword prefixes correctly ([#11136](https://github.com/swc-project/swc/issues/11136)) ([d3cd97f](https://github.com/swc-project/swc/commit/d3cd97fef10518507249d4b0b82983320483ee1c))
17+
18+
## [[email protected]] - 2025-10-01
19+
20+
### Bug Fixes
21+
22+
23+
24+
- **(es/compat)** Apply `Array.prototype.slice` to `arguments` in loose spread ([#11122](https://github.com/swc-project/swc/issues/11122)) ([66428a2](https://github.com/swc-project/swc/commit/66428a2b07fcded28b779860de3b13acd86e6647))
25+
26+
27+
- **(es/compat)** Handle sparse arrays correctly in generator transforms ([#11131](https://github.com/swc-project/swc/issues/11131)) ([9cd4334](https://github.com/swc-project/swc/commit/9cd43343d39ccb0be43f8ce9e8e2cd74c18db4af))
28+
29+
30+
- **(es/transforms)** Check errors::HANDLER.is_set() before failing ([#11130](https://github.com/swc-project/swc/issues/11130)) ([1c9ab27](https://github.com/swc-project/swc/commit/1c9ab2719ca21e4fcc4598c7877648d44f22311c))
31+
32+
### Miscellaneous Tasks
33+
34+
35+
36+
- **(claude)** Use Sonnet 4.5 instead of Opus ([c79e1e5](https://github.com/swc-project/swc/commit/c79e1e50ad33d538aeb900fb2662e86e8e7b442c))
37+
38+
## [[email protected]] - 2025-09-28
39+
440
### Features
541

642

@@ -2532,21 +2568,4 @@
25322568

25332569
- **(ts/fast-strip)** Emit json errors ([#10144](https://github.com/swc-project/swc/issues/10144)) ([740bd57](https://github.com/swc-project/swc/commit/740bd579ae8d081604be606fd69e92298a5d6862))
25342570

2535-
## [[email protected]] - 2025-03-04
2536-
2537-
### Bug Fixes
2538-
2539-
2540-
2541-
- **(es/minifier)** Fix regression due to #10056 ([#10134](https://github.com/swc-project/swc/issues/10134)) ([b145275](https://github.com/swc-project/swc/commit/b1452757f3ff0b05330578b4e7607db3ee874bd5))
2542-
2543-
2544-
- **(es/typescript)** Remove empty statements that const enum decls are folded into ([#10128](https://github.com/swc-project/swc/issues/10128)) ([7bea830](https://github.com/swc-project/swc/commit/7bea830a0e6f73ab0ba5032d13d5e58e4674bc72))
2545-
2546-
### Miscellaneous Tasks
2547-
2548-
2549-
2550-
- **(deps)** Update dependency `base64` to `v0.22.1` ([#10124](https://github.com/swc-project/swc/issues/10124)) ([edea2c5](https://github.com/swc-project/swc/commit/edea2c5fa442da6a2860442eed285464edcd55c8))
2551-
25522571
<!-- generated by git-cliff -->

CHANGELOG.md

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,36 @@
11
# Changelog
22
## [unreleased]
33

4+
### Bug Fixes
5+
6+
7+
8+
- **(es/compat)** Apply `Array.prototype.slice` to `arguments` in loose spread ([#11122](https://github.com/swc-project/swc/issues/11122)) ([66428a2](https://github.com/swc-project/swc/commit/66428a2b07fcded28b779860de3b13acd86e6647))
9+
10+
11+
- **(es/compat)** Handle sparse arrays correctly in generator transforms ([#11131](https://github.com/swc-project/swc/issues/11131)) ([9cd4334](https://github.com/swc-project/swc/commit/9cd43343d39ccb0be43f8ce9e8e2cd74c18db4af))
12+
13+
14+
- **(es/parser)** Handle JSX attributes with keyword prefixes correctly ([#11136](https://github.com/swc-project/swc/issues/11136)) ([d3cd97f](https://github.com/swc-project/swc/commit/d3cd97fef10518507249d4b0b82983320483ee1c))
15+
16+
17+
- **(es/react)** Use correct span for `@jsxFrag` as null literal ([#11139](https://github.com/swc-project/swc/issues/11139)) ([9353763](https://github.com/swc-project/swc/commit/9353763e4d7f880ac3175bbdc058a3c3b3bea3bb))
18+
19+
20+
- **(es/transforms)** Check errors::HANDLER.is_set() before failing ([#11130](https://github.com/swc-project/swc/issues/11130)) ([1c9ab27](https://github.com/swc-project/swc/commit/1c9ab2719ca21e4fcc4598c7877648d44f22311c))
21+
422
### Features
523

624

725

826
- **(bindings)** Introduce AST Viewer to improve debugging experience ([#10963](https://github.com/swc-project/swc/issues/10963)) ([fa3aacc](https://github.com/swc-project/swc/commit/fa3aacc8425af7075d5af8596c0347de08d3f816))
927

28+
### Miscellaneous Tasks
29+
30+
31+
32+
- **(claude)** Use Sonnet 4.5 instead of Opus ([c79e1e5](https://github.com/swc-project/swc/commit/c79e1e50ad33d538aeb900fb2662e86e8e7b442c))
33+
1034
## [1.13.20] - 2025-09-27
1135

1236
### Bug Fixes
@@ -2030,21 +2054,4 @@
20302054

20312055
## [1.11.6] - 2025-03-04
20322056

2033-
### Bug Fixes
2034-
2035-
2036-
2037-
- **(es/minifier)** Fix regression due to #10056 ([#10134](https://github.com/swc-project/swc/issues/10134)) ([b145275](https://github.com/swc-project/swc/commit/b1452757f3ff0b05330578b4e7607db3ee874bd5))
2038-
2039-
2040-
- **(es/typescript)** Remove empty statements that const enum decls are folded into ([#10128](https://github.com/swc-project/swc/issues/10128)) ([7bea830](https://github.com/swc-project/swc/commit/7bea830a0e6f73ab0ba5032d13d5e58e4674bc72))
2041-
2042-
## [1.11.5] - 2025-02-28
2043-
2044-
### Miscellaneous Tasks
2045-
2046-
2047-
2048-
- **(deps)** Update dependency `base64` to `v0.22.1` ([#10124](https://github.com/swc-project/swc/issues/10124)) ([edea2c5](https://github.com/swc-project/swc/commit/edea2c5fa442da6a2860442eed285464edcd55c8))
2049-
20502057
<!-- generated by git-cliff -->

Cargo.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/binding_macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ edition = { workspace = true }
55
license = { workspace = true }
66
name = "binding_macros"
77
repository = { workspace = true }
8-
version = "41.0.0"
8+
version = "42.0.0"
99

1010
[lib]
1111
bench = false
@@ -33,10 +33,10 @@ binding_wasm = [
3333

3434
[dependencies]
3535
# Common deps for the SWC imports
36-
swc = { optional = true, version = "41.0.0", path = "../swc" }
36+
swc = { optional = true, version = "42.0.0", path = "../swc" }
3737
swc_common = { optional = true, version = "14.0.4", path = "../swc_common" }
3838
swc_ecma_ast = { optional = true, version = "15.0.0", path = "../swc_ecma_ast" }
39-
swc_ecma_transforms = { optional = true, version = "34.0.0", path = "../swc_ecma_transforms" }
39+
swc_ecma_transforms = { optional = true, version = "35.0.0", path = "../swc_ecma_transforms" }
4040
swc_ecma_visit = { optional = true, version = "15.0.0", path = "../swc_ecma_visit" }
4141

4242
# Optional deps for the wasm binding macro

crates/dbg-swc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ swc_ecma_codegen = { version = "17.0.2", path = "../swc_ecma_codegen" }
3434
swc_ecma_minifier = { version = "33.0.0", path = "../swc_ecma_minifier", features = [
3535
"concurrent",
3636
] }
37-
swc_ecma_parser = { version = "24.0.2", path = "../swc_ecma_parser" }
37+
swc_ecma_parser = { version = "24.0.3", path = "../swc_ecma_parser" }
3838
swc_ecma_transforms_base = { version = "27.0.0", path = "../swc_ecma_transforms_base" }
3939
swc_ecma_visit = { version = "15.0.0", path = "../swc_ecma_visit" }
4040
swc_error_reporters = { version = "16.0.1", path = "../swc_error_reporters" }

crates/jsdoc/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ swc_common = { version = "14.0.4", path = "../swc_common" }
2424

2525
[dev-dependencies]
2626
dashmap = { workspace = true }
27-
swc_ecma_parser = { version = "24.0.2", path = "../swc_ecma_parser" }
27+
swc_ecma_parser = { version = "24.0.3", path = "../swc_ecma_parser" }
2828
testing = { version = "15.0.0", path = "../testing" }

crates/swc/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
99
license = { workspace = true }
1010
name = "swc"
1111
repository = { workspace = true }
12-
version = "41.0.0"
12+
version = "42.0.0"
1313

1414
[lib]
1515
bench = false
@@ -94,9 +94,9 @@ swc_ecma_loader = { version = "14.0.0", path = "../swc_ecma_loader", features =
9494
"tsc",
9595
] }
9696
swc_ecma_minifier = { version = "33.0.0", path = "../swc_ecma_minifier" }
97-
swc_ecma_parser = { version = "24.0.2", path = "../swc_ecma_parser", default-features = false, features = ["typescript"] }
98-
swc_ecma_preset_env = { version = "35.0.0", path = "../swc_ecma_preset_env" }
99-
swc_ecma_transforms = { version = "34.0.0", path = "../swc_ecma_transforms", features = [
97+
swc_ecma_parser = { version = "24.0.3", path = "../swc_ecma_parser", default-features = false, features = ["typescript"] }
98+
swc_ecma_preset_env = { version = "36.0.0", path = "../swc_ecma_preset_env" }
99+
swc_ecma_transforms = { version = "35.0.0", path = "../swc_ecma_transforms", features = [
100100
"compat",
101101
"module",
102102
"optimization",
@@ -105,7 +105,7 @@ swc_ecma_transforms = { version = "34.0.0", path = "../swc_ecma_transforms", fea
105105
"typescript",
106106
] }
107107
swc_ecma_transforms_base = { version = "27.0.0", path = "../swc_ecma_transforms_base" }
108-
swc_ecma_transforms_compat = { version = "30.0.0", path = "../swc_ecma_transforms_compat" }
108+
swc_ecma_transforms_compat = { version = "31.0.0", path = "../swc_ecma_transforms_compat" }
109109
swc_ecma_transforms_optimization = { version = "29.0.0", path = "../swc_ecma_transforms_optimization" }
110110
swc_ecma_utils = { version = "21.0.0", path = "../swc_ecma_utils" }
111111
swc_ecma_visit = { version = "15.0.0", path = "../swc_ecma_visit" }

crates/swc_bundler/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ swc_common = { version = "14.0.4", path = "../swc_common"
4545
swc_ecma_ast = { version = "15.0.0", path = "../swc_ecma_ast" }
4646
swc_ecma_codegen = { version = "17.0.2", path = "../swc_ecma_codegen" }
4747
swc_ecma_loader = { version = "14.0.0", path = "../swc_ecma_loader" }
48-
swc_ecma_parser = { version = "24.0.2", path = "../swc_ecma_parser", default-features = false, features = ["typescript"] }
48+
swc_ecma_parser = { version = "24.0.3", path = "../swc_ecma_parser", default-features = false, features = ["typescript"] }
4949
swc_ecma_transforms_base = { version = "27.0.0", path = "../swc_ecma_transforms_base" }
5050
swc_ecma_transforms_optimization = { version = "29.0.0", path = "../swc_ecma_transforms_optimization" }
5151
swc_ecma_utils = { version = "21.0.0", path = "../swc_ecma_utils" }
@@ -72,7 +72,7 @@ swc_ecma_transforms_base = { version = "27.0.0", path = "../swc_ecma_transforms_
7272
"inline-helpers",
7373
] }
7474
swc_ecma_transforms_proposal = { version = "27.0.0", path = "../swc_ecma_transforms_proposal" }
75-
swc_ecma_transforms_react = { version = "30.0.0", path = "../swc_ecma_transforms_react" }
76-
swc_ecma_transforms_typescript = { version = "30.0.0", path = "../swc_ecma_transforms_typescript" }
75+
swc_ecma_transforms_react = { version = "30.0.2", path = "../swc_ecma_transforms_react" }
76+
swc_ecma_transforms_typescript = { version = "30.0.1", path = "../swc_ecma_transforms_typescript" }
7777
swc_malloc = { version = "1.2.3", path = "../swc_malloc" }
7878
testing = { version = "15.0.0", path = "../testing" }

0 commit comments

Comments
 (0)