Skip to content

Releases: vercel/next.js

v13.0.1

31 Oct 23:12
c1c3eac
Compare
Choose a tag to compare

Core Changes

  • Rest of options in experimental.turbotrace and documentation: #41817
  • Fix revalidate check in client component: #41917
  • Add data attribute to div to distinguish it: #41889
  • Fix lint cli help: #41783
  • [Doc] Update inline documentation for next/link: #41871
  • feat(edge): split NextCookies to RequestCookies and ResponseCookies: #41526
  • Show error message when using legacy props on new next/image: #41930
  • Upgrade Edge Runtime: #41987
  • Revert "Include frameworks in main-app": #41997
  • fix(next/dev): do not suppress error from bindings: #41989
  • Fix page static info extractor for app dir: #42001
  • Add never return type for redirect() and notFound(): #42009
  • Google fonts multiple weights & styles: #42008
  • Merge app internal chunk into main chunk for layouts: #41902
  • Fix build type error of page params: #42019
  • Allow disabling Strict mode in app: #41894
  • Update react next channel: #42021
  • Fix turbo custom config detection: #42022
  • Fix css modules imports in client components: #42077
  • fix: Data URL images with 'fill' are always triggering 'missing sizes' warning: #42030
  • types: leverage webpack types and remove casting: #42104
  • Fix CSS imports from outside of the app dir when src folder is present: #42108
  • Remove react root condition and always use concurrent mode: #42141
  • Keep react-dom/server.node in precompiled: #42138
  • Warn when legacy prop detected on next/image: #42102
  • Fix failing codemod test url-to-withrouter: #42109
  • Improve TypeScript plugin error when the configuration is not statically analyzable: #42062
  • Ensure app revalidate has correct default: #42168
  • Update turbo crates: #42014
  • Update vscode config handling: #42169
  • fix: allow resolving large JSON data in server components: #42025
  • issue-41925 fix: skip duplicate props when transferring props from anchor to link: #42158
  • Ensure we detect config correctly with turbo flag: #42201
  • update turbo version: #42228
  • Fix CSS modules imports from outside of the root directory: #42106
  • Default font config fix: #42235
  • Multiple local font weights and styles: #42232
  • Optimize bundle size for appDir: #42252
  • Add event for dev process stop: #42255
  • Add E2E test for @vercel/og API route: #42258

Documentation Changes

  • [Doc] Update Next.js + Static Web Apps: #41857
  • Update the documentation.: #41758
  • Fix invalid markdown lang: #41926
  • Fix more incorrect markdown langs: #41939
  • Update font links and add missing error: #41910
  • docs: Update the version history in the middleware page: #41949
  • Fix typo: docs/basic-features/font-optimization.md: #41967
  • Fix broken link in @next/font docs: #42002
  • Add link from next/image docs to example: #42020
  • Fix typo.: #42067
  • docs: update version install commands in upgrade guide: #42073
  • Update font-optimization.md: #42036
  • added @latest to codemods page: #42091
  • docs: clarify env inclusion in bundles: #41950
  • Correcting documentation: #42179
  • feat(create-next-app): interactive mode; --js, --ts with appDir support; enhanced testing: #42012
  • Adding note about beta docs: #42230
  • Add prompt for ESLint to CNA: #42218
  • Escape HTML on " with child" page: #42114

Example Changes

  • Add turbopack example: #41789
  • examples: Update turbopack: #41793
  • examples: Remove turbo.json from turbopack example: #41794
  • example: add postcss as with-turbopack example devDep: #41795
  • Update with-supertokens example: #41802
  • chore: remove swcMinify: true as it's the new default.: #41877
  • Update link in Turbopack example.: #41876
  • fix any type in example with-turbopack: #41798
  • Update with-aws-amplify with TypeScript: #41815
  • Convert many examples to TypeScript: #41825
  • Fixed errors at with-passport-and-next-connect.: #41897
  • chore(examples): use next@latest in all examples: #41922
  • chore: update example dev script: #41904
  • Update README.md: #41959
  • Fix benchmark link typo in Turbopack example: #42064
  • Update Examples to use React 18: #42027
  • chore(examples): fix with-aphrodite exapmle: #42078
  • chore(examples): move app directories: #42094
  • Broken link in example page: #42135
  • Fix typo in importing counterReducer: #42162
  • Run next/link codemod for Next.js 13 on examples: #41913
  • Fix next/link codemod errors in with-turbopack: #42203

