Commit Graph

12 Commits

Author SHA1 Message Date
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 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 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 c9c94c5f3f codemod: add async transform for generate viewport (#70917) 2024-10-07 20:25:54 +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