@next/codemod
16.4.6 · 9 Nov 2026MIT253.5k / weekRepositoryHomepagenpmAtom feed
12.3.7 is the newest release of 12.x.
In short
22 new1 faster30 fixed34 changed49 internal
Release note
Core Changes
rsc: Remove router injection
Fix
export fromand native modules in server componentnext-swc: Update css parser
Do not add locale prefix to api route on NextURL
Add experimental onlyGenereated flag for unstable_revalidate
Support necessary headers in the web server response
Fix only generated case in minimal mode
Fix req.url of rsc dynamic routes pages gSSP in edge runtime
Reogranize the client component detection utils
Add support for catch-all route params in NextRequest page type declaration
rsc: Mark next head as client component
rsc: Keep static page props
Update to target es5 for use-subscription
Fix text decoding for chunk
Fix symlink and copy logic to
standalonedirectory when usingoutputStandaloneAdds linting rule to avoid assignment to 'module' variable
Fix res.json support for string / null
Update swc
Fix
next/imageusage in most cases ofonLoad()Add support for tsconfig moduleResolution
node | node12 | nodenextFix missing _app component of AppTree in gIP context
NextResponse.json: Pass options to Response
Improve NextApiHandler type for early returns
Fix build activity indicator position
404 page - Responsive color scheme
escapeStringRegexp: Test before replace
rsc: Skip next builtin module when apply loaders
Use finally to clean up seen requests
next-swc/ssg: Less aggressive exports drop
Fix type definition for defaultGetInitialProps
Use renderToStaticMarkup to render documentHTML
Fix flight loader
Add telemetry for image config formats (avif/webp)
Ensure error is cleared for missing global css
next/jest: Allow moduleNameMapper to match before Next.js internal mappings
Add client HMR tracing for debugging
feat:Add support for useDefineForClassFields typescript option
Use fallbackable path module for node and edge runtime
Update swc
next: Use moduleGraph.getIssuer to avoid deprecation warning
Ensure beforeFiles client-side resolving handles dynamic routes
Ensure there is only 1 render pass in concurrent rendering with getInitialProps in
_documentChanges to the beforeInteractive strategy to make it work for streaming
Update swc
Fix failing E2E deployment test cases
Fix
next/imageusage ofonError()Simplify the App and Component handling in render
Do not polyfill node built-in modules on edge functions
Fix to remove webpack message per error
Rework <Link> behavior (backwards compatible)
Fix missing interpolation on next/head exports
Add stitches and material-ui tests for new link behavior + fix TypeScript types when imported
#36435: Apply correct fix
Add process env NEXT_RUNTIME
Fix incorrect asPath with fallback rewrite in minimal mode
Update manual revalidate response cache handling
Pass nextRuntime in webpack context
Support swc parse api in WASM
Use edge compiler for middleware
Update swc
Remove passhref Eslint rule as it's no longer needed with new link behavior
Add string children case for newNextLinkBehavior codemod
Add with-edgedb example
Polish isomorphic path module
Ensure optional params are normalized correctly in minimal mode
Always add height and width prop to image with layout="raw"
Align behavior of SWC transform & transformSync
Add event for swc load failure and attempt patching lockfile
next-swc/wasm: Make span start at 0
Add support for passing ref to next/link with new behavior enabled
Update swc
Refactor base server to get rid of the __server_context hack
Tweak lockfile patching to be eager
Unlock eslint-config-next dependencies
Hoist the desired ReactDOM import expression
Bump styled-jsx to latest
Ensure older lockfile/invalid formats are handled
Adds inline script functionality to
next/scriptforworkerandbeforeInteractivestrategiesFix missing
Content-Lengthheader from Image Optimization APIRefactor Page Paths utils and Middleware Plugin
Reexports styled-jsx JSXStyle in nextjs
Update status code for normalize error
Add pagesDir to Jest transformer
Add tests for routing experiment
Update findPagesDir
Fix swc jest pagesDir config
Fix next node buildin module error message for edge runtime
Handle styled-jsx in newLinkBehavior codemod
Documentation Changes
Revert "Change getStaticProps to getStaticPaths in getStaticPaths docs"
Misc Changes
trace: next/trace to event format converter
Add handling for testing against deployments
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.