chore(deps): update swc #19
Reference in New Issue
Block a user
Delete Branch "renovate/swc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
1.15.8->1.15.330.5.18->0.5.21Release Notes
swc-project/swc (@swc/core)
v1.15.33Compare Source
Bug Fixes
(ci) Update rand lockfile entries (#11827) (7988966)
(es/minifier) Fold unary bool nullish coalescing (#11826) (e39ae3d)
(es/minifier) Preserve for-init sequence order (#11837) (16a56d0)
(es/parser) Parse empty Flow exact object type (#11836) (3d18a26)
Features
v1.15.32Compare Source
Bug Fixes
(es/flow) Fix Flow type-only modules in script transforms (#11817) (be38316)
(es/flow) Avoid restoring module context when flow syntax is enabled (#11819) (3ed7243)
(es/minifier) Preserve frozen spread registry keys (#11825) (347181c)
(es/parser) Align Flow generic arrow JSX disambiguation (#11821) (28a7fad)
Features
jsc.preserveSymlinkstoswc::Options(#11813) (fe38342)v1.15.30Compare Source
Bug Fixes
(deploy) Fix musl binding test workflow (#11804) (c30a522)
(deploy) Build package ts before Linux GNU binding tests (#11806) (a3d3ef3)
(es/jsx) Preserve quoted JSX attribute newlines (#11796) (9fe56c8)
(es/minifier) Support full ES version parsing in minify (#11800) (af1f08f)
(es/module) Add opt-in symlink-preserving resolver (#11801) (6028240)
(es/parser) Allow return type annotation on Flow constructors (#11790) (d66b29c)
(es/parser) Support Flow anonymous keyof indexers (#11792) (452c4e5)
(es/parser) Add Flow strip RN and RNW regression corpus (#11799) (23a9109)
Documentation
Features
v1.15.26Compare Source
Bug Fixes
(es/decorators) Preserve super in moved static members (#11781) (778328e)
(es/decorators) Scope moved static super rewrite (#11782) (f73cacc)
(es/parser) Parse mixed Flow anonymous callable params (#11786) (05e7b69)
(es/transforms) Rewrite class references in non-static members (#11772) (fff1426)
(es/typescript) Handle TypeScript expressions in enum transformation (#11769) (85aa4a8)
Documentation
Features
(swc_common) Add SourceMapper.map_raw_pos (#11777) (7d2e94c)
(swc_config) Add Hash/Eq for options and CachedRegex (#11775) (86a4c38)
Performance
Refactor
Build
rustctonightly-2026-04-10(#11783) (6facc79)v1.15.24Compare Source
Bug Fixes
(es/decorators) Scope 2023-11 implicit-global rewrite to decorator-lifted exprs (#11743) (1c01bbb)
(es/minifier) Handle
toExponential(undefined)(#11583) (cd94a31)(es/minifier) Cap deep if_return conditional chains (#11758) (a92fa3e)
(es/minifier) Inline prop shorthand in computed props (#11760) (71feafb)
(es/parser) Parse key Flow forms from #11729 (phase 1) (#11733) (886fe53)
(es/parser) Close remaining Flow parser gaps for #11729 (phase 2) (#11740) (8d36f05)
(es/regexp) Preserve source for wrapped named groups (#11757) (7e56fe5)
(html/codegen) Keep
for span-parent paragraphs (#11756) (ede9950)(swc_common) Make
eat_byteunsafe to prevent UTF-8 boundary violation (#11731) (669a659)Features
(es/minifier) Remove useless arguments for non inlined callee (#11645) (bab249e)
(react-compiler) Advance SWC parity for upstream fixtures (#11724) (468da70)
(react-compiler) Tighten core validation parity for upstream fixtures (#11734) (7e2cf8d)
(react-compiler) Improve SWC parity for early-return and hooks validation (#11738) (4739c58)
(react-compiler) M1 memo validators + lint gating alignment (#11739) (7e1ad26)
(react-compiler) Improve Stage A diagnostic parity and validation aggregation (#11745) (0e2075e)
(react-compiler) Continue swc parity for dependency handling (#11747) (83688c8)
Refactor
(es/minifier) Inline usage analyzer and remove crate (#11750) (7d8d11b)
(react-compiler) Remove compiler impl and keep fast_check (#11753) (f21d336)
Ci
Add manual Publish crates workflow (#11763) (169c961)
Add misc npm publish workflow (#11764) (236eff0)
v1.15.21Compare Source
Bug Fixes
(cli) Honor externalHelpers=false in rust binary (#11693) (1be052e)
(cli) Skip mkdir when --out-file targets the current directory (#11720) (f3f4e51)
(es/decorators) Resolve 2022-03 issues #9565/#9078/#9079 and add regressions (#11698) (a025d2b)
(es/fixer) Wrap new opt chain (#11618) (fdcd184)
(es/flow) Normalize module await bindings for Hermes parity (#11703) (73d8761)
(es/minifier) Fix compatibility for Wasm plugin (
swc_ast_unknown) (#11641) (abd0e45)(es/module) Preserve explicit index.js import path when baseUrl is set (#11597) (830dbeb)
(es/module) Avoid rewriting unknown relative extensions (#11713) (ed09218)
(es/regexp) Implement transform-named-capturing-groups-regex (#11642) (f62bfa9)
(es/types) Add new options types (#11683) (62eeee1)
(malloc) Fallback to system allocator on linux gnu s390x/powerpc (#11606) (e103fac)
Update lz4_flex to resolve RUSTSEC-2026-0041 (#11701) (7528507)
Documentation
(agents) Improve guidance (#11626) (1cdfec9)
(agents) Add AGENTS two-pass rules for es crates (#11634) (12af4a1)
Move parser design guidance into AGENTS.md (#11600) (e6e91a3)
Clarify workaround comment requirement in AGENTS (#11700) (e2ad6f6)
Features
(bindings) Add linux ppc64le and s390x support across npm bindings (#11602) (357255d)
(bindings) Enable flow strip support in @swc/core (#11696) (93da89a)
(cli) Enable Flow strip support in swc_cli_impl (#11705) (0ea9950)
(dbg-swc) Add flow strip verification command (#11706) (77b7854)
(es) Add
swc_es_codegenforswc_es_ast(#11628) (c282d86)(es) Add 2-pass transformer and minifier crates (#11632) (f70a4b7)
(es) Add TypeScript + React transforms and tsc corpus tests (#11635) (09a5d8d)
(es/helpers) Prevent recursive instanceof helper transforms (#11609) (cb755a3)
(es/parser) Add
with_capacityforCapturing(#11679) (60df582)(es/parser) Add flow syntax mode and strip integration (#11685) (015bbe8)
(es/parser) Finish flow strip support for core syntax gaps (#11689) (584a12f)
(es/parser) Extend flow declare export strip compatibility (#11691) (a8315aa)
(es/parser) Support Flow declare export default interface strip path (#11692) (588577c)
(es/parser) Add Hermes Flow parity harness and fixes (#11699) (918b6ac)
(es/parser) Complete Hermes Flow stripping parity (#11702) (f041f4c)
(es/proposal) Add decorators 2023-11 support (#11686) (e96eb6a)
(es/react-compiler) Scaffold SWC port of Babel entrypoint (#11687) (4a1d3ce)
(es/react-compiler) Phase1 crate API baseline and fixture harness (#11690) (31364dc)
(es/react-compiler) Strict upstream parity finalization (crate-only, WIP) (#11697) (a3994aa)
(es/react-compiler) Advance strict upstream parity (#11709) (9b3abe0)
(es/react-compiler) Advance upstream fixture parity pipeline (#11716) (33fe6f2)
(es/semantics) Add scope analysis and statement-level cfg (#11623) (86815b1)
(es_parser) Complete parity suite with zero ignores (#11615) (ee3fdd5)
(es_parser) Complete internal parser wiring without ecma runtime dep (#11622) (1c51891)
(es_parser) Expand benchmark corpus (#11633) (ff3adef)
(react-compiler) Advance SWC upstream fixture parity (#11718) (e8d1696)
(react-compiler) Improve lint rename and gating parity (#11721) (5f89ee7)
(swc_es_parser) Enforce full parity suite and extend grammar surface (#11611) (585f7d0)
(swc_es_parser) Complete lossless modeling for with/TS module/decorators (#11613) (59b1189)
(swc_es_parser) Close parity gaps with full core/large fixture pass-fail parity (#11614) (3085f52)
Complete core parity parser coverage (#11603) (18e0edc)
Performance
(es/modules) Avoid export sort key clones (#11669) (e74e17d)
(es/parser) Reduce JSX identifier rescan allocations (#11671) (f9214fe)
(es/parser) Optimize underscore stripping in numeric literal hot path (#11670) (874338b)
(es/transformer) Remove O(n^2) statement mutation hotspots (#11672) (bdc24b7)
(es_parser) Byte-search lexer optimization pass (#11616) (607f2db)
(es_parser) Reduce lookahead and allocation overhead (#11673) (becd9b0)
(ts/fast-strip) Avoid token capture in default transform path (#11668) (06aa0db)
Refactor
Testing
(es/flow) Add flow strip corpus correctness test (#11694) (cd5ed81)
(es/parser) Enforce full ecma fixture parity (#11637) (0bf8a46)
(es/parser) Expand flow strip fixture coverage (#11695) (e231262)
(es_parser) Add core snapshot suite (#11617) (23c56fe)
(es_parser) De-arenaize ecma_reuse fixture snapshots (#11639) (aa6727a)
(es_parser) Recover swc_es_parser benchmark coverage (#11640) (0f24ee1)
Expand swc_es_parser snapshot suites (ecma-style) (#11621) (325170f)
Move TS decorator fixtures out of proposal crate (#11723) (e29d58c)
Ci
Bump cargo-mono to 0.5.0 (#11605) (7118713)
Remove --no-verify flag from cargo mono publish (02eb5ec)
Optimize cargo-test matrix with cargo mono changed (#11681) (99e61c4)
Bump cargo-mono to 0.5.3 (#11722) (b5272af)
Install zig for core ppc64le/s390x nightly cross builds (#11725) (09c4be0)
v1.15.18Compare Source
Bug Fixes
Documentation
Add AGENTS note about next-gen ast (#11592) (80b4be8)
Add typescript-eslint AST compatibility note (#11598) (c7bfebe)
Features
(es/ast) Add runtime arena crate and bootstrap swc_es_ast (#11588) (7a06d96)
(es/parser) Add
swc_es_parser(#11593) (f11fd70)Ci
v1.15.17Compare Source
Documentation
Features
(bindings) Add html wasm binding and publish wiring (#11587) (b3869c3)
(sourcemap) Support safe scopes round-trip metadata (#11581) (de2a348)
Emit ECMA-426 source map scopes behind experimental flag (#11582) (2385a22)
v1.15.13Compare Source
Bug Fixes
(errors) Avoid panic on invalid diagnostic spans (#11561) (b24b8e0)
(es/helpers) Fix
_object_without_propertiescrash on primitive values (#11571) (4f35904)(es/jsx) Preserve whitespace before HTML entities (#11521) (64be077)
(es/minifier) Do not merge if statements with different local variable values (#11518) (3e63627)
(es/minifier) Prevent convert_tpl_to_str when there's emoji under es5 (#11529) (ff6cf88)
(es/minifier) Inline before merge if (#11526) (aa5a9ac)
(es/minifier) Preserve array join("") nullish semantics (#11558) (d477f61)
(es/minifier) Inline side-effect-free default params (#11564) (1babda7)
(es/parser) Fix generic arrow function in TSX mode (#11549) (366a16b)
(es/react) Preserve first-line leading whitespace with entities (#11568) (fc62617)
(es/regexp) Transpile unicode property escapes in RegExp constructor (#11554) (476d544)
Documentation
Features
(es/minifier) Add
unsafe_hoist_static_method_aliasoption (#11493) (6e7dbe2)(es/minifier) Remove unused args for IIFE (#11536) (3cc286b)
Refactor
(es/parser) Compare token kind rather than strings (#11531) (5872ffa)
(es/typescript) Run typescript transform in two passes (#11532) (b069558)
(es/typescript) Precompute namespace import-equals usage in semantic pass (#11534) (b7e87c7)
Testing
(es/minifier) Add execution tests for issue #11517 (#11530) (01b3b64)
Disable
cvaecosystem ci temporariliy (55bc966)Ci
Reset closed issue and PR milestone to Planned (#11559) (d5c4ebe)
Add permission (431c576)
v1.15.11Compare Source
Bug Fixes
(es/codegen) Emit leading comments for JSX elements, fragments, and empty expressions (#11488) (1520633)
(es/decorators) Invoke addInitializer callbacks for decorated fields (#11495) (11cfe4d)
(es/es3) Visit export decl body even if name is not reserved (#11473) (9113fff)
(es/es3) Remove duplicate code (#11499) (fbee775)
(es/minifier) Treat new expression with empty class as side-effect free (#11455) (a33a45e)
(es/minifier) Escape control characters when converting strings to template literals (#11464) (028551f)
(es/minifier) Handle unused parameters with default values (#11494) (6ed1ee9)
(es/module) Preserve ./ prefix for hidden directory imports (#11489) (a005391)
(es/parser) Validate dynamic import argument count (#11462) (2f67591)
(es/parser) Allow compilation with --no-default-features (#11460) (b70c5f8)
(es/parser) Skip emitting TS1102 in TypeScript mode (#11463) (e6f5b06)
(es/parser) Reject ambiguous generic arrow functions in TSX mode (#11491) (ac00915)
(es/parser) Disallow NumericLiteralSeparator with BigInts (#11510) (6b3644b)
(es/react) Preserve HTML entity-encoded whitespace in JSX (#11474) (7d433a9)
(es/renamer) Prevent duplicate parameter names with destructuring patterns (#11456) (e25a2c8)
(es/testing) Skip update when expected output has invalid code (#11469) (2be6b8a)
(es/typescript) Don't mark enums with opaque members as pure (#11452) (b713fae)
(preset-env) Distinguish unknown browser vs empty config (#11457) (1310957)
Documentation
Features
(cli) Add --root-mode argument for .swcrc resolution (#11501) (b53a0e2)
(es/module) Make module transforms optional via
modulefeature (#11509) (b94a178)(es/regexp) Implement unicode property escape transpilation (#11472) (a2e0ba0)
(es/transformer) Merge ES3 hooks into swc_ecma_transformer (#11503) (5efcac9)
Miscellaneous Tasks
Performance
(bindings) Optimize string handling by avoiding unnecessary clones (#11490) (81daaaa)
(es/codegen) Make
commit_pending_semiexplicit inwrite_punct(#11492) (5a27fc0)(es/es2015) Port ES2015 transforms to hook-based visitors (#11484) (a54eb0e)
(es/es3) Use hooks pattern for single AST traversal (#11483) (a139fba)
(es/minifier) Use combined AST traversal (#11471) (c611663)
(es/transformer) Add inline hint (#11508) (d72c9df)
Refactor
Testing
(es/minifier) Add test case for
merge_importsorder preservation (#11458) (b874a05)(es/parser) Add error tests for import.source and import.defer with too many args (#11466) (7313462)
(es/parser) Check
handler.has_errors()in test error parsing (#11487) (fade647)Replace deprecated
cargo_binfunction withcargo_bin!macro (#11461) (73f77b6)v1.15.10Compare Source
Bug Fixes
(ci) Handle merged PRs separately in milestone manager (#11409) (3554268)
(es/compat) Preserve this context in nested arrow functions (#11423) (f2bdaf2)
(es/es2017) Replace
thisin arrow functions during async-to-generator (#11450) (a993da6)Features
(bindings/wasm) Enable ecma_lints feature to support semantic error detection (#11414) (1faa4a5)
(es/hooks) Implement VisitMutHook for Either type (#11428) (395c85e)
(es/hooks) Implement VisitMutHook for Option (#11429) (0bf1954)
(es/hooks) Add VisitHook trait for immutable AST visitors (#11437) (3efb41d)
(es/minifier) Improve nested template literal evaluation (#11411) (147df2f)
(es/minifier) Remove inlined IIFE arg and param (#11436) (2bc5d40)
(es/minifier) Remove inlined IIFE arg and param (#11446) (baa1ae3)
Miscellaneous Tasks
(deps) Update
rkyv(#11419) (432197b)(deps) Update lru to 0.16.3 (#11438) (67c2d75)
(deps) Update browserslist-data to v0.1.5 (#11454) (e9f78f0)
(helpers) Replace MagicString with ast-grep's built-in edit API (#11410) (a3f0d33)
(hstr/wtf8) Address legacy FIXME comments by switching to derives (#11416) (f03bfd8)
Performance
(es/codegen, es/utils) Migrate to dragonbox_ecma for faster Number::toString (#11412) (b7978cc)
(es/react) Optimize JSX transforms to reduce allocations (#11425) (2a20cb6)
Refactor
(es) Improve TypeScript transform configuration structure (#11434) (f33a975)
(es/minifier) Migrate MinifierPass to Pass trait (#11442) (a41e631)
(es/minifier) Improve tpl to str (#11415) (0239523)
(es/react) Port to VisitMutHook (#11418) (9604d9c)
(es/transformer) Remove OptionalHook wrapper in favor of Option (#11430) (72da6bd)
(es/transforms) Migrate TypeScript transform to Pass trait (#11439) (dd007c6)
Testing
(es) Enable benchmark for
swc(#11420) (3a50a25)Disable LTO for benchmarks (#11421) (af3c2d3)
Use rstest as the test framework (#11417) (fae258f)
Ci
claude[bot]PR review comments (affb6a2)swc-project/swc (@swc/helpers)
v0.5.21Compare Source
v0.5.20Compare Source
v0.5.19Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Renovate Bot.
e2484852fftod14d152540