@next/swc-wasm-web
16.4.6 · 9 Nov 20268.3k / weekRepositoryHomepagenpmAtom feed
226 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
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
12.1.5
12 Apr 2022Use
__non_webpack_require__to fetch partytown server-sideUse ReadableStream in client hydration for Firefox compatibility
Collect packages are used and eliminated in getServerSideProps
Core Changes
Use
__non_webpack_require__to fetch partytown server-sideUse ReadableStream in client hydration for Firefox compatibility
Collect packages are used and eliminated in getServerSideProps
Initial implementation of statically optimized flight data of server component pages
Fix
layout="raw"image element sizes propReset visible state when src/href changed
Add warning when importing "next" directly
Custom app for switchable runtime
Update repo to use react 18 by default
Fix Firefox flash of white on
next/imagewithplaceholder=blurFix data encoder and decoder to use
streamin rendererRevert "fix the dynamic routing of middleware"
Update: Add error message when for getServerSideProps invalid return value
Code refactoring
Add locale prefix to middleware preflight url
Emotion SWC Plugin - Allow for jsxImportSource to be configurable
Update polyfill of web streams
Add
.eslintrc.cjsto list of supportednext lintconfig filesUpdate webpack
Ensure minimalMode previousCache expire time is capped
Add test case for module resolution in node_modules from different contexts
Support shared component with next built-in client components
Use eager import to include client modules
Use renderToString for flush effects
Allow to provide postcss plugin options as a string
Fix leaking internal config to user-defined
loaderprop innext/imageSupport export all syntax in client components
Interpolate default exports
next-swc: Update swc crates
Interpolate default exports is now unnecessary
Do not add locale to link for api route and middleware preflight
Fix outputStandalone with optimizeCss
Interpolate module.exports as default import
next-url: Print properly using logger symbol
Documentation Changes
toBeInTheDocument is not a function
Revert "Improvements to the MDX Docs and replaced a leftover reference to babel"
Example Changes
with-mongodb: Change comment of MongoDB
clientingetServerSideProps
Misc Changes
Fix docs only check for performance metrics job
Add note to contributing about docs manifest
12.1.4
31 Mar 2022Only resolve page runtime for react 18 and error on read failure
next-swc: Update swc crates
Fix document styles with react 18
Core Changes
Only resolve page runtime for react 18 and error on read failure
next-swc: Update swc crates
Fix document styles with react 18
Fix router isReady and react 18 not being detected with no config
12.1.3
30 Mar 2022Add deprecated JSDoc comments for the previous middleware signature
Fix the dynamic routing of middleware
Don't override user-agent in fetch if specified
Core Changes
Add deprecated JSDoc comments for the previous middleware signature
Fix the dynamic routing of middleware
Don't override user-agent in fetch if specified
Fix Fast Refresh for React 18
Emotion css minify should not trim end spaces if item is not the last
Ensure the app shell is rendered before rendering the document
Prevent page to scroll to top during data HMR
Fix _document and getInitialProps with React 18
test(fix: Prevent page to scroll to top during data HMR)
Update to pre-compile use-subscription
Fix useStatic404 condition
Fix streaming SSR with multi-byte characters
Misc Changes
Fix next info test during stable release
12.1.2
28 Mar 2022RSC: Handle commonjs in flight loader
Update rsc refresh typing and doc example
Revert "Revert "Make concurrent features independent from the global runtime option" #35405"
Core Changes
RSC: Handle commonjs in flight loader
Update rsc refresh typing and doc example
Revert "Revert "Make concurrent features independent from the global runtime option" #35405"
Update terminal tree view for switchable runtime
Prevent spaces between expressions from being removed
Disable script worker in edge and fix rsc loader and runtime
enhance: Detect ESM by ast type
Clean up legacy react 18 tests
Fix server component render condition
Rename createRSCHook to createFlightHook
Ensure eslint plugins dont conflict
Misc Changes
Fix create-next-app failing without yarn installed
Fix hydration issue in the switchable runtime tests
12.1.1
25 Mar 2022- Removed
Remove
useMaybeDeferContenthook - Removed
Remove the special
_document-concurrentcomponent rsc: Clean client buffer cache after flushed
Core Changes
rsc: Clean client buffer cache after flushed
Ensure config's
experimentalfield existsOnly log experiments warning if user actually opted in to an experiment(s)
Add
unstable_useFlushEffectshookMock image path as
next/imageexpects itFix process polyfill on middleware
Ensure workers are not left open
Leverage existing component checking warning for streaming
Fix
next/imageincorrectly warning forposition: absoluteparent- Removed
Remove
useMaybeDeferContenthook Allow reading request bodies in middlewares
Update swc crates
react-dev-overlay: Export getErrorByType and add preventDisplay prop
Improve
next/imagewarnings to avoid printing more than onceSupport trailingSlash in middleware SSR
Update to latest version of jscodeshift
Don't import internally from types in
next-env.d.tsImprove type imports in server/render and optimize the Edge SSR loader
Remove commons chunk config
Add
cargo clippyandcargo fmtto CIFix rsc bootstrap buffer missing in the future renders
Match
redirectandrewritedestination typesMake sure
image-config.tsgets transpiled to ES5Normalize image optimizer error status codes
Fix CSS Loader Detection False Positives
Upgrade @napi-rs/triples to support android arm platform
Add proper headers to responses in web server
Produce source maps for middlewares
Reduce the size of web server
Collect telemetry for ESLint rules
Refactor entries generation in hot-reloader
Integrate tsec into the linting process
Add API config to allow disabling response size warning
#34030: Ignore non-checkable jsx spread attribute
Fix eslint-plugin-react version to avoid jsx-key error
#34711 ensure distDir inside project folder
Update to ncc dev overlay during build instead of pre-compile
Add warning for Yarn PnP v3 with Node.js < 16.14
Lock eslint-config-next dependencies
Clean-up error when starting next with non-existent dir
Ensure unstable_revalidate does not error from notFound: true
Update eslint-plugin-react to latest version
Fix flight loader for shared components
Fix only byte stream writing is allowed in CF workers
Only warn styles and scripts under next head in concurrent mode
Fix image optimization invalid internal upstream image
next-swc: Update swc
Simplify next-flight-server-loader
Ensure non-matching API routes can be rewritten
Optimize component type filters
Expose WASM bindings in Middleware
Provide page runtime parsing utils
Refactor export marks of server components
Fix
next/imagenoscript when blur and priorityFix named export missing from client components
Adopt react 18 rc1
Fix typescript 4.6.2 randomUUID()
Update ISR error handling
Handle de-duping revalidations in minimal mode
Allow dotenv default expansion
Support colons in Middleware NextResponse.rewrite path
Generate static html for bots
Enable import assertion syntax parsing
Split up & tweak
next/clientinitializationNormalize root path according to trailingSlash option in default next/image loader #21337
Fix animated png bypass from Image Optimization API
Watch node_modules
trace: Postprocess trace reporter for datadog
Fix to not call middleware with shallow push, fix middleware call wit…
Fix post request hangs when no body is consumed on middleware
hard-navigate when preflight request fails
Per-page runtime
Delay prefix flushing
Change to loadBindings for swc parse
Ensure mjs files are transformed with jest
Disable the functions manifest plugin
Adopt react 18 rc2
Convert server.js to module.exports
Fix
next/imagewhen src is webp but browser doesnt support itAdds try/catch to gracefully handle performance observer exception
Render resolved streaming content for static render result
next-swc: Update crates
Ensure that pages manifest contains pages of both runtimes
- Removed
Remove the special
_document-concurrentcomponent Adds web worker support to
<Script />using PartytownAdd new 'raw' image layout
SWC emotion transform plugin
enhance: Cover re-exported gsp cases for runtime fallback
Make concurrent features independent from the global runtime option
Update comments for the web server
Add libc fields to Linux platform packages
Drop browser field for edge runtime
Make router able to navigate between rsc pages
Revert "Make concurrent features independent from the global runtime option"
Update on-demand ISR to skip fetch locally
Use hasConcurrentFeatures instead of reactRoot as the condition of Fizz
Abstract out stream related utils from render and web/utils
Keep fouc tags for streaming
Change the timing for clearing the inlined data buffer
document: Accepts nodearray for head's children
Update to latest @vercel/nft and leverage new reason types
Add test to ensure
fs.readFile()works with Output File Tracingnext-swc: Embed target triple string
telemetry: Report swc target triple to telemetry
Update trace ignore check to check reasons correctly
SWC import modularization plugin
Reduce hello-world middleware bundle size from 128k to 88k
Update next/link error when no children are provided
Normalize ssgCacheKey for /index with minimalMode de-duping
Merge rsc queries handling
Upgrade react-server-dom-webpack
Fix styled transform in next-swc/emotion
Fix
next infoaccidentally printing stderr
Documentation Changes
Change showcase url
Support
pnpmwithcreate-next-app
Misc Changes
Add test for multiple cookies coming from middleware
Ensure rust-check skips on docs only change
Fix create-next-app Multiple calls to the function 'makeDir'
Fix react-dom type error in CNA typescript template
12.1.0
17 Feb 2022- Deprecated
Deprecate
concurrentFeatureswithruntime Relay Support in Rust Compiler
Fix eslint link-passhref rule
Core Changes
Relay Support in Rust Compiler
Fix eslint link-passhref rule
Update webpack
Flush buffered vitals metrics on page mount
Fix problem with HMR when middleware and page reference the same node_module
Refactor page component getter in web server
Update NextResponse default redirect status to 307 to match docs
Bug fix: dynamic page should not be interpreted as predefined page
Group streaming experimental apis
Encapsulate routing and initial hydration
Optimize offline condition judgment
Ensure external beforeFiles rewrites are handled with next/link
Fix parsing params for i18n optional route in minimal mode
Ensure browserslist extends works properly
Fix image cache race condition
Add support for Relay projects without
artifactDirectoryHandle jsxspreadattribute in inline-script-id eslint rule
next-swc: Update swc
Update to latest version of amphtml-validator
Warn in dev mode when script tags are added with next/head
Ensure optional chaining in swc matches babel
Use
react-dom/server.browserin Node.jsEnsure external middleware rewrite is handled correctly
Update Terser to v5.10.0, fix minification issues
Warn in dev mode when stylesheets are added using next/head
Use
ReadableStreaminRenderResultFix suffix ordering while streaming
Don't use yarn if a package-lock.json file is found
Do not warn when application/ld+json scripts are used with next/head
Babel & next-swc: Fix exporting page config with AsExpression
Detect per page runtime config for functions manifest
Add JSDoc to config options
Update font-stylesheet-gathering-plugin.ts
Add decoratorMetadata flag if enabled by tsconfig
Data url handling in css-loader
Place 'charset' element at the top of <head>
Fix detection of anchor click events inside svg
Allow passing nothing as custom jest config
Fixes #31240: Adding a recursive addPackagePath function in webpack-config
Require component rendered as child of
Linkto pass event toonClickhandlerAllow scroll prevention on hash change
Add support for async fn / promise in next.config.js/.mjs
Fix
lazyRootfunctionality fornext/imageChange SWC minify from beta to release candidate
Make
Routerstate immutableStop exposing internal
renderandrenderErrormethods fromnext/clientAdd api-utils helper for testing
next-swc: Update swc
- Deprecated
Deprecate
concurrentFeatureswithruntime Add check for resolveWeak to next/dynamic
Remove unneeded and broken plugin
Remove experimental warning from next/jest
Arrow function export in rsc client component
Use
renderToStreamwith React 18Fix static result being piped
Polyfill pipeTo and pipeThrough
Update to leverage response-cache for image-optimizer
next/imageusage fromnode_modulesFix included flight manifest on node runtime
Use
react-dom/server.browserwhenreactRoot: trueFix image-optimizer requires in next-server
Fix required files matching in rsc
Throw error when ts file contains css.resolve
Chore/stable swc compiler options
Fix bug with "Circular Structure" error
Add _document and _app pre-import
Ensure standalone server handles SIGTERM
Copy
.envfile in standalone modeFix reuse of inline flight response and 404 for RSC in node runtime
Use updated recursive rm fs method for image-optimizer
Fix link for "Delete Query Params in Middleware" error message in
next-server.tsEnable dynamic HTML in minimal mode
Fix uncaught error in getInitialProps when
runtimeis set tonodejsOptimize the web server size
Allow
node-sass@7as peer dependencyAdding step to build the app with docker in existing projects
Changed all occurrences of etc to match
Align reactRoot config between server and webpack config
Fix
<RouteAnnouncer/>shouldn't announce initial path under strict mode and React 18Fix flight root failed to hydrate in strict mode
Allow dismissing full refresh warning for session
Remove experimental image optimization feature
Add support for "type": "module" in package.json
next-swc: Update swc
Ensure invalid request to static page is handled correctly
Add Error Handing section for ISR
next-swc: Update swc
Improve opening a new issue flow
Ensure we don't poll page in development when notFound: true is returned
Add image config for
dangerouslyAllowSVGandcontentSecurityPolicyRevert swc css bump temporarily
Update webpack
Update server-only changes HMR handling
Fix
.svgimage optimization with aloaderpropAllow reading request bodies in middlewares
Revert "Allow reading request bodies in middlewares"
Update webpack
Fix chunk buffering for server components
Remove deprecation for relative URL usage in middlewares
Documentation Changes
Change
urltonextUrlinside delete-query-params-in-middlewa…
Example Changes
Update firebase in with-firebase
Don't wrap
profilein firebase example
Misc Changes
Fix flakey image-optimizer test
Add types to nextConfig in default template
create-next-app: Add default version
Fix functions manifest test
Add pnpm debug file in gitignore templates
Allow listening for page requests in tests
12.0.10
1 Feb 2022- Deprecated
Deprecate process.browser
Image optimizer hangs when invalid image is requested
Make
compressconfigurable in standalone mode
Core Changes
Image optimizer hangs when invalid image is requested
Make
compressconfigurable in standalone modeAllow certain variable names in development
Use swc parse for flight server and client loaders
Properly support custom 500 page in the web server
- Deprecated
Deprecate process.browser
Improve tests for streaming and server components
Fixes #33314 move is-plain-object for es5 compilation
Add
stale-while-revalidatepattern to Image Optimization APIAllow to delete URL search params in middleware rewrites
Ensure all CSS files are included for experimental critical CSS
Ensure non-error thrown in getStaticPaths shows correctly
Fix encoding error with location and refresh headers
Fix duplicate image src causing canceled request
Generate functions manifest
Enable jest hoist transform when using next/jest
next/image: Render valid html according to W3C
Example Changes
Broken npm install
Misc Changes
Use github action instead of bot
Fix syntax error in
lock.ymlFix rsc test suite runner
12.0.9
26 Jan 2022- Removed
Remove node fetch polyfill from base server
- Removed
Removed backticks on data fetching api titles
- Deprecated
errors/no-cache:
netlify-plugin-cache-nextjshas been deprecated
This upgrade is completely backward-compatible and recommended for all users on versions below 12.0.9
Vulnerable code could allow a bad actor to trigger a denial of service attack via the
/${locale}/_next/route for anyone running a Next.js app at version >= 12.0.0, and using built-in i18n routing functionality.How to Upgrade
We have released patch versions for both the stable and canary channels of Next.js.
To upgrade run
npm install next@latest --save
Impact
Affected: All of the following must be true to be affected by this CVE
Next.js versions between
v12.0.0andv12.0.9Using next start or a custom server
Using the built-in i18n support
Not affected:
Deployments on Vercel (vercel.com) are not affected along with similar environments where invalid requests are filtered before reaching Next.js.
We recommend everyone to upgrade regardless of whether you can reproduce the issue or not.
How to Assess Impact
If your server has seen requests to any route under the prefix
/${locale}/_next/that have triggered a heap overflow error, this was caused by the patched issue.What is Being Done
As Next.js has grown in popularity and usage by enterprises, it has received the attention of security researchers and auditors. We are thankful to our users for their investigation and responsible disclosure of the original bug.
We've landed a patch that ensures this is handled properly so the requested route no longer crashes and triggers a heap overflow.
Regression tests for this attack were added to the i18n integration test suite
A public CVE was released.
We encourage responsible disclosure of future reports. Please email us at
security@vercel.com. We are actively monitoring this mailbox.
Core Changes
middlewares: Limit
process.envto inferred usageUpdate webpack
Abstract out native filesystem usage from the base server
Use text data url instead of base64 for shorter encoding
Fix global process testing for the process polyfill
Update swc
Improve full refresh overlay
Custom app for server components
Update yarn PnP tests and disable swc file reading for PnP
Base Http for BaseServer
Update swc
Update check for fallback pages during export
Pre-compile more dependencies
- Removed
Remove node fetch polyfill from base server
Replace regexp to plain string for optimization render HTML
Fix broken html on streaming render for error page
Disable cache for rsc pages
Fix pre-compiled check from copying react-refresh-utils
next-swc: Update swc
Move middleware handling to node server
Enforce absolute URLs in Edge Functions runtime
next-swc: Update swc
Update main field for nccd jest-worker
Move static serving to next server
next-swc: Update swc
Fix multiple calls to image
onLoadingComplete()Refactor base server to remove native dependencies
Update swc
Implement abstract methods to get manifest files in the base server
Simplify getMiddlewareInfo calls
Fix static file check with i18n
Bump styled-jsx
Ensure optional value normalizing is correct for index
Add
next-multilingualexampleRemoved the s from NextConfig
next-swc: Update swc
Fix rsc export component name detection
Upgrade webpack
Ensure fetch polyfill is loaded in next-server
next-swc: Update swc
Add
lazyRootoptional property tonext/imagecomponentnext-swc: Update swc
Implement web server as the request handler for edge SSR
Relay Support in Rust Compiler
Revert "Relay Support in Rust Compiler"
Documentation Changes
- Removed
Removed backticks on data fetching api titles
- Deprecated
errors/no-cache:
netlify-plugin-cache-nextjshas been deprecated
Misc Changes
Add link to security email directly.
Fix getServerSideProps hanging in dev on early end
12.0.8
12 Jan 2022- Removed
Remove anonymous default export rule from Babel
Fix no-server-import-in-page eslint rule for subfolder middleware
Create Base Server
Core Changes
Fix no-server-import-in-page eslint rule for subfolder middleware
Create Base Server
Revert support for render prop in
<Main />Refactor FS references in the Base Server
telemetry: Collect feature usage for linting during build
Chore/load bindings improvements
NODE_ENV: Warn when launching start or build on development
Fix crash in no-page-custom-font eslint rule when default export is unnamed.
Add docs for leveraging outputStandalone config
Replace raw-body with get-stream and bytes
Update to latest ncc and ensure caniuse-lite data is external
Update swc
Simplify custom
WritableAdd shake exports transform to next-swc
Revert "Replace raw-body with get-stream and bytes"
Re-open chore(deps): upgrade browserslist
Fix RSC link navigation
Compile escape-string-regexp
Add unstable_useRefreshRoot
Upate swc
Fix unstable_useRefreshRoot typing
next-swc/styled-jsx: Fix
nthRename experimental vital hook
Inline server data response with partial hydration
Update
jsxtransform of swcFix running server with Polyfilled fetch
Fix dynamic routes with pages under index folder
Fixes #32338 missing Document components trigger an error for production builds
Fixes for inline embedding data in the web runtime
Add vitals and rsc to npm files
Fixes to allow lazy compilation for import()
Upgrade webpack and watchpack
Update to filter loader specific files from traces
Fix server data cache key
Fix hydration for rewrites to dynamic pages
Ensure image-optimizer is traced for standalone mode
Remove unused classnames dependency from react-dev-overlay
next-swc: Emit errors and add tests to next-ssg
Include message body in redirect responses
Prevent NEXT_PHASE env change in workers
Check stack property for page export exceptions
next-swc/styled-jsx: Fix interpolation in media query
Update swc
Add turbo / improve Rust build caching in GitHub Actions
Fix ReadableStream.pipeTo() being unimplemented in the web runtime
Ensure AMP optimizer is only excluded from trace when not used
Upgraded next-env dependencies
Feat/14701 full reload notification
Move fs API for inc cache to node server
Add options to defaultGetInitialProps and upgrade styled-jsx-with-csp example
Fix
style.filteron image withplaceholder=blurFix writing strings to the writable stream writer
next/jest: Do not watch
.nextfolderPre-compile more dependencies
Upgrade react 18 to rc, drop prerelease warning
next-swc: styled-jsx error checking and reporting updated (invalid-styled-jsx-children.md)
Fix style reset on image with
placeholder=blurPre-compile more dependencies continued
Web runtime: add AbortController & AbortSignal
Don't swallow test failures caused by POSIX signals
Escape from next head in rsc _error page
Fix popstate detection for safari when basepath is present
Bust cache for RSC in each render
Update web runtime externals
Reduce styled-jsx size in client bundle
Bump nft to version 0.17.1
- Removed
Remove anonymous default export rule from Babel
eslint: Allow
afor internal url whentarget="blank"presenteslint-plugin-next: Broken links in eslint output
Adds lint rule to flag usage of
<head>Ignore .d.ts files inside pages folder
Fix
next/imagenoscript tag to only render when lazySimplify trace span id generation
Move resolve-url-loader into Next.js
router: Scroll to top when
href="/"and hash already presentRemove un-needed test dependency
Fix issue with escape-string-regexp in IE11
Allow to opt-out from preflight cache
Ensure setImmediate and punycode are polyfilled
Fixes issue with makeStylesheetInert
Reduce install size for linux glibc/musl
Ensure middleware is output in standalone mode
Revert "Reduce install size for linux glibc/musl"
cli: Introduce
next infoCLI commandEnsure NODE_ENV is not inlined for next/jest
Converted the old tailwind css example to typescript
Ensure revalidation error is logged from response-cache
Add util for generating new tests/error documents
Fix middleware at root in standalone mode
Update swc
Use a separate webpack runtime for middleware
Allow dependencies to use environment variables in middlewares
next-swc: Fix ssg code elimination when used in render
Drop dynamic import with
ssr: falseon server-sideFix broken yarn pnp
Add util for normalizing errors
Example Changes
Setup prismic image host
Add .web.jsx extension support in react-native-web example
Typescript example supporting strict w/ version >= 4.4
Misc Changes
Ensure wasm dev artifact uploads even on cache hit
Ensure test wasm does not fail for docs only change
Fix styled-jsx tests from swc bump
Fix flakey next/link react streaming test
Added docs issue template
Ensure experimental SWC options invalidate the cache
Add test case for middleware rewrite to fallback: true page
Ensure device IP is used for safari browserstack test
Run prettier on with-jest and with-jest-babel examples
12.0.7
5 Dec 2021Add test for TailwindCSS JIT mode reloading
Ensure conf type for createServer is not changed
12.0.6
4 Dec 2021Fix document type import path
12.0.5
3 Dec 2021- Removed
Remove trace_target env var in favor of .next/trace
We have released patch versions for both the stable and canary channels of Next.js.
To upgrade run
npm install next@latest --save
This upgrade is completely backward-compatible and recommended for all users on versions below 12.0.5. A backport of the patch to Next.js 11 is available as 11.1.3.
When a URL is provided to
next-serverthat cannot be parsed, anunhandledPromiseRejectioncould occur. On Node.js versions <v15.0.0this isn't a fatal issue as only a warning is shown. However, in Node.js versions >v15.0.0, this causes the server process to exit, which can result in unexpected server crashes.How to Upgrade
We have released patch versions for both the stable and canary channels of Next.js.
To upgrade run
npm install next@latest --save
Impact
Affected: All of the following must be true to be affected
Next.js versions above
v11.1.0and belowv12.0.5Node.js above
v15.0.0being usedUsing
next startor a custom server
Not affected: Deployments on Vercel (vercel.com) are not affected along with similar environments where invalid requests are filtered before reaching Next.js.
We recommend everyone to upgrade regardless of whether you can reproduce the issue or not.
How to Assess Impact
If you are running Node.js >
v15.0.0with Next.js, you can filter any server error logs forERR_INVALID_URL.What is Being Done
As Next.js has grown in popularity and usage by enterprises, it has received the attention of security researchers and auditors. We are thankful to GitHub user
hopeless-programmer-onlinefor their investigation and discovery of the original bug.We've landed a patch that ensures this is handled properly so the
unhandledPromiseRejectionissue no longer occurs.Regression tests for this attack were added to the security integration test suite
A public CVE is requested.
We encourage responsible disclosure of future reports. Please email us at
security@vercel.com. We are actively monitoring this mailbox.
Core Changes
Add a swc transform for removal of
console.*calls.Support ESLint v8
Allow
next lintwithouteslint-config-nextinstalledRemove TextEncoder and TextDecoder wrappers
Simplify output messages
Update webpack
NextResponse: Add
.jsonstatic methodUse _error for development in streaming
Refactor the middleware SSR loader
Add detection for
Google-PageRendererbotClick-to-open error state for development overlay #14461
Ensure only one doctype is rendered
Update swc
Add/wasm build
telemetry: Track usage of 'optimizeFonts'
Make missing
Documentcomponents an errorAdjust AVIF size so that its smaller than WebP size
Fix unhandled rejection on route change in dev
Re-add native package folders and ensure wasm artifacts are downloaded
Fix HMR for middleware #30791
Minor simplifications to
renderToWebStreamFix accessing router before ready for HMR ping
Implement SWC port of next-page-disallow-re-export-all-exports
Prevent
no-html-link-for-pagesfrom warning for static filesMove root div to an app wrapper
Add types for geo lat and long
Fix non-concurrent function _document
Remove outdated comment about string children being deprecated in
next/linkmiddleware: Consider localhost variations
Update swc
Extract next-swc Rust code into its own package
Fix dev router usage before router initializing
Avoid mutating response.cookie options
Add cookies and headers for request using in RSC
- Removed
Remove trace_target env var in favor of .next/trace
Add error link when hydration error occurs
Fix initial compile timing incorrect measurement
Lazily init getStaticPathsWorker
Remove noop import
Update webpack
Fix wasm loading
Remove some watcher hacks and update version
Improve and refactor some types
Read file in swc when no loaders follow the next-swc-loader
Lazy-load postcss
Update webpack
Ensure middleware order is preserved
Refactor sandbox module cache
Fix hydration middleware effects
Support function components in _document in no-page-custom-font
Add support for removing React properties.
Include submodules in exported type definition
Move require.resolve into the module scope
Fix amp validator message format
Fix auto export condition in edge SSR
bugfix: Href value is not defined when typing out the href
Do not load external binding if local was found
Rsc headers
Add port and hostname options to Next Server
Cannot assign to read only property 'children'
Fix disabling of built-in CSS support if there is a custom loader
Include no-document-import-in-page rule in plugin index
Account for platform/arch not supported by napi-rs
Removng prop writable checking in prod
Enable default functional document when concurrentFeatures is enabled
Stop using environment variables in
pages/_documentFix image related link prop warning with react 18 beta
Escape string when converting to regexp
Add TS types for NextMiddleware
types: Add missing ua type for NextRequest
Ensure that external modules are not bundled into the client for RSC
Resolve streaming data for flight requests
Allow pre-release React 18 as peer
Link: Do not ignore onMouseEnter prop with absolute href
Add experimental.swcFileReading flag to disable file reading in swc
Fix middleware types with skipLibCheck: false
Include page for export errors for easier debugging
Avoid retaining webpack config too long
Skip warnings for Image not rendered to the dom
Improve exported root definitions
Fix running server with Polyfilled fetch
Ensure invalid URLs respond with 400 correctly
Remove future.strictPostcssConfiguration config
Revert "Fix running server with Polyfilled fetch (#31935)"
Misc Changes
Revert "Add docs for the Rust Compiler (SWC)."
Ensure wasm package.json is written before publish
Add docs for the Next.js Compiler written in Rust (leveraging SWC)
Fix prettier linting
Fix labels for release sections
Fix musl build
Enable require for swc_bundler
Add test case
Add next-swc to labeler
Add Rich, Maedah, and Ismael to the docs label
Fix copying swc binary for isolated tests locally
Fix the testall npm script
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.