Update nextjs monorepo to v13 #15
Reference in New Issue
Block a user
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.012.2.5->13.0.0Release Notes
vercel/next.js
v13.0.0Compare Source
Core Changes
__NEXT_NEW_LINK_BEHAVIORin Jest tests whennewNextLinkBehavioris true: #40702optoutServerComponentsBundleoption: #40770<Image />andresponseLimit: #40863fetchusingundiciin Node.js <18: #40318adjustFontFallbacks: #40771v0.28.10: #41016with-xataexample: #39864eslint-plugin-next: #38647pnpm dev: #40335eslint-plugin-nextto typescript: #41046mjs,mts,cjsandctsextension by default: #40879v0.28.20: #41153moduleIdoption: #41160sharpis missing in standalone mode: #41133v0.29.5: #41181react-domin the SSR build: #412272701033: #41240AppPropsto not require generic: #41264ason next/link with new router: #41285beforeInteractivescripts properly without blocking hydration: #41164type: "module": #41268v0.32.8: #41304next/image: #41004next/imagecodemod to handlerequire(): #41345onLoadprop innext/future/image: #41374next/imagetonext/legacy/image& renamenext/future/imagetonext/image: #41399v0.38.4: #41401next/imageSyntheticEvent: #41480next/imagedocs and examples: #41434v0.38.22: #41477Cookies->NextCookies: #41491target: serverless: #41495browsersListForSwcand change default tolegacyBrowsers: false: #41529v0.39.7: #41544styled-jsxprefix innext dev: #41484next/imagesvg blur placeholder withfill: #41573images.loaderFileconfig: #41585next-image-experimentalcodemod to handle loaders: #41633data-nimgattribute onnext/image: #41612v0.40.7: #41613webpack5config option: #41667AsyncLocalStoragefor static generation is shared for client & server: #41695v0.40.13: #41692v0.40.13": #41699v0.40.13"": #41700v0.40.16: #41702appdetected but config is missing: #41696appDirfeedback: #41751Documentation Changes
pageExtensions: #40039console.logoutput example: #41096redirectson client-side navigation: #41362remotePatternslink to next-image-unconfigured-host: #41504swcMinifyto the Upgrade Guide: #41521next/legacy/imagedemo: #41539next/imagesizes using fill prop: #41560<Link />executes server methods: #41577ci-build-caching: #41763Example Changes
mswversion inwith-mswexample: #40777with-react-native-webdependencies: #41024with-react-hook-formexample to TypeScript: #38796next-env.d.tsfiles: #41041with-react-query: #38101vanilla-extractexample: #41061with-xataexample: #41063cms-prismicexample: #40121with-linaria: #41085withSentryfunction inwith-sentryexample: #41326preset: client: #41597Misc Changes
eslint-config-nextpnpm dev(#40335)"pnpm dev: #41062.tsto.tsxcreate-next-appenvironment 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.1Compare Source
Core Changes
experimental: { esmExternals: 'loose' }: #40377next/dynamicshould only add default loading without suspense: #40397AppType: #40391onLoadconcurrent rendering resilient: #40191fallbackNodePolyfills: false: #40612notFound: truein/withnext export: #40592CONTRIBUTING.md: #40515Documentation Changes
swcMinify: trueout of "Experimental features" section: #40394loadingproperty: #40488Example Changes
Misc Changes
link:instead offile:in CONTRIBUTING.md: #40510/errors/directory.tar: #40513next/scriptbeforeInteractive 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.0Compare Source
Core Changes
SPACE_AROUND_COLONregex: #39710fetchresponse: #39608onErrorhandling innext/future/image: #39824next/future/imagewhenobjectFitorobjectPosition: #39614next/future/imageblur-up placeholder : #39785@vercel/nft@0.22.0: #39906AppProps's generic forpageProps: #38867next/future/imageincorrectly warning forfill+blur: #39986experimental.fallbackNodePolyfillsflag: #39248next/scriptin the server build by default: #40013next/future/imageto use svg blur placeholder duringnext dev: #39992<noscript>fromnext/future/image: #40075filePathbeing wrongly stringified: #40070altto required innext/future/image: #40136next devandnext start: #40118next/future/image,remotePatterns,unoptimized: #40142@vercel/nft@0.22.1: #40164next/config: #40224next/future/imageto support onlywidthor onlyheight: #40278RemoveConsole: #40296react/no-unknown-property: #40331onLoadingCompletefornext/future/imageto receive reference to<img>: #40326Documentation Changes
next/future/imagedocs about Known Browser Bugs: #39759exportPathMapwithgetStaticPaths: #39813next/future/imagewith details about computed aspect ratio: #39829largePageDataBytesin warning docs: #39941script.md: #40017pageExtensions: #40016jest.config.js: #40090remotePatternsimage config: #40350Example Changes
hideSourceMaps: #40079image-componentexample types: #40352Misc Changes
npmversion 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.6Compare Source
v12.2.5Compare Source
Core Changes
next/future/imagealt text: #39366eslint-plugin-eslint-pluginto ensureeslint-plugin-nextrules follow ESLint rule best practices along with enforcing some consistency.: #37920--output-fileflag: #36420Documentation Changes
context.queryingetServerSideProps(): #39422router.prefetchdocumentation to includelocaleoption: #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.4Compare Source
Core Changes
analyticsIdto config schema: #38911attachRequestMetain base server to handle meta differently in edge and node servers: #38932configfield: #38907asPathon large page data warning: #39071onReadyprop tonext/script: #38849next/future/image: #38855Documentation Changes
getStaticPathson-demand.: #38943next/future/imageabout default styles.: #38978next/imagetonext/future/image: #39270Example Changes
with-stitchesto TS: #38892custom-routes-proxyingexample to TypeScript: #38974if..elif..elsein docker examples: #39072cms-agilitycmsexample to TypeScript: #38976if...elsein 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.3Compare Source
Core Changes
queryin new router: #38466__esModule: #38181hide-fouctags after hydration: #38592next/jestwhen testingnext/future/image: #38569auth-with-stytch.: #38648src/a default linting directory: #38810experimental-edgeinpages/api/index: #38024output: "standalone"as custom server: #38831next/imageerror message whensrcprop is missing: #38847Documentation Changes
next/future/imagewith browser support: #38563matcherneeds to be constant values: #38597pathnameandasPath: #38835Example Changes
api-routesexample to TypeScript: #38083next-minimal-starter: #38452with-sentryexample_error.js: #37866WORDPRESS_API_URLto include/graphql: #38764Dockerfile: #38693with-service-workerexample: #38670with-dynamic-importto TypeScript: #38844with-cypressexample 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.2Compare Source
Core Changes
next/future/imagesemicolon: #38454Documentation Changes
Example Changes
blog-starterexample with TS, deprecateblog-starter-typescriptexample: #38395api-routes-rate-limitexample to TypeScript: #38393api-routes-restexample to TypeScript: #38394api-routes-graphqlexample to TypeScript: #38357Credits
Huge thanks to @mongolyy, @balazsorban44, @maxproske, @leerob, @huozhi, @Thisen, @thebergamo, @zorrolisto, @styfle, @housseindjirdeh, and @kwonoj for helping!
v12.2.1Compare Source
Core Changes
layoutRawconfig: #38120@next/next/no-assign-module-variableESLint rule.: #38134next/future/imageis missing width or height: #38132eslint-plugin-next's available rules are properly exported and recommended rules are correctly defined.: #38183Documentation Changes
next/future/imagedocs to mention the difference withnext/image: #38108lazyRootexample fromnext/future/imagedoc: #38140next/future/imagedocs to specify supported browser versions.: #38307Example Changes
api-routes-corsexample to TypeScript: #38356api-routes-middlewareexample to TypeScript: #38358blogexample to TypeScript: #38095Misc Changes
type: "module"when building the Issue validator action: #38197/distfor local actionpackage.jsonsince we have `pnpm-works…: #38166package.jsonsince 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.0Compare Source
Core Changes
remotePatternsconfig for upstream images: #36245req.cookies.get(): #36872beforeInteractivescripts failing in custom document: #37000layout=rawto use native img lazy loading: #36985.getWithOptionsmethod: #36943getPageStaticInfo: #37062routeChangeErrorevent: #36828idxreset to 0 on reload: #36861@vercel/nftto 0.19.1: #37129next.config.js: #37125remotePatternswildcard: #37137swcMinifyDebugOptions: #37172legacyBehaviourtoaas prop: #37306runtime: edgein api endpoints: #36947runtime: edgein api endpoints": #37337runtime: edgein api endpoints"": #37344request.page: #37349next dev: #37430next/imageusinglayout=rawwithpriority: #37381swcMinifyas an attribute onterser-webpack-plugin-optimizespan: #37416methodwhen fetching aRequestinstance: #37540req.ua: #37512DynamicOptionsLoadingPropstype: #37700images.unoptimized: truefor easynext export: #37698target: 'serverless'is used with Middleware: #37819externalHelperswhen pre compiling Next.js' code: #37164externalHelperswhen pre compiling Next.js' code": #37829<Image/>'slazyRootand other optimizations: #37447styled-componentstransform and enablecssprop support: #37861next/future/imagecomponent: #37927futurefolder: #37999rimraffrom root packages using it: #37996no-server-import-in-pagerule: #38028next/scriptto be placed in_documentbody: #37894eslint-config-nextversion innext info: #38062initto someNextResponsemethods: #38071<noscript>fromnext/future/image: #38080Documentation Changes
classNameattribute for JSX: #37168next buildoutput is compressed.: #37228pnpm create next-appfor latest pnpm 6 and 7: #37254next/dynamicdocs and add links to layouts RFC.: #37244no-script-in-document-pageerror doc: #37568.jsto.ts.: #37858active-class-nameexample: #37828NextRequest.ip: #37987onLoad()test fornext/image/future: #37993Example Changes
api-routes-graphqlto GraphQL Yoga: #36155TypedDocumentNodeand GraphQL Yoga for better DX and smaller bundle size: #36240cms-kontentexample SDK package to v11: #37187cms-kontentexampleNext/Imagedomain error: #37188cms-kontentexample to action PR feedback: #37206with-styled-components: #37237with-tailwindcssexample to TypeScript: #37208Misc Changes
nameandversion: #36771pnpm installin tests: #37712action.ymlto Issue validator action: #37950package.json: #37910releaseto 6.3.1: #37995.gitignoreto 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.6Compare Source
Core Changes
export fromand native modules in server component: #36072standalonedirectory when usingoutputStandalone: #35535next/imageusage in most cases ofonLoad(): #36176node | node12 | nodenext: #36189_document: #36352next/imageusage ofonError(): #36305next/scriptforworkerandbeforeInteractivestrategies: #36364Content-Lengthheader from Image Optimization API: #36581Documentation Changes
reactversion: #36091next.config.js: #36286onLoad: #36453<link rel="preconnect" ... />to example optimized font output: #36529Example Changes
removeListenerhandler towith-electron-typescriptexample.: #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.5Compare Source
Core Changes
__non_webpack_require__to fetch partytown server-side: #35793layout="raw"image element sizes prop: #35809next/imagewithplaceholder=blur: #35889streamin renderer: #35936.eslintrc.cjsto list of supportednext lintconfig files: #35440loaderprop innext/image: #36013Documentation Changes
with-docker-multi-envexample.: #35820Example Changes
clientingetServerSideProps: #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.4Compare Source
Core Changes
Documentation Changes
Credits
Huge thanks to @huozhi, @styfle, and @kdy1 for helping!
v12.1.3Compare 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.2Compare Source
Core Changes
Documentation Changes
Misc Changes
Credits
Huge thanks to @huozhi, @shuding, @Brooooooklyn, @TianenPang, @lfades, and @timneutkens for helping!
v12.1.1Compare Source
Core Changes
HtmlContext: #34482experimentalfield exists: #34500unstable_useFlushEffectshook: #34117next/imageexpects it: #34350next/imageincorrectly warning forposition: absoluteparent: #34551useMaybeDeferContenthook: #34506next/imagewarnings to avoid printing more than once: #34562next-env.d.ts: #34394cargo clippyandcargo fmtto CI: #34625redirectandrewritedestination types: #34617image-config.tsgets transpiled to ES5: #34677next/imagenoscript when blur and priority: #34973next/clientinitialization: #33838next/imagewhen src is webp but browser doesnt support it: #35190cssnano-simple: #35258_document-concurrentcomponent: #35242<Script />using Partytown: #34244fs.readFile()works with Output File Tracing: #35338next infoaccidentally printing stderr: #35556Documentation Changes
pnpmwithcreate-next-app: #34947next/imagedocs section for animated images: #35123context.ctxargument in _app docs page: #35303next/imagedocs for width & height: #35188Example Changes
with-redisexample 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.0Compare Source
Core Changes
artifactDirectory: #33918react-dom/server.browserin Node.js: #33950ReadableStreaminRenderResult: #34005Linkto pass event toonClickhandler: #27723lazyRootfunctionality fornext/image: #33933Routerstate immutable: #33925renderandrenderErrormethods fromnext/client: #34069concurrentFeatureswithruntime: #34068renderToStreamwith React 18: #34106next/imageusage fromnode_modules: #33559react-dom/server.browserwhenreactRoot: true: #34116.envfile in standalone mode: #34143next-server.ts: #34230runtimeis set tonodejs: #34228node-sass@7as peer dependency: #34107<RouteAnnouncer/>shouldn't announce initial path under strict mode and React 18: #34338dangerouslyAllowSVGandcontentSecurityPolicy: #34431.svgimage optimization with aloaderprop: #34452Documentation Changes
.endinstead of.sendwhen no body is being sent: #33611profileDatatodatain CSR page: #34018asyncto middleware docs.: #31356urltonextUrlinside delete-query-params-in-middlewa…: #33796fallback: true: #34114invalid-api-status-bodyerror: #34150lazyRootprop: #34241getting started: #34282getInitialProps: #34309Example Changes
yarn lint.: #34019next/imagein the Sanity example: #34203profilein 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.10Compare Source
Core Changes
compressconfigurable in standalone mode: #33717stale-while-revalidatepattern to Image Optimization API: #33735Documentation Changes
Example Changes
with-dockerexample dockerfile: #33695Misc Changes
lock.ymlCredits
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.9Compare 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 --saveImpact
v12.0.0andv12.0.9We 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.envto inferred usage: #33186postcss: #33142node-fetch: #33466onLoadingComplete(): #33474next-multilingualexample: #29386lazyRootoptional property tonext/imagecomponent : #33290Documentation Changes
next export+next/imageerror message: #33317onLoadgottcha note tonext/scriptdocs: #33097next/serverdocumentation forgeo: #33609next/imageusage withnext exportbased on feedback.: #33555headersconfig option description: #33484netlify-plugin-cache-nextjshas 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.8Compare Source
Core Changes
<Main />: #32184Writable: #32247nth: #32358jsxtransform of swc: #32383style.filteron image withplaceholder=blur: #32623.nextfolder: #32659placeholder=blur: #32680afor internal url whentarget="blank"present: #32780<head>: #32897next/imagenoscript tag to only render when lazy: #32918href="/"and hash already present: #32954next infoCLI command: #32972@vercel/nftto 0.17.2: #33048ssr: falseon server-side: #32606Documentation Changes
devswapped arguments: #32135Example Changes
nextjs-graphql-with-prisma-simpleexample API endpoint: #32759with-semantic-uiexample up-to-date: #32805cms-kontentexample: #32806detaversion in examples: #30204Misc 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.7Compare Source
Core Changes
Credits
Huge thanks to @timneutkens for helping!
v12.0.6Compare Source
Core Changes
v12.0.5Compare 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-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
npm install next@latest --saveImpact
v11.1.0and belowv12.0.5v15.0.0being usednext startor 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.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
security@vercel.com. We are actively monitoring this mailbox.Core Changes
console.*calls.: #31449next lintwithouteslint-config-nextinstalled: #29823.jsonstatic method: #31483Google-PageRendererbot: #31521Documentcomponents an error: #31505renderToWebStream: #31553no-html-link-for-pagesfrom warning for static files: #31495next/link: #30606pages/_document: #31946Documentation Changes
Suspenseimport: #31897Reactimport: #31900next exportdocumentation.: #31465sharpmemory usage on default Linux setup: #31919Example Changes
with-sentryexample: #30401Misc 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.4Compare Source
Core Changes
<Main>: #30156sizesprop: #31064./data:urls in sass: #31134useIdmismatches on hydration: #31102displayNameAndIdofstyled-components: #31189CryptoKeyandglobalThis.CryptoKey: #31193next buildlog: #31295jsc.paths: #31290styled-jsx: #31407(middleware only)when a middleware is added to the compiler: #31409normalizeLocalePath()when path is empty string: #30978Documentation Changes
next/scriptdocumentation: #31063Example Changes
getSessionshould be called withreqandres: #31330Misc Changes
concurrentFeaturesenabled: #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.