Skip to content

Commit c41f09b

Browse files
authored
Merge branch 'main' into nullish_coalescing/compiler
2 parents 80c9f95 + c4114d5 commit c41f09b

File tree

138 files changed

+2246
-1365
lines changed

Some content is hidden

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

138 files changed

+2246
-1365
lines changed

.changeset/curvy-mangos-dream.md

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

.changeset/famous-socks-refuse.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
swc_ecma_lexer: major
3+
---
4+
5+
refactor(es/parser): rm eof check

.changeset/flat-turkeys-hammer.md

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

.changeset/rich-scissors-unite.md

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

.changeset/spotty-poets-appear.md

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

.changeset/stupid-ligers-juggle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
swc_plugin_backend_wasmtime: major
3+
---
4+
5+
refactor(plugin/runner): Switch wasmtime-wasi to wasi-common

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ jobs:
290290
key: swc-exec-cache-${{ matrix.settings.crate }}-${{ hashFiles('**/Cargo.lock') }}
291291

292292
- name: Run cargo test
293-
if: matrix.settings.crate != 'swc_plugin_backend_wasmer' && matrix.settings.crate != 'swc_ecma_parser' && matrix.settings.crate != 'swc_ecma_minifier' && matrix.settings.crate != 'swc_core' && matrix.settings.crate != 'swc_ecma_quote' && matrix.settings.crate != 'swc_cli' && matrix.settings.crate != 'binding_core_wasm'
293+
if: matrix.settings.crate != 'swc_plugin_backend_tests' && matrix.settings.crate != 'swc_ecma_parser' && matrix.settings.crate != 'swc_ecma_minifier' && matrix.settings.crate != 'swc_core' && matrix.settings.crate != 'swc_ecma_quote' && matrix.settings.crate != 'swc_cli' && matrix.settings.crate != 'binding_core_wasm'
294294
run: |
295295
cargo test -p ${{ matrix.settings.crate }}
296296
@@ -311,10 +311,10 @@ jobs:
311311
cargo test --manifest-path ./bindings/swc_cli/Cargo.toml --features plugin
312312
313313
- name: Run cargo test (plugin)
314-
if: matrix.settings.crate == 'swc_plugin_backend_wasmer'
314+
if: matrix.settings.crate == 'swc_plugin_backend_tests'
315315
run: |
316316
# export CARGO_TARGET_DIR=$(pwd)/target
317-
cargo test -p swc_plugin_backend_wasmer --release
317+
cargo test -p swc_plugin_backend_tests --release
318318
319319
- name: Run cargo test (swc_ecma_minifier)
320320
if: matrix.settings.crate == 'swc_ecma_minifier'

CHANGELOG-CORE.md

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,38 @@
55

66

77

8+
- **(es/minifier)** Skip serde of `pure_funcs` in options ([#10969](https://github.com/swc-project/swc/issues/10969)) ([862e70d](https://github.com/swc-project/swc/commit/862e70d596401f876dad054c6fc1cf4231d6d7a0))
9+
10+
11+
- Expose GlobalPassOption.build ([#10968](https://github.com/swc-project/swc/issues/10968)) ([c8a2668](https://github.com/swc-project/swc/commit/c8a266892e8bc02cd34f091c8962cd3cd77de285))
12+
13+
### Features
14+
15+
16+
17+
- **(plugin/runner)** Introduce `wasmtime` backend ([#10958](https://github.com/swc-project/swc/issues/10958)) ([9fa8330](https://github.com/swc-project/swc/commit/9fa833087eeb6901fce25af17f2123e23316ab40))
18+
19+
### Performance
20+
21+
22+
23+
- **(es/minifier)** Remove useless clone ([#10970](https://github.com/swc-project/swc/issues/10970)) ([8873f65](https://github.com/swc-project/swc/commit/8873f659a02deb2cc8f496c28ea74a2b04a70259))
24+
25+
### Refactor
26+
27+
28+
29+
- **(es/minifier)** Remove useless branch ([#10966](https://github.com/swc-project/swc/issues/10966)) ([e400de3](https://github.com/swc-project/swc/commit/e400de3aca99d4a937c37219eae6c1303785b661))
30+
31+
32+
- **(plugin/runner)** Introduce abstract runtime ([#10943](https://github.com/swc-project/swc/issues/10943)) ([a445156](https://github.com/swc-project/swc/commit/a44515679cb17c3b8b6ab5e625cbce1ee6d1b9e4))
33+
34+
## [[email protected]] - 2025-07-31
35+
36+
### Bug Fixes
37+
38+
39+
840
- **(es/lexer)** Use error when handling '\0' ([#10964](https://github.com/swc-project/swc/issues/10964)) ([53c22d1](https://github.com/swc-project/swc/commit/53c22d1cce88c0b9f8bc91f461bf26e58b21c9bd))
941

1042
### Performance
@@ -2691,22 +2723,4 @@
26912723

26922724
## [[email protected]] - 2025-01-22
26932725

2694-
### Features
2695-
2696-
2697-
2698-
- **(es/minifier)** Compress negate eq ([#9911](https://github.com/swc-project/swc/issues/9911)) ([e8f23cf](https://github.com/swc-project/swc/commit/e8f23cf92146828ea2a8b65724c7a6824acf9f0f))
2699-
2700-
### Miscellaneous Tasks
2701-
2702-
2703-
2704-
- **(es/minifier)** Add a script for samply profiler ([#9923](https://github.com/swc-project/swc/issues/9923)) ([8f8dcaa](https://github.com/swc-project/swc/commit/8f8dcaac2f22f71de538802034db5756e84c7f55))
2705-
2706-
### Refactor
2707-
2708-
2709-
2710-
- **(es/minifier)** Make `minify-all` example sequential ([#9912](https://github.com/swc-project/swc/issues/9912)) ([5b5c87e](https://github.com/swc-project/swc/commit/5b5c87e72480638ae382d519980302702e333305))
2711-
27122726
<!-- generated by git-cliff -->

CHANGELOG.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

88
- **(es/lexer)** Use error when handling '\0' ([#10964](https://github.com/swc-project/swc/issues/10964)) ([53c22d1](https://github.com/swc-project/swc/commit/53c22d1cce88c0b9f8bc91f461bf26e58b21c9bd))
99

10+
11+
- **(es/minifier)** Skip serde of `pure_funcs` in options ([#10969](https://github.com/swc-project/swc/issues/10969)) ([862e70d](https://github.com/swc-project/swc/commit/862e70d596401f876dad054c6fc1cf4231d6d7a0))
12+
13+
14+
- Expose GlobalPassOption.build ([#10968](https://github.com/swc-project/swc/issues/10968)) ([c8a2668](https://github.com/swc-project/swc/commit/c8a266892e8bc02cd34f091c8962cd3cd77de285))
15+
16+
### Features
17+
18+
19+
20+
- **(plugin/runner)** Introduce `wasmtime` backend ([#10958](https://github.com/swc-project/swc/issues/10958)) ([9fa8330](https://github.com/swc-project/swc/commit/9fa833087eeb6901fce25af17f2123e23316ab40))
21+
1022
### Performance
1123

1224

@@ -16,15 +28,24 @@
1628

1729
- **(es/minifier)** Reduce alloc ([#10961](https://github.com/swc-project/swc/issues/10961)) ([6475070](https://github.com/swc-project/swc/commit/64750702c98e2aca6e3c0d9e4a34974cc38b16e5))
1830

31+
32+
- **(es/minifier)** Remove useless clone ([#10970](https://github.com/swc-project/swc/issues/10970)) ([8873f65](https://github.com/swc-project/swc/commit/8873f659a02deb2cc8f496c28ea74a2b04a70259))
33+
1934
### Refactor
2035

2136

2237

38+
- **(es/minifier)** Remove useless branch ([#10966](https://github.com/swc-project/swc/issues/10966)) ([e400de3](https://github.com/swc-project/swc/commit/e400de3aca99d4a937c37219eae6c1303785b661))
39+
40+
2341
- **(hstr)** Use default inline strategy ([#10954](https://github.com/swc-project/swc/issues/10954)) ([d160f7f](https://github.com/swc-project/swc/commit/d160f7f80175c7b4181ca8f22dfb7f5fcb4d639a))
2442

2543

2644
- **(hstr)** Remove needlesss unwrap ([#10959](https://github.com/swc-project/swc/issues/10959)) ([953f75f](https://github.com/swc-project/swc/commit/953f75fce4b594ee66f2339af6d347963c113da5))
2745

46+
47+
- **(plugin/runner)** Introduce abstract runtime ([#10943](https://github.com/swc-project/swc/issues/10943)) ([a445156](https://github.com/swc-project/swc/commit/a44515679cb17c3b8b6ab5e625cbce1ee6d1b9e4))
48+
2849
## [1.13.3] - 2025-07-29
2950

3051
### Bug Fixes
@@ -2149,9 +2170,6 @@
21492170

21502171

21512172

2152-
- **(es/minifier)** Compress negate eq ([#9911](https://github.com/swc-project/swc/issues/9911)) ([e8f23cf](https://github.com/swc-project/swc/commit/e8f23cf92146828ea2a8b65724c7a6824acf9f0f))
2153-
2154-
21552173
- **(es/minifier)** Compress Assign to number ([#9943](https://github.com/swc-project/swc/issues/9943)) ([d5f40a0](https://github.com/swc-project/swc/commit/d5f40a0bc00df0cfb850a5989b15efb7467f3303))
21562174

21572175

@@ -2164,9 +2182,6 @@
21642182

21652183

21662184

2167-
- **(es/minifier)** Add a script for samply profiler ([#9923](https://github.com/swc-project/swc/issues/9923)) ([8f8dcaa](https://github.com/swc-project/swc/commit/8f8dcaac2f22f71de538802034db5756e84c7f55))
2168-
2169-
21702185
- **(preset-env)** Update `browserslist-rs` ([#9918](https://github.com/swc-project/swc/issues/9918)) ([606ffe5](https://github.com/swc-project/swc/commit/606ffe51ea8c4108878264da3934ec3edd8f4ff7))
21712186

21722187
### Performance
@@ -2188,9 +2203,6 @@
21882203

21892204

21902205

2191-
- **(es/minifier)** Make `minify-all` example sequential ([#9912](https://github.com/swc-project/swc/issues/9912)) ([5b5c87e](https://github.com/swc-project/swc/commit/5b5c87e72480638ae382d519980302702e333305))
2192-
2193-
21942206
- **(hstr)** Remove needless operations ([#9964](https://github.com/swc-project/swc/issues/9964)) ([6f781d8](https://github.com/swc-project/swc/commit/6f781d8fd49f40bab300907eee8227a0a9d434b9))
21952207

21962208

@@ -2199,6 +2211,4 @@
21992211

22002212
- Apply all pending breaking changes ([#9966](https://github.com/swc-project/swc/issues/9966)) ([1c2f7e9](https://github.com/swc-project/swc/commit/1c2f7e9db7a12ba55875d99e896328db2af62c0f))
22012213

2202-
## [1.10.9] - 2025-01-21
2203-
22042214
<!-- generated by git-cliff -->

0 commit comments

Comments
 (0)