Misc Changes

  • Update Cargo.lock file
  • fix example command in issue template for create-next-app : #41803
  • Remove swcMinify: true since this is 13's default: #41869
  • test(dev): support to run test with --turbo: #41908
  • docs: clarify PR template instructions: #41957
  • Update e2e test for app-dir edge: #42015
  • [docs] Fix Grammar in Step 8.: #42018
  • Fix turbo css-modules test: #42103
  • Enhanced grammar.: #42148
  • grammar fix in adding-examples README.: #42152
  • [docs] Enhanced grammar in building README.: #42155
  • Fix typo pnpm-lock.yam in .prettierignore_staged: #42212
  • docs(create-next-app): copy JJ's changes from #42012 to package-level README: #42217
  • Update failing e2e middleware response test: #42256

Credits

Huge thanks to @jaredpalmer, @ijjk, @Brooooooklyn, @koenpunt, @rishabhpoddar, @karlhorky, @balazsorban44, @leerob, @NekoChanTaiwan, @chrisipanaque, @Reshmi-Sriram, @maxproske, @Kosai106, @timneutkens, @kwonoj, @hanneslund, @bertho-zero, @abayomi185, @styfle, @Kikobeats, @nuta, @yasath, @shuding, @serkanbektas, @steven-tey, @jimCresswell, @alpha-xek, @huozhi, @LorenzoBloedow, @iiegor, @craigwheeler, @peraltafederico, @teobler, @ismaelrumzan, @IngoVals, @jaykch, @artdevgame, @ishaqibrahimbot, @ctjlewis, @wxh06, @sokra, @timeyoutakeit, and @DuncanOgle for helping!

v13.0.1-canary.4

31 Oct 19:40
1c1b503
Compare
Choose a tag to compare
v13.0.1-canary.4 Pre-release
Pre-release

Core Changes

  • Optimize bundle size for appDir: #42252
  • Add event for dev process stop: #42255
  • Add E2E test for @vercel/og API route: #42258

Documentation Changes

  • Escape HTML on " with child" page: #42114

Misc Changes

  • Update failing e2e middleware response test: #42256

Credits

Huge thanks to @DuncanOgle and @timneutkens for helping!

v13.0.1-canary.3

31 Oct 16:02
76dc2dc
Compare
Choose a tag to compare
v13.0.1-canary.3 Pre-release
Pre-release

Core Changes

  • issue-41925 fix: skip duplicate props when transferring props from anchor to link: #42158
  • Ensure we detect config correctly with turbo flag: #42201
  • update turbo version: #42228
  • Fix CSS modules imports from outside of the root directory: #42106
  • Default font config fix: #42235
  • Multiple local font weights and styles: #42232

Documentation Changes

  • Correcting documentation: #42179
  • feat(create-next-app): interactive mode; --js, --ts with appDir support; enhanced testing: #42012
  • Adding note about beta docs: #42230
  • Add prompt for ESLint to CNA: #42218

Example Changes

  • Run next/link codemod for Next.js 13 on examples: #41913
  • Fix next/link codemod errors in with-turbopack: #42203

Misc Changes

  • Fix typo pnpm-lock.yam in .prettierignore_staged: #42212
  • docs(create-next-app): copy JJ's changes from #42012 to package-level README: #42217

Credits

Huge thanks to @artdevgame, @timneutkens, @ishaqibrahimbot, @ctjlewis, @wxh06, @sokra, @timeyoutakeit, @shuding, and @hanneslund for helping!

v13.0.1-canary.2

30 Oct 16:30
Compare
Choose a tag to compare
v13.0.1-canary.2 Pre-release
Pre-release

Core Changes

  • fix: allow resolving large JSON data in server components: #42025

Credits

Huge thanks to @balazsorban44 for helping!

v13.0.1-canary.1

30 Oct 08:55
6d53e8b
Compare
Choose a tag to compare
v13.0.1-canary.1 Pre-release
Pre-release

