Packages

@next/codemod

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

Your version

10.0.0

major27 Oct 2020Where it was published

10.2.3 is the newest release of 10.x.

In short

1 removed1 security20 new19 fixed36 changed28 internal

  • Removed

    Remove multi-host support for image component and support quality pass-through

  • Security

    Update resolve-url-loader to fix vulnerability

Release note

Core Changes

  • Add handling for domain to locale mapping

  • Make sure locale detecting is case-insensitive

  • Fix a couple i18n cases

  • Font optimization for webpack 5

  • Allow pages to be async modules to enable top-level-await

  • Update redirect handling for locale domains

  • Image component foundation

  • Resolve to real path before checking for path inequality

  • Handle preferring default locale over accept-lang preferred locale

  • Add locale prop for transitioning locales client side

  • Make sure that params are properly passed to hybrid amp pages

  • Add i18n items to routes manifest

  • Add support for returning 404 from getStaticProps

  • Ensure i18n support with AMP

  • Call Web Vitals reporting at correct time

  • Fix initialRevalidateSeconds manifest field with i18n

  • Add support for Image Optimizer

  • Add missing next/image package file

  • Only load plugins with @next prefix

  • Update default configuration to match image optimization

  • Fix width param name for Image Optimizer

  • Unify config.image.breakpoints to config.image.sizes

  • Improve types for Image Component

  • Add perf data experiment

  • Make sure w parameter is only included when a width is provided.

  • Image component lazy loading

  • Make sure animated assets aren't de-animated by optimizer

  • Fix types for lazy image component

  • Update to postcss-loader 4.0.2.

  • Update handling for relative files in image-optimizer

  • Ensure correct default locale is detected for domain locale

  • Removed

    Remove multi-host support for image component and support quality pass-through

  • Add width and height props to Image component

  • Ensure root index GSP page's revalidate is recorded

  • Security

    Update resolve-url-loader to fix vulnerability

  • Pass locales to getStaticPaths for i18n

  • Add unsized property to Image component

  • Fix css dependency in /_error

  • Move sharp to optionalDependencies

  • Update to PostCSS 8.

  • Update peerdependency to account for React 17

  • Upgrade to Chokidar 3.

  • Upgrade @ampproject/toolbox-optimizer

  • Fix precompiled code

  • Image Component: Support for Akamai image CDN

  • Fix Image component defaults & remove autoOptimize

  • Fix merge conflict

  • Update fallback 404 handling to prevent reload loop

  • Make lazy-loading the default for next/image

  • Add locale false handling

  • Bypass image optimization for vector images

  • Add support for string width/height on Image component

  • Fix flashing of no-src image when using next/image

  • Ensure 404 with SSG is rendered correctly with notFound

  • Update use-subscription to account for React 17 peerDependency

  • Separate config into deviceSizes and iconSizes

  • Add config limit checks for image optimizer

  • Fix Image srcset to ensure the component's width is the largest possible image

  • Add next/image default loader errors

  • Image Optimization API should 404 when loader is not default

  • Adjust configuration option placement

  • Remove unstable_ prefix from unstable_blocking

  • Fix browser back issue of redirects from getServerSideProps / getStaticProps

  • Add support for notFound in getServerSideProps

  • Improve type for GSP return type

  • Remove unstable_ prefix from unstable_redirect

  • Re-add domain locale redirect handling

  • Remove unstable_ prefix from unstable_notFound

  • Add fetching 404 SSG data on fallback notFound

  • Expose configured default locale in GS(S)P methods

  • Adjust default image quality to 75

  • Add support number quality on Image Component

  • Rename iconSizes to imageSizes, remove size limitation

  • Record leveraged configs

  • Fix trailing slash for default image loader

  • Ensure getStaticProps is called for SSG 404 in blocking mode

  • Enable feature flag

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.