Jiwon Choi
b0ba92cbc6
Unify TODO markers for codemods and skip adoption-only codemods for upgrade ( #98560 )
...
### Why?
Async Request API codemods can leave temporary casts that still require
application-specific repairs. Those locations need explicit markers,
while optional feature adoption needs to be distinguishable from
required version migrations.
### How?
Add `@next-codemod-error` comments to temporary `UnsafeUnwrapped*`
casts, with instructions for completing the repair. Preserve documented
ignores and avoid duplicating casts or markers when the transform runs
again. Mark generated Cache Components opt-outs with
`@next-codemod-ignore`, a removal condition and a link to the adoption
guide.
Add `upgrade --skip-adoption` to skip the Cache Components `instant =
false` transform and partial-prefetch adoption cleanup. Required
migrations and normal dependency and bundler selection keep their
existing behavior. Both adoption transforms can still be run explicitly.
2026-09-14 12:36:33 +02:00
Jiachi Liu
82c598206f
codemod: handle children with props and error on bad prop access ( #72293 )
2024-11-05 00:42:15 +01:00
Jiachi Liu
97153cc838
codemod: add separator to the parenthenese expr ( #71993 )
2024-10-29 10:49:37 +01:00
Jiachi Liu
5a54933a5d
codemod: should not transform when param is not used ( #71664 )
2024-10-23 02:36:48 +02:00
Jiachi Liu
a4840e3237
codemod: fix props types modify for type alias ( #71537 )
2024-10-20 15:45:56 +02:00
Jiachi Liu
d62627cecf
codemod: modify props types when arg is prop ( #71516 )
2024-10-19 21:57:36 +02:00
Jiachi Liu
619fb48150
codemod: only turn function to async when no hooks ( #71392 )
2024-10-18 17:58:59 +02:00
Jiachi Liu
1b89b4b988
feat: block compilation on codemod comments and ask to remove ( #71103 )
...
Co-authored-by: 강동윤 (Donny) <kdy1997.dev@gmail.com >
2024-10-11 19:37:38 +02:00
Jiachi Liu
b524c36235
codemod: make parser more comptible ( #71122 )
2024-10-11 15:05:52 +02:00
Jiachi Liu
d9a9a5d6ec
codemod: do not await on invalid prop ( #71089 )
2024-10-10 17:51:05 +02:00
Jiachi Liu
69b95abe35
codemod: if params is awaited then skip ( #71060 )
2024-10-10 01:50:47 +02:00
Jiachi Liu
2c05914fef
codemod: fix type only react import ( #71053 )
...
Co-authored-by: JJ Kasper <jj@jjsweb.site >
2024-10-10 00:15:19 +02:00
Jiachi Liu
a7cd0c01e0
codemod: type cast async api calls in non entry file exports ( #71040 )
2024-10-09 21:59:56 +02:00
Jiachi Liu
81147eec56
codemod: comment on reexport ( #71017 )
2024-10-09 19:44:23 +02:00
Jiachi Liu
6ae92cc939
codemod: leave comment on spread props ( #70979 )
2024-10-09 11:38:38 +02:00
Jiachi Liu
3f3930376e
codemod: unify comments prefix for dynamic api ( #70970 )
...
Co-authored-by: Sebastian "Sebbie" Silbermann <sebastian.silbermann@vercel.com >
2024-10-08 21:07:06 +02:00
Jiachi Liu
f6906fcfc3
codemod: skip promise.all on params ( #70972 )
2024-10-08 20:54:21 +02:00
Jiachi Liu
47030ae23d
codemod: fix missing route transform ( #70959 )
2024-10-08 16:38:45 +02:00
Jiachi Liu
a805a77479
codemod: skip transform when its properly used ( #70936 )
2024-10-08 11:40:36 +02:00
Jiachi Liu
c9c94c5f3f
codemod: add async transform for generate viewport ( #70917 )
2024-10-07 20:25:54 +02:00
Jiachi Liu
5276321a1a
codemod: extend ignore pattern list ( #70906 )
2024-10-07 17:57:17 +02:00
Jiachi Liu
3dbbcadc74
codemod: handle the async api type ( #70785 )
2024-10-04 17:15:13 +02:00
Jiachi Liu
39e06c75a0
codemod: fix merging react imports logic ( #70706 )
2024-10-02 15:55:31 +02:00
Jiachi Liu
f5d2f4cbce
codemod: improve dynamic api codemod cases ( #70593 )
2024-10-01 21:36:55 +00:00
Jiachi Liu
9ff1b8f51e
codemod: improve dynamic API cases ( #70517 )
2024-09-28 20:04:14 +02:00
Jiachi Liu
952ecb2c10
Codemod for Async Request API ( #69572 )
2024-09-23 22:33:11 +02:00