Core Changes

  • Show error message when using legacy props on new next/image: #41930
  • Upgrade Edge Runtime: #41987
  • Revert "Include frameworks in main-app": #41997
  • fix(next/dev): do not suppress error from bindings: #41989
  • Fix page static info extractor for app dir: #42001
  • Add never return type for redirect() and notFound(): #42009
  • Google fonts multiple weights & styles: #42008
  • Merge app internal chunk into main chunk for layouts: #41902
  • Fix build type error of page params: #42019
  • Allow disabling Strict mode in app: #41894
  • Update react next channel: #42021
  • Fix turbo custom config detection: #42022
  • Fix css modules imports in client components: #42077
  • fix: Data URL images with 'fill' are always triggering 'missing sizes' warning: #42030
  • types: leverage webpack types and remove casting: #42104
  • Fix CSS imports from outside of the app dir when src folder is present: #42108
  • Remove react root condition and always use concurrent mode: #42141
  • Keep react-dom/server.node in precompiled: #42138
  • Warn when legacy prop detected on next/image: #42102
  • Fix failing codemod test url-to-withrouter: #42109
  • Improve TypeScript plugin error when the configuration is not statically analyzable: #42062
  • Ensure app revalidate has correct default: #42168
  • Update turbo crates: #42014
  • Update vscode config handling: #42169

Documentation Changes

  • docs: Update the version history in the middleware page: #41949
  • Fix typo: docs/basic-features/font-optimization.md: #41967
  • Fix broken link in @next/font docs: #42002
  • Add link from next/image docs to example: #42020
  • Fix typo.: #42067
  • docs: update version install commands in upgrade guide: #42073
  • Update font-optimization.md: #42036
  • added @latest to codemods page: #42091
  • docs: clarify env inclusion in bundles: #41950

Example Changes

  • Update README.md: #41959
  • Fix benchmark link typo in Turbopack example: #42064
  • Update Examples to use React 18: #42027
  • chore(examples): fix with-aphrodite exapmle: #42078
  • chore(examples): move app directories: #42094
  • Broken link in example page: #42135
  • Fix typo in importing counterReducer: #42162

Misc Changes

  • docs: clarify PR template instructions: #41957
  • Update e2e test for app-dir edge: #42015
  • [docs] Fix Grammar in Step 8.: #42018
  • Fix turbo css-modules test: #42103
  • Enhanced grammar.: #42148
  • grammar fix in adding-examples README.: #42152
  • [docs] Enhanced grammar in building README.: #42155

Credits

Huge thanks to @styfle, @Kikobeats, @nuta, @yasath, @shuding, @serkanbektas, @steven-tey, @kwonoj, @jimCresswell, @timneutkens, @hanneslund, @alpha-xek, @huozhi, @LorenzoBloedow, @iiegor, @craigwheeler, @balazsorban44, @peraltafederico, @teobler, @ismaelrumzan, @IngoVals, and @jaykch for helping!

v13.0.1-canary.0

27 Oct 07:25
0beed35
Compare
Choose a tag to compare
v13.0.1-canary.0 Pre-release
Pre-release

Core Changes

  • Rest of options in experimental.turbotrace and documentation: #41817
  • Fix revalidate check in client component: #41917
  • Add data attribute to div to distinguish it: #41889
  • Fix lint cli help: #41783
  • [Doc] Update inline documentation for next/link: #41871
  • BREAKING CHANGE: feat(edge): split NextCookies to RequestCookies and ResponseCookies: #41526

Documentation Changes

  • [Doc] Update Next.js + Static Web Apps: #41857
  • Update the documentation.: #41758
  • Fix invalid markdown lang: #41926
  • Fix more incorrect markdown langs: #41939
  • Update font links and add missing error: #41910

Example Changes

  • Add turbopack example: #41789
  • examples: Update turbopack: #41793
  • examples: Remove turbo.json from turbopack example: #41794
  • example: add postcss as with-turbopack example devDep: #41795
  • Update with-supertokens example: #41802
  • chore: remove swcMinify: true as it's the new default.: #41877
  • Update link in Turbopack example.: #41876
  • fix any type in example with-turbopack: #41798
  • Update with-aws-amplify with TypeScript: #41815
  • Convert many examples to TypeScript: #41825
  • Fixed errors at with-passport-and-next-connect.: #41897
  • chore(examples): use next@latest in all examples: #41922
  • chore: update example dev script: #41904

