Update swc monorepo - #2971
Conversation
|
|
Visit the preview URL for this PR (updated for commit 7d63d33): https://next-ethlete-sdk--pr2971-renovate-swc-monorep-shkor5cb.web.app (expires Wed, 05 Aug 2026 18:56:08 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 3fd070538c81f46c70093304317ad0e901e1a2b7 |
|
Tick the box to add this pull request to the merge queue (same as
|
a793c89 to
b36f90e
Compare
25d4e3f to
4420207
Compare
4420207 to
aa25523
Compare
aa25523 to
7d63d33
Compare
This PR contains the following updates:
1.11.1→1.12.11.13.5→1.15.470.5.17→0.5.23Release Notes
swc-project/swc-node (@swc-node/register)
v1.12.1Compare Source
v1.12.0Compare Source
swc-project/swc (@swc/core)
v1.15.47Compare Source
Bug Fixes
(es) Preserve numeric property key identity (#12050) (46900a3)
(es/ast) Support hashing non-finite numbers (#12043) (f4b85a6)
(es/codegen) Emit non-finite numeric literals (#12047) (883abc4)
(es/decorators) Avoid class state leakage for nested undecorated classes (#12076) (4c9d277)
(es/minifier) Apply ToInt32 when folding bitwise NOT (#12058) (550e2f7)
(es/minifier) Avoid inexact number radix folding (#12057) (506a0ea)
(es/minifier) Preserve invalid Array lengths (#12056) (3ce9e16)
(es/minifier) Preserve non-canonical arguments access (#12052) (850230b)
(es/minifier) Apply ToUint16 in fromCharCode (#12055) (9ae7b92)
(es/minifier) Index strings by UTF-16 code unit (#12054) (bc263d2)
(es/minifier) Use numeric literals for non-finite values (#12048) (b830786)
(es/minifier) Preserve top-level declarations referenced only by direct eval (#12029) (ad0e3b4)
(es/optimization) Preserve JSON numeric values (#12051) (667af8c)
(es/transforms) Use numeric literals for non-finite enum values (#12049) (1e3ed5c)
(es/typescript) Evaluate cooked enum templates (#12059) (49d0b0f)
(html/minifier) Preserve JSON script boundaries (#12080) (e1877b4)
(testing) Check ignored fixtures relative to crate root (#12073) (da858b4)
(ts/fast-strip) Preserve ASI before interpolated templates (#12040) (54467fe)
(ts/fast-strip) Preserve UTF-16 source positions (#12067) (ac4bfc9)
Features
(es/minifier) Expand support for trivial spreads (#12068) (aa49e36)
(es/react-compiler) Expose
reactCompiler.environment.enableFunctionOutlining(#12030) (52b78aa)Performance
v1.15.46Compare Source
Bug Fixes
(deps) Update crossbeam-epoch to 0.9.20 (#12004) (fababa1)
(es/fixer) Normalize for-head ident patterns (#11968) (af681bc)
(es/fixer) Preserve parens around PURE-annotated receivers (#12022) (73d8941)
(es/hygiene) Ignore eval in default hygiene pass (#12003) (dd43ad6)
(es/minifier) Eliminate unused classes with cyclic references (#11963) (63a94b9)
(es/minifier) Preserve switch fallthrough termination (#11971) (a5d19ae)
(es/minifier) Check last case (#11972) (060c7ac)
(es/minifier) Disable IIFE invoke when there's eval (#11984) (eabe4be)
(es/minifier) Invoke IIFE when has eval (#11987) (457df11)
(es/minifier) Make Infect Collect collect every used ident (#11998) (fb9ebee)
(es/minifier) Measure number length precisely (#12026) (54d139a)
(es/module) Rewrite
.tsximports to.jsunless JSX is preserved (#11995) (c341d9c)(es/module) Rewrite SystemJS transform (#11996) (2f47530)
(es/modules) Resolve relative symlinked inputs from cwd (#11883) (01e857d)
(es/react) Emit jsxdev source for fragments (#11993) (a70ce24)
(es/react-compiler) Correct catch and parameter scope resolution (#11985) (3867e57)
(react-compiler) Remove React-like prefilter (#12007) (ab66869)
(ts/fast-strip) Handle generic arrow line breaks (#12034) (3d82701)
Documentation
Features
(bindings) Add
lint/lintSyncAPI to@swc/react-compiler(#11965) (ab4ce67)(es/minifier) Remove unused param for new Function or Class Expr (#12017) (be56e09)
(es/minifier) Remove unused param for new expr (#12027) (661067c)
(wasm) Add @swc/nodejs-support-wasm (#11975) (b617562)
Refactor
(es/helpers) Generate inline helpers from canonical ESM sources (#12006) (f36e4b6)
(es/helpers) Remove unused jsx helper (#12009) (ccbc906)
(es/lexer) Remove smartstring dependency (#12013) (d6833cc)
(es/minifier) Remove ProgramData.top (#12031) (a72571f)
(es/module) Align module transform records with spec terms (#11992) (f680df5)
(es/module) Introduce source module lowering pipeline (#11999) (9609b7f)
Remove direct rkyv dependencies (#12010) (5761a2b)
Testing
Build
Ci
Allow publish milestone PR updates (#11960) (885d3e2)
Allow memmap2 advisory (#11961) (0be5872)
Update rust-toolchain action pin (#12021) (78b41b5)
Use Node.js 24 by default (#12035) (d658d08)
Update rust-toolchain action pin (#12036) (d1a1e23)
Use Node.js 24 for wasm publishing (#12038) (516bf3c)
v1.15.43Compare Source
Bug Fixes
(es/es2022) Correct scope for private property brand checks (#11953) (fb5afa2)
(es/minifier) Preserve
cookedwhen concatenating template literals (#11939) (a7244a6)(es/minifier) Gate Number(x) -> +x on unsafe flag (#11944) (#11949) (6176019)
(es/parser) Parse Flow bare renders types (#11929) (a71c8eb)
(es/parser) Allow no-default builds (#11956) (baab240)
(es/react-compiler) Skip TypeScript
thispseudo-params in scope collector (#11940) (9066c43)(es/react-compiler) Scope ClassStaticBlock and TsModuleBlock as var boundaries (#11943) (1ee74a0)
(react-compiler) Avoid reporting non-fatal success errors as diagnostics (#11951) (cb4cb23)
(react-compiler) React compiler AST conversion for wrapped assignment targets (#11952) (fc9b453)
(react-compiler) Disable parser default features (#11957) (75ddb28)
Documentation
Features
(es/react-compiler) Add React Compiler (#11917) (b182fbd)
(swc) Gate react compiler re-export (#11941) (dcc0f2d)
Miscellaneous Tasks
Refactor
(es/react-compiler) Preserve TS metadata during AST roundtrip (#11950) (9c4dec3)
Remove production tracing hooks (#11945) (0dffdc4)
v1.15.41Compare Source
Bug Fixes
(bindings/node) Preserve source context for AST transforms (#11920) (b6dfa74)
(es/codegen) Emit
export as namespacecorrectly (#11923) (4e1f832)(es/codegen) Emit
export as namespaceminified correctly (#11924) (7157499)(es/compat) Rewrite this in destructuring defaults (#11909) (68af779)
(es/decorators) Delay 2022 decorator initializers after private fields (#11847) (3f1a4f5)
(es/decorators) Handle import types in decorator metadata (#11916) (f411429)
(es/fixer) Preserve new tagged template callee parens (#11922) (242a03a)
(es/minifier) Handle unknown member props (#11927) (e59ba68)
(es/parser) Handle Flow async generic arrows (#11926) (b9b8993)
(es/renamer) Avoid duplicate mangled names across eval scope boundaries (#11913) (4a1af84)
(plugin) Avoid importing __free from env (#11908) (4584296)
(swc) Preserve plugin error context (#11904) (4e2e9fc)
(swc_common) Fix sourcemap panic for multibyte mapping positions (#11918) (40c1601)
Documentation
Performance
Lazily compute source file hashes (#11879) (a3cfbd7)
Optimize Atom equality (#11902) (c6f8cb0)
Revert
(es/decorators) Revert decorator initializer ordering (#11901) (a3f23b1)
(swc_common) Revert sourcemap multibyte mapping clamp (#11919) (08b4200)
v1.15.40Compare Source
Bug Fixes
(es/minifier) Preserve args for destructured callbacks (#11830) (21873b0)
(es/minifier) Avoid generating mangled property names that collide with existing properties (#11839) (9b4fab5)
(es/minifier) Respect ecma for iife temp vars (#11873) (e481934)
(es/minifier) Preserve default parameter object props (#11884) (71ff84f)
(es/parser) Reject object-rest assignment to array/object literal (#11875) (7b57d1f)
(es/parser) Reject object rest assignment to literals (#11881) (4ec2eaf)
(es/react) Exclude self-recursive hooks from refresh dependency array (#11838) (9101c71)
(ts/fast-dts) Strip definite assertions in dts (#11858) (2ab1b8a)
(ts/fast-strip) Reject unsafe assertion erasure in binary expressions (#11828) (aa5b539)
(typescript) Strip parameter binding defaults in dts (#11857) (800bc17)
Documentation
Update agent guidance (#11842) (bf2d015)
Add security policy (#11876) (6c43c2d)
Clarify security scope for npm packages (#11877) (4662db8)
Clarify untrusted input security model (#11882) (5463777)
Features
(es/minifier) Fine grained effect analysis of class (#11814) (c9058ad)
(swc_cli) Implement all features for
swc_cli(#11797) (9300ede)Miscellaneous Tasks
(es/minifier) Fix typo in debug log (#11866) (3de0254)
(html) Add webcontainer fallback for
@swc/html(#11860) (7692eed)Performance
(ecma) Reduce transformer compat overhead (#11856) (d03cb71)
(es/codegen) Speed up JsWriter position and srcmap tracking (#11867) (dbceade)
(es/codegen) Remove JsWriter last_srcmap cache (#11869) (3bc1c2b)
(es/minifier) Reduce minifier profiling hotspots (#11853) (28c1091)
Optimize es parser comment finalization (#11852) (2959ddf)
Testing
Ci
Update corepack in publish docker jobs (#11885) (9a7d954)
Pass publish docker env explicitly (#11888) (c5f7547)
Lock issues closed by merged prs (#11887) (6bd74e5)
Provide aarch64 musl linker in publish job (#11889) (20234fd)
Fix publish musl linker and windows tests (#11890) (a798a23)
Make minifier test path explicit (#11891) (e7cba97)
Security
Save CI caches only on main (#11848) (7582529)
Update rkyv and Rust dependencies (#11851) (20d92eb)
Harden PR workflow permissions (#11849) (e199564)
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](https
Configuration
📅 Schedule: (UTC)
🚦 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 was generated by Mend Renovate. View the repository job log.