@next/codemod
16.4.6 · 9 Nov 2026MIT253.5k / weekRepositoryHomepagenpmAtom feed
297 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 13.x
13.4.8
3 Jul 2023Auto fill title/images/description from openGraph for twitter if missing
Route Module Updates
typo: Rename var name in comment
For a more detailed summary of recent performance improvements around compilation, please see this comment.
Core Changes
Auto fill title/images/description from openGraph for twitter if missing
Route Module Updates
typo: Rename var name in comment
Support for numeric separators in revalidate config
Support response aborting
Next Build Turbo POC (2)
bugfix: Route interception with dynamic paths
Add edge rendering for app dir for Turbopack
Pages Error Route Module Rendering
Revert "add edge rendering for app dir for Turbopack"
Update cache handling in draft mode
Add esm entry for next/server and alias @vercel/og
Hot reload when conflicted pages detected and when conflicts are resolved
Fix standalone rendering for unmatched _next routes
Add edge rendering for app dir for Turbopack
Type check tests (and convert next-test-utils.js to ts)
Add default modularizeImports that breaks up @mui/icons-material, @mui/material, date-fns, lodash, lodash-es, ramda, react-bootstrap
Move Pages
renderout of serverAdd url to patched fetch response
Correct Flight client's condition for SSR and
createServerReferenceUpdate manual basePath with trailingSlash
Add body parser limit for server actions
Handle 404 errors in HotReload client
Add critical next config value to github info
Fix not-found handling in turbopack
Allow matching against user-agent in rewrites that match headers
Revalidate should be more than a boolean
Rename
serverActionsSizeLimitasserverActionsBodySizeLimitand add docsFix HMR for missing dependencies in next-app-loader
Interception rewrites should support catch-all segments
Remove
execSyncRemove unncessary source matching from loader
Fix
NODE_OPTIONS='--inspect'not running expectedFix tree-shaking for metadata image functions on the Edge runtime
Add
WATCHPACK_WATCHER_LIMIT=20Simplify Flight manifest plugin
performance: Don't compile on hover on dev
Refactor
next-font-manifest-pluginIntroduce eslint rule for async client components
Webpack target should match node engines
Enable compression for Webpack's cache during dev
Only require nextjs-require-cache-hot-reloader related API in dev mode
Build stats should properly report root page size in appDir
Optimize client entry creation
Fix white screen when navigating to pages in certain cases
Fix missing request body in DELETE and OPTIONS Route Handlers
Make stdout blocking on macos
Fix windows fill metadata dynamic path
Support relative url for openGraph.url and itunes.appArgument
next-dev: Add a new experimental flag
next/node-polyfill-web-streams: Fix web stream polyfill for Node v16
node-polyfill-web-streams: Require from stream/web instead of stream
Add retries and clear message to font fetching
performance: Enable minification for the server bundles
Simplify module context invalidation
Reduce the client bundle size of App Router
Fix turbopack mdx import map
Error recovery during turbopack hydration
Ensure
edgeruntime Pages API/App Route handlersAbortSignalaborts on client disconnectAdds payload to server-external-packages.json
next: Improve error for using <Html> outside of document
Support react profiling option for app dir client components
Add cpu-features to server external packages
Add
unstable_getImgPropsexport fromnext/imageFix eslint async client component
Fix modularizeImports with @mui/material
Fix entrypoints.get and entrypoints.stream from turbopack
Optimize next-app-loader file resolution
typedRoutes: Added missing anchor props to LinkRestProps
Export config into functions config manifest
Add shared input filesystem
Make sure DevEx can approve docs PRs / Remove Spaces
Filter invalid image descriptor from metadata images
Fix NextRequest constructor parameters
Update edge-runtime to latest
Increase time and size windows for cached on-demand entries
Avoid disposing middleware and instrumentation hook during development
Update displayed error message for rsc case
Refactor some loaders to be synchronous
Optimize inlined Flight data array format
Revert "Optimize inlined Flight data array format"
Refactor ContentSources to RouteTree
Fix font missing during server HMR
Enable Pages Route Module Rendering for Edge
Ensure non-implicit unstable_cache tags are propagated
Delegate static analyzation task to the router worker
Add default modularizeImports for antd / ant-design/icons / ahooks
Avoid unnecessary
resolveExternalcallsRemove EnvironmentIntention
Env hot reload for RSC pages
Documentation Changes
create-next-app: Consolidate messages to "Would you like to use"
Misc Changes
Fix lockfile
Ensure we run cargo-integration on next change
Ensure metadata test is not affected by other tests
Fix app-hmr-changes.test.ts by updating next-tweet
13.4.7
21 Jun 2023Route Module Updates Redux
Lock down server IPC address
Revert "Route Module Updates Redux"
Core Changes
Route Module Updates Redux
Lock down server IPC address
Revert "Route Module Updates Redux"
Fix bundling of Server Actions
Fix pnpm lock
router: Add layout and other file supports to parallel routes
Next Build Turbo POC
Add edge rendering for app dir for Turbopack
Fix shared action module in two layers
Revert "Next Build Turbo POC (#49942)"
Fix font styles on react dev overlay
Add docs links to RSC errors
Moved new line to warnOnce call
Update id env prefix
router: Support layout/special files as direct children of parallel routes
Use env var to switch next.js to turbopack mode
Revert "add edge rendering for app dir for Turbopack"
Ensure upgrade request has request meta
Revert "Fix standalone not found"
Documentation Changes
typo: Add missing word
typo: Add missing comma
Missing come
Misc Changes
Fix pnpm
ERR_INVALID_THISon Node 20Fix native build
Revert "Fix pnpm
ERR_INVALID_THISon Node 20"
13.4.6
15 Jun 2023Fix windows metadata slashes
Do not merge chunkGroups' CSS files
Add unique search query for RSC requests to be cacable on CDN
Core Changes
Fix windows metadata slashes
Do not merge chunkGroups' CSS files
Add unique search query for RSC requests to be cacable on CDN
Add option for debugging CPU usage
Prefer module fields for RSC server layer
Update
next/headwarning to link to the correct docs pageRevert "Do not merge chunkGroups' CSS files"
Helpful error when
output: exportandnext export -oStrip _rsc query for navigation between app and page
Fix standalone not found
cli: Add all available options to cli commands, format them consistently
Update storybook example (copy from vercel/vercel)
App router hash scrolling should respect scroll-padding
Fix build error about trace file and edge route
Add mikroORM to external package list
Correct build workers perf issue
Remove edge functions tracking in dev server
App router: fix double fetch on prefetch={false}
Invalidate client cache when cookies have changed in Server Actions
turbopack: Enable sassOptions
Route Module Cleanup
Validate i18n locale domain
Incorrect build size outputs for app dir
Simplify server CSS handling
Allow configuring analyzerMode in bundle-analyzer
Revert "Prefer module fields for RSC server layer"
Fix Server Actions compiler
Revert "Route Module Cleanup"
Update Next.js code owners
Fix CSS deploy id case
Update turbopack
Fix shared layer bundling in Edge Runtime
Example Changes
Cypress component testing - fixes #50283
Misc Changes
Fix getting last stable release stats
Fix trigger release step
Ensure swc is copied for release stats
13.4.5
10 Jun 2023Fix static metadata routes runtime when root layout is in edge runtime
Ensure App Router and Pages Router modules can't share chunks
Fix CJS optimizer
Core Changes
Fix static metadata routes runtime when root layout is in edge runtime
Ensure App Router and Pages Router modules can't share chunks
Fix CJS optimizer
Edge runtime with
next/legacy/imageNext.js Turbo build: turbopack-ecmascript-runtime and ChunkData
Eslint not ignoring "/app"
Pages Route Module
Upgrade vendored @vercel/og
Fix runtime:edge with large next.config.js
Rename header conversion functions
Refactor internal modules
Add new build and test workflow
Add
cache-controlheader on 304 responseApp Router: Fix relative query/hash handling in
next/linkand router push/replaceRevert "land: Include charset=utf-8 with x-component Content-Type header"
Optimize Next.js bootup compilation
Fix CSS duplication related problems
Update swc_core and turbopack
Fix global SCSS on Node.js <= 14
Bump @edge-runtime/* package suite
packages/font: Run update-google-fonts script
turbopack: Fix HEAD requests
Add experimental id handling
Fix
@vercel/turbopack-nodetypes (and more turbopack updates)Add new
Google-InspectionTooltoken to known bot UA listEnsure user-installed opentelemetry package has the minimal required version
Remove
cssFilesfieldReduce metadata RSC payload
Fix image loader file emission path for edge runtime
a11y issues in the overlay component (HMR)
next/font: Tolerate missing unused fields in capsize map
Conditional cookies in draft mode
Optimize next-app-loader resolving speed
Improve compile time on large application
next-swc: Reenable filesystem cache
Update fetch dynamic error handling
Shrink the react key size in metadata RSC payload
Bail out of 404 page when favicon.ico doesn't exist
Pages Route Module Rendering
Upgrade edge-runtime dependency
Update id config handling
turbopack: Use tip-of-branch for benchmarks
Fill basic twitter metadata with opengraph when missing
Add layer to module trace
Add additional font-loader spans for tracing
Update react to latest versions
App Router with assetPrefix: /
Polish error page styling
Update next-swc handling for PR stats
Add experimental caseSensitiveRoutes config
Update turbopack
Revert "update turbopack"
Fix shorthand prop wrongly handled in the Server Actions compiler
Revert "Revert "update turbopack""
Update codeowners to use Vercel Spaces
Drop the
chunksfield in the client manifest for SSRInvalidate prefetch cache when a tag or path has been revalidated on the server
Bump @types/node
Pick esm main fields and condition names first for RSC server layer
Bump to
typescript@5.1Move required chunk collection to the upper level
Turbopack next/font/google: Use capsize's xWidthAvg to compute fallbacks
Fix usage of
router.refresh()with Draft Mode in App RouterFix rsc payload fetch failures due to state tree encoding
edge: Use JSON parse instead of inlining the manifests objects
Fix esm module import warning for middleware loader
Updates prettier to latest version.
Ensure headers instance is serialized
Ensure id handling applies for dynamic import in pages
Avoid server insertion react key warning
verbatimModuleSyntax: truesupport in tsconfig.jsonUpdate app router revalidate handling on deploy
Apply optimization to middleware when using babel
moduleResolution: bundlersupport in tsconfig.jsonFix another case with app router revalidation
Remove redundant condition
Documentation Changes
Add missed / at useSelectedLayoutSegment at App routing/Pages and Layout
Misc Changes
Ensure final workflow job always runs
Fix required check job
Ensure swc builds are triggered eagerly
Add hello-world test for pages and app
Add auto labeling for edge team
Add turbo summary artifact for swc builds
Optimize cloning for PR stats
Add ignores to fix jest-haste failures
Fix rust install being skipped when it shouldn't be
Fix workflow check
Fix windows build check
Add corepack env for linkPackages
Add test for hidden form fields at the beginning of a Server Action form
Add max job timeout for build workflow
Fix race condition with publish
13.4.4
25 May 2023Pages Module Transition
Server Actions: Fix member expr in closure captured values
Error in next export when serverActions is enabled
Core Changes
Pages Module Transition
Server Actions: Fix member expr in closure captured values
Error in next export when serverActions is enabled
turbopack: Update renamed SubpathValue
Fix default metadata is missing in root not-found
Always defer close tags to be the suffix of body stream
Fix types of cookies()
Fix client references extraction of CJS exports analysis
Add
x-forwarded-*headers to turbopack rendersRemove node-sass from peerDependencies
Add optional generic parameter to NextResponse
turbopack: Initial sass-loader support
create-next-app: Respecting the user's
init.defaultBranchgit con…Fix navigating on not-found
Fix env variables set in next.config.js
Add warning for edge with force-static
Add missing
draftModetype to GetServerSidePropsContextFix react fetch deduping without next cache
Fix pages react alias
Add the
nodecondition to import resolutionMove debugging variable into useEffect
Refactor webpack loaders
Fix static workers distributing
Ensure NEXT_DYNAMIC_NO_SSR_CODE has a unique name
Added blockfrost-js, lucid-cardano & mongoose package to srvExtPackages to prevent issue #49783 from happening.
Change static path to /_next/static/media
Add special route types to the link type declaration
NODE_OPTIONS='--inspect' in next dev for debugging
Enable more test cases for turbopack
next-swc: Implement CJS optimizer
Fix alias for react-dom/server
Revert "feat(next-swc): Implement CJS optimizer"
Fix free port handling
next-swc: Add CJS optimizer again
Fix edge case in the CJS optimizer
Remove static analysis of
process.envUpdate next start listening to behave consistently
Update server invoke-request
Update unstable_cache key to include args
Add root detection utils
Fix sass handling after refactoring
Alias next/server for edge runtime
turbopack: Serve
_devMiddlewareManifest.jsonfrom routerFix catch-all edge app route
land: Include charset=utf-8 with x-component Content-Type header
Do not apply sass loader on existing loaders
Add missing react-dom/client alias
Fix missing error when using Actions on the client layer without enabling the feature flag
Remove allowlist, only use denylist, enable newly passing tests
Fix SWC loader options for files outside of RSC layers
Example Changes
Use node copyFile for cross-platform support
Misc Changes
Add tracing for turbopack
13.4.3
19 May 2023- Deprecated
next-core: Deprecate custom_ecmascript_transforms
Optimize trace span relationships
Remove old-space-size filtering from dev server
Core Changes
Optimize trace span relationships
- Deprecated
next-core: Deprecate custom_ecmascript_transforms
Remove old-space-size filtering from dev server
Rework client router filter handling
image: Preload should respect referrerPolicy
Fix cookies().set missing in types
Disable
tracing/release_max_level_offfor wasm, tooApply user-defined PostCSS transforms to foreign code
Add @swc/core to server external packages
turbo-binding->turbopack-bindingAdd support for globally providing mdx components to turbopack
Refactor pages structure
Fix conflict when re-exporting multiple Client References
Fix chained
.bindof Server ActionsFix port value for metadataBase
Introduce NextMode
Port sorted-routes.ts to Rust
Move build workers count change behind flag
Update default for appDocumentPreloading config for minimalMode
Add @vercel/og to external server packages
Fix custom server React resolution with app dir and pages both presented
Error in
next exportwhenserverActionsis enabledReset not-found and error boundary when navigating
Revert "Error in
next exportwhenserverActionsis enabled"Warning fetch for
[object Request]specifiedRemove custom handling for prebundled react env
Set cookies followed by
redirect()
Misc Changes
Add trace-to-jaeger to workspace
Fix going back to page after applying hash link
13.4.2
11 May 2023Make sure server component externals only apply to files resolvable by node
Fix link not being GC'd sometimes
Fix issue where nextP is not replaced in searchParams
Core Changes
Make sure server component externals only apply to files resolvable by node
Fix link not being GC'd sometimes
Fix issue where nextP is not replaced in searchParams
Add typescript version to next-info
Remove empty config warning
app-router: Add startTransition call to revalidate dispatcher
Inline static data buffer instead of using fs read
Add link to Server Actions docs.
Replace metadata clone with custom handler in dev
Add request-async-storage to the shared layer
Fix revalidate: false detection in app
Fix metadata image route encoding
Fix actions redirect handling
Restrict
useOptimisticanduseFormStatusAPIs on the server layerFix external rewrite with body
Better error message with an invalid assetPrefix
Fix Node Crypto polyfill
Router.query contains _next when using middleware with dynamic routes
type: Update React.CSSProperties type to Record
Fix server CSS imports and HMR not working properly in specific conditions
Fix HMR support for server layer imported SASS and SCSS
Support
.bindsyntax with Action functionsnext-core: Relay transform plugin
Fix canonical url for dynamic routes
Add experimental compile/generate handling
a11y issues in react-dev-overlay
Add tests for HMR
Add stub Route type for typedRoutes
Add test for appdir referenced images
Allow trace-level logging for non-published release builds
Fix unexpected object mutation while resolving Open Graph
actions: Forward fetch rejections to the action handler
actions: Make cookies.set revalidate
Interception route: fix route groups breaking the referrer computation
Allow export decl with any init value in the actions compiler
Handle unstable_cache in pages
Update cache method handling during build
Fix fetchCache and no-store handling
Interception routes: fix rewrites order
Ensure initialHeaders are normalized
app-router: Add support for parallel routes in useParams
Add puppeteer to external packages list
Add playwright to external package list
actions: Fill prefetchCache with revalidation payload
Rename Turbopack/tasks crates to common prefixes
Add missing config vars into Webpack cache key
misc: Apply PR comments from #49206
Standalone node http server starts accepting requests before next handler is ready
Update links from beta to stable docs.
Misc Changes
Add test case for client sourcemaps
Add test case for #49235
Avoid skipping the required Test Codemods job
13.4.1
5 May 2023actions: Update location header
Fix serving images referenced from app directory
Update dev logs to include request timings
Core Changes
actions: Update location header
Fix serving images referenced from app directory
Update dev logs to include request timings
Support incrementalCacheHandlerPath for standalone output
Apply basePath for metadata image
Fix Server Actions defined in both layers in one entry
Update tags handling during server action redirect
Add experimental verboseRequestLogs flag
Fix require-hook with just pages on deploy
13.4.0
4 May 2023More fluent GraphTraversal API
Fix GlobalError interop and add test case
Add flag to switch to the experimental channel
Core Changes
More fluent GraphTraversal API
Fix GlobalError interop and add test case
Add flag to switch to the experimental channel
Fix extra block element in body
Fixed
next-types-plugincausing Typescript errors when"type": "module"is setFixed middleware's edge-chunks not being copied in copyTracedFiles
Rename
experimentalReactApp router: don't unmount/remount on search param changes
Add draft mode to
next/headersFix
next devfailing for app when__NEXT_DISABLE_MEMORY_WATCHERis setnext-core: Interop non string record values in env
next-core: Support capsize for google font fallback
Make
enableUndici: truedefault and removenode-fetchnext_core: Do not apply user config to internal assets
Update turbopack
Allow to use different blur placeholder modes
Use route metadata to trace in node-file-trace
Fix quoted env vars from next config
Find and handle not-found page in app dir
Update revalidate handling for app
Update turbopack warning
Add validation to server methods
Use ws instead of undici.WebSocket
Add test cases for error handling
Improve test case stability
Optimize non-dynamic metadata routes to static in production build
Allow setting
runtimein layouts in type declarationsTweak app cache handling for paths
Add test case for non-enumerable exports
Skip handler for POST requests when no action ID is found
Fix edge runtime detection from layouts
Fix cross-worker revalidate API
App router: Fix infinite redirect loop in MPA navigation
Only read digest from error instance
Static generate dynamic sitemaps
Remove writing vscode config
Revert "Fix cross-worker revalidate API"
Revert "Revert "Fix cross-worker revalidate API" (#49138)"
ts: Make
ReadonlyHeadersmore compatible withHeadersapp-router: Update prefetch heuristic to traverse until until we hit a loading boundary
Forward response to edge runtime for response modification
Polyfill
Blobfor Node.js < 18Update compilation target of @next/react-dev-overlay
Fix CSS module imports not included in root not-found file
app-router: Fix stale cache handling
Add support for app global and segment 404 pages
Tests for Sass warnings
Ensure latest react-dom types for experimental release channel are used
Update cache methods for app dir
Search for lockfiles to find Turbopack root
Allow webpack config, but warn if no turbo config
Add a generic type for unstable_cache
Fix server component transforms
Fix React channel env missing in custom server
App router: support side effects on server requests
Fix multipart/form-data handling in the Edge runtime
Remove startup message by default
Add test case for bindings in member props
Add test case for App Route cookies
Fix standalone mode with appDir running in a single process
Enable progressive enhanced form actions through decodeAction
Use special annotation for
$$boundif no closure argument is attachedAdd warning for missing metadataBase in social images
Allow override icon rel
actions: Fix redirect on the edge
Update turbopack
Fix incorrect React env in particular case
Add SWC test cases
action: Add Readable.toWeb "polyfill" for node 16
Add missing alias for next/dynamic in app dir
Render app pages with original url
action: Support not found
types: Upgrade react/react-dom types
Fix metadata routes prerender cache for standalone mode
Turbopack alpha -> beta
Enable App Router for all applications
Documentation Changes
Wrong link in docs
Misc Changes
Add test case for file uploads
13.3.4
1 May 2023Ensure app/layout.tsx can export preferredRegion
13.3.3
1 May 2023Fix duplicated Edge Runtime warnings
Update type of preferredRegion
Remove unused context providers
Core Changes
Fix duplicated Edge Runtime warnings
Update type of preferredRegion
Remove unused context providers
Update TS plugin type for
preferredRegionFix CSS ordering issue with HMR
13.3.2
29 Apr 2023Refactor require hooks
Use
decodeReplyFromBusboyin node runtimeDo not suggest adding "use client" if using next/router in app
Core Changes
Refactor require hooks
Use
decodeReplyFromBusboyin node runtimeDo not suggest adding "use client" if using next/router in app
Reland "app-router: new client-side cache semantics"
TS plugin showing warning for
global-errorfile'sresetpropAdd support for draft mode
Compile Next.js core client-side files using default target
Lazy DevHtmlAsset chunk generation
Update naming for Next.js Analytics
Add support for async instrumentation register
Prefer realpathSync.native over realpathSync
Fix issue with instrumentation in a standalone build
Polyfill
FormDatafor Node.js < 18Error on legacy runtime config under app dir
Fix Windows path in route join
Add missing
repositoryprop to package.jsonFix hash apply after server-patch action
Improve typing of resolve metadata
Only track client entry modules in the client reference manifest
Vendor
react@experimentalFix query for app dir in turbopack
Polyfill FormData with edge-runtime primitives
Add async context to server request handler
Fix accessing
strictof undefined inwriteConfigurationDefaultsUpdate turbopack
Fix issues where saving next.config.js too quickly could result in multiple dev servers running at once
Fix scrolling on navigation in app
Implement MutableRequestCookies in server entries
edge: Expose Websocket constructor
Add missing aliases for next/dynamic and next/head
Update the mutableCookies class to accept extra options
Support generate dynamic sitemaps for dynamic routes
Update turbopack
External vercel og for nodejs runtime
Make prefetch not async
Ensure require-hook env is set properly on deploy
Add support for static implicit metadata in turbopack
Update min Node.js version to v16
Fix scrolling when invisible element is targeted
Preload css
Selectively load runtime CSS modules to avoid rule duplication
Ensure PAGE is checked in all cases
Add missing exports for static generation bailout
Change Server Reference creation on client
Upgrade Edge Runtime
Explicit undefined typecheck
Enable CJS annotations for next.js files
turbopack: Parse and propagate
output: 'export'Fixes #48794 : When using pageExtensions like "page.jsx", global css import not working
Fix dynamic routes for generateImageMetadata
Correct some jest types
Error for missing dynamic generated id and refactor metadata image url
- Breaking
Bump minimum Node.js version to 16.8.0
Allow using the
nodejsruntime for route handlers when using turbopackturbopack: Ignore underscore_started path
Use ProxiedAsset instead of css_chunk_root_path to expose RSC CSS chunks
Remove un-necessary undici warnings
Ensure WebSocket is polyfilled for node runtime as well
Support preferredRegion and Support runtime/preferredRegion on layouts
Preload fonts using ReactDOM.preload
Cleanup "started server on" message
Add image metadata for svg
Error when image
width={Infinity}Add test case for esm commonjs interop
Update resolve rule for
@swc/helpersUpdate google fonts
Fix scroll when loading.js/ts is used
Add test case for #48506
Add npm package provenance on publish
Revert "Add npm package provenance on publish (#48693)"
Npm publish provenance permissions
Add missing
repositoryprop to package.json in swc-wasm
13.3.1
21 Apr 2023- Removed
Drop object config export support for app dir
Fix query normalize on edge deploy
Change metadata routes suffix to number and chars
Core Changes
Fix query normalize on edge deploy
Change metadata routes suffix to number and chars
Show error when "next start" is used with "output" config
Update query param prefix to reduce length
turbopack: Bind server to IPv6 loopback
turbopack: Pass ENV vars to route handlers
Parallel routes: fix layout not re-rendering
Fix fallback detection logic when multiple generateStaticParams are needed
Next Cache Telemetry
Remove change leftover from experimental precompiled server
Support og image with edge
Add flag to control app document preloading
Re-land "Vendor
react@experimentalunder anexperimentalReactflag"Add experimental React related warning
Fix next-flight-loader resourcePath in Windows
Enable opening source file in build error overlay
Update next/font/google data
Fix documentation link for transpilePackages in NextConfig
Remove warning for metadataBase fallback
Fix typeof expression in layout router
Shift route-announcer to top of layout parent
Chunking Refactor pt. 2
Opt-into worker mode when appDir is enabled
app-router: Add batching support for RSC router payloads
Interception routes: add new sibling matcher marker + validation
Parallel routes: remove the per-route default 404 handler
Ensure original matcher source is free of mutations
Add suffix to static metadata images
Update metadata interface types
Parallel route: fix payload not being sent on refetch
turbopack: Support initial compiler.emotion / compiler.styledComponents flag
Support alt.txt for static metadata og image
Fix missing favicon when other icon exist
Fix app dir vanilla-extract support
Auto collect custom manifest into metadata
turbopack: Initial mdxrs config support
Refactor shared logic for turbopack-cli
Fix dev case when proxying to self
App router: fix scrolling behaviour for parallel routes
Interception routes: fix support for route groups
Add body to router request to fix socket hang up
Fix dev getStaticPaths/generateStaticParams calling
Update App Route Signature
create-next-app: Add mdx files to tailwind content config
Ensure we handle 204 responses in fetch
Fix fetch cache body handling and update edge-runtime deps
Move normalizing of query for edge
Provide the PORT env var based on server port, update turbopack
Generate image metadata
Allow some more options for Turbopack
Add
pg(Postgres) to server components external packages.Fix turbo cache for @next/env
Consolidate two appDir if branches
Parallel routes: fix catch-all routes taking precedence in dev
Parallel routes: fix next-provided default.js not being resolved if the config doesn't specify .js
Interception routes: support middleware rewrites
Interception routes: fix production rewrites
Parallel routes: fix incorrect optimistic tree when there are multiple parallel routes
Refactor entries.ts
Fix misordered CSS resources
Revert "Re-land "Vendor
react@experimentalunder anexperimentalReactflag""Change
CacheFsmethods to returnBufferApp dir fixes
Rename originUrl to fetchUrl
Make jest config serializable
- Removed
Drop object config export support for app dir
Fix server references handling in the edge runtime
next-swc: Force teardown heap profiler if exists
turbopack/transform_options: Enforce default react runtime
Fixed
image-optimizercrashing when usingoutputFileTracingRemove unused code from
test-packturbo taskFix static opt of routes generation for static metadata files
turbopack: Support modularizeImports next.js config
Update history in useInsertionEffect
Fix instrumentation.js initialization in prod on Vercel
Prefer to use deployment url for metadata routes on production
Fallback to deployment vercel url if metadataBase is not set on prod
Remove expired link resources via MutationObserver during development
Prettier fix for
next-swcFix chunk file names in flight manifest
Adding missing fields to the
ManifesttypeAdd updated app dir cache handling
Upgrade React
Use structured images with metainfo (blur placeholder)
Land reverted fix for chunk file names
Remove amp error in app dir
Add test case for #48583 and ignore hot-update scripts
Exclude app from
_devPagesManifest.jsin turbopackReplace defined values and add
__NEXT_HAS_REWRITESdefineImplement /_next/image for local requests
Add export runtime test for pages and fully remove experimental.runtime
Upgrade
@types/reactto latest 18.xapp-router: New client-side cache semantics
Ensure latest React types for experimental release channel are used
Fix writeConfigurationDefaults.ts to correctly suggest changes in monorepos
Revert "app-router: new client-side cache semantics"
Fix snapshots broken by prettier (also fix .prettierignore)
Reland app-router: new client-side cache semantics
Revert "Reland app-router: new client-side cache semantics"
Example Changes
Adding search field decorator
Misc Changes
Fix stable release start
Allow anyone to approve a lockfile change
Add test coverage for pages edge API routes
Don't build pages before middleware
Fix version bump
misc: Fix flaky prefetch test
Add logs to release job
13.3.0
6 Apr 2023- Removed
Remove experimental fontLoaders option from next.config.js
Add Zod and router state validation
Support default arrow function export in server boundary #46977
Core Changes
Add Zod and router state validation
Support default arrow function export in server boundary #46977
Generate fixed route path for favicon.ico
Update turbopack
Update next/font/google data
Added jsdom & canvas to the external packages list - fixes #46893
Add auto-detection of image/x-icon content type
Exclude 'mdx-bundler' from being bundled in server components
Add /route subpath to metadata static routes
Ensure router.refresh() matches revalidatePath('/') behavior
Reorganize client references manifest
Opt-in to dynamic rendering when reading searchParams
Fix CSS not being bundled in app dir
standalone: Allow configuring KEEP_ALIVE_TIMEOUT via env var
i18n Improvements
Support manifest.json static and dynamic route
Ensure config and fetch revalidate are honored
Add
fetchPrioritytonext/imageSplit app-render functions into separate files
Typo in output:export error messages
Handle different cases of React
fetchPriorityLimit the api surface of
utilParallel routes: fix duplicate dev warning
next/font/local prep: compartmentalize next/font/google
Improve OTEL spans naming
Fix invalid comment in parseParameter function
Add searchParams to leaf cache key
Remove duplicated if statement
Add a .catch to shared router for ssg fetching.
Parallel routes: fix nested routes
Remove unnecessary await in
base-serverWarn about default exports with App Routes
Add better-sqlite3 to server external packages
Change App Route Route Handler signature
Calling turbopack from the next build CLI
Update Turbopack to turbopack-230321.1
Parallel routes: fix HMR refetch issue
Fix bad route path for custom metadata routes
Fix POST fetch request cache heuristic in POST route handler
Only apply metadata dynamic image routes convention for app dir
Marks app paths in dev as supporting dynamic html
Add pretty error for
exportPathMapwithappdirSkip extra swc builds
Simplify moduleProxy alias
Skip warning if there is app directory for
no-html-link-for-pagesruleCatch redirect() in root layout
Add useParams()
Refactor ES chunk evaluate logic into a Runtime trait
Add more spans into OTEL instrumentation to wrap all user defined functions
Support HOC cases in server entries
Support dynamic routes for social images and icons
Fix build spinner in TTY env
Upgrade vendored React to
18.3.0-next-12a1d140e-20230321Add default meta tags to error page
Extend
not-found.jsto catch all unmatched routesAdd optional match support of rewrites and redirects in
typedRoutesSupport dynamic routes for social images and icons
turbopack: Implement streamed middleware
Fix twitter metadata info merging
Improve source mapping of console output and errors
Fix closure and rest params handling in SWC transform
Change
next buildto emit output withoutput: exportError during dev if returning
Responsein pages API routes in Node.js runtimeAdd content hash for dynamic og image routes
Update fetch cache memory handling
Add useReportWebVitals that makes use of web-vitals package
Ignore folders prefixed by underscore (_) in App Router
Finalize HOC support with server entries and add encodeReply & decodeReply
Locale fixes for App Directory
Fix useSelectedLayoutSegments including PAGE
Parallel routes: implement default route + fix bugs on navigation
Add http.route into root otel span
Typo in max cache size error message
Fix other case for useSelectedLayoutSegments
Fix error handling and hanging problems
Restore dynamic directory embedding
Remove head.js
Return null for useParams in pages
Clean up leftover loaders
next-types-plugin: Added support for Route Handlers
Add warning when deopting page into client rendering entirely
Integrating capsize latest
Rename app-render/index.tsx to app-render/app-render.tsx
Remove unused turbo dependencies
Add initial tree shaking refactorings
next/font/local support for Turbopack
Handle unknown platform triples in next-swc
Fix fetch cache config and fetch revalidates
Fix instrumentation not being called on edge in some cases
Implement automatic font fallback support for
next/font/localDocument various structs and methods in next/font
Fix race condition of invalidation
Add test case for nested imports
Underscore Handling Fixes
Move App Route handler logic into bundle
Revert "Move App Route handler logic into bundle"
Make sure the global not found route doesn't conflict with existing /not-found route
Fix robots.txt generation
Fix typescript errors in
next-coreExpose metadata types
Show most recent error first in turbopack error overlay
Move App Route handler logic into bundle
Handle
output: exportwithuse clientProvide Buffer polyfill to client and edge
Image
loaderFilewith edge runtimeUpdate vendored react to 18.3.0-next-85de6fde5-20230328
Improve type of
ExportPathMapnext-types-plugin: Remove unused imports
Resolve browser modules for edge api in turbopack
Revert "Update vendored react to 18.3.0-next-85de6fde5-20230328"
Fix
next-types-plugingenerated files forNode16/NodeNextRevert "Vendor @vercel/og and expose ImageResponse (#47657"
Handle empty
srcprop onnext/imageAdd not found boundary and move head cache to app router
Fix turbopack
_devPagesManifest.jsonon next-siteUpdate MetadataRoute to namespace
Provide default metadataBase for local and vercel deployment
Fix duplicated default metadata tags
Vendor @vercel/og and expose ImageResponse
Turbopack: Fix images.remotePatterns port/protocol serialization
Combine Route Handlers with Route Modules
next-swc: Add compile-time heap profiler flag
Add NEXT_RUNTIME process env to turbopack
Small fixes to copy of Turbopack errors
Correctly handle Set-Cookie headers
Support relative path for metadata alternates urls
Remove
next-corepackage.json dev scriptRestart static paths worker after finishing task
- Breaking
Bump minimum ts version to 4.5.2
Turobpack: Implement Streaming App/API rendering
Update app router filter handling
Improve error message pages for
output: exportAdd consistent import sorting/grouping to rustfmt
turbopack: Ensure ENV values are available in middleware
Fix skipMiddlewareUrlNormalize with i18n
Fix typo in error overlay
Provide full polyfill for process
Turbopack: Use
SharedErrorfor body streamingexport: Make static export work with worker_threads
Skip favicon.js for metadata
Fix module resolving error in tracer
Fix fetchCache config and On-Demand Revalidate handling
Add
computeWorkerKeyto the static optimization workernext-types-plugin: AddParamChecktype only forroute.tsfilesAdded tab and carriage to isWhitespace function to make robust
Fix prefetch only being applied once
Fix failing rust-check
Move modularize imports for next/server to next-swc
Add initial separated route resolving
Fix dev ipc request on node v16
Update render IPC handling
Fill route params for dynamic route metadata images url
Enable context caching for middleware/edge functions in dev
New app routes resolving logic for turbopack
Polish metadata warnings
Memory improvements to static workers
Hide internal fetches OTel traces in dev mode and assert duplicate OTel spans are present only in dev mode
turbopack: Support transform options
Update dev IPC request
Fix type plugin for NX workspaces
Change package path from
gitpkg.now.shtogitpkg.vercel.appTS plugin: ensure error and global-error files are client components
Decrease required open telemetry peer-dependency version
router: Implement route interceptions
Fix issue where NextServer.prepare wouldn't be called when deployed
Add missing
module.hot.acceptcall to server CSS modulesMark resolve issues inside a try block as warnings
Hide not ENOENT errors for not found in ipc server
Update react docs link
turbopack: Defer dev code evaluation until after page render IPC connects
Add test case for alias field
Add test case for ignore modules
Small refactoring to
build/index.tsCompare modules' layer when tracking server CSS changes
Extend type for streamEntrypoints
Add strict next head handling
ChunkingContext refactor pt. 1
Add dynamic parameter marker to router cache key
Vendor
react@experimentalunder anexperimentalReactflagAvoid duplicated error output
Add a warning when using implicit metadata
Fallback to localhost for metadataBase when it's used and missing
Fix app metadata in edge runtime
Auto-restart dev server when next.config.js changes
Unify Request types
Update search params/route params handling on deploy
turbopack: Add vary header to app routes
Check for null before reading value in useParams
Fix metadata nested twitter props rendering
Create unique route path for og under group routes
Allow turbopack HMR to recover from react errors without hard refresh
Implement
Routetype for router APIsIf prefetching detected as app route, pass "as" to handleHardNavigation instead of "url"
Update turbopack
Revert "update turbopack"
Update turbopack
Fix css applying for root not found
Fix code generation for loader tree
Interception routes: re-implementation
Parallel routes: return a 404 when a parallel route does not have a default page/do not match
Update normalize revalidate params for named matches
Handle error case for
output: exportinnext devReport error when using "use server" on module level
Only cache successful fetches
Revert "Vendor
react@experimentalunder anexperimentalReactflag"Replaced Reflect with ReflectAdapter
Documentation Changes
Update capitalization of ISR doc heading
Misc Changes
Added jsdom & canvas to the external packages list - fixes #46893
Add auto-detection of image/x-icon content type
Exclude 'mdx-bundler' from being bundled in server components
Add /route subpath to metadata static routes
Fix generateStaticParams check in app dir
Fix URL anchor position in
going-to-production.mdPrevent
handleDisconnectbeing called twiceFix next/image config injection during static generation
Implement route announcer for app dir
Update README templates in
create-next-appAdd instructions to bug issue template
- Removed
Remove experimental fontLoaders option from next.config.js
typedRoutes: Fixed empty DynamicRoutes or StaticRoutes causing Route to turn into type string
mdx: Export NextMDXOptions interface
Fix #46621 - include status code in cache
Add @feedthejim as a codeowner for docs, examples and errors
Add support for scrolling to hash fragment
Add
output: exportsupport forappDirFix
RenderOptstype importImplement custom Turbopack Next transformers
Implement server entry creation in client layer (#47127
App dir with
next devandoutput: exporttypedRoutes: Fixed files from directories other than pages and app getting into Route
cli: Introduce
--tailwindflagAdd OTEL tests
Handle defaultLocale on client router filter
Fix build issue and future incompatibility
Show error for api route handler with
output: exportFix missing option in
createFromFetchFix failing CI checks
Support passing both closure arguments and parameters
Fix deploy example
Support Node.js core modules in edge runtime
Typo in message for experimental.runtime
Fix loader rule with wrong matching conditions (#47261
Fix contributing.md link in the rendering benchmark
cli: Handle Tailwind CSS +
src/correctlycli: Unify styles/content of templates
Ensure all server entry exports are functions (#47364)Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Don't set git config
features.manyFileson post installcli: Change file name from
route.tstoroute.jsRevert "Support dynamic routes for social images and icons" (#47416
Add test for force-dynamic and catch-all routes (#47418
Add workflow to trigger release
Fix trigger_release workflow type
Add auto labeling for turbopack/the web-tooling team
Add ownership of build folder to Web Tooling team
Fix rust-check
Handle
asyncrequire when importing ESM ininstrumentation.tsRevert "Revert "Update vendored react to 18.3.0-next-85de6fde5-20230328"" (#47700
Add tests for Suspensey CSS
Add test to ensure image generation works in the Node.js runtime
Fix docs only check for test-native-integration
Fix flaky css test and remove unused tests deps
Ensure GH actions tests run for trunk branches
Revert "Test disabling kodiak (#47880)"
Add merge_group actions trigger
Speed up native dev build
13.2.4
10 Mar 2023- Removed
Remove extra exports from filter utils
Check if server error already had its message updated
Support path aliases from
tsconfig/jsconfig
Core Changes
Check if server error already had its message updated
Support path aliases from
tsconfig/jsconfigList unsupported Turbopack config keys
Support named exports for server references
typedRoutes: Fixed StaticRoutes and DynamicRoutes being empty causing invalid syntax
Fix IntelliSense for generateMetadata
Update vendored React packages to next-41110021f
Add request callback in Flight client
distDir in verifyTypeScriptSetup for nextLint
Updates
next/imageeslint message to denote that costs may be incurred.Ensure default config passes schema checks
Use separate workers for webpackBuildWorker
Fix static to dynamic on revalidate
Fix the Next.js router in Turbopack when there are no middlewares
Add build worker exit tracking and enable tests
Support
force-staticon App RoutesAdd viewport field userScalable
Update static build workers
Refactor build context for better plugin state sharing
Support multi title for alternates
Disallow wildcard export in server entries
Add test for router.refresh preserving unaffected segments
Fix originalRequest not available for edge requests
Fix require cache conflict between app and pages
Fix Web app manifests docs
Update client router filter to separate redirects handling
Add support for
output: exportconfigPass through original matcher source in manifest
Use browser navigation when RSC payload fails to fetch
Use set to track CSS imports
Fix middleware notFound: true handling
Only check app/ for no-head-element-rule
Fix redundant TS plugin warning
Correct server reference manifest in prod build
Add argon2 to serverComponentsExternalPackages auto-optOut list
Refactor SWC transform to support named default export
Remove
experimental.runtimeand emit warning when usedtypedRoutes: Fixed type Route resolving to type any
Improve the readability of full page refresh error in dev mode
Port error overlay hydration error to pages directory
Eslint rule for script strategy should work properly in
app/Add NODE_OPTIONS for debugging in next-dev
Misc Changes
Add script to automate updating vendored React version
Ensure app chunk URLs are encoded properly #46749
Support mdx-components file in src directory
Fix middleware 404 prefetch case
Revert "Update vendored React"
- Removed
Remove extra exports from filter utils
Ensure chained middleware rewrites work properly
Add a timeout to next/font/google in dev
Support unnamed default export expression #46888
Add more JSDoc to types
Fix TS plugin showing warning for error file's
resetpropFix conflict dev entry key between app and pages
Revert "Revert "Update vendored React""
Add retry to the hmr acceptance test
Fix
with-jestandwith-jest-babelexample test snapshot failureFix unexpected hoist meta tags by react in app dir
Support default export expression for variables
Support re-exporting unnamed function expression
Support static file robots.txt and sitemap.xml as metadata route
Do not re-assign
process.env
13.2.3
1 Mar 2023typedRoutes: Fixed Webpack crashing without redirects/rewrites
Fix async generateMetadata type in ts plugin
Async Storage Cleanup
Core Changes
typedRoutes: Fixed Webpack crashing without redirects/rewrites
Fix async generateMetadata type in ts plugin
Async Storage Cleanup
Ensure URL can be passed to fetch correctly #46592
Fix static to dynamic error in dev
Add page path to repeated slashes in href error
Implement middleware support for Turbopack
13.2.2
1 Mar 2023ts: Correctly augment
nextwhentypedRoutes: truecssnano-simple: Merge into next repo
Dedupe next/font preload tags
Core Changes
ts: Correctly augment
nextwhentypedRoutes: truecssnano-simple: Merge into next repo
Dedupe next/font preload tags
Print command for current packet manager in @next/font warning
Loader refactoring
Support
server-onlyinside pages/apiImprove next.config.js validation for
imagespropRevert "Support
server-onlyinside pages/api"Add relative app dir field
Update server reference syntax and tests
Fix SWC error wrongly formatted
typedRoutes: Replaced
readFile+replaceAll, hid utils types, fixed duplication in typeRoute, fixed route groups on WindowsEnsure fetch fields are detected with RequestInit
Ensure SERVER_REFERENCE_MANIFEST is included in output files
Fix duplicate link type asset generation
typedRoutes: Export createServer from 'next/types/index.d.ts'
Fix next/font/google config not being used
Add @latest to next/font codemod warning
Add error for styled-jsx in Server Component
Refactor style loader code
Fix SWC's auto_cjs handling
Add theme color media support for metadata
typedRoutes: Fixed 'next' imports on TS < 5.0
Codemod should preserve type only import
Add interactive-widget optional property to Viewport type
Update router filter to be less sensitive
Update fetch cache internal handling
Upgrade precompiled react packages
error-overlay: Hide "Learn more" when up-to-date
Refactor route types to include rewrites and redirects
Added bcrypt to the serverComponentsExternalPackages auto-optOut list
Add support for the src folder for the instrumentation hook
Fix viewport typing and refactor constants
Fix shared entries/invalidators module scope
Fix CSS imports not included in entries with a custom extension
Should not warn when image unmounts
Generate next-env.d.ts file during next lint command
Fix infinite invalidations loop in app dir
Use og:image instead of og:image:url
Fix usage of textDecoder to not break utf8 characters
Fix app client child entry not being disposed when deleting the file
Canonical should allow relative urls
Misc Changes
13.2.1
24 Feb 2023Fix
/having wrong file size in build outputFix client filter case with redirects
Handle same page reload case in filter
Core Changes
Fix
/having wrong file size in build outputFix client filter case with redirects
Handle same page reload case in filter
Misc Changes
cli: Add navigation compat types to default
next-env.d.ts
13.2.0
23 Feb 2023- Deprecated
misc: Deprecate custom config from being passed to next/build (2/6)
Move reducer types into separate file
Move reducers to separate file per action
Core Changes
Move reducer types into separate file
Move reducers to separate file per action
Add support for tsconfig 'nodenext' | 'node16'
Add support for --experimental-app-only
Add shared mutable type in router-reducer
Refactor TS plugin code structure
Fix trailing slash redirect applying for data request
Update robots meta and add verification rendering
Check message type before formatting server error
Fix invalid source maps from terser-webpack-plugin
Add support for navigating to external urls
Export the Metadata type
Add data attributes on @next/font usage
Update error message for dynamic = "error"
Fix metadata alternate and refactor twitter item
Apply traceIgnores to turbotrace
misc: Refactor webpack build out of build/index (1/6)
- Deprecated
misc: Deprecate custom config from being passed to next/build (2/6)
misc: Move entrypoints creation into webpack build step (3/6)
misc: Refactor build context/webpack build step (4/6)
Support generateMetadata export
Split router utils into smaller modules
Improve TS experience for metadata
Make client boundary unserializable props a warning instead of an error
Fix middleware matcher for i18n with negative look ahead
Update SWC transform to attach the export name
Add skipEntries option to turbotrace
Reload on server component change
Add more JSDoc to metadata interface
Fix image blur cover when
fillandblurDataURLImprove error when create root layout fails
Error when exporting AMP config in app dir
Rename precedence
Avoid overwriting pre-existing VSCode settings
Add editor links to module import traces
Separate next/dynamic implementation for app and pages
Refactor navigateReducer to handle mutable consistently
Fix SWC test
Improve swc transforms
Fix AsyncLocalStorage included in the client bundle
Fix invalid sourcemaps in taskfile-swc
Optimize size for the error component
Implement loader and entry creation for server
Emit plugin errors for metadata API in client entries
Refactor server-patch-reducer and refresh-reducer to use applyFlightData and handleMutable
Fix unexpected polyfills in edge-runtime
misc: Fix precompiled script generation
Fix TS plugin completions
Use only 1 worker for type checking and linting
Avoid loading project config multiple times
Add same-origin to fetchServerResponse
Use higher instanceId for redux devtools
Fix issue where layout-router wouldn't auto-scroll if we imported styles or fonts
Avoid injecting the TS plugin if
extendsis usedSupport filebased metadata icon and apple touch icons
Update app dir react for client reference updates
Improve client-only imported in external package error
Picking apple-icon instead of apple-touch-icon
Add
appdir to default linting directoriesSkip prefetching for bots in app-router too
Fix directive parsing in SWC
Add warning for head.js with metadata docs link
Fix missing hasHeader mock during revalidate
Fix CSS loaders in pages when app dir is enabled
Allow
generateMetadatato be synchronousTurbopack experimental fields docs and schema
Allow setting metadataBase for metadata
Add IntelliSense for
generateMetadataEnsure bundle 404 can be rewritten in dev
More explicit errors for invalid exports in SWC
Fix global CSS loader behavior when appDir is enabled
Return a special result when a route can't be resolved
Forward type definition with the TS plugin
Prefix basePath in navigate and prefix methods in app router
Fix applyFocusAndScroll with server patch
Make turbotrace run after the webpack build
Apply module default interop for app-dynamic
Fix displayName prop access for client reference
next-dev: Change cluster usage to child process + stabilise inspect port #45745
Fix type checking for generateStaticParams #45788
Add experimental route type checking
Use text/x-component for RSC response
Update server manifest and entry creation
Disable un-necessary lint rule by default
Update warning links back to new Metadata docs.
Remove unnecessary await when calling findPagesDir
Fix wrong variables assignment
Proper check for plugin in tsconfig
Add status code to app-render redirect response
Static og and twitter image files as metadata
Fix hash in route types
Add tests for parallel routes / interception and handle router state patch merging client-side
Update middleware prefetch handling
next-swc: Enable
ignoreDynamicfor auto_cjsUpdate default tracing root handling
Fix redirect for the root path with i18n and defaultLocale
Use text/plain content-type for RSC responses
Add missing isRootLayout when creating optimistic tree
Disable streaming for
pagesImprove TypeScript plugin for metadata
Upgrade turbopack
Add top-level trace include/exclude config
Add warning when mismatching @next/swc version is being used
Ensure terminal sequence is reset on dev exit
Server Router Improvements
Use details tag in collapsed call stacks
Rename manifest file names
next/navigationTypescript support forpages/Improve server-only imported in external package error
Make app-render error logging less verbose in dev
Proper type for typed
LinkFix app routes on deploy
link: Do not reload when Link is in SVG
Freeze resolved metadata object in dev mode
Improve type checking with tests
Log dev error in Server Router
Stop overriding the user's TS config with defaults during
next buildMetadata fields improvements
Fix windows path while searching matched page path
Skip auto static entries in turbotrace
Use metadata API in automatically created root layout
Add next/font import
Add next/font imports codemod
Add edge support for route handlers
Fix windows paths for invalid import errors
Exclude system entrypoints from client manifest's chunk list
Improve RSC related bundling error messages
Fix folders included in trace
Support edge-light exports when bundling edge functions
Skip collecting modules from page dir in the client reference plugin
Fix metadata manifest field rendering
Remove
swcMinifyDebugOptionsfrom the configSkip including test files in dist
Refactor freezing metadata while resolving and fix title merging
Move initial head
next-image-experimental codemod
Improve generic namings
Fix normalization of .rsc extension
Fix RSC navigation when overriding headers in middleware
@next/font migration warning
Add jsdoc examples to metadata
Make shebangs portable used in the repo portable
Remove stray console.log line (fixes #46027)
Show version staleness in error overlay
Revert part of #45971
Codemod
next/imagewithin monorepoCheck for windows paths in server matchers
Fix export conditions in Webpack config
Add
loader-runnerto compiled packagesFix next/font error parsing on windows
Add
varyheader to responses from pages and Edge SSRFix manifest error when using route.js
Typedroute routes for window
Fix React key warning when using metadata.twitter.images
Detect invalid metadata exports errors in next-swc
Polish metadata interface jsdoc
Speeds O(n^2) execution of detectConflictingPaths
Use tsx parser in built-in-next-font codemod tests
Send correct stats in hot reloader sync event
OpenGraph metadata images rendering
Improve app-render error log with edge runtime
Add instrumentation hook
Update flakey instrumentation test cases
Update added instrument check
Add icon descriptor property media and fetchPriority
Fix "use client" in pages dir errors
Fix client boundary defined in a module
Adding next-multilingual as a new i18n option
Use next/font in create-next-app
Update CI test setup
Add invariant error when the pageData is incorrectly assigned
Fix handle extracted CSS modules without layer info
Add ISR handling for app routes
Fix route.js trailingSlash handling
Fix file name in next/font unresolved import error
Image optimization content-type
Fix turbopack route resolver (#46206
Update flaky dev tests
Fix flaky script test
Update Turbopack to turbopack-230221.3
Don't append domain to absolute urls when using i18n
CNA issues when using
@/in custom import aliasBreakup telemetry test further
Update app dir cache handling
Fix app-dir vary test in deploy mode
Skip build step for docs only change
Don't enable dev watcher when turbopack is used
Fix API route matched as page on Windows in dev
Fix missing metadataBase for static tw,og image resolving
Add OTEL instrumentation for next-server + OTEL example
Fix precompiled of react scheduler
Make build error urls clickable
Add
contentDispositionTypeconfig to Image Optimization APIAdd test for next-found and redirect for metadata
Update turbopack
Remove cache built files step
Skip pre-rendering the default param when no params are provided
Update app-dir react bundle to leverage edge build
Improve type checking
Update Turbopack to turbopack-230222.3
Rename:
OgTypFieldsvariable toOgTypeFieldsAdd client router filter handling
Update app dir cache heuristics
Update app dir cache handling
Example Changes
next-mdx: Mark
mdx-js/*as optional<title> problem in example/blog-starter
Misc Changes
Revert "Fix release stats"
Ensure PATH env matches CI locally
Fix nested example setup with create-next-app
Fix flakey app metadata test
Enable more hydration error overlay tests
Add @jankaifer as codeowner of docs, .github and examples
Fix unsafe caching for isolated tests
Fix error page line height
Fix CNA file initializing order
Support favicon.ico for metadata (#45759
Add additional tests for @next/mdx
Fix flaky rsc-build-error test
Fix flakey app cli output checks
Fix cache built files step
Fix failed cache restoring
Fix adding-exmaples.md doc
Fix flaky invalid import test
13.1.6
28 Jan 2023Add debug info to static bailout message
Fix dynamic no ssr with babel transform
Fix React.lazy preloading during SSR
Core Changes
Add debug info to static bailout message
Fix dynamic no ssr with babel transform
Fix React.lazy preloading during SSR
Fix error overlay links in parenthesis
Add build time error if error.js is missing "use client"
Show component stack in error overlay on hydration error
Reduce component stack spacing for components without metadata
Revert "Revert "Revert "Revert "Initial support for metadata (#44729)"" (#45113)""
Update handling of autoscrolling on navigation in app
Avoid sync re-renders when using next/link and next/image
Support metadata icons field
Add editor links to RSC build error
misc: Change strategy for link prefetch test
Add handling for app/pages manifest race condition
Update transform exports and tests
Attach exports information in SWC transforms
Update app cache handling in development
TS plugin: warn about
ampconfig in appAllow metadata related exports in TS plugin
Improve
fetchstack traces in edge runtimeMove router reducer to separate file
Add next.config.js options currently supported by turbopack
Update debug logs for app cache
Improved
pnpm cleanFix:Manage Firefox and Safari Network error message
Add
pageExtensionsas a supported turbopack optionEnsure we warn for middleware with next export
Add test for fillCacheWithNewSubTreeData
Add test for isNavigatingToNewRootLayout
Remove unused optimistic tree parameters
Ensure invalidateCacheBelowFlightSegmentPath file name is in line with the rest
Resolve metadata fields
Add turbopack route resolve handling
Remove extra .ts from test file
Add test for createOptimisticTree
Clean up resolved todos
Add
turbopackLoadersto config validation
Misc Changes
Add timeout for actions/cache restoring
Add src prefix on index page
Ensure ctrl + c handling works with CNA prompts correctly
Fix turbo cache miss due to depending on gitignored files
Revert "Fix new-error command"
Add docs on how to use MDX with app
Enable JS CNA tests for turbopack
13.1.5
23 Jan 2023Revert "Revert "Initial support for metadata (#44729)""
Update incremental cache handler for minimal mode
Core Changes
Revert "Revert "Initial support for metadata (#44729)""
Update incremental cache handler for minimal mode
Revert "Revert "Revert "Initial support for metadata (#44729)"" (#45113)"
Update reducer comments
Ensure config warnings only show once
Don't log suppressed error during export
Add support for node: prefix when importing Node.js builtin modules
13.1.3
20 Jan 2023Refactor next dynamic
Add built-in server-only and client-only
Handle empty module from the next dynamic loader
Core Changes
Refactor next dynamic
Add built-in server-only and client-only
Handle empty module from the next dynamic loader
Update pre-compiled
Use sequentialRead while encoding images with sharp
Move server-external-packages to JSON
Fix standalone wrong url being logged
Custom RSC compiler error message in pages/
Replace eslint rule for
no-shadowwithtypescript-eslint/no-shadowEnsure rootLayoutIncluded is set on partial render
Fix force-static description in next-typescript
Fix CSS imports being tracked multiple times
Use withoutEnlargement instead of sharp.metadata()
Update res.revalidate to pass through headers
Add experimental.allowedRevalidateHeaderKeys config
Gracefully handle telemetry not being available
Add proper error when app path switches static to dynamic
Ensure force-dynamic is honored during build
Fix turbo usage in tests
Add project directory rename/remove handling
Remove next-app-loader from import trace
Ensure additional windows are not created on Windows OS
Don't dispaly "Error: " twice when router isn't mounted
Display the reason of hydration error in error overlay
Fix typescript plugin
Add shiki and vscode-oniguruma to default server-external packages
Fix error when CSS @import fails to resolve
Fix next/dynamic non ssr in pages when appDir is enabled
Misc Changes
Fix prepublish compiled handling
Support Prefer Offline for testing
Optimize to skip upload for non-publish swc builds
Fix release stats
13.1.2
12 Jan 2023Add special error message for class component in server component
Update license year
Move core files to src folder and move JS files to TypeScript
Core Changes
Add special error message for class component in server component
Update license year
Move core files to src folder and move JS files to TypeScript
types: Remove config.experimental.profiling
Fix cookie parsing removing extra
=Update server-external-packages to include aws-crt
Collapse sequences of call stack frames from React and Next.js in the error overlay
Update json5 dependency to latest
Improve errors caused by client hook called in a server component
Remove unused
target: es5fromtsconfig.jsonMake static page prefetch apply on navigation in app dir
Improve errors caused by Next.js client hook called in a server component
Add updated flush handling on sigterm
Hmr error improvements
standalone: Allow configuring
HOSTNAMEvia env varAdd experimental pre-compiled next-server
Fix check-precompiled for next-server
Refactor use of AsyncLocalStorage
Add required default value for the ids parameter
Start client compiler when server components are finished compiling
Support runtime value when using multiple declarations per export
land(Fix: Add trailing slash to locale redirect based on next config)
Fix IPv6 hostname formatting in CLI
Hydration error link is appended multiple times in app-dir
Improve errors caused by Class Component rendered in a server component.
Update
jsonwebtoken@next/font: Add preconnect tag when fonts are used but not preloaded in app-dir
Ensure folder exists for standalone server
Fix app ISR handling with no generateStaticParams
Update to latest version of pnpm
Fix router.refresh() resetting state and Suspense boundaries
Fix capitalization in formatted server errors
Fix image emittion for pure client image
Misc Changes
Added actual error message to log output
Fix isolated tests on windows and update azure config
Fix taskr watching core files
Add
testonlyvariants for all test modes and refactoredtestas alias oftestheadlessFix prettierignore_staged for compiled
Revert "Use turbo for packing files in test setup (#44074)"
misc: Fix benchmark script
Fix docs only change for canary
Fix paths for check-examples script
Ensure yarn is used for next-with-deps
Fix new-error command
Add simple test that custom server works
Fix set output handling for DOCS_CHANGE env
Fix echoing DOCS_CHANGE result
Fix FreeBSD next-swc build
13.1.1
24 Dec 2022Exclude
srcsetfrom svg imageFix CSS resource path not matched in
__entry_css_files__Fix
next/image404 whenbasePathandtrailingSlashdefined
Core Changes
Exclude
srcsetfrom svg imageFix CSS resource path not matched in
__entry_css_files__Fix
next/image404 whenbasePathandtrailingSlashdefined
13.1.0
22 Dec 2022- Removed
Remove devcontainer network host argument
Fix windows slashes for app client entry
Hash both pitch and main loader for server CSS imports
Core Changes
Fix windows slashes for app client entry
Hash both pitch and main loader for server CSS imports
Add tracing for testing tools
Run packing in tests in parallel
App dir error-global component
Fix ignoring dev warning for preload component
Add lodash to server components external packages
Fix dev session stopped handling
Add jsdoc/no-types eslint rule for TypeScript files
Revert "Remove
useStatefromnext/image(#43587)"Should not contain pages css in app dir
Upgrade undici to 5.14.0 to fix fetch redirect bug
Align onRecoverableError callback between pages and app dir
Update styled-jsx
Fix crash in GraalVM
Also check error.message as digest for recoverable errors in pages
Move options to stable
Move
transpilePackagesout of experimentalFix CSS resources being duplicated in app dir
Add telemetry for stable features
Add warning for experimental flags that have moved
Bump
@vercel/nft@0.22.6Disable Image Optimization API when next.config.js has
unoptimized: trueHonour
distDirin type generationOnly once for the next/head usage in app dir
Enable allowMiddlewareResponseBody by default
Move
modularizeImportsout of experimentalUpdate config validation for latest turbopack changes
Update turbopack for bugfixes
Misc Changes
Revert "Run packing in tests in parallel"
Implement new core test API
Add types as a default dependency into tests
Ensure next.url is used instead of next.appPort
Fix test template example
- Removed
Remove devcontainer network host argument
Fix pnpm install on Azure
Enable ReactRefreshLogBox scss test
Add test checking that repeated edits won't cause hydration issues
13.0.7
15 Dec 2022Update react next tag
jest: Pattern when detecting packages to transpile in next/jest
Adding head element checking for root layout
Core Changes
Update react next tag
jest: Pattern when detecting packages to transpile in next/jest
Adding head element checking for root layout
'Minimized runtime errors in app dir'
Properly handle
trailingSlash: trueandrewrites@next/font fallback fonts order fix
Update cache handling for app
Remove resolved
appdirectory todosDisable prefetching for links in viewport in development for app routes
Remove additional
<div>at each segment level inappRevert "Adding head element checking for root layout"
Fix ci pnpm lock error
Force reflow when setting scrollBehavior
Remove
__webpack_exports__from error overlayFix chunk hash logic in hot-reloader for server components
Assign layer to app client entries
Remove notifications emitted during pnpm dev
Display error digest if presented
Fix HMR issue after patching the client module
Implement loadable with lazy and suspense for next dynamic
Do not attach CSS checksum for production build
Provide error hints for invalid layout props via the TS plugin
Refactor code
Unhandled errors and rejections opens as minimized in app dir error overlay
Use proxy to ensure Flight is referencing to the latest module during development
memory: Fix 2 memory leaks in
next-devRefactoring in @next/font
Move prefetch bailout to start of the prefetch function for
pagesAlias next/head to noop for rsc and add upgration warning
Update freebsd build
Fix error message for invalid
runtimeoption in app dirForwarding props to no ssr dynamic
Improve type checking error message for invalid props
Improve type checking error message for invalid props
Support for named slots in type checking
Fix next/dynamic types for resolving named export module
Add auto completion for prop names and types to the TS plugin
Skip creating VSCode config and
.gitignoreif running in CIAdd helpful error for createContext used in Server Components
Increase stack trace limit on the server
Refactor image optimization util
useSearchParams - bailout to client rendering during static generation
Open server component errors fullscreen
next-dev: Restart dev server exceeds the memory limits
Status log when NEXT_TELEMETRY_DISABLED env is set
Erase dynamic ssr:false imports on server
Use a function expression to access arguments binding
Added support for query params on not found pages
Update
no-img-elementlint ruleFix pages in Route Groups returning 500 with
output: "standalone"Add default head for app dir
Fix browser navigation buttons not working with shallow routing and middleware
Fast refresh should recover from event handler errors in app dir
Fix module error for findDOMNode on edge
Adding data attr to inlined font definition
Replace taskr.watch for core compilation
Fix
.images.remotePatterns[0].portwarningFix app client entry key for windows
Enables 'edge' as a possible runtime for API routes
Misc Changes
Add tests for server component HMR
Add tests for rendering null and undefined in RSC
Add test for providing correct params to layouts
Fix test binary generation and update test config
Add VSCode settings and recommended extensions for Next.js repository
Add Web Tooling team to codeowners
13.0.6
2 Dec 2022Ensure loaderFile is included in webpack cache key
Improve @next/font error handling
Improve RSC plugin to provide better errors
Core Changes
Ensure loaderFile is included in webpack cache key
Improve @next/font error handling
Improve RSC plugin to provide better errors
Fix appDir returning 404 in production with
"output": "standalone"Fix outputting un-necessary trace files for edge functions
Apply default export interop to pages/_app
Fix package resolution issue in app dir
Get correct chunks in flight-manifest on Windows
Resolve RSC / HTML rendering errors in error overlay
App directory next/link dynamic href dev error
Add
refforwarding fornext/imageAlways transform styled-jsx for rsc and error with client-only condition
Dynamic = 'error' should only throw if page didn't get exported
Fix
output: "standalone"returning 500 error on certain pages when built without pages/Fix "apply() is only allowed in ready status (state: idle)" HMR errors
Add gSP and gSSP checks for both server and client layers in the SWC transform
Make sure the TS plugin works for src/app
Remove stack trace from full reload warning
Upgrade compiled undici
Fix missing cleanup process in flight plugin globals
Fix matchers in middleware manifest
rsc: Bundle legacy head as client component
Remove
useStatefromnext/imageGroup redirect status imports
Fix
Failed to copy traced filesfor Edge functions and handle its files with middleware-manifest.jsonUpdate next/link default legacyBehavior
Dynamic Usage Error when using previewData with generateStaticParams and appDir
Minimized runtime errors in app dir
Misc Changes
Avoid turbo cache miss on root package change
Add .pnpm-store to .gitignore
Fix "infer pnpm with example" test outside test suite
Fix output: standalone test for app directory
13.0.5
23 Nov 2022Remove unnecessary async function when preloading async components
Add force-static handling for app dir
Add experimental outputFileTracingIgnores config
Core Changes
Remove unnecessary async function when preloading async components
Add force-static handling for app dir
Add experimental outputFileTracingIgnores config
Leverage outputFileTracingIgnores for next-server trace as well
Remove
unstable_revalidatetypes: Better type definition for internal utils
Eagerly build swc binaries on change
next-swc/relay: Make pages directory optional
Remove the timestamp query for CSS resources
Update experimental skipTrailingSlashRedirect handling
Avoid bundling appDir rendering into pages edge SSR bundle
Alias esm next document to avoid mismatch react context
Fix middleware not executed when pages directory is empty
Remove app routes from _devPagesManifest
Fix HMR error: "Cannot read properties of null (reading 'length')"
ts: re-export
PageComponentandLayoutComponenttypesFix app routes are not correctly matched when src directory is used
Fix React.cache() in layout/page file
next-swc: aarch64 build
Add fallback aliases for React
Apply default export interop to
next/errorRemove unused
use-sync-external-storedependencyImageloader: Collect images serverside to include images from staticp…
Update precompiled react
Resolve next api for layouts to esm for edge runtime
Refactor code
Show error for invalid page props in the TS plugin
Example Changes
Wrong link to source in "responsive" image example
Misc Changes
create-next-app copies files it shouldn't
Add links to PR template
Add support for next.js development in docker
13.0.4
18 Nov 2022Show link to the docs for route segment config options
Fix regression of swc minifier
Add additional item to RSC payload, preparing for head.tsx on navigation
Core Changes
Show link to the docs for route segment config options
Fix regression of swc minifier
Add additional item to RSC payload, preparing for head.tsx on navigation
Use window.location directly instead of parsing into URL
next-swc/relay: Add
javascriptto languagetypes(#42003): better typing for
next/linkEnsure query is provided correctly with middleware rewrites
next/swc: Allow to run custom turbopack binary
Error: NEXT_REDIRECT crashing server in prod
Update caching for swc turbo builds
Handle head.js on client-side navigation
jest: Respect
transpilePackagesin testsApp files ending with page registred as page files
Allow generateStaticParams to be a synchronous function in app directory
Ensure next.config.js function is handled for turbo
Fix app page check on windows
Add middleware prefetching config
Fix middleware prefetch cases
Ensure backslash is correctly handled in find-page-file
Fix app render: escape segment value #42626
Misc Changes
Fix cache collision for swc darwin
Fix build-wasm-dev docs skip
Fix test retry cleanup
13.0.3
11 Nov 2022Add telemetry for turbotrace
Fix undici warning in Node.js 18
Ensure RSC is detecting correctly during revalidate
Core Changes
Bump @typescript-eslint/parser version to support TS 4.8
Add telemetry for turbotrace
Fix undici warning in Node.js 18
Ensure RSC is detecting correctly during revalidate
Correctly mention
generateStaticParamsin errorRe-enable sandbox cache and update AsyncLocalStorage usage
Check properly whether SWC is used or not when using forceSwcTransforms
Show inlined error if the "use client" directive is not before other statements/expressions
Refactor error codes in the TS plugin
Fix server html insertion target
next/compat/routerFix scrolling on router.refresh
Fix relative TypeScript path in monorepos
Aggregate updates using
addStatusHandlerandPromise.resolveinstead ofsetTimeoutnext/dev: Bubble up unhandled exception from --turbo
Rename RSC and Router headers
Ensure build trace ignores apply correctly when nested
Include @prisma/client in default external packages
Replace global with globalThis
Colocate styles with special entries
Add lazy initialize of router cache nodes
Add telemetry for @next/font
Also create head when creating root layout
Add --no-mangling to next build + fix --profile option
Update react builtin deps for next channel
Ensure skip normalize is handled correctly
@next/font/google fetch error dev
Add missing matcher support
Remove useless async declaration and replace regexp to plain string in AMP postProcessor
@next/font error messages
Adopt script rejection pattern for link onerror.
Fix @next/font imports from outside of the root directory
Ensure appDir is included in webpack configVars
Fix replaceAll usage in post-process
Use import to load page and layout
Alias next public api to esm on edge runtime
Publish compat folder
Change condition to check for string attribute in lint rules utility function
Fix as option with optional catch all routes url object syntax
Fix comma splice in
verifyRootLayout.ts@next/font return types
Eagerly bundle external ESM dependencies for pages
Handle hydration replaceState for static page with searchParams
Add test case for image generation
Don't pushState when already on the url
Enable emotion import map
Fix resolving for esm package with only exports.import condition
Track page counts during builds
Misc Changes
Fix replaceAll usage in font loader
Fix default value handling for CNA in CI
13.0.2
4 Nov 2022Hybrid App Hooks Support
Add sqlite3 to the default list of server externals
Improve the error message when custom export fields are used in an entry
Core Changes
Hybrid App Hooks Support
Add sqlite3 to the default list of server externals
Improve the error message when custom export fields are used in an entry
Add preload for layouts / components
Add mongodb to default server externals
Add tests for body reading methods #37980
Handle dynamic css-in-js styles under suspense
Fix page folder being wrongly resolved as page file
Update dev process exit handling
Ensure edge runtime doesn't propagate
cacheon fetch as Cloudflare doesn't support it.Add
prismato the external package listLocal font family name
useSelectedLayoutSegment at the current level
Stop writing window specific paths in vscode configuration
Ensure Undici is enabled for appDir in all cases
Usage of wasm in an appDir page file using the edge runtime
next/mdx: Support experimental mdx-rs loader
Fix CSS modules imports not collected due to race conditions
Fix entry creation on Windows
Mock @next/font when using next/jest
Avoid breaking useRouter() type change
Do not strip loader arg in dynamic for server components
Clarify app and pages file conflicting files
Change
usePathnameto returnstring | nullFix undici warning showing unexpectedly
Remove static generation bail-out from usePathname
Misc Changes
create-next-app: Add head to template
Stop warning for head element in app/layout on Windows
Add meta tag to default app template
13.0.1
31 Oct 2022Rest of options in experimental.turbotrace and documentation
Fix revalidate check in client component
Add data attribute to div to distinguish it
Core Changes
Rest of options in experimental.turbotrace and documentation
Fix revalidate check in client component
Add data attribute to div to distinguish it
Fix lint cli help
edge: Split
NextCookiestoRequestCookiesandResponseCookiesShow error message when using legacy props on new
next/imageUpgrade Edge Runtime
Revert "Include frameworks in main-app"
next/dev: Do not suppress error from bindings
Fix page static info extractor for app dir
Add never return type for redirect() and notFound()
Google fonts multiple weights & styles
Merge app internal chunk into main chunk for layouts
Fix build type error of page params
Allow disabling Strict mode in app
Update react next channel
Fix turbo custom config detection
Fix css modules imports in client components
Data URL images with 'fill' are always triggering 'missing sizes' warning
types: Leverage webpack types and remove casting
Fix CSS imports from outside of the app dir when src folder is present
Remove react root condition and always use concurrent mode
Keep react-dom/server.node in precompiled
Warn when legacy prop detected on
next/imageFix failing codemod test
url-to-withrouterImprove TypeScript plugin error when the configuration is not statically analyzable
Ensure app revalidate has correct default
Update turbo crates
Update vscode config handling
Allow resolving large JSON data in server components
issue-41925 fix: skip duplicate props when transferring props from anchor to link
Ensure we detect config correctly with turbo flag
Update turbo version
Fix CSS modules imports from outside of the root directory
Default font config fix
Multiple local font weights and styles
Optimize bundle size for appDir
Add event for dev process stop
Documentation Changes
create-next-app: Interactive mode;
--js, --tswith appDir support; enhanced testing
Misc Changes
Fix example command in issue template for create-next-app
Fix turbo css-modules test
13.0.0
25 Oct 2022- Breaking
Update minimum required Node.js version to v14
- Breaking
Rename
next/imagetonext/legacy/image& renamenext/future/imagetonext/image - Breaking
Enable newNextLinkBehavior
Core Changes
Use resolved url in flight entry loader
Handle redirects in new router
Combine redirect function in new router
InferGetServerSidePropsType and InferGetStaticPropsType
Update to leverage AsyncLocalStorage for app static handling
Change flight querystring to header
Improved bundling strategy for the server graph
Remove unnecessary experimental flag
next-swc: Add next-font-loaders to crates/core
Add next font package
Strip internal pages for pagesDir in app edge ssr
Add support for font loaders
Set
__NEXT_NEW_LINK_BEHAVIORin Jest tests whennewNextLinkBehavioris trueAdd handling for 404 in new router
Fix alias paths for bundling
Fix required server files for font loader manifest
Add local font loader
Update error handling during app static generation
Handle redirect in same way as 404 in new router
Allow export const in font loader
Update app-router options type
Flight client navigation error
Use startTransition for hydrateRoot to opt-in to non-blocking hydration
Add
optoutServerComponentsBundleoptionApply #40833
Upgrade react@experimental
Update handling of redirect/404 throw to cross server->client boundary
Update pre-compiled
Update font loader output path
Disable head element lint rule for appDir
Should resolve esm external module imports on server
edge-ssr: Bundle next/dist as ESM for better tree-shaking
Improve types for
<Image />andresponseLimitEnsure skipClientCache is honored for router.push
Fix bundling and module resolution in the server layer
Handle loading returning undefined
Fix SWC loader ignore for the server layer when Babel is used
Code refactoring for webpack-config
Rename 404 -> not-found for new router
Remove reducer from server bundle
Serialize custom config to middleware-manifest
Font loader support in app
experimental: Option to polyfill
fetchusingundiciin Node.js <18Update return shape of generateStaticParams
Remove legacy transform code
Revert "edge-ssr: bundle next/dist as ESM for better tree-shaking
Update to use HEAD request for middleware query hydration
edge-ssr: Bundle next/dist as ESM for better tree-shaking
Rename flight parameters to rsc/next
Remove outdated warning
misc: Add MANGLING_DEBUG option
Fix wrong code condition used when bundling the server
Move pagesDir handling out of wrappedRender
Fix unused CSS module imports are tracked on the server
Skip creating virtual app client entry for pages
Add support for fallback font and css variable for font/local
Use throw to trigger Suspense to avoid use() in reducer warning
Docs for experimental font optimization
adjustFontFallbacksDrop legacy React DOM Server in Edge runtime
misc: Make useReducerWithDevtools noop on server
Remove reload on serverComponentChanges in pages
Alias all client, shared, pages dist assets for esm
Add
with-xataexampleMake sure polyfills are added for browsers without module support
Move handling of navigation to pages from new router
Adding experimental size adjust based option
Improve experimental feature naming
Full page reload when navigating to new root layout
Use deterministic module IDs for server
Accept variable prop in google font loader
Font loader call json parsing fix
Skip pagesDirRules when pagesDir is not present
Fix experimental undici warning
Temporarily disable prefetch in new router
Add conflicting app and page error
Rename flush effects to server inserted html
Check required root layout tags
Lint files with
mjs,mts,cjsandctsextension by defaultImprove error messages of server compilation
Fix edge function req.url handling with rewrite
Ensure entry tracing applies for app correctly
Add attribution to web vitals
- Breaking
Update minimum required Node.js version to v14
Handle hmr for edge ssr in app dir
Remove unnecessary
moduleIdoptionApply experimental configs for middleware
Fix reading edge info for app paths
Fix warning messages for next export
Refactor app dir related flags
Fix prefetch for new router
Disable built-in css-in-js transform on server layer
Fix latest experimental react and experimental-edge and unpin test versions
Font loader with babel error
Remove hook_optimizer transform
Update edge runtime to 1.1.0-beta.37
Alias next/dynamic to lazy impl for appDir
Do not bundle
react-domin the SSR buildAdd response stream errorhandling in edge-function-runtime
App font file preload
Fix app static generation cases
Enabel appDir when flag and dir existed at the same time
Font loaders next config shape
Refactor dev overlay into hot reloader
middleware: 'instanceof Function' is dynamic code false-positive
Snyk upgrade 2701033
ts: Relax
AppPropsto not require genericRecover from font loader error in dev
Handle
ason next/link with new routerLoad
beforeInteractivescripts properly without blocking hydrationAdd test for link back to original page
Local font files adjust fallbacks
Update middleware query hydration handling
Fix NextUrl trailing slash normalize for data route
Global layouts error boundary
image: Don't show placeholder warning in Jest
Handle error overlay for new router
standalone: Support
type: "module"Lazyload the edge runtime in NextServer
Add pretty error when image import is invalid format
Client component directive: use client
Fix middleware rewrite for _next/data
Add codemods for
next/imageFix middleware URL normalize case
Update
next/imagecodemod to handlerequire()Ensure RSC paths are normalized in minimal mode
Refactor error overlay for new router
Inline httpproxy usage
Proper error if middleware or api/route not return a Response
Fix CSS imports tree-shaking
Ensure content is kept rendered below the error overlay on build errors in new router
Fix
onLoadprop innext/future/imageAdd exports for new router
App font loader tree shaking
Lazy eval headers from the requestStore
Disable css cache busting in production
Upgrade next-swc-napi to NAPI-RS v2
Fix prefetching for static app paths
Lazy evaluate more modules
- Breaking
Rename
next/imagetonext/legacy/image& renamenext/future/imagetonext/image Fix edge workers being re-used unexpectedly
Remove edge shared deps
Upgrade React experimental
Update edge runtime to 1.1.0-beta.39
Update flakey dev AMP tests
Add new diagnostics
Move root layout validation
Fix middleware dynamic route param on query hydration
Don't show error overlay for not found and redirect
Change useSearchParams to URLSearchParams
#41392: Improve cache busting inject performance
Rename reload to refresh in new router
Disable isNavigatingToNewRootLayout
app-render: Make css and font respect assetPrefix
Ignore serverComponentChanges in pages
Include frameworks in main-app
Update
next/imagedocs and examplesFix useSearchParams comment
stream: Allows body larger than 16 KiB with middleware
41456: Check src/app folder too in getHasAppDir
- Breaking
Enable newNextLinkBehavior
Avoid using the CSS href as the link tag key
Fix global css being marked as side effect free
Append the fragment in NextUrl.toString()
Add vary header to fix incorrectly caching RSC as HTML response
Enable swcMinify by default
Move fetch revalidate config under next options
Fix app sc_client componet HMR server-side
ts:
Cookies->NextCookiesUpdate edge runtime to 1.1.0-beta.40
- Breaking
Remove
target: serverless Fix next-app-loader bug in windows
Prebundle react for appDir
- Breaking
Remove
browsersListForSwcand change default tolegacyBrowsers: false Mark styled-jsx as client-only package
Fix case where dispatch was missing
Upgrade react-server-dom-webpack and precompiled assets
Improve type checking
Create hash digest for errors in app in production
Allow user directory with
styled-jsxprefix innext devFix
next/imagesvg blur placeholder withfillAdd TypeScript plugin
Update RSC detection in minimal mode and fix config collection
Add back() and forward() to new router
Update page config APIs
Improve server bundling strategy
Update error message for invalid react-dom/server imports
Support overriding request headers in middlewares
Check root layout change on client
Full remaining path in selected layout segment
Add back/forward test for new router
Refactor path logic in router + add LRU cache
Add transpilePackages option
Font loader types
Updating size-adjust calculation
Fix missing JSON.stringify in loader
Root layout head not required
edge: Adds AsyncLocalStorage support to the edge function sandbox
Add support for
images.loaderFileconfig- Breaking
Remove React 17
Update
next-image-experimentalcodemod to handle loadersFont loader default config
Disable using prebundled of react for appDir
Refactor hot-reloader client for app
Enable ReactRefreshLogBox-builtins.test.ts, remove loader from import trace
layout: Add build status for app routes
Change
data-nimgattribute onnext/imageUpdate to handle correct react version with app
Improve errors for invalid component export
Add experimental warning note
Bundle ssr client layer excepts react externals
Improve error message for wrong props
- Removed
Remove deprecated
webpack5config option Improve error messages
Create root layout
Ensure we properly normalize /index in minimal mode
Update params of PageProps to string map
Expose AsyncLocalStorage on global for react
Update URL malformed edge error
Update to latest react experimental
Revert "Add experimental warning note"
useSelectedLayoutSegment -> useSelectedLayoutSegments, add useSelectedLayoutSegment with previous behavior
Ensure
AsyncLocalStoragefor static generation is shared for client & serverApp dir sass
Disable esm resolving for appDir and alias react
Print error when next dev has conflicting app & page
Support next option for Request
Move redirect and notFound to navigation exports
Font subsets in function call
Include resolved external package dirs
Fail on prerendering with dynamic error config
Update precompiled react to next channel
Emit VSCode settings for TypeScript
Upgrade Edge Runtime v.1.1.0
Fix module trace error messages to not include queries
Fix ignored file path
Fix static generation and crawler requests
Add error if
appdetected but config is missingAdd default not found template
Remove unneeded types
Add message for
appDirfeedbackSet a better type for the default image loader
Fix edge entry layer resolution bug
Dont apply existing externals path changing to rsc layers
Pathname and search params SSG
Update react next channel
Font description and error messages
Updating avg width metrics for google fonts
- Breaking
Bump minimum Node.js version to 14.6.0
Throw error child in <Link>
Only import dev overlay for dev mode
Add initial head handling in app
Fix revalidate during dev
Fix no-store test case
Ensure async_hooks are not resolved for client
Make ship happen
Add head handling
Update async storage fix
Example Changes
Contentful webhook body parse.
Revert "Fix: Contentful webhook body parse."
[slug].tsx
Misc Changes
Add test case for /404 client transition
Fix flaky full reload hmr tests
Add missing release stats config for app
misc: Add benchmarking script for edge rendering
Add timeout to playwright setup job
Add test for rewrite from pages to app with existing pages path
Fix PR stats from experimental react
Add more test job timeouts
Fix errors entry in codeowners
Enable passing tests
Add test for link to catchall route in new router
misc: Add minimal server bench setup
Support aarch64 Linux with page size >= 16k
Add npm to
create-next-appenvironment package manager parsercna: Add template
- 12.x
12.3.7
28 Mar 2025Lock swc binaries version
12.3.6
24 Mar 2025Match subrequest handling for edge and node
Update publish-native
12.3.5
23 Mar 2025Middleware subrequest patch
12.3.1
19 Sep 2022- Removed
Remove non existed exports and files
Update react-server-dom-webpack
Fix flight manifest to include all chunks
Core Changes
Update react-server-dom-webpack
Fix flight manifest to include all chunks
Fix page url for edge routes in app dir
Subresource Integrity for App Directory
Stop build warning about
experimental: { esmExternals: 'loose' }Add template and error file types
Bump styled-jsx for showing displayName
#40388:
next/dynamicshould only add default loading without suspenseAdd missing trace for full reload event
ts: Expose
AppTypeUpdate dev watcher to ignore more accurately
Add failing case for location throw
Drop legacy RSC handling in client for pages
Eslint no-script-component-in-head error url
edge: Allows configuring Dynamic code execution guard
Rename allowDynamic to unstable_allowDynamic
Don't execute prefetches for bot user agents
Update semver of eslint-plugin-react
Clean up startTransition in Link
Passing down original sourcemap for flight client loader
next/script: Make
onLoadconcurrent rendering resilientAdd missing feature in next-swc
Mask Flight Parameters from Middleware
Unwrap promise with experimental_use
next/router: Prevent query delete in routing when next.config basePath option is truthy
image: Handle image imports with high aspect ratio
Loosen webpack compilation with
fallbackNodePolyfills: falseAdding experimentalAdjustFallback feature to font optimization
Handle
notFound: truein/withnext exportImplement SWC transformer for server and client graphs
Fix edge wasm handling during deploy
Client directive
Remove internal client next api detection
Attach module trace for RSC related errors
Use createFromFetch instead of createFromReadableStream to fetch Flight
Change Flight response content type to application/octet-stream
Send web vitals to Vercel analytics in app
Refactor fetchServerResponse
Port page and layout level API assertions to SWC transform
Ensure smooth scroll is disabled for navigation in new and existing router
Upgrade to latest React experimental
Refine error messages
Incldue styled-jsx in swc compiling
misc: Update caniuse-lite to latest
- Removed
Remove non existed exports and files
image: Preload should respect crossOrigin
Add handling for static generation in app
Avoid direct React client API imports in the server graph
Drop legacy RSC server and client extension
Misc Changes
Add Balázs as codeowner to
/errors/directorycli: Tune filter for extracting example
.tarAdd additional tests for prefetch and trailingSlash
#40025: Run
next/scriptbeforeInteractive test in both dev & prod
12.3.0
8 Sep 2022Refactor client entry plugin to separate methods.
Eliminate path polyfill and incremental-cache from base server
Remove precopied styled-jsx
Core Changes
Refactor client entry plugin to separate methods.
Eliminate path polyfill and incremental-cache from base server
Remove precopied styled-jsx
Refactor handling of addPageEntry promise
Support multiple flush effects
Eliminate Amp in Edge runtime
Rename page -> entry in on-demand-entry-handler
Update .env HMR handling
Fix Edge SSR routes
Support tsconfig paths without baseurl
Enable @typescript-eslint/no-use-before-define for functions
Remove minify: false for webpack5 bundle
Next Server code refactoring
Eliminate path and utils from base server
Remove webpack4 types
Enable additional TypeScript ESLint rules
next/dynamic: Handle template literal import path
Add comment on slash normalizing in server
Refactor base server
Add separate entry per layout/page.
next-server: Fix priority for edge routes
Add todo for dependsOn
Improved server CSS handling
next-swc: Update swc
Fix next-app-loader on windows
swc/emotion: Correct the
SPACE_AROUND_COLONregex#39609: Warns about suspense and ssr
Use realpath when emitting traced package.json
#39706: Add avif support for node serve static
next: Do not display message when middleware is removed on dev mode
Allow Edge Functions to stream a compressed
fetchresponseFix meaninglessFileNames type in compiler options schema
Update stalled ensure log to use debug instead
Skip building /500 in dev mode
Fix
onErrorhandling innext/future/imageImprove error message on
next/future/imagewhenobjectFitorobjectPositionRefactor client CSS imports
Ensure moduleResolution is written correctly
Fix disposing active entries in dev compilers
#39807: Ignore width/height from webpack with "fill"
Add handling for auto installing TypeScript deps and HMRing tsconfig
Remove eslint warning when no eslint config is present
next/swc: Enable wasm first binding load for the platforms
Fix
next/future/imageblur-up placeholderFix runLintCheck during build
Skip auto-install for missing deps in CI
Remove un-necessary internal jest-worker error during ts/lint error
Bump
@vercel/nft@0.22.0Handle edge runtime for app
HMR for client CSS imports
ts: Use
AppProps's generic forpagePropsTreat non page file as non route under app dir
Fix
next/future/imageincorrectly warning forfill+blurEnsure prefetch heuristic matches with and without middleware
Add
experimental.fallbackNodePolyfillsflagFix incorrect build log for moduleResolution
#39993: Avoid race condition for next/script onReady
Avoid bundling
next/scriptin the server build by defaultHandle async module for client components
Remove Unused SQLite file
Update
next/future/imageto use svg blur placeholder duringnext devRemove
<noscript>fromnext/future/imageFix
filePathbeing wrongly stringifiedRefactor Server Router
Update to detect GSSP with edge runtime during build
Fix handling with custom _error and pages/500
Fix edge rewrite handling
Error for ssg and ssr exports from client components in build time
next: Support has match and locale option on middleware config
Change
altto required innext/future/imageAllow port 0 in
next devandnext startUpdate to stable:
next/future/image,remotePatterns,unoptimized#40066: Preserve error status code from serveStatic
Detect ESLint config in package.json
Ignore EEXIST errors when creating symlinks for output standalone
Bump
@vercel/nft@0.22.1Bump styled-jsx
Match data fetch and busting cache key when path URI encodes
Updating the Next.js Logo
next/script: Simplify logic and update tests
Bypass empty pages folder for layouts
Fix styled-jsx macro imports
Ensure path can be specified for clearPreviewData
Apply default export interop to
next/configImproved route resolution in next-app-loader
Add prefetch to new router
Update
next/future/imageto support onlywidthor onlyheightAdd experimental proxy timeout option
Fix static info parsing when export data fetching method as variable
switchable-runtime: Make dev server not break when wrong runtime config is exported
Revert "Refactor Server Router"
switchable-runtime: Make it possible to switch between edge and server runtime in dev
Revert "Revert "Refactor Server Router" (#40328)"
Fix URLSearchParams lacking data from rewrite
lint: Disable
react/no-unknown-propertyUpdate
onLoadingCompletefornext/future/imageto receive reference to<img>Remove warning for swcMinify being enabled
Documentation Changes
Revert "Adds note about custom server requirements"
Misc Changes
Fix preinstall failed in yarn@1.x on FreeBSD with npm@8.17
Add edge ssr to pr stats
create-app: Support github url has trailing slash
Added tests for next/router in app directory
Fix failing e2e getServerSideProps test
Add path to export-page
Add test for server CSS imports
cli: Do not throw error when extracting examples in Node 18+
cli: Delete temp file after extraction
Fix test hydration check in Safari 10.1
12.2.6
29 Sep 202212.2.5
12 Aug 2022Change invalid internal upstream image error code
Hoist styles for Route Announcer
Wrong reference url for disableStaticImages
Core Changes
Change invalid internal upstream image error code
Hoist styles for Route Announcer
Wrong reference url for disableStaticImages
Skip resizing image if it's animated
Fix catchall rewrites for _next/data routes
Fix
next/future/imagealt textts: More strict Redirect type
next: Dev server starting when importing a file using get-projec…
Add runtime to PageConfig type
Improve logging for _devPagesManifest.json loading failures
Allow custom path for preview mode cookies
Fix removing whitespacing in dev overlay
Fix emotion labelFormat and sourcemap options
Fix emotion shouldForwardProp options breaks component selectors
next/image imgix loader can use multiple auto params
Adds
eslint-plugin-eslint-pluginto ensureeslint-plugin-nextrules follow ESLint rule best practices along with enforcing some consistency.Adds
--output-fileflagUpdate polyfill for eslint no-unwanted-polyfillio rule
ts: Middleware type tweaks
Fix Link generation for SSG pages if locale domains are used
Setup require hook in next-server for styled-jsx resolving
Ensure trailing slash on registry URL when fetching wasm fallback
typing: Upgrade styled-jsx to remove workaround in build script
Extract redirect utils into a separate file
Ensure locale redirects are not applied in minimal mode
middleware: Augments / matcher with /index
Bump edge-runtime packages
Ensure default _app is used when falling back to default _error
Handle rewriting WebSocket requests
App Build Stats
Tweak styled-jsx type declarations
FIX GAUSSIAN BLUR IN FUTURE\IMAGE
Add hot-reloading for env file changes
next-swc/modularize_imports: Add Kebab case
Make dev watch ignore more specific
Bump styled-jsx and remove manual types creation
Add position styling to future fill images
Ensure hidden iframe apps render in development mode
Enable @typescript-eslint/no-use-before-define variables,enums,typedefs for core files
Re-add styled-jsx as a normal dependency
Example Changes
Broken TypeScript in WordPress example.
Misc Changes
Fix failing escheck test
Add yarn 2 Setup Files to Valid Files for create-next-app
Add Object#fromEntries polyfill (with 6 lines of code)
Fix swc build for freebsd target
12.2.4
4 Aug 2022Update to latest version of @vercel/nft
#38090: Add missing
analyticsIdto config schemaEnsure hash on initial request is preserved in new router
Core Changes
Update to latest version of @vercel/nft
#38090: Add missing
analyticsIdto config schemaEnsure hash on initial request is preserved in new router
Remove unnecessary assertions
Clear unnecessary code
Impl
attachRequestMetain base server to handle meta differently in edge and node serversEnhance warning messages about unanalyzable
configfieldFix generateEtags type inside schema
Refactor router reducer
Add state comparison to router
Update webpack
Update config schema for empty basePath
Add handling for prefetching onTouchStart and initial mobile testing
Add additional comments to new router
Update config-schema for relay field to be less strict
Add config for opting out of optimistic client cache behavior
Fix tracing edge-runtime dependencies
Ensure dangerouslyAllowSVG is passed correctly
Handle getStaticPaths error inside worker to avoid serializing
Update to use HEAD request for On-Demand ISR
Replace node-sass test dependency with sass
Add comments in new router reducer
Add additional comments for reducer/cachenode
Print Request & Response properties
Show
asPathon large page data warningRemove RSC rendering from render
Ensure query is updated correctly with shallow and middleware
Update pre-compiled to fix check
Fix unhandled rejections with edge runtime
next-swc: Update swc
Collect telemetry for next/future/image
Adds
onReadyprop tonext/scriptEnsure we hard navigate for failed _next/data with middleware
Refactor Flight plugins to use types.
Fix middleware + afterFiles SSG rewrite case
Update swc minifier
Fix incorrect component cache for middleware cases
Add shared dynamic api
Add exportPathMap config type/schema field
Fix default error style overrides
#11930: Rewritten api routes can correctly handle cors in dev mode
Add missing @napi-rs/cli devDependency to next-swc
Fix missing edge routes in dev middleware manifest
Only contain middleware in dev middleware manifest
React dev bundle is picked in prod mode
Add "fill" mode to
next/future/imageHandle assetPrefix in app
Export URLPattern from next/server
Ensure middleware has single data fetch on query hydration with valid props
Fix URLPattern next/server export on deploy
Flush styles effects
Remove default setting for object-fit on future fill images
config: Implement a human readable ajv errors
Enable concurrent mode by default in app-render
Fix next/server being required during build
next-swc/wasm: Export async interfaces
Ensure On-Demand revalidate does not consider preview cookie
Buffer is not usable on edge runtime
Documentation Changes
Update testing.md
Example Changes
Use
if..elif..elsein docker exampleswith-mux-video: Update mux-player scope and version to latest.
Missing semicolon on Dockerfile
Use
if...elsein dockerfile
Misc Changes
Add delay before exiting tests for log flushing
12.2.3
22 Jul 2022- Removed
Remove the next/streaming endpoint and experimental refresh api
Remove dynamic params from
queryin new routerFix test page detection
Core Changes
Remove dynamic params from
queryin new routerFix test page detection
Handle on-demand-entries and error overlay for Server Components
Add refreshing of Server Components
Handle dynamic routes / catchall routes in on-demand entries
Enable css import in rsc server side
Pass missing incrementalCacheHandlerPath to IncrementalCache instance
next/build: Correct payload for plugin telemetry
Update some dependencies' versions :)
Don't use optional chaining in ESLint rule
next-swc/auto-cjs: Detect
__esModuleCSS modules support improvements for Server Components
Handle development error when Server Component throws
Upgrade edge-runtime + make EdgeRuntime value overridable with an env var on compilation
Rename todos
Fix injecting CSS link tags before page content
Optimize Edge SSR bundle size
Handle dev fouc for layout styling
Fix independent CSSModule missing from flight manifest
Mark dynamic as client component
Add error when createServerContext is not available
Handle server context being refreshed
Pass server context to Flight render
Ensure .client.tsx/.ts/.jsx Client Components can be imported
Remove the
hide-fouctags after hydrationAdd heuristic for optimistic push
Remove implemented todos
Add next.config.js validation with ajv
Fix
next/jestwhen testingnext/future/imageRemove the hide-fouc tag earlier
Fix reloading Client Component require.cache
Fix failed to hydrate error with global CSS
Ensure selected segment is the value of dynamic routes
Add focus and scroll management for new router
New Router Tests
Rename query to searchParams for getServerSideProps in new Router
Refine scrolling into view in new router
Improve element detection further
Remove obsolete code from loader
Fix check for optimistic routing and handle loading in server-patch
Add user check in
auth-with-stytch.Ensure flight manifest is correct with app and pages dir
Fix missing client entry matcher and simplify imports path
Fix CSSM loader applying for both pages and app
Support postcss.config.cjs
next/swc: Let async wasm binding coerce to sync correctly
Ensure route group with separate root layout does not get wrapped in
Allow importing blob assets
Make
src/a default linting directoryFix usage of
experimental-edgeinpages/api/indexedge-runtime: Undefined global in edge runtime.
Fix squoosh image optimization for Node.js 18
Don't treat
output: "standalone"as custom serverImprove
next/imageerror message whensrcprop is missing- Removed
Remove the next/streaming endpoint and experimental refresh api
Ensure module require is awaited in app-render
Leverage mini css plugin hmr for app dir
edge: Error handling for edge route and middleware is inconsistent
Correct the next config optimizeCss type
Update Edge Runtime
Ensure mixed query/hash values are handled correctly
#38743: Config.runtime support template literal
Misc Changes
Fix bundle-analyzer plugin types
Fix rsc test during deploy testing
Add docs condition for all azure steps
Add dev/start timing to PR stats
Fix e2e rsc test for deploy mode
Add test env variables to readme
Fix flaky rsc test
Add dark mode to Create Next App
Add note about test-trace artifact to test readme
12.2.2
9 Jul 2022- Deprecated
Replace JS
blog-starterexample with TS, deprecateblog-starter-typescriptexample Update README.md
Add support for catchall with new router
Core Changes
Update README.md
Add support for catchall with new router
Fix client entry point prefix
Add support for optional catchall with new router
Add handling for back/forward (popstate) between old and new router
Make catchall parameters consistent with existing router
Fix warning
next/future/imagesemicolonnext/build: Disable next-swc crash reporting temporarily
Example Changes
- Deprecated
Replace JS
blog-starterexample with TS, deprecateblog-starter-typescriptexample
12.2.1
7 Jul 2022Remove unused
layoutRawconfigFix invalid config warning for runtime config
next/config: Update default config for the experimental
Core Changes
Remove unused
layoutRawconfigFix invalid config warning for runtime config
next/config: Update default config for the experimental
next/swc: Setup native next-swc crash reporter
Fix unnecessary flight render passes
Readds missing
@next/next/no-assign-module-variableESLint rule.Fix failing to set initial ISR cache item in new folder
Add default experimental values
Fix error when
next/future/imageis missing width or height#38106: Use swc client config to pre-compile shared lib
Fix chunk path resolution
Revert "feat(next/swc): setup native next-swc crash reporter"
next/swc: Set cache dir explicitly
Ensure @swc/helpers do not rely on hoisting
Migrate rsc tests to app dir tests
Check for performance.getEntriesByName before calling
Adds tests to ensure
eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined.Fix pageProps is missing when route changes
next/build: Send next-swc plugins telemetry
Ensure page.server.js matches correctly
Alias react and react-dom by default
Convert head instances to array
Make runtime addressable in compile time
Ensure trailing slash is handled correctly with middleware
Fix CSS modules imported from client components in app dir
Favor browser exports for edge compiler
Fix CSS modules imported from client components in app dir with next build
Honor NEXT_MANUAL_SIG_HANDLE flag in standalone mode
Display stack trace when error occurs in API route
Handle Client Rewrites Correctly
Fix global CSS file imports
Correctly check if width is lte 0 in Image Optimization API
Enable swc minifier in create next apps
Filter proper chunks from chunk group for client components
Enable edge compiler source maps by default
Call Error.getInitialProps for the top level error
Build edge functions with node.js modules and fail at runtime
Implement new client-side router
Add param names into the tree
next/swc: Setup native next-swc crash reporter with platform supports
Ensure server components entries are not part of the pages buildmanifest
Add app-path-routes manifest
Documentation Changes
middleware-upgrade-guide.md
Example Changes
Update with-msw example to function properly for all use cases
Misc Changes
Add more code ownership paths for padmaia
Fix create-next-app tests from changed example
Fix missing trace script devDependencies
Declare NextBundleAnalyzer as a type
Add more CSS imports test cases
12.2.0
28 Jun 2022- Removed
Drop the unstable web vital hook and remove exports of flush effects
- Deprecated
Deprecate nested Middleware in favor of root middleware
- Breaking
middleware: Forbids middleware response body
Core Changes
Flush initial styled-jsx in gIP first in concurrent rendering
Add falling back to wasm swc build on native load failure
next-swc: Introduce experimental tracing support for swc
Add initial handling for routing tests
Fix asPath handling for data route revalidation in minimal mode
React root enabled properly in custom server
Route Loader Trusted Types Violation Fix
Update components in GitHub Actions
Fix various Trusted Types violations without use of policy
Add experimental wildcard
remotePatternsconfig for upstream imagesTweak routing tests
Update renderOpts.dev handling and fix check
Duplicate app server
Add route loader
Fix leftover todo in loader
Leverage pageExtensions for resolving in loader
Use react dom server node api to detect react root is enabled
Replace use-subscription with use-sync-external-store
Add flight render starting point
Better cookies API for Edge Functions
Clarify variables being used during rendering
Update x-nextjs-cache header in minimal mode
Add experimental flag to force SWC transforms
Update root component handling
Add final newline to package-lock.json
Move FlightManifestPlugin to server compilers
Update moduleNameMapper jest config and remove extra deps
Wait for shell resolve with gIP is customized in react 18
Build x86_64-freebsd SWC binary
Don't convert error to string
#36534: Enable interopClientDefaultExport for next/jest
#30300: Force export 404.html
Telemetry: Track usage of 'experimental/nextScriptWorkers'
Eagerly load swc bindings for wasm fallback for jest
Add experimental config for basePath testing
Enable html post optimization for react 18
Update client router for tests
Fix return type of middleware
req.cookies.get()Make esm default interpolation work with jest mock
Decouple entries for server components and client components
#36855/#30300: Export 404.html correctly
- Removed
Drop the unstable web vital hook and remove exports of flush effects
Update swc
Add additional layer for server components case
Support graceful shutdowns
Update @types/node-fetch to latest
Fix SWC dynamic transform with suspense but without ssr
#36651: Disable reactRemoveProperties in jest transform
Update swc
Update lockfile patching for different versions
Add support for browserslist and legacyBrowsers experimental option
Remove optional chaining from eslint rule to support older node versions
Escape flight response values
middleware: False positive dynamic code detection at build time
Fix interopDefault on jest object-proxy
Simplify the logic for static flight response generation
Fixes
beforeInteractivescripts failing in custom documentChange experimental
layout=rawto use native img lazy loadingDon't add locale to client side redirects from data fetching
Edge Cookies: Add
.getWithOptionsmethod- Deprecated
Deprecate nested Middleware in favor of root middleware
Fix styled-jsx not working in client components in the edge runtime when SSR
Update to latest version of @vercel/nft
Fixes beforeInteractive inline scripts don't run
Update swc
- Breaking
middleware: Forbids middleware response body
Extract and refactor
getPageStaticInfoKeep custom app as non server component
Ensure hydration error doc link is shown with react 18
Stabilize SWC emotion transform plugin
DecodeError from invalid URI causes 500 with middleware (vs 400 without)
Opt-out Error page from dark scheme color
Properly await for this.hasPage() in base-server
Enable Trusted Types Compatibility in Webpack
Fix Trusted Types violations from dangerouslySetInnerHTML on style elements
Remove invalid attrs for head html element
Fix next/link can't jump to non-latin anchors
Cleaner error message when importing sass without it being installed in dev
#33081: Handle relative path correctly
Place the charset meta tag at the top of the head
Keep method when cloning Request, fixes #36522
Catch hash change errors, and emit a
routeChangeErroreventShould listen for config file changes when specifying the app directory
Improve getStaticProps error message
next-swc: Improve error message for nested styled jsx tags
Add missing file in mini-css-extract-plugin
Fix NextApiRequestCookies and NextApiRequestQuery types
Add eslint rule for not allowing styled-jsx in _document.js
Scroll restoration bug caused by
idxreset to 0 on reloadAdd JSX.Element to styles type in DocumentInitialProps
Fix Type to solve issue found
Warn when building a TS project with composite: true and fallback to incremental
Support TS exactOptionalPropertyTypes (fixes #35280)
middleware: Issues warnings when using node.js global APIs in middleware
Run type check and eslint in parallel
Remove process.cwd usage from path polyfill
Add libc field to swc packages
typescript: Worker execution failed with custom
next.config.jsUpdate swc
Update swc
Fix client component hydration
Avoid anonymous function in next/link
Should render the correct sizes passed when a noscript is rendered
Use customized chunk loading implementation
Rename app paths folder
Fix experimental
remotePatternswildcardSplit useServerResponse for initial responses
Refactor fetchFlight
next/swc: Support experimental swc plugins
Small code improvements
Use deterministic module IDs in the client bundle
Execute middleware on Next.js internal requests
Preload chunks for next/dynamic in suspense mode
Refactor incremental cache to be extensible
Ignore popstate with invalid state
Show warning during build if page is returning a large amount of data
Add
swcMinifyDebugOptionsUpdate to leverage pnpm for monorepo
Refactor client component out of client runtime
Update to not trigger revalidation during prefetch
Upgrade amp optimizer to v2.8.3
Use Edge Runtime for running Edge Functions locally
Do not pass
legacyBehaviourtoaas propAdd router replace to experiment
Extract router utils to common functions
Include router context as rsc shared dep
Update to leverage turbo for build/prepublish
Update of @babel/core
Migrate prerender lru cache into fs cache handler
Support
runtime: edgein api endpointsRevert "support
runtime: edgein api endpoints"Ensure type check/link worker does not retry
Revert "Revert "support
runtime: edgein api endpoints""Revert Edge API endpoints
Handle link with back/forward navigation
- Deprecated
Edge Functions: Deprecate access to
request.page Fix bloat in main bundle from amp
Add Suspense boundary to demo
Update webpack and watchpack
Fix next dev not working for server components in app
Use the new moduleMap option in the flight client during SSR
Remove unused id rsc cache cleaning and avoid rsc refresh existed in client chunk
Allow Middleware to set its matcher
Skip loading unused plugins in
next devFix
next/imageusinglayout=rawwithpriorityFix document head with react 18
Set
swcMinifyas an attribute onterser-webpack-plugin-optimizespanAllowing hiding the ReactDevOverlay
Ensure ENOENT error is not ignored when loading pages
Upgrade node-html-parser
Fix invalid middleware regexp in manifest
Avoid unnecessary router state changes
Enable externalHelpers swc option
Add check for duplicate locales
Add method to measure Interaction to Next Paint (INP)
Update to latest version of @swc/helpers
Support any
methodwhen fetching aRequestinstanceMigrate head side effects to hooks
#37106: Middleware can not be loaded from src folder
Remove Middleware Preflight
eslint: False positive for legit next/server imports
Revert "Avoid unnecessary router state changes"
Middleware: Remove
req.uaSupport destructuring for env vars in static analysis
Fix react root env missing in NextServer
Fix client entry unexpectedly created in app dir
Ensure check-precompiled exits correctly on failure
Revert "Revert "Avoid unnecessary router state changes""
Update to process redirects/rewrites for _next/data with middleware
Bump @vercel/nft 0.20.0
Strip next internal queries for flight response
next export: Add warning if using getInitialProps
Update matched path params priority
Re-introduce Edge API Endpoints
Fix rewrite/dynamic interpolation E2E cases
Fix Image Optimization cache-control regression with external images
Adds consistency to ESLint rules.
Ensure custom middleware matcher is used correctly in client manifest
Optimize middleware regex handling
Revert "Revert "Revert "Avoid unnecessary router state changes"""
Add test combining middleware & config rewrites
ts: Expose
DynamicOptionsLoadingPropstypeImprove Middleware errors
Ensure navigating with middleware parses route params correctly
Fix shallow routing with rewrites/middleware
Ensure rewrite query params with middleware are available in router
Update pre-compiled
eslint: Allow in conjunction with
Warn dynamic WASM compilation
Update to skip middleware for unstable_revalidate
Remove previous query param deleting warning
Enhance experimental feature warning
Add
images.unoptimized: truefor easynext exportEnsure eslint-config warning/errors are correct
Refactor server routing
Ensure query params are populated correctly with middleware
Use SVG blur technique for raw layout images
config: Only warn experimental feature when used
Display full refresh warning even when error has occurred
Detect pnpm correctly when installing missing dependencies
Throw an error when
target: 'serverless'is used with MiddlewareEnable
externalHelperswhen pre compiling Next.js' codeRevert "Enable
externalHelperswhen pre compiling Next.js' code"Allow Edge Functions to receive body
Add hard navigation guard and fix middleware rewrite cases
Allow wasm usage
Include i18 and basePath on middleware with custom matchers
Fix compile time log after error
Fix
<Image/>'slazyRootand other optimizationsResolve swc-plugin paths
Update swc
Ensure next-server tracing uses tracing root config
Migrate middleware ssr to edge functions
Fix styled-jsx types when package is not hoisted
Remove full reload overlay and warn in CLI instead
Remove NextResponse.json as we already have it defined from inheriting Response
Keep _ssgManifest.js output uniform
Fix next/head in _app in RSC pages
Ensure resolvedUrl is correct with fallback rewrites
Ensure special chars in middleware matcher is handled
Drop experimental.reactRoot in favor of auto detection
Enable configuration of
styled-componentstransform and enablecssprop supportEnable styled-components css prop swc transform by default
Ensure cache-control is correct when returning redirect
Move styled-jsx type reference
Add experimental
next/future/imagecomponentRemove Middleware warning message
Fix hard navigation guard on popstate and handle fetching fresh data
Fixes for middleware compilation errors
Fix npm publish to include
futurefolderMove outputStandalone config
Move
rimraffrom root packages using itOn-demand ISR updates
Hardcoded protocol in request url
Fix eslint-config-next peer dep issue
#37981: Handle legacy link behavior with number type children
Fix invalid warning for existing experimental flag
cli: Allow configuration of http-server's timeout configuration
Remove
no-server-import-in-pageruleEnsure we do not ignore module not found errors during build
Rename page runtime edge to experimental-edge
Remove layout raw image experiment
Allow
next/scriptto be placed in_documentbodyAvoid fetching a chunk for api endpoints on middleware redirect
Upgrade Edge Runtime
cli: Report
eslint-config-nextversion innext infoAdd invariant with debug information when failing to load static file
Add error for renaming of unstable_revalidate
next: Bind new stream functions with base incomingMessage object
Add
initto someNextResponsemethodsFix resolving dynamic routes when on returns a redirect
Remove unnecessary
<noscript>fromnext/future/imageEnsure history navigation is correct after query update
Ensure client cache keys match between prefetch and transition
Upgrade Edge Runtime
Documentation Changes
Missing parentheses
Example Changes
with-tailwindcss-emotion: 'theme' of undefined
Markdown format for the blog-starter example
Add correct type to with-styled-coponents
38043: Replace double slashes with hashtag for comment lines in …
Misc Changes
Enable disabled tests that pass
Fix copying local swc binary for pnpm test
Fixed anotation param name
Add typedef for next-bundle-analyzer
Add tests for getStaticProps and getServerSideProps
Fix example extraction when branch name contains slash
Fix build-wasm CI job
Fix memory allocation issue on linux gnu platform
Add type definitions for next/mdx
Ensure all bench dependencies are added
Add version step for publish
Ensure pnpm is available during publish
Fix font-optimization snapshot test
Removes invalid path from doc
Add middleware size stats
Fix failing swc builds
Allow passing FileRef directly to createNext
Add bug report field to issue template
Fix a couple flakey next-script and unoptimized image tests
Add a test that verifies that NextResponse can be cloned
cli: Support examples without
package.jsonEnsure repo is checked out before running validate issue action
Fix issue-validator path
12.1.6
2 May 2022rsc: Remove router injection
Fix
export fromand native modules in server componentnext-swc: Update css parser
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.