Packages

@next/codemod

16.4.6 · 9 Nov 2026MIT253.5k / weekRepositoryHomepagenpmAtom feed

Your version

12.1.1

25 Mar 2022Where it was published

12.3.7 is the newest release of 12.x.

In short

2 removed24 new1 faster37 fixed55 changed79 internal

  • Removed

    Remove useMaybeDeferContent hook

  • Removed

    Remove the special _document-concurrent component

Release note

Core Changes

  • rsc: Clean client buffer cache after flushed

  • Ensure config's experimental field exists

  • Only log experiments warning if user actually opted in to an experiment(s)

  • Add unstable_useFlushEffects hook

  • Mock image path as next/image expects it

  • Fix process polyfill on middleware

  • Ensure workers are not left open

  • Leverage existing component checking warning for streaming

  • Fix next/image incorrectly warning for position: absolute parent

  • Removed

    Remove useMaybeDeferContent hook

  • Allow reading request bodies in middlewares

  • Update swc crates

  • react-dev-overlay: Export getErrorByType and add preventDisplay prop

  • Improve next/image warnings to avoid printing more than once

  • Support trailingSlash in middleware SSR

  • Update to latest version of jscodeshift

  • Don't import internally from types in next-env.d.ts

  • Improve type imports in server/render and optimize the Edge SSR loader

  • Remove commons chunk config

  • Add cargo clippy and cargo fmt to CI

  • Fix rsc bootstrap buffer missing in the future renders

  • Match redirect and rewrite destination types

  • Make sure image-config.ts gets transpiled to ES5

  • Normalize image optimizer error status codes

  • Fix CSS Loader Detection False Positives

  • Upgrade @napi-rs/triples to support android arm platform

  • Add proper headers to responses in web server

  • Produce source maps for middlewares

  • Reduce the size of web server

  • Collect telemetry for ESLint rules

  • Refactor entries generation in hot-reloader

  • Integrate tsec into the linting process

  • Add API config to allow disabling response size warning

  • #34030: Ignore non-checkable jsx spread attribute

  • Fix eslint-plugin-react version to avoid jsx-key error

  • #34711 ensure distDir inside project folder

  • Update to ncc dev overlay during build instead of pre-compile

  • Add warning for Yarn PnP v3 with Node.js < 16.14

  • Lock eslint-config-next dependencies

  • Clean-up error when starting next with non-existent dir

  • Ensure unstable_revalidate does not error from notFound: true

  • Update eslint-plugin-react to latest version

  • Fix flight loader for shared components

  • Fix only byte stream writing is allowed in CF workers

  • Only warn styles and scripts under next head in concurrent mode

  • Fix image optimization invalid internal upstream image

  • next-swc: Update swc

  • Simplify next-flight-server-loader

  • Ensure non-matching API routes can be rewritten

  • Optimize component type filters

  • Expose WASM bindings in Middleware

  • Provide page runtime parsing utils

  • Refactor export marks of server components

  • Fix next/image noscript when blur and priority

  • Fix named export missing from client components

  • Adopt react 18 rc1

  • Fix typescript 4.6.2 randomUUID()

  • Update ISR error handling

  • Handle de-duping revalidations in minimal mode

  • Allow dotenv default expansion

  • Support colons in Middleware NextResponse.rewrite path

  • Generate static html for bots

  • Enable import assertion syntax parsing

  • Split up & tweak next/client initialization

  • Normalize root path according to trailingSlash option in default next/image loader #21337

  • Fix animated png bypass from Image Optimization API

  • Watch node_modules

  • trace: Postprocess trace reporter for datadog

  • Fix to not call middleware with shallow push, fix middleware call wit…

  • Fix post request hangs when no body is consumed on middleware

  • hard-navigate when preflight request fails

  • Per-page runtime

  • Delay prefix flushing

  • Change to loadBindings for swc parse

  • Ensure mjs files are transformed with jest

  • Disable the functions manifest plugin

  • Adopt react 18 rc2

  • Convert server.js to module.exports

  • Fix next/image when src is webp but browser doesnt support it

  • Adds try/catch to gracefully handle performance observer exception

  • Render resolved streaming content for static render result

  • next-swc: Update crates

  • Ensure that pages manifest contains pages of both runtimes

  • Removed

    Remove the special _document-concurrent component

  • Adds web worker support to <Script /> using Partytown

  • Add new 'raw' image layout

  • SWC emotion transform plugin

  • enhance: Cover re-exported gsp cases for runtime fallback

  • Make concurrent features independent from the global runtime option

  • Update comments for the web server

  • Add libc fields to Linux platform packages

  • Drop browser field for edge runtime

  • Make router able to navigate between rsc pages

  • Revert "Make concurrent features independent from the global runtime option"

  • Update on-demand ISR to skip fetch locally

  • Use hasConcurrentFeatures instead of reactRoot as the condition of Fizz

  • Abstract out stream related utils from render and web/utils

  • Keep fouc tags for streaming

  • Change the timing for clearing the inlined data buffer

  • document: Accepts nodearray for head's children

  • Update to latest @vercel/nft and leverage new reason types

  • Add test to ensure fs.readFile() works with Output File Tracing

  • next-swc: Embed target triple string

  • telemetry: Report swc target triple to telemetry

  • Update trace ignore check to check reasons correctly

  • SWC import modularization plugin

  • Reduce hello-world middleware bundle size from 128k to 88k

  • Update next/link error when no children are provided

  • Normalize ssgCacheKey for /index with minimalMode de-duping

  • Merge rsc queries handling

  • Upgrade react-server-dom-webpack

  • Fix styled transform in next-swc/emotion

  • Fix next info accidentally printing stderr

Documentation Changes

  • Change showcase url

  • Support pnpm with create-next-app

Misc Changes

  • Add test for multiple cookies coming from middleware

  • Ensure rust-check skips on docs only change

  • Fix create-next-app Multiple calls to the function 'makeDir'

  • Fix react-dom type error in CNA typescript template

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.