Misc Changes

  • Update Cargo.lock file
  • fix example command in issue template for create-next-app : #41803
  • Remove swcMinify: true since this is 13's default: #41869
  • test(dev): support to run test with --turbo: #41908

Credits

Huge thanks to @jaredpalmer, @Brooooooklyn, @koenpunt, @rishabhpoddar, @karlhorky, @balazsorban44, @leerob, @NekoChanTaiwan, @chrisipanaque, @Reshmi-Sriram, @maxproske, @Kosai106, @timneutkens, @kwonoj, @hanneslund, @bertho-zero, and @abayomi185 for helping!

v13.0.0

27 Oct 00:08
63aab20
Compare
Choose a tag to compare

Core Changes

  • Use resolved url in flight entry loader: #40697
  • Handle redirects in new router: #40396
  • Combine redirect function in new router: #40717
  • fix: InferGetServerSidePropsType and InferGetStaticPropsType: #40635
  • Update to leverage AsyncLocalStorage for app static handling: #40727
  • Change flight querystring to header: #40752
  • Improved bundling strategy for the server graph: #40739
  • Remove unnecessary experimental flag: #40766
  • next-swc: add next-font-loaders to crates/core: #40221
  • Add next font package: #40227
  • Strip internal pages for pagesDir in app edge ssr: #40776
  • Add support for font loaders: #40746
  • Set __NEXT_NEW_LINK_BEHAVIOR in Jest tests when newNextLinkBehavior is true: #40702
  • Add handling for 404 in new router: #40787
  • Fix alias paths for bundling: #40800
  • Fix required server files for font loader manifest: #40784
  • Add local font loader: #40801
  • Update error handling during app static generation: #40823
  • Handle redirect in same way as 404 in new router: #40796
  • build: upgrade edge-runtime: #40788
  • Allow export const in font loader: #40836
  • chore: Update swc: #40832
  • Update app-router options type: #40862
  • Flight client navigation error: #40861
  • Use startTransition for hydrateRoot to opt-in to non-blocking hydration: #40874
  • Add optoutServerComponentsBundle option: #40770
  • Apply #40833: #40872
  • Upgrade react@experimental: #40885
  • Update handling of redirect/404 throw to cross server->client boundary: #40890
  • Update pre-compiled: #40914
  • Update font loader output path: #40868
  • Disable head element lint rule for appDir: #40921
  • Should resolve esm external module imports on server: #40865
  • edge-ssr: bundle next/dist as ESM for better tree-shaking: #40251
  • Improve types for <Image /> and responseLimit: #40863
  • chore: Update swc: #40928
  • Ensure skipClientCache is honored for router.push: #40932
  • Fix bundling and module resolution in the server layer: #40818
  • Handle loading returning undefined: #40938
  • Fix SWC loader ignore for the server layer when Babel is used: #40939
  • Code refactoring for webpack-config: #40942
  • Merge e2e test node_modules: #40926
  • Rename 404 -> not-found for new router: #40941
  • remove reducer from server bundle: #40959
  • [edge] serialize custom config to middleware-manifest: #40881
  • Font loader support in app: #40898
  • docs: add inline documentation for Link props: #40855
  • feat(experimental): option to polyfill fetch using undici in Node.js <18: #40318
  • Update return shape of generateStaticParams: #40965
  • remove legacy transform code: #40966
  • Revert "edge-ssr: bundle next/dist as ESM for better tree-shaking (#40251): #40967
  • Update to use HEAD request for middleware query hydration: #40973
  • Revert "Merge e2e test node_modules (#40926)": #40974
  • edge-ssr: bundle next/dist as ESM for better tree-shaking (#40251): #40980
  • Rename flight parameters to rsc/next: #40979
  • Remove outdated warning: #40988
  • misc: add MANGLING_DEBUG option: #40958
  • Fix wrong code condition used when bundling the server: #40987
  • Move pagesDir handling out of wrappedRender: #40995
  • Fix unused CSS module imports are tracked on the server: #40996
  • Skip creating virtual app client entry for pages: #41000
  • chore: remove unsless @ts-ignore: #40992
  • Add support for fallback font and css variable for font/local: #40990
  • Use throw to trigger Suspense to avoid use() in reducer warning: #40950
  • chore: Update swc: #40983
  • Revert "chore: Update swc": #41015
  • Docs for experimental font optimization adjustFontFallbacks: #40771
  • Drop legacy React DOM Server in Edge runtime: #40018
  • misc: make useReducerWithDevtools noop on server: #41019
  • Remove reload on serverComponentChanges in pages: #41020
  • chore: Update swc_core to v0.28.10: #41016
  • Alias all client, shared, pages dist assets for esm: #41034
  • Add Replay integration for dev e2e tests: #40955
  • Add with-xata example: #39864
  • Make sure polyfills are added for browsers without module support: #41029
  • Move handling of navigation to pages from new router: #41001
  • Adding experimental size adjust based option: #41009
  • chore: add build step to eslint-plugin-next: #38647
  • chore: make sure polyfills are built for pnpm dev: #40335
  • refactor: migrate eslint-plugin-next to typescript: #41046
  • Improve experimental feature naming: #41060
  • Full page reload when navigating to new root layout: #40751
  • Use deterministic module IDs for server: #41066
  • Accept variable prop in google font loader: #41065
  • Font loader call json parsing fix: #41052
  • build(next/swc): consolidate swc_core dependency version: #41043
  • Skip pagesDirRules when pagesDir is not present: #41075
  • Fix experimental undici warning: #41077
  • Temporarily disable prefetch in new router: #41086
  • Add conflicting app and page error: #41099
  • chore(server): improve dev logs formatting: #41109
  • rename flush effects to server inserted html: #41073
  • Check required root layout tags: #41120
  • Lint files with mjs, mts, cjs and cts extension by default: #40879
  • Improve error messages of server compilation: #41136
  • Fix edge function req.url handling with rewrite: #41139
  • Ensure entry tracing applies for app correctly: #41140
  • add attribution to web vitals: #39368
  • Update minimum required Node.js version to v14: #41150
  • Handle hmr for edge ssr in app dir: #41156
  • chore: Update swc_core to v0.28.20: #41153
  • Remove unnecessary moduleId option: #41160
  • Apply experimental configs for middleware: #41142
  • Fix reading edge info for app paths: #41163
  • Fix warning messages for next export: #41165
  • Refactor app dir related flags: #41166
  • Fix prefetch for new router: #41119
  • Disable built-in css-in-js transform on server layer: #41040
  • docs(image): improve error message when sharp is missing in standalone mode: #41133
  • Fix latest experimental react and experimental-edge and unpin test versions: #41200
  • Font loader with babel error: #41151
  • Remove hook_optimizer transform: #41203
  • chore: Update swc_core to v0.29.5: #41181
  • Update edge runtime to 1.1.0-beta.37: #41211
  • Alias next/dynamic to lazy impl for appDir: #41216
  • Do not bundle react-dom in the SSR build: #41227
  • Add response stream errorhandling in edge-function-runtime: #41102
  • App font file preload: #41158
  • Fix app static generation cases: #41172
  • Enabel appDir when flag and dir existed at the same time: #41233
  • Font loaders next config shape: #41219
  • refactor dev overlay into hot reloader: #41231
  • fix(middleware): 'instanceof Function' is dynamic code false-positive: #41249
  • Snyk upgrade 27010339d65c4a43f7b564bbebecab85: #41240
  • fix(ts): relax AppProps to not require generic: #41264
  • Recover from font loader error in dev: #41251
  • Handle as on next/link with new router: #41285
  • Load beforeInteractive scripts properly without blocking hydration: #41164
  • Add test for link back to original page: #41297
  • Local font files adjust fallbacks: #41180
  • Update middleware query hydration handling: #41243
  • Fix NextUrl trailing slash normalize for data route: #41311
  • Global layouts error boundary: #41305
  • fix(image): don't show placeholder warning in Jest: #41329
  • Handle error overlay for new router: #41325
  • fix(standalone): support type: "module": #41268
  • perf: lazyload the edge runtime in NextServer: #41322
  • Add pretty error when image import is invalid format: #41267
  • chore: Update swc_core to v0.32.8: #41304
  • Client component directive: use client: #41333
  • Fix middleware rewrite for _next/data: #41341
  • Add codemods for next/image: #41004
  • Fix middleware URL normalize case: #41342
  • Update next/image codemod to handle require(): #41345
  • Ensure RSC paths are normalized in minimal mode: #41348
  • Refactor error overlay for new router: #41343
  • inline httpproxy usage: #41330
  • proper error if middleware or api/route not return a Response: #41336
  • Fix CSS imports tree-shaking: #41357
  • Ensure content is kept rendered below the error overlay on build errors in new router: #41360
  • refactor(#41164): polyfill-module should block hydration: #41352
  • Fix onLoad prop in next/future/image: #41374
  • Add exports for new router: #41368
  • App font loader tree shaking: #41384
  • perf: lazy eval headers from the requestStore: #41353
  • fix: disable css cache busting in production: #41392
  • Upgrade next-swc-napi to NAPI-RS v2: #40094
  • Fix prefetching for static app paths: #41398
  • perf: lazy evaluate more modules: #41354
  • BREAKING CHANGE: Rename next/image to next/legacy/image & rename next/future/image to next/image: #41399
  • Fix edge workers being re-used unexpectedly: #41402
  • Remove edge shared deps: #41413
  • Upgrade React experimental: #41419
  • Update edge runtime to 1.1.0-beta.39: #41418
  • Update flakey dev AMP tests: #41428
  • Add new diagnostics: #41429
  • Move root layout validation: #41338
  • chore: bump server pre-compiled target to Node.js 14: #41424
  • Fix middleware dynamic route param on query hydration: #41436
  • chore: Update swc_core to v0.38.4: #41401
  • Don't show error overlay for not found and redirect: #41438
  • Change useSearchParams to URLSearchParams: #40978
  • perf(#41392): improve cache busting inject performance: #41443
  • Rename reload to refresh in new router: #41448
  • Disable isNavigatingToNewRootLayout: #41457
  • fix(app-render): make css and font respect assetPrefix: #41455
  • Ignore serverComponentChanges in pages: #41464
  • Include frameworks in main-app: #41465
  • Fix typo and add comment to next/image SyntheticEvent: #41480
  • Update next/image docs and examples: #41434
  • chore: Update swc_core to v0.38.22: #41477
  • Fix useSearchParams comment: #41483
  • fix(stream): Allows body larger than 16 KiB with middleware: #41270
  • fix(41456): check src/app folder too in getHasAppDir: #41458
  • B...
Read more

v12.3.2-canary.43

25 Oct 12:15
bee5215
Compare
Choose a tag to compare
v12.3.2-canary.43 Pre-release
Pre-release

Core Changes

  • Add head handling: #41768
  • Update async storage fix: #41779

Credits

Huge thanks to @timneutkens for helping!

v12.3.2-canary.42

25 Oct 10:00
bd16ef3
Compare
Choose a tag to compare
v12.3.2-canary.42 Pre-release
Pre-release

Core Changes

  • Fix no-store test case: #41775
  • Ensure async_hooks are not resolved for client: #41778
  • Make ship happen: #41776

Credits

Huge thanks to @sokra for helping!

v12.3.2-canary.41

25 Oct 08:37
fe5a502
Compare
Choose a tag to compare
v12.3.2-canary.41 Pre-release
Pre-release

Core Changes

  • feat: set a better type for the default image loader : #41639
  • Fix edge entry layer resolution bug: #41757
  • Dont apply existing externals path changing to rsc layers: #41744
  • Pathname and search params SSG: #41247
  • Update react next channel: #41761
  • Font description and error messages: #41764
  • Updating avg width metrics for google fonts: #41755
  • Bump minimum Node.js version to 14.6.0: #41765
  • Throw error child in : #41756
  • [typescript] fix typo in edge runtime name: #41773
  • Only import dev overlay for dev mode: #41771
  • Add initial head handling in app: #41607
  • Fix revalidate during dev: #41772

Documentation Changes

  • docs: update ci-build-caching: #41763

Misc Changes

  • Enable appDir e2e deploy tests #1: #41759

Credits

Huge thanks to @ahhshm, @shuding, @huozhi, @javivelasco, @hanneslund, @janicklas-ralph, @styfle, @eve0415, and @Schniz for helping!