Update nextjs monorepo to v13 #15
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "renovate/nextjs-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
12.0.3
->13.0.0
12.2.5
->13.0.0
Release Notes
vercel/next.js
v13.0.0
Compare Source
Core Changes
__NEXT_NEW_LINK_BEHAVIOR
in Jest tests whennewNextLinkBehavior
is true: #40702optoutServerComponentsBundle
option: #40770<Image />
andresponseLimit
: #40863fetch
usingundici
in Node.js <18: #40318adjustFontFallbacks
: #40771v0.28.10
: #41016with-xata
example: #39864eslint-plugin-next
: #38647pnpm dev
: #40335eslint-plugin-next
to typescript: #41046mjs
,mts
,cjs
andcts
extension by default: #40879v0.28.20
: #41153moduleId
option: #41160sharp
is missing in standalone mode: #41133v0.29.5
: #41181react-dom
in the SSR build: #412272701033
: #41240AppProps
to not require generic: #41264as
on next/link with new router: #41285beforeInteractive
scripts properly without blocking hydration: #41164type: "module"
: #41268v0.32.8
: #41304next/image
: #41004next/image
codemod to handlerequire()
: #41345onLoad
prop innext/future/image
: #41374next/image
tonext/legacy/image
& renamenext/future/image
tonext/image
: #41399v0.38.4
: #41401next/image
SyntheticEvent: #41480next/image
docs and examples: #41434v0.38.22
: #41477Cookies
->NextCookies
: #41491target: serverless
: #41495browsersListForSwc
and change default tolegacyBrowsers: false
: #41529v0.39.7
: #41544styled-jsx
prefix innext dev
: #41484next/image
svg blur placeholder withfill
: #41573images.loaderFile
config: #41585next-image-experimental
codemod to handle loaders: #41633data-nimg
attribute onnext/image
: #41612v0.40.7
: #41613webpack5
config option: #41667AsyncLocalStorage
for static generation is shared for client & server: #41695v0.40.13
: #41692v0.40.13
": #41699v0.40.13
"": #41700v0.40.16
: #41702app
detected but config is missing: #41696appDir
feedback: #41751Documentation Changes
console.log
output example: #41096redirects
on client-side navigation: #41362remotePatterns
link to next-image-unconfigured-host: #41504swcMinify
to the Upgrade Guide: #41521next/legacy/image
demo: #41539next/image
sizes using fill prop: #41560<Link />
executes server methods: #41577ci-build-caching
: #41763Example Changes
msw
version inwith-msw
example: #40777with-react-native-web
dependencies: #41024with-react-hook-form
example to TypeScript: #38796next-env.d.ts
files: #41041vanilla-extract
example: #41061with-xata
example: #41063cms-prismic
example: #40121with-linaria
: #41085withSentry
function inwith-sentry
example: #41326preset: client
: #41597Misc Changes
eslint-config-next
pnpm dev
(#40335)"pnpm dev
: #41062.ts
to.tsx
create-next-app
environment package manager parser: #41279e2e/app-dir/next-image
: #41609Credits
Huge thanks to @ijjk, @huozhi, @HaNdTriX, @iKethavel, @timneutkens, @shuding, @rishabhpoddar, @hanneslund, @balazsorban44, @anthonyshew, @TomerAberbach, @philippbosch, @styfle, @mauriciomutte, @hayitsdavid, @abdennor, @Kikobeats, @cjdunteman, @Mr-Afonso, @kdy1, @jaril, @abdallah-nour, @North15, @feedthejim, @brunocrosier, @Schniz, @sedlukha, @hashlash, @Ethan-Arrowood, @fireairforce, @migueloller, @leerob, @janicklas-ralph, @Trystanr, @atilafassina, @nramkissoon, @kasperadk, @valcosmos, @henriqueholtz, @nip10, @jesstelford, @lorensr, @AviAvinav, @SukkaW, @jaycedotbin, @saurabhburade, @notrab, @kwonoj, @sanruiz, @angeloashmore, @falsepopsky, @fmontes, @Gebov, @UltiRequiem, @p13lgst, @Simek, @mrkldshv, @thomasballinger, @kyliau, @AdarshKonchady, @endymion1818, @pedro757, @perkinsjr, @gnoff, @jridgewell, @silvioprog, @mabels, @nialexsan, @feugy, @jackromo888, @crazyurus, @EarlGeorge, @MariaSolOs, @lforst, @maximbaz, @maxam2017, @teobler, @Nutlope, @sunwoo0706, @WestonThayer, @Brooooooklyn, @Nsttt, @charlypoly, @aprendendofelipe, @sviridoff, @jackton1, @nuta, @Rpaudel379, @marcialca, @MarDi66, @ismaelrumzan, @javivelasco, @eltociear, @hiro0218, @HugoDF, @saulloalmeida, @ahhshm, @eve0415, and @sokra for helping!
v12.3.1
Compare Source
Core Changes
experimental: { esmExternals: 'loose' }
: #40377next/dynamic
should only add default loading without suspense: #40397AppType
: #40391onLoad
concurrent rendering resilient: #40191fallbackNodePolyfills: false
: #40612notFound: true
in/
withnext export
: #40592CONTRIBUTING.md
: #40515Documentation Changes
swcMinify: true
out of "Experimental features" section: #40394loading
property: #40488Example Changes
Misc Changes
link:
instead offile:
in CONTRIBUTING.md: #40510/errors/
directory.tar
: #40513next/script
beforeInteractive test in both dev & prod: #40541Credits
Huge thanks to @huozhi, @shuding, @ijjk, @jasham, @Kikobeats, @wyattjoh, @rubytree33, @timneutkens, @balazsorban44, @andrewrjohn, @SukkaW, @hanneslund, @leerob, @Djo1e, @kdy1, @msafi, @tknickman, @feugy, @cramforce, @ryparker, @victorboucher, @steven-tey, @JDansercoer, @janklimo, @hiro0218, @HaNdTriX, @migueloller, @flex-kyunghwa, @saalimzafar, @alxhotel, @janicklas-ralph, @feedthejim, and @chornos13 for helping!
v12.3.0
Compare Source
Core Changes
SPACE_AROUND_COLON
regex: #39710fetch
response: #39608onError
handling innext/future/image
: #39824next/future/image
whenobjectFit
orobjectPosition
: #39614next/future/image
blur-up placeholder : #39785@vercel/nft@0.22.0
: #39906AppProps
's generic forpageProps
: #38867next/future/image
incorrectly warning forfill
+blur
: #39986experimental.fallbackNodePolyfills
flag: #39248next/script
in the server build by default: #40013next/future/image
to use svg blur placeholder duringnext dev
: #39992<noscript>
fromnext/future/image
: #40075filePath
being wrongly stringified: #40070alt
to required innext/future/image
: #40136next dev
andnext start
: #40118next/future/image
,remotePatterns
,unoptimized
: #40142@vercel/nft@0.22.1
: #40164next/config
: #40224next/future/image
to support onlywidth
or onlyheight
: #40278RemoveConsole
: #40296react/no-unknown-property
: #40331onLoadingComplete
fornext/future/image
to receive reference to<img>
: #40326Documentation Changes
next/future/image
docs about Known Browser Bugs: #39759exportPathMap
withgetStaticPaths
: #39813next/future/image
with details about computed aspect ratio: #39829largePageDataBytes
in warning docs: #39941script.md
: #40017jest.config.js
: #40090remotePatterns
image config: #40350Example Changes
hideSourceMaps
: #40079image-component
example types: #40352Misc Changes
npm
version in issue validator: #38915Credits
Huge thanks to @stipsan, @ijjk, @timneutkens, @bennettdams, @shuding, @cherniavskii, @huozhi, @Brooooooklyn, @thatbeautifuldream, @Janpot, @MoosaSaadat, @alexcole, @HaNdTriX, @magic-akari, @balazsorban44, @styfle, @SukkaW, @kdy1, @sokra, @delbaoliveira, @puneetkathar1, @nkzawa, @Schniz, @greebl3, @kasperaamodt, @chaseignited, @masad-frost, @Kikobeats, @davewelsh, @MaedahBatool, @adrianbienias, @michaeloliverx, @arthurdenner, @sumiren, @migueloller, @hanneslund, @wyattjoh, @kwonoj, @boredland, @simongavelin, @esbenam, @theMosaad, @jleclanche, @leerob, @AdilAmanat, @souporserious, @ykdojo, @sanjaiyan-dev, @yoannmoinet, @thomasballinger, @titusdmoore, @jferrettiboke, @Dueen, @dunglas, @KenAKAFrosty, @wbinnssmith, @schehata, @remorses, @visnup, @Nutlope, @yhay81, @hiro0218, @avigoldman, @feugy, @jeferson-sb, @lobsterkatie, @atcastle, @bcheidemann, @Will956, @orionmiz, @S0UPernova, @cvbuelow, and @leonzalion for helping!
v12.2.6
Compare Source
v12.2.5
Compare Source
Core Changes
next/future/image
alt text: #39366eslint-plugin-eslint-plugin
to ensureeslint-plugin-next
rules follow ESLint rule best practices along with enforcing some consistency.: #37920Documentation Changes
context.query
ingetServerSideProps()
: #39422router.prefetch
documentation to includelocale
option: #39442Example Changes
Misc Changes
Credits
Huge thanks to @pthomas931, @madmed88, @sanjaiyan-dev, @balazsorban44, @DonghyukJacobJang, @ijjk, @chaiwattsw, @styfle, @dunglas, @ahkhanjani, @promer94, @terrierscript, @shawncal, @insik-han, @QuiiBz, @ykzts, @JoshuaKGoldberg, @lucasassisrosa, @dikwickley, @Brooooooklyn, @sicarius97, @FourwingsY, @manovotny, @SukkaW, @pepoeverton, @jdeniau, @sumiren, @anthonyshew, @pekarja5, @huozhi, @leerob, @fediev, @atcastle, @shuding, @feugy, @jonohewitt, @zakiego, @Schniz, @timneutkens, @wyattjoh, @MaedahBatool, @X7Becka, @nnnnoel, @dcdev67, @alvinometric, @timothympace, and @jeferson-sb for helping!
v12.2.4
Compare Source
Core Changes
analyticsId
to config schema: #38911attachRequestMeta
in base server to handle meta differently in edge and node servers: #38932config
field: #38907asPath
on large page data warning: #39071next/future/image
: #38855Documentation Changes
getStaticPaths
on-demand.: #38943next/future/image
about default styles.: #38978next/image
tonext/future/image
: #39270Example Changes
with-stitches
to TS: #38892custom-routes-proxying
example to TypeScript: #38974if..elif..else
in docker examples: #39072cms-agilitycms
example to TypeScript: #38976if...else
in dockerfile: #39263Misc Changes
Credits
Huge thanks to @theMosaad, @SukkaW, @timneutkens, @Yuddomack, @msquitieri, @andreizanik, @nix6839, @shuding, @thomasballinger, @ziishaned, @leerob, @xyeres, @nyedidikeke, @maxproske, @sokra, @titusdmoore, @thebergamo, @fikrikarim, @Kikobeats, @balazsorban44, @clearlyTHUYDOAN, @ijjk, @nasso, @qutek, @kdy1, @kyliau, @housseindjirdeh, @huozhi, @barissayil, @seveibar, @Jessidhia, @santidalmasso, @JohnDaly, @Nikhilnama18, @atcastle, @styfle, @Schniz, @mduleone, @colinhacks, @ductnn, @josh, @hiro0218, @eltociear, @kwonoj, @valcosmos, and @feugy for helping!
v12.2.3
Compare Source
Core Changes
query
in new router: #38466__esModule
: #38181hide-fouc
tags after hydration: #38592next/jest
when testingnext/future/image
: #38569auth-with-stytch
.: #38648experimental-edge
inpages/api/index
: #38024output: "standalone"
as custom server: #38831next/image
error message whensrc
prop is missing: #38847Documentation Changes
next/future/image
with browser support: #38563matcher
needs to be constant values: #38597pathname
andasPath
: #38835Example Changes
api-routes
example to TypeScript: #38083next-minimal-starter
: #38452with-sentry
example_error.js
: #37866WORDPRESS_API_URL
to include/graphql
: #38764Dockerfile
: #38693with-service-worker
example: #38670with-dynamic-import
to TypeScript: #38844with-cypress
example to TypeScript: #38818Misc Changes
Credits
Huge thanks to @huozhi, @mihaic195, @ijjk, @kwonoj, @stefanprobst, @maxproske, @valcosmos, @KATT, @kdy1, @thiagomorales, @sanjaiyan-dev, @danielcavanagh, @balazsorban44, @shuding, @Schniz, @steven-tey, @styfle, @hellomhc, @trevor-fauna, @timneutkens, @leerob, @wyattjoh, @nguyenyou, @eminvergil, @lobsterkatie, @dorian-davis, @SukkaW, @sambecker, @isaac-martin, @JohnDaly, @housseindjirdeh, @lfades, @feugy, @thomasballinger, @amorimr, and @javivelasco for helping!
v12.2.2
Compare Source
Core Changes
next/future/image
semicolon: #38454Documentation Changes
Example Changes
blog-starter
example with TS, deprecateblog-starter-typescript
example: #38395api-routes-rate-limit
example to TypeScript: #38393api-routes-rest
example to TypeScript: #38394api-routes-graphql
example to TypeScript: #38357Credits
Huge thanks to @mongolyy, @balazsorban44, @maxproske, @leerob, @huozhi, @Thisen, @thebergamo, @zorrolisto, @styfle, @housseindjirdeh, and @kwonoj for helping!
v12.2.1
Compare Source
Core Changes
layoutRaw
config: #38120@next/next/no-assign-module-variable
ESLint rule.: #38134next/future/image
is missing width or height: #38132eslint-plugin-next
's available rules are properly exported and recommended rules are correctly defined.: #38183Documentation Changes
next/future/image
docs to mention the difference withnext/image
: #38108lazyRoot
example fromnext/future/image
doc: #38140next/future/image
docs to specify supported browser versions.: #38307Example Changes
api-routes-cors
example to TypeScript: #38356api-routes-middleware
example to TypeScript: #38358blog
example to TypeScript: #38095Misc Changes
type: "module"
when building the Issue validator action: #38197/dist
for local actionpackage.json
since we have `pnpm-works…: #38166package.json
since we have `pnpm-works…": #38376Credits
Huge thanks to @ethomson, @styfle, @padmaia, @kwonoj, @shuding, @ijjk, @manovotny, @thisisjofrank, @maxproske, @dominiksipowicz, @awareness481, @pakaponk, @SukkaW, @apledger, @wyattjoh, @huozhi, @thomasballinger, @balazsorban44, @longzheng, @tknickman, @rbrcsk, @emersonlaurentino, @carstenlebek, @edusig, @Schniz, @riccardogiorato, @leerob, @valcosmos, @hanneslund, @ryanhaticus, @j-mendez, @armandabric, @WinmezzZ, @andershagbard, @dammy001, @MarDi66, @stefanprobst, @okmttdhr, @rishabhpoddar, @marjorg, @dustinsgoodman, @zanechua, @feugy, and @timneutkens for helping!
v12.2.0
Compare Source
Core Changes
remotePatterns
config for upstream images: #36245req.cookies.get()
: #36872beforeInteractive
scripts failing in custom document: #37000layout=raw
to use native img lazy loading: #36985.getWithOptions
method: #36943getPageStaticInfo
: #37062routeChangeError
event: #36828idx
reset to 0 on reload: #36861@vercel/nft
to 0.19.1: #37129next.config.js
: #37125remotePatterns
wildcard: #37137swcMinifyDebugOptions
: #37172legacyBehaviour
toa
as prop: #37306runtime: edge
in api endpoints: #36947runtime: edge
in api endpoints": #37337runtime: edge
in api endpoints"": #37344request.page
: #37349next dev
: #37430next/image
usinglayout=raw
withpriority
: #37381swcMinify
as an attribute onterser-webpack-plugin-optimize
span: #37416req.ua
: #37512DynamicOptionsLoadingProps
type: #37700images.unoptimized: true
for easynext export
: #37698target: 'serverless'
is used with Middleware: #37819externalHelpers
when pre compiling Next.js' code: #37164externalHelpers
when pre compiling Next.js' code": #37829<Image/>
'slazyRoot
and other optimizations: #37447styled-components
transform and enablecss
prop support: #37861next/future/image
component: #37927future
folder: #37999rimraf
from root packages using it: #37996eslint-config-next
version innext info
: #38062init
to someNextResponse
methods: #38071<noscript>
fromnext/future/image
: #38080Documentation Changes
className
attribute for JSX: #37168next build
output is compressed.: #37228pnpm create next-app
for latest pnpm 6 and 7: #37254next/dynamic
docs and add links to layouts RFC.: #37244.js
to.ts
.: #37858active-class-name
example: #37828NextRequest.ip
: #37987onLoad()
test fornext/image/future
: #37993Example Changes
api-routes-graphql
to GraphQL Yoga: #36155TypedDocumentNode
and GraphQL Yoga for better DX and smaller bundle size: #36240cms-kontent
example SDK package to v11: #37187cms-kontent
exampleNext/Image
domain error: #37188cms-kontent
example to action PR feedback: #37206with-styled-components
: #37237with-tailwindcss
example to TypeScript: #37208Misc Changes
name
andversion
: #36771pnpm install
in tests: #37712action.yml
to Issue validator action: #37950package.json
: #37910release
to 6.3.1: #37995.gitignore
to include@next/swc-wasm-nodejs
: #38025Credits
Huge thanks to @huozhi, @ijjk, @kwonoj, @ViolanteCodes, @akrabdev, @timneutkens, @jpveilleux, @stigkj, @jgoping, @oof2win2, @Brooooooklyn, @CGamesPlay, @lfades, @molebox, @steven-tey, @SukkaW, @Kikobeats, @balazsorban44, @erikbrinkman, @therealmarzouq, @remcohaszing, @perkinsjr, @shuding, @hanneslund, @housseindjirdeh, @RobertKeyser, @styfle, @htunnicliff, @lukeshumard, @sagnik3, @pixelass, @JoshuaKGoldberg, @rishabhpoddar, @nguyenyou, @kdy1, @sidwebworks, @gnoff, @gaspar09, @feugy, @mfix-stripe, @javivelasco, @Chastrlove, @goncharov-vlad, @NaveenDA, @Firfi, @idkwhojamesis, @FLCN-16, @icyJoseph, @ElijahPepe, @elskwid, @irvile, @Munawwar, @ykolbin, @hulufei, @baruchadi, @imadatyatalah, @await-ovo, @menosprezzi, @gazs, @Exortions, @rubens-lopes, @woochul2, @stefee, @stmtk1, @jlarmstrongiv, @MaedahBatool, @jameshfisher, @fabienheureux, @TxHawks, @mattbrandlysonos, @iggyzap, @src200, @AkifumiSato, @hermanskurichin, @kamilogorek, @ben-xD, @dawsonbooth, @Josehower, @crutchcorn, @ericmatthys, @CharlesStover, @charlypoly, @apmatthews, @naingaungphyo, @alexandrutasica, @stefanprobst, @dc7290, @DilwoarH, @tommarshall, @stanhong, @leerob, @appsbytom, @sshyam-gupta, @saulloalmeida, @indicozy, @ArianHamdi, @Clariity, @sebastianbenz, @7iomka, @gr-qft, @Schniz, @dgagn, @sokra, @okbel, @tbvjaos510, @dmvjs, @PepijnSenders, @JohnPhamous, @kyliau, @eric-burel, @alabhyajindal, @jsjoeio, @vorcigernix, @clearlyTHUYDOAN, @splatterxl, @manovotny, @maxproske, @nvh95, @frankievalentine, @nuta, @bagpyp, @dfelsie, @qqpann, @atcastle, @jsimonrichard, @mass2527, @ekamkohli, @Yuddomack, @tonyspiro, @saurabhmehta1601, @banner4422, @falsepopsky, @jantimon, @henriqueholtz, @ilfa, @matteobruni, @ryscheng, @hoonoh, @ForsakenHarmony, @william-keller, @AleksaC, @Miikis, @zakiego, @radunemerenco, @AliYusuf95, and @dominiksipowicz for helping!
v12.1.6
Compare Source
Core Changes
export from
and native modules in server component: #36072standalone
directory when usingoutputStandalone
: #35535next/image
usage in most cases ofonLoad()
: #36176node | node12 | nodenext
: #36189_document
: #36352next/image
usage ofonError()
: #36305next/script
forworker
andbeforeInteractive
strategies: #36364Content-Length
header from Image Optimization API: #36581Documentation Changes
react
version: #36091next.config.js
: #36286onLoad
: #36453<link rel="preconnect" ... />
to example optimized font output: #36529Example Changes
removeListener
handler towith-electron-typescript
example.: #36323Misc Changes
Credits
Huge thanks to @huozhi, @shuding, @kdy1, @nkzawa, @prichey, @manovotny, @balazsorban44, @remorses, @amandeepmittal, @mward-sudo, @eric-burel, @timneutkens, @styfle, @ytkg, @CuriosBasant, @bart-krakowski, @SukkaW, @jameshfisher, @Kikobeats, @bjorm, @alex-page, @fmmoret, @ijjk, @davidbarker, @kwonoj, @seanparmelee, @ddgrishkin, @mmartinsoliv, @byjoshuadavis, @sakib412, @Chastrlove, @padmaia, @janicklas-ralph, @MaedahBatool, @shinkj11, @youngvform, @zaida04, @therealmarzouq, @codedbyjordan, @deadlynjdj, @lfades, @Brooooooklyn, @renbaoshuo, @javivelasco, @triyanox, @rafae2k, @colinhacks, @atcastle, @leerob, @sa3dany, @nikolovlazar, @refactorized, @housseindjirdeh, @ro11ingbutler, and @gusrb3164 for helping!
v12.1.5
Compare Source
Core Changes
layout="raw"
image element sizes prop: #35809next/image
withplaceholder=blur
: #35889stream
in renderer: #35936.eslintrc.cjs
to list of supportednext lint
config files: #35440loader
prop innext/image
: #36013Documentation Changes
with-docker-multi-env
example.: #35820Example Changes
client
ingetServerSideProps
: #35750Misc Changes
Credits
Huge thanks to @TianenPang, @huozhi, @Brooooooklyn, @SokichiFujita, @timneutkens, @housseindjirdeh, @kwonoj, @jonespen, @leerob, @shuding, @atcastle, @SukkaW, @samueldusek, @styfle, @amandeepmittal, @bestony, @nkzawa, @kamerat, @JohnDaly, @jakejarvis, @sokra, @reconbot, @bjorm, @kdy1, @HaNdTriX, @Markos-Th09, @rishabhpoddar, @timeyoutakeit, @aravindputrevu, @molebox, @gsimone, @Ethan-Arrowood, @Kikobeats, @williamli, and @vltansky for helping!
v12.1.4
Compare Source
Core Changes
Documentation Changes
Credits
Huge thanks to @huozhi, @styfle, and @kdy1 for helping!
v12.1.3
Compare Source
Core Changes
Documentation Changes
Misc Changes
Credits
Huge thanks to @lfades, @nkzawa, @kwonoj, @SethFalco, @hiro0218, @Brooooooklyn, @shuding, @BWsix, @schickling, @ijjk, and @martinnabhan for helping!
v12.1.2
Compare Source
Core Changes
Documentation Changes
Misc Changes
Credits
Huge thanks to @huozhi, @shuding, @Brooooooklyn, @TianenPang, @lfades, and @timneutkens for helping!
v12.1.1
Compare Source
Core Changes
HtmlContext
: #34482experimental
field exists: #34500unstable_useFlushEffects
hook: #34117next/image
expects it: #34350next/image
incorrectly warning forposition: absolute
parent: #34551useMaybeDeferContent
hook: #34506next/image
warnings to avoid printing more than once: #34562next-env.d.ts
: #34394cargo clippy
andcargo fmt
to CI: #34625redirect
andrewrite
destination types: #34617image-config.ts
gets transpiled to ES5: #34677next/image
noscript when blur and priority: #34973next/client
initialization: #33838next/image
when src is webp but browser doesnt support it: #35190cssnano-simple
: #35258_document-concurrent
component: #35242<Script />
using Partytown: #34244fs.readFile()
works with Output File Tracing: #35338next info
accidentally printing stderr: #35556Documentation Changes
pnpm
withcreate-next-app
: #34947next/image
docs section for animated images: #35123context.ctx
argument in _app docs page: #35303next/image
docs for width & height: #35188Example Changes
with-redis
example to TypeScript: #34720Misc Changes
Credits
Huge thanks to @styfle, @shuding, @balazsorban44, @huozhi, @amandeepmittal, @bennettdams, @sophiabits, @MaedahBatool, @devknoll, @nkzawa, @kinetifex, @elrumordelaluz, @Brooooooklyn, @mitchell-abbott, @Schniz, @natew, @nrjdalal, @dephraiim, @lfades, @sokra, @AmirhBeigi, @marshalcode, @timneutkens, @mxgnus-de, @MoltenCoffee, @jonespen, @NoamNol, @khuezy, @rishabhpoddar, @kara, @reubn, @luciy, @Pauldic, @brodyd795, @eungyeole, @kyliau, @Nutlope, @jgoping, @crice88, @leerob, @SukkaW, @thibautsabot, @sincovschi, @ahollenbach, @kolarski, @AFusco, @stipsan, @sisp, @kdy1, @lydiahallie, @Skagoo, @ijjk, @klarstrup, @midgleyc, @perkinsjr, @bnoguchi, @fhinkel, @fliptheweb, @kwonoj, @leyanlo, @ericponto, @huzaifarif, @chemicalkosek, @chentsulin, @housseindjirdeh, @bernard-lin, @atcastle, @kylemh, @samsisle, @Gomurmamma, @molebox, @Xairoo, @nelodev, @SevlaMare, @lukahartwig, @losfair, @cramforce, @hiro0218, and @CommanderRoot for helping!
v12.1.0
Compare Source
Core Changes
artifactDirectory
: #33918react-dom/server.browser
in Node.js: #33950ReadableStream
inRenderResult
: #34005Link
to pass event toonClick
handler: #27723lazyRoot
functionality fornext/image
: #33933Router
state immutable: #33925render
andrenderError
methods fromnext/client
: #34069concurrentFeatures
withruntime
: #34068renderToStream
with React 18: #34106next/image
usage fromnode_modules
: #33559react-dom/server.browser
whenreactRoot: true
: #34116.env
file in standalone mode: #34143next-server.ts
: #34230runtime
is set tonodejs
: #34228node-sass@7
as peer dependency: #34107<RouteAnnouncer/>
shouldn't announce initial path under strict mode and React 18: #34338dangerouslyAllowSVG
andcontentSecurityPolicy
: #34431.svg
image optimization with aloader
prop: #34452Documentation Changes
.end
instead of.send
when no body is being sent: #33611profileData
todata
in CSR page: #34018async
to middleware docs.: #31356url
tonextUrl
inside delete-query-params-in-middlewa…: #33796fallback: true
: #34114invalid-api-status-body
error: #34150lazyRoot
prop: #34241getting started
: #34282getInitialProps
: #34309Example Changes
yarn lint
.: #34019next/image
in the Sanity example: #34203profile
in firebase example: #34457Misc Changes
Credits
Huge thanks to @MaedahBatool, @mutebg, @sokra, @huozhi, @hanford, @shuding, @sean6bucks, @jameshfisher, @devknoll, @yuta-ike, @zh-lx, @amandeepmittal, @alunyov, @stefanprobst, @leerob, @balazsorban44, @kdy1, @brittanyrw, @jord1e, @kara, @vvo, @ismaelrumzan, @dlindenkreuz, @MohammadxAli, @nguyenyou, @thibautsabot, @hanneslund, @vertti, @KateKate, @stefee, @mikinovation, @Leticijak, @mohsen1, @ncphillips, @ehowey, @lancechentw, @krychaxp, @fmacherey, @pklawansky, @RyanClementsHax, @lakbychance, @sannajammeh, @oliviertassinari, @alexander-akait, @u-yas, @Cheprer, @msp5382, @chrispat, @getspooky, @Ryz0nd, @klaasman, @midgleyc, @kumard3, @jesstelford, @neeraj3029, @glenngijsberts, @pie6k, @wouterraateland, @timneutkens, @11koukou, @thesyedbasim, @aeneasr, @ijjk, @lfades, @JuniorTour, @xavhan, @mattyocode, @padmaia, @Skn0tt, @gwer, @Nutlope, @styfle, @stipsan, @xhoantran, @eolme, @sespinosa, @zenorocha, @hjaber, @benmvp, @T-O-R-U-S, @dburrows, @atcastle, @kiriny, @molebox, @kitayoshi, and @Schniz for helping!
v12.0.10
Compare Source
Core Changes
compress
configurable in standalone mode: #33717stale-while-revalidate
pattern to Image Optimization API: #33735Documentation Changes
Example Changes
with-docker
example dockerfile: #33695Misc Changes
lock.yml
Credits
Huge thanks to @Vienio99, @balazsorban44, @kyliau, @molebox, @huozhi, @shuding, @PepijnSenders, @krystofex, @PizzaPete, @souljuse, @styfle, @Schniz, @Nelsonfrank, @ijjk, @Mhmdrza, @timneutkens, @hideokamoto-stripe, @Emrin, @gr-qft, @delbaoliveira, @redbar0n, @amandeepmittal, @lxy-yz, and @Divlo for helping!
v12.0.9
Compare Source
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
npm install next@latest --save
Impact
v12.0.0
andv12.0.9
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
security@vercel.com
. We are actively monitoring this mailbox.Core Changes
process.env
to inferred usage: #33186postcss
: #33142node-fetch
: #33466onLoadingComplete()
: #33474next-multilingual
example: #29386lazyRoot
optional property tonext/image
component : #33290Documentation Changes
next export
+next/image
error message: #33317onLoad
gottcha note tonext/script
docs: #33097next/server
documentation forgeo
: #33609next/image
usage withnext export
based on feedback.: #33555headers
config option description: #33484netlify-plugin-cache-nextjs
has been deprecated: #33629Example Changes
Misc Changes
Credits
Huge thanks to @molebox, @Schniz, @sokra, @kachkaev, @shuding, @teleaziz, @OgbeniHMMD, @goncy, @balazsorban44, @MaedahBatool, @bennettdams, @kdy1, @huozhi, @hsynlms, @styfle, @ijjk, @callumgare, @jonrosner, @karaggeorge, @rpie3, @MartijnHols, @leerob, @bashunaimiroy, @NOCELL, @rishabhpoddar, @omariosouto, @hanneslund, @theMosaad, @javivelasco, @pierrenel, @lobsterkatie, @tharakabimal, @vvo, @saevarb, @lfades, @nbouvrette, @paulnbrd, @ecklf, @11koukou, @renbaoshuo, @chozzz, @tbezman, @karlhorky, @j-mendez, and @ffan0811 for helping!
v12.0.8
Compare Source
Core Changes
<Main />
: #32184Writable
: #32247nth
: #32358jsx
transform of swc: #32383style.filter
on image withplaceholder=blur
: #32623.next
folder: #32659placeholder=blur
: #32680a
for internal url whentarget="blank"
present: #32780next/image
noscript tag to only render when lazy: #32918href="/"
and hash already present: #32954next info
CLI command: #32972@vercel/nft
to 0.17.2: #33048ssr: false
on server-side: #32606Documentation Changes
dev
swapped arguments: #32135Example Changes
nextjs-graphql-with-prisma-simple
example API endpoint: #32759with-semantic-ui
example up-to-date: #32805cms-kontent
example: #32806Misc Changes
Credits
Huge thanks to @arthurfiorette, @thibautsabot, @shuding, @chimit, @joperron, @devknoll, @MaedahBatool, @kyliau, @padmaia, @moh12594, @rasmusjp, @balazsorban44, @molebox, @bryanrsmith, @TrySound, @josharsh, @kdy1, @styfle, @huozhi, @delbaoliveira, @PizzaPete, @thecrypticace, @arturparkhisenko, @segheysens, @thevinter, @AryanBeezadhur, @xiaohp, @tknickman, @javivelasco, @oriolcp, @sokra, @smakosh, @ijjk, @jorrit, @timneutkens, @hanneslund, @mix3d, @Clecio013, @michielvangendt, @intergalacticspacehighway, @jbraithwaite, @marcelocarmona, @benmerckx, @haykerman, @steven-tey, @jaredpalmer, @pi-guy-in-the-sky, @JuanM04, @apollisa, @D-Pagey, @jameshfisher, @rishabhpoddar, @Kikobeats, @ramosbugs, @dan-weaver, @chris-stytch, @MikevPeeren, @janpio, @emw3, @nubpro, @cmdcolin, @joostdecock, @sgallese, @housseindjirdeh, @minervabot, @cjboco, @Ryuurock, @dm430, @mkarkachov, @nvh95, @gfortaine, @kumard3, @zifeo, @vicente-s, @Rohithgilla12, @brookton, @leerob, @skirsten, @davidfateh, @DavidBabel, @mannybecerra, @Schniz, @glenngijsberts, @pveyes, @kaykdm, and @xhiroga for helping!
v12.0.7
Compare Source
Core Changes
Credits
Huge thanks to @timneutkens for helping!
v12.0.6
Compare Source
Core Changes
v12.0.5
Compare Source
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-server
that cannot be parsed, anunhandledPromiseRejection
could occur. On Node.js versions <v15.0.0
this 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
npm install next@latest --save
Impact
v11.1.0
and belowv12.0.5
v15.0.0
being usednext start
or a custom serverWe 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.0
with 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-online
for their investigation and discovery of the original bug.We've landed a patch that ensures this is handled properly so the
unhandledPromiseRejection
issue no longer occurs.Regression tests for this attack were added to the security integration test suite
security@vercel.com
. We are actively monitoring this mailbox.Core Changes
console.*
calls.: #31449next lint
withouteslint-config-next
installed: #29823.json
static method: #31483Google-PageRenderer
bot: #31521Document
components an error: #31505renderToWebStream
: #31553next/link
: #30606pages/_document
: #31946Documentation Changes
Suspense
import: #31897React
import: #31900next export
documentation.: #31465sharp
memory usage on default Linux setup: #31919Example Changes
Misc Changes
Credits
Huge thanks to @mzaien, @losfair, @ykzts, @leerob, @timneutkens, @stefanprobst, @javivelasco, @sokra, @goncy, @knezevicdev, @Kikobeats, @huozhi, @shuding, @styfle, @yang-feng-yfeng, @kdy1, @xuchaobei, @elkevinwolf, @padmaia, @kyliau, @devknoll, @fabienheureux, @hanneslund, @nilskaspersson, @Andarist, @mathcrln, @ijjk, @dferber90, @molebox, @FranciscoMoretti, @benschwarz, @wendellhu95, @gazdagergo, @imabp, @ljosberinn, @samuliasmala, @lfades, @ka2jun8, @monsonjeremy, @pqt, @vvo, @leoortizz, @michel-kraemer, @thibautsabot, @MaedahBatool, @lobsterkatie, @ntkoopman, @delbaoliveira, @iicdii, @j-mendez, @chentsulin, @ericmatthys, @lennym, @balogunkeji, and @wnr for helping!
v12.0.4
Compare Source
Core Changes
<Main>
: #30156sizes
prop: #31064./data:
urls in sass: #31134useId
mismatches on hydration: #31102displayNameAndId
ofstyled-components
: #31189CryptoKey
andglobalThis.CryptoKey
: #31193next build
log: #31295jsc.paths
: #31290styled-jsx
: #31407(middleware only)
when a middleware is added to the compiler: #31409normalizeLocalePath()
when path is empty string: #30978Documentation Changes
next/script
documentation: #31063Example Changes
getSession
should be called withreq
andres
: #31330Misc Changes
concurrentFeatures
enabled: #31227Credits
Huge thanks to @javivelasco, @shuding, @rishabhpoddar, @chemicalkosek, @huozhi, @timneutkens, @devknoll, @sokra, @KittyGiraudel, @styfle, @padmaia, @housseindjirdeh, @OKinane, @KonstHardy, @BrandonRomano, @leerob, @furcan, @dusanralic, @kdy1, @elliottsj, @vvo, @Kikobeats, @hi-ogawa, @panva, @genetschneider, @thundermiracle, @stefano-rainieri, @ericbiewener, @vordgi, @stevejarvis, @ihmpavel, @ijjk, @delbaoliveira, @matamatanot, @dyarfaradj, @iheyunfei, @thibautsabot, @ascorbic, @fytriht, @emzoumpo, @onurtemiz, @a-ursino, @mxschmitt, @knezevicdev, @bywo, @OArnarsson, and @TurekBot for helping!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Renovate Bot.