v13.1.2
Core Changes
- Add special error message for class component in server component: #44265
- Update license year: #44403
- Move core files to src folder and move JS files to TypeScript: #44405
- refactor: add warning helper for removed experimental option: #44213
- types: remove config.experimental.profiling: #44507
- chore: addresses leftover from #44045: #44080
- Fix cookie parsing removing extra
=
: #44218 - Update server-external-packages to include aws-crt: #44214
- Collapse sequences of call stack frames from React and Next.js in the error overlay: #44137
- Update json5 dependency to latest: #44548
- Improve errors caused by client hook called in a server component: #44538
- Remove unused
target: es5
fromtsconfig.json
: #44567 - Make static page prefetch apply on navigation in app dir: #44502
- Improve errors caused by Next.js client hook called in a server component: #44588
- Add updated flush handling on sigterm: #44614
- chore: improves console warnings related to edge runtime: #44563
- hmr error improvements: #30616
- feat(standalone): allow configuring
HOSTNAME
via env var: #44627 - Add experimental pre-compiled next-server: #43198
- Fix check-precompiled for next-server: #44669
- Refactor use of AsyncLocalStorage: #44668
- Add required default value for the ids parameter: #44694
- Start client compiler when server components are finished compiling: #44716
- fix: support runtime value when using multiple declarations per export: #44732
- land(Fix: Add trailing slash to locale redirect based on next config): #44735
- Fix IPv6 hostname formatting in CLI: #43491
- Hydration error link is appended multiple times in app-dir: #44741
- Improve errors caused by Class Component rendered in a server component.: #44726
- Update
jsonwebtoken
: #44748 - @next/font: Add preconnect tag when fonts are used but not preloaded in app-dir: #44746
- Ensure folder exists for standalone server: #44745
- chore: Update
swc_core
tov0.53.0
: #44707 - Revert "chore: Update
swc_core
tov0.53.0
": #44760 - chore: fix typo: #44761
- Fix app ISR handling with no generateStaticParams: #44787
- Update to latest version of pnpm: #44791
- Fix router.refresh() resetting state and Suspense boundaries: #44775
- Fix capitalization in formatted server errors: #44798
- examples: Bump SWR to v2.0.0: #44790
- Fix image emittion for pure client image: #44831
Documentation Changes
- Update custom-app.md: #44351
- Update
next/head
docs.: #44454 - uses spelling: #44399
- Update Turbopack docs.: #44468
- Fix link to next-image-to-legacy-image codemod: #44471
- Add module transpilation docs: #44518
- Update TypeScript API Route example: #44517
- Update config-shared docs link: #44547
- Docs: Update
next/font
to@next/font
: #44573 - Improve modularized imports docs and add config options to example: #44560
- Remove old links in docs.: #44580
- Test navigation between multiple root layouts: #43762
- [docs/bugfix] fix code example for "Prefixing the Default Locale" - NEXT_LOCALE cookie usage: #44587
- Correct link to full list of
Permissions-Policy
permissions: #44607 - Update subset validation in @next/font/google and fix CJK bug: #44594
- Update mdx docs example to show merging config: #44656
- docs: clarify default
basePath
value: #44642 - docs(middleware): add _next/image to match ignore: #44659
- Update redirects.md to fix a typo.: #44677
- Fix broken links in @next/font API reference: #44714
- Add missing modularizeImports on config snippets: #44734
- Update prompts for CNA and add default @/* alias: #44672
- Clarify middleware.ts location in docs: #44788
Example Changes
- Update with-sentry README.md Next.js version: #44374
- fix link to index page in Image Component Example: #44388
- Update get-api-cookie.ts: #44466
- Update .gitignore in pwa example: #44391
- Use the stable GraphQL Yoga v3 in the GraphQL example: #44488
- [examples] add @types/testing-library__jest-dom package: #44533
- Improvements to Cloudinary Example: #44572
- Create i18n example using app-dir and middleware: #44257
- Add lang, generateStaticParams, and server-only for i18n example: #44597
- remove unnecessary babel.config.js in react native web example: #43939
- Update to with-supertokens example: #44640
- Add support for rendering MDX as a server component: #44651
- Update: SharedModal.tsx swipe bug in with-cloudinary: #44771
- [example] Add missing package in app dir i18n example: #44820
Misc Changes
- docs: add pnpm to template readme: #44427
- Added actual error message to log output: #44453
- Fix isolated tests on windows and update azure config: #44457
- docs: Update GitHub CLI clone command in
developing.md
: #44509 - Cache package lock when running tests to speed up installation: #44520
- Test server component error recovery in dev: #44155
- Fix taskr watching core files
- add
testonly
variants for all test modes and refactoredtest
as alias oftestheadless
: #44528 - Use test timings token when available: #44549
- Remove un-used app-dir test fixture: #44546
- Fix prettierignore_staged for compiled: #44550
- Revert "Use turbo for packing files in test setup (#44074)": #44566
- Remove extra pnp test: #44576
- Update CNA tests running: #44577
- misc: fix benchmark script: #44592
- Change
NextInstance.fetch
Signature: #44575 - Update CNA test skipping: #44606
- Disable telemetry for
pnpm next
when contributing locally: #44610 - Update flakey styled-components test: #44613
- Temporarily disable Azure e2e tests: #44616
- Fix docs only change for canary: #44617
- Fix font unit test on Azure: #44618
- Fix paths for check-examples script: #44661
- Change test template to use TS and improve template for
app-dir
: #44227 - Replace usage of example.com in gssp-redirect tests: #44664
- Ensure yarn is used for next-with-deps: #44666
- Recommend next-with-deps for running examples: #44667
- Fix new-error command: #44720
- @next/font/google unknown font error: #44713
- Migrate set-output usage to $GITHB_OUTPUT: #44757
- Add simple test that custom server works: #44536
- Migrate basic-basepath tests into basic: #44776
- Autolabel with linear when labeled with kind: bug: #44774
- Exposing NextFont types: #44772
- Fix set output handling for DOCS_CHANGE env: #44789
- Fix echoing DOCS_CHANGE result
- Correctly handle @next/font/google fonts without any preloadable subsets: #44809
- Update release stats for newer pnpm version: #44828
- Fix FreeBSD next-swc build: #44833
Credits
Huge thanks to @shuding, @chogyejin, @ijjk, @smeubank, @h4x0rlol, @leerob, @arch-user-france1, @konojunya, @nora-soderlund, @IDrumsey, @dirheimerb, @timneutkens, @BrandNewLifeJackie26, @hyeongrok7874, @ardatan, @chibicode, @jankaifer, @hanneslund, @abir-taheer, @SukkaW, @promer94, @feugy, @fli, @seawatts, @awareness481, @delbaoliveira, @Nutlope, @styfle, @feedthejim, @wyattjoh, @Cielquan, @NiedziolkaMichal, @nissy-dev, @balazsorban44, @raulfdm, @sokra, @rishabhpoddar, @wbinnssmith, @curiosbasant, @gurkerl83, @akshitsinha, @ianldgs, @kdy1, @sorrycc, @tapaskumar05, @stuartkeith, @EmilianoGarciaLopez, @valentinpolitov, and @huozhi for helping!