swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
ci: update rust-toolchain action pin (#12036) **Description:** Fixes the GitHub Actions Security `zizmor` failure caused by the pinned `dtolnay/rust-toolchain` commit falling out of the action's moving `stable` branch history. Updates all 16 references across seven workflows from `4be7066ada62dd38de10e7b70166bc74ed198c30` to the current `stable` commit, `4cda84d5c5c54efe2404f9d843567869ab1699d4`. The workflows remain pinned to a full commit SHA. Validation: - `actionlint v1.7.12 -color -shellcheck=` - `pinact v3.9.0 run --diff --check --verify` - `zizmor v1.25.2 --min-confidence=high --min-severity=medium` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` **Related issue:** CI failure: https://github.com/swc-project/swc/actions/runs/29674971366/job/88160600240
main
9 minutes ago
ci: update rust-toolchain action pin
kdy1/fix-rust-toolchain-action-pin
13 minutes ago
ci: use Node.js 24 by default (#12035) **Description:** Updates the shared Node.js setup action default from Node.js 20 to Node.js 24. The publish workflow installs `npm@latest` for trusted publishing. npm 12.0.1 now requires Node.js `^22.22.2 || ^24.15.0 || >=26.0.0`, while the shared action default installed Node.js 20.20.2, causing all native package publish jobs to fail with `EBADENGINE`. Explicit Node.js 18 and 20 selections remain unchanged, so compatibility jobs continue to use their requested versions. Validation: - `pnpm exec prettier --check .github/actions/setup-node/action.yml` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` **Related issue (if exists):** CI failure: https://github.com/swc-project/swc/actions/runs/29629925600
main
25 minutes ago
fix(ts/fast-strip): Handle generic arrow line breaks (#12034) **Description:** Handle line breaks between generic arrow type parameters and parameter lists for async arrows and arrows following return, yield, or throw. Move the existing opening parenthesis into the erased type-parameter slot so strip-only output retains its byte length and line layout. **Related issue:** - Closes #12033
main
27 minutes ago
feat(es/minifier): Remove unused param for new expr (#12027) **Related issue:** - Closes #11684
main
29 minutes ago
chore: Add changeset for unused new arguments
Austaras:arity
35 minutes ago
ci: use Node.js 24 by default
kdy1/ci-node-24-default
54 minutes ago
fix(es/fixer): preserve parens around PURE-annotated receivers (#12022) Closes #12019 ## Summary When `paren_remover` unwraps `(/* @__PURE__ */ new Set(x))` inside a MemberExpr, the leading annotation ends up attached to the inner expression. Without the surrounding parens, downstream tools (Rollup, esbuild, minifiers) interpret the annotation as applying to the entire chained call, which can cause `.forEach(cb)` and other side-effecting calls to be dropped by DCE. The fixer now detects a leading `@__PURE__`, `#__PURE__`, or `@__NO_SIDE_EFFECTS__` annotation on the object of a MemberExpr and wraps it in a ParenExpr whose span is dummy so that the annotation is emitted inside the parens. ## Test plan - [x] New fixture test at `crates/swc/tests/fixture/issues-12xxx/12019` - [x] Existing fixture `issues-2xxx/2154/case1` also updated (was affected by the same bug) - [x] `swc_ecma_transforms_base` lib tests - [x] `swc` fixture tests - [x] `swc_ecma_minifier` full test suite - [x] `swc_ecma_codegen` lib tests 🤖 Generated with [Claude Code](https://claude.ai/code) --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
main
1 hour ago
Latest Branches
CodSpeed Performance Gauge
0%
feat(es/minifier): Remove unused param for new expr
#12027
40 minutes ago
9b581ca
Austaras:arity
CodSpeed Performance Gauge
0%
ci: use Node.js 24 by default
#12035
1 hour ago
27b7abc
kdy1/ci-node-24-default
CodSpeed Performance Gauge
+2%
fix(ts/fast-strip): Handle generic arrow line breaks
#12034
16 hours ago
8a31305
fix/issue-12033
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs