vercel/next.js
Compare Source
Core Changes
- Update react next tag: #43617
- fix(jest): pattern when detecting packages to transpile in next/jest: #43546
- Adding head element checking for root layout: #43597
- Revert: 'Minimized runtime errors in app dir': #43648
- fix: properly handle
trailingSlash: true
and rewrites
: #43641
- @next/font fallback fonts order fix: #43633
- Update cache handling for app: #43659
- Remove resolved
app
directory todos: #43672
- Fix typo in comment: #43685
- perf: disable prefetching for links in viewport in development for app routes: #43730
- Remove additional
<div>
at each segment level in app
: #43717
- Revert "Adding head element checking for root layout": #43760
- fix ci pnpm lock error: #43767
- Force reflow when setting scrollBehavior: #43673
- Remove
__webpack_exports__
from error overlay: #43715
- Fix chunk hash logic in hot-reloader for server components: #43778
- Assign layer to app client entries: #43197
- Remove notifications emitted during pnpm dev: #43801
- Display error digest if presented: #43742
- Fix HMR issue after patching the client module: #43819
- Implement loadable with lazy and suspense for next dynamic: #42589
- Do not attach CSS checksum for production build: #43827
- Provide error hints for invalid layout props via the TS plugin: #43835
- Refactor code: #43828
- Unhandled errors and rejections opens as minimized in app dir error overlay: #43844
- docs: add readme with development instructions for next/swc: #43834
- Use proxy to ensure Flight is referencing to the latest module during development: #43823
- memory: fix 2 memory leaks in
next-dev
: #43859
- Refactoring in @next/font: #43848
- build(cargo): bump up swc_core, turbopack: #43652
- Move prefetch bailout to start of the prefetch function for
pages
: #43731
- Alias next/head to noop for rsc and add upgration warning: #43885
- Update freebsd build: #43866
- Fix error message for invalid
runtime
option in app dir: #43900
- fix: forwarding props to no ssr dynamic: #43901
- Improve type checking error message for invalid props: #43903
- Improve type checking error message for invalid props: #43903
- Support for named slots in type checking: #43906
- Fix next/dynamic types for resolving named export module: #43923
- Add auto completion for prop names and types to the TS plugin: #43909
- Skip creating VSCode config and
.gitignore
if running in CI: #43935
- Add helpful error for createContext used in Server Components: #43747
- Increase stack trace limit on the server: #43800
- Refactor image optimization util: #43868
- useSearchParams - bailout to client rendering during static generation: #43603
- Open server component errors fullscreen: #43887
- next-dev: restart dev server exceeds the memory limits: #43958
- Fix: status log when NEXT_TELEMETRY_DISABLED env is set: #43948
- Erase dynamic ssr:false imports on server: #43974
- use a function expression to access arguments binding: #43987
- Added support for query params on not found pages: #43836
- Update
no-img-element
lint rule: #43982
- Fix: fix pages in Route Groups returning 500 with
output: "standalone"
: #43746
- Add default head for app dir: #43963
- Fix browser navigation buttons not working with shallow routing and middleware: #43919
- Fast refresh should recover from event handler errors in app dir: #43882
- Fix module error for findDOMNode on edge: #43998
- Adding data attr to inlined font definition: #44008
- Replace taskr.watch for core compilation: #44027
- Fix
.images.remotePatterns[0].port
warning: #44032
- Fix app client entry key for windows: #44011
- feat: enables 'edge' as a possible runtime for API routes: #44045
Documentation Changes
- docs: Add notes about NEXT_MANUAL_SIG_HANDLE: #43686
- Changes
vercel/examples
links from linking to GitHub repo to template marketplace: #43780
- docs(migrating): fix broken react-router link: #43843
- Update compiler.md: #43872
- Add docs for missing support on custom routes: #44007
- docs: fix wording: #44020
- not ie 11 is dead: #44029
Example Changes
- Add with-cloudinary example: #43250
- examples(with-turbopack): Fix styling page default active stylingNav: #42739
- Fixed broken Cloudinary example: #43646
- Convert
with-why-did-you-render
example to TypeScript: #43736
- chore(examples): Remove deprecated function from chakra: #43784
- chore(examples): Update convex example: #43741
- Update dependencies for Convex demo: #43855
- Convert
with-gsap
, with-mqtt-js
, with-mux-video
examples to Typescript: #43874
- Fix
with-webassembly
example and convert to Typescript: #43677
- corrected /examples/github-pages readme: #43766
- chore: add repro links in "verify canary" comment: #43979
- Move Google Analytics script to the
: #43838
Misc Changes
- Apply publish step optimizations: #43620
- Update create-next-app template: #43482
- Update test config: #43661
- Update flakey app logbox test: #43682
- Update flakey GSSP preview test: #43702
- Fix typos in 1.bug_report.yml: #43697
- Disable jest autorun in this repo: #43727
- Build test binary in Docker image: #43745
- Update bug report template to make it clear we require repro: #43735
- Add tests for server component HMR: #43779
- Add tests for rendering null and undefined in RSC: #43768
- Remove
swcMinify
from Next config in CNA template: #43782
- Remove
serverComponents
from next.conf.js because it's unused: #43805
- Add test for providing correct params to layouts: #43775
- Fix test binary generation and update test config: #43790
- Lock pnpm version during publish: #43820
- ci(actions): pin prod-test action image: #43748
- Upgrade playwright to 1.28.1: #43818
- modify rd email: #43837
- Test imports of all file types: #43751
- test: client component under server component with ssr:false: #43853
- Delete duplicate SECURITY.md: #43856
- Clarify e2e dependency on yarn in contributin docs: #43287
- test: use react latest: #43884
- Update @next/font data: #43883
- Update flakey dev context tests: #43951
- Add VSCode settings and recommended extensions for Next.js repository: #43954
- Add Web Tooling team to codeowners: #43981
- Update docs change files list: #43984
- Fix e2e deploy test setup: #43990
Credits
Huge thanks to @Nutlope, @huozhi, @m7yue, @BRKalow, @Andarist, @hanneslund, @jueungrace, @balazsorban44, @ijjk, @mmaaaaz, @Alfred-Mountfield, @soonoo, @JanKaifer, @feedthejim, @Brooooooklyn, @shuding, @manovotny, @maxproske, @AnujSsStw, @thomasballinger, @kwonoj, @aaronbrown-vercel, @saseungmin, @styfle, @timneutkens, @aziyatali, @labyrinthitis, @padmaia, @mattpr, @gnoff, @wyattjoh, @aarnadlr, @DuCanhGH, @kleintorres, @janicklas-ralph, @theevilhead, @Nfinished, and @feugy for helping!
Compare Source
Core Changes
- test(integration): allow to run
--turbo
dev server tests dynamically : #42967
- Ensure loaderFile is included in webpack cache key: #43315
- Improve @next/font error handling: #43298
- Improve RSC plugin to provide better errors: #42435
- fix appDir returning 404 in production with
"output": "standalone"
: #43268
- Fix outputting un-necessary trace files for edge functions: #43304
- fix: apply default export interop to pages/_app: #43335
- Fix package resolution issue in app dir: #43349
- Get correct chunks in flight-manifest on Windows: #43334
- Resolve RSC / HTML rendering errors in error overlay: #43332
- App directory next/link dynamic href dev error: #43074
- Add
ref
forwarding for next/image
: #43193
- Always transform styled-jsx for rsc and error with client-only condition: #43386
- dynamic = 'error' should only throw if page didn't get exported: #43377
- fix
output: "standalone"
returning 500 error on certain pages when built without pages/: #43336
- Fix "apply() is only allowed in ready status (state: idle)" HMR errors: #43242
- Add gSP and gSSP checks for both server and client layers in the SWC transform: #43391
- Make sure the TS plugin works for src/app: #43412
- Remove stack trace from full reload warning: #43453
- Upgrade compiled undici: #43481
- Fix missing cleanup process in flight plugin globals: #43297
- Fix matchers in middleware manifest: #43549
- rsc: bundle legacy head as client component: #43425
- Remove
useState
from next/image
: #43587
- Group redirect status imports: #43480
- Fix
Failed to copy traced files
for Edge functions and handle its files with middleware-manifest.json: #43326
- Update next/link default legacyBehavior: #42623
- fix: Dynamic Usage Error when using previewData with generateStaticParams and appDir: #43395
- Minimized runtime errors in app dir: #43511
Documentation Changes
- Add link back to font video in Font docs.: #43440
- docs: update known Safari bug: #43513
- Add yarn berry dependency upgrade example for Next 12 to 13 upgrade documentation.: #43472
- Clarify that publicRuntimeConfig and serverRuntimeConfig do not work with Output File Tracing: #43443
- adding note that edge api routes are not supported with ISR: #43572
- Improve docs for URL Imports: #43615
Example Changes
- chore(examples): Deprecate
cms-strapi
: #43325
- Add example commands for creating reproductions: #43375
- updates with-supertokens example: #43379
- Fix
with-docker-compose
example: #43419
- chore(examples): fix CLI commands for MobX examples: #43534
- Simplify and convert
with-vercel-fetch
example to TypeScript: #43403
- chore(examples): reference
main
prop in README.md in Firebase example: #43434
- chore(examples): Update active-class-name example: #43581
- Fix deploy button in with-xata example: #43608
Misc Changes
- Avoid turbo cache miss on root package change: #43309
- Add .pnpm-store to .gitignore: #43366
- Update @next/font/google fonts: #43385
- Catch errors when calculating avg font width: #43503
- chore: update issue verifier: #43339
- chore: fix issue validator
- chore: move comments of issue validator
- chore: hardcode path for issue validator
- chore: add area dropdown to bug report template: #43228
- chore: fix issue verifier issues
- Merge branch 'canary' of https://github.com/vercel/next.js into canary
- chore: fix issue verifier
- chore: don't comment twice
- chore: disable auto-labeling
- Fix "infer pnpm with example" test outside test suite: #43487
- chore: add issue labeler: #43599
- chore: fix issue labeler: #43606
- Changed output mode on app directory test application: #43607
- Fix output: standalone test for app directory: #43618
Credits
Huge thanks to @kwonoj, @hanneslund, @ijjk, @shuding, @DuCanhGH, @chibicode, @artechventure, @JanKaifer, @huozhi, @colinking, @rishabhpoddar, @maxproske, @wyattjoh, @leerob, @alantoa, @Haschikeks, @balazsorban44, @matthew-heath, @AaronJY, @dtinth, @styfle, @leoortizz, @ValentinH, @brvnonascimento, @joshuaslate, @SferaDev, and @timeyoutakeit for helping!
Compare Source
Core Changes
- Remove unnecessary async function when preloading async components: #42957
- Add force-static handling for app dir: #43061
- Add experimental outputFileTracingIgnores config: #43103
- Leverage outputFileTracingIgnores for next-server trace as well: #43108
- Remove
unstable_revalidate
: #43119
- types: better type definition for internal utils: #43070
- Eagerly build swc binaries on change: #43142
- chore: Update swc_core to
v0.43.23
: #42977
- fix(next-swc/relay): make pages directory optional: #43116
- Remove the timestamp query for CSS resources: #43185
- Update experimental skipTrailingSlashRedirect handling: #43201
- Avoid bundling appDir rendering into pages edge SSR bundle: #43184
- Alias esm next document to avoid mismatch react context: #43192
- Fix middleware not executed when pages directory is empty: #43205
- Remove app routes from _devPagesManifest: #43188
- Fix HMR error: "Cannot read properties of null (reading 'length')": #43145
- fix(ts): re-export
PageComponent
and LayoutComponent
types: #43226
- Fix app routes are not correctly matched when src directory is used: #43234
- chore: add
firebase-admin
to default serverComponentsExternalPackages
list: #43249
- Fix React.cache() in layout/page file: #43187
- build(cargo): bump up turbopack: #43273
- fix(next-swc): aarch64 build: #43275
- Add fallback aliases for React: #43203
- fix: apply default export interop to
next/error
: #43238
- Remove unused
use-sync-external-store
dependency: #43281
- Imageloader: collect images serverside to include images from staticp…: #41554
- Update precompiled react: #43288
- Resolve next api for layouts to esm for edge runtime: #43302
- Refactor code: #43291
- Show error for invalid page props in the TS plugin: #43300
- docs: add error link when missing
appDir: true
: #43293
Documentation Changes
- Add note in next/link docs about anchor props: #43064
- Remove unneeded
async
in docs.: #43161
- Add JWT example to error page.: #43162
- Updated typo in the documentation: #43160
- Add missing quote in
next/script
example: #43196
- Add a note about the auto-created empty directory: #43219
- docs: Add default browserslist configuration as a starting point: #43260
Example Changes
- chore: Updating Tigris example to use stable release: #43058
- examples(with-ant-design): bump antd v5.0.0: #43062
- fix: Wrong link to source in "responsive" image example: #43081
- chore(examples): with-msw update msw: #43224
- Fix With Passport example: #43232
- chore(examples): update Next.js in
with-redux-reducer
: #43237
- Updates supertokens example app SSR behaviour: #43218
- docs: add missing AppProps import: #43136
- Convert more jsx/styled-components examples to TypeScript: #43117
- Convert
with-videojs
, with-yoga
, with-zones
examples to TypeScript: #43280
Misc Changes
- Fix e2e deploy test for Node.js v18: #43109
- Update tests config: #43204
- fix: create-next-app copies files it shouldn't: #43131
- Add links to PR template: #43239
- Update some flakey test cases: #43247
- Update flakey app HMR tests: #43253
- Add support for next.js development in docker: #43138
Credits
Huge thanks to @hanneslund, @adilansari, @chunsch, @bennettdams, @maxproske, @SukkaW, @kdy1, @orionmiz, @leerob, @shuding, @aziyatali, @NiedziolkaMichal, @huozhi, @colinking, @juliusmarminge, @andykenward, @Yutsuten, @balazsorban44, @FomichRoman, @rishabhpoddar, @arturbien, @ADTC, @JanKaifer, @ijjk, @kwonoj, @joliss, @Andarist, and @Laityned for helping!
Compare Source
Core Changes
- Show link to the docs for route segment config options: #42779
- fix: Fix regression of swc minifier: #42790
- Add additional item to RSC payload, preparing for head.tsx on navigation: #42791
- Use window.location directly instead of parsing into URL: #42888
- feat(next-swc/relay): Add
javascript
to language: #42894
- types(#42003): better typing for
next/link
: #42117
- Ensure query is provided correctly with middleware rewrites: #42818
- feat(next/swc): allow to run custom turbopack binary: #42656
- fix: Error: NEXT_REDIRECT crashing server in prod: #42793
- Update caching for swc turbo builds: #42929
- Handle head.js on client-side navigation: #42904
- feat(jest): respect
transpilePackages
in tests: #42987
- App files ending with page registred as page files: #42996
- Allow generateStaticParams to be a synchronous function in app directory: #42942
- chore(eslint-config-next): bump eslint-import-resolver-typescript: #43010
- Ensure next.config.js function is handled for turbo: #43015
- Fix app page check on windows: #43022
- Add middleware prefetching config: #42936
- Fix middleware prefetch cases: #43056
- Ensure backslash is correctly handled in find-page-file: #43057
- Fix app render: escape segment value #42626: #42823
Documentation Changes
- docs: fix middleware docs cookie example: #42816
- Update docs/advanced-features/debugging.md: #42842
- docs(edge-api-routes): fixes example: #42903
- Update SFCC example to use TypeScript +
@next/font
: #42865
- Add more details to invalid-next-config doc: #42917
- typo: #42968
- Document regions config for experimental-edge: #43009
- docs: Add examples of using multiple weights and styles: #43031
Example Changes
- chore(examples):
next/future/image
-> next/image
: #42794
- docs(examples): auth0 update callback URL: #42855
- Updates Apollo Server Examples to use Apollo Server 4 & @as-integrations/next: #42771
- Improve
with-algolia-react-instantsearch
example and convert to TypeScript: #42617
- Convert blog cover images to next/image: #42908
- Make cover image full width: #42916
- Convert
with-app-layout
example to TypeScript: #42930
- Tigris example with Next.js: #42662
- feat(examples): with-grafbase: #42898
- docs(examples): add postgres.js example: #42962
- Remove
with-atlaskit
example: #42973
- Remove
with-carbon-components
example: #42976
- Remove
with-cerebral
example: #42980
- Remove
swcMinify
option from example configs: #43012
- Convert
with-cssed
, with-csx
, with-styled-jsx
examples to TypeScript: #43018
- feat(examples): use experimental edge runtime with grafbase: #42992
Misc Changes
- Update bundle analyzer dependency and output: #42797
- Update to latest version of turbo CLI: #42803
- Fix cache collision for swc darwin: #42960
- Fix build-wasm-dev docs skip: #42961
- Update deployment used for e2e test: #42969
- test(integration): update test fixture: #42966
- Fix test retry cleanup: #43011
- Update test wasm timeout: #43014
- @next/font/google variable fonts without weight range: #43036
- Update build-wasm to checkout directly: #43054
Credits
Huge thanks to @shuding, @balazsorban44, @kdy1, @huozhi, @reyrodrigez, @andykenward, @idoob, @maxproske, @KoltonG, @timneutkens, @feugy, @leerob, @steven-tey, @SukkaW, @kwonoj, @adilansari, @hanneslund, @notrab, @zekicaneksi, @silvioprog, @joulev, @chanceaclark, and @Marcus-Rise for helping!
Compare Source
Core Changes
- bump @typescript-eslint/parser version to support TS 4.8: #42439
- chore: Update swc_core to
v0.40.40
: #42326
- Add telemetry for turbotrace: #42486
- Fix undici warning in Node.js 18: #42477
- Ensure RSC is detecting correctly during revalidate: #42508
- fix: correctly mention
generateStaticParams
in error: #42524
- Re-enable sandbox cache and update AsyncLocalStorage usage: #42547
- Check properly whether SWC is used or not when using forceSwcTransforms: #42531
- Show inlined error if the "use client" directive is not before other statements/expressions: #42507
- Refactor error codes in the TS plugin: #42585
- Fix server html insertion target: #42591
next/compat/router
: #42502
- Fix scrolling on router.refresh: #42583
- Fix relative TypeScript path in monorepos: #42586
- Aggregate updates using
addStatusHandler
and Promise.resolve
instead of setTimeout
: #42350
- fix(next/dev): bubble up unhandled exception from --turbo: #42594
- Rename RSC and Router headers: #42482
- Ensure build trace ignores apply correctly when nested: #42606
- Include @prisma/client in default external packages: #42624
- Replace global with globalThis: #42627
- Colocate styles with special entries: #42506
- Add lazy initialize of router cache nodes: #42629
- Add telemetry for @next/font: #42579
- Also create head when creating root layout: #42571
- feat: add --no-mangling to next build + fix --profile option: #42633
- update react builtin deps for next channel: #42639
- Ensure skip normalize is handled correctly: #42642
- @next/font/google fetch error dev: #42637
- Add missing matcher support: #42660
- Remove useless async declaration and replace regexp to plain string in AMP postProcessor: #42495
- @next/font error messages: #42689
- Adopt script rejection pattern for link onerror.: #42645
- Fix @next/font imports from outside of the root directory: #42678
- Ensure appDir is included in webpack configVars: #42710
- Fix replaceAll usage in post-process: #42714
- Use import to load page and layout: #42325
- Alias next public api to esm on edge runtime: #42709
- fix: publish compat folder: #42613
- Change condition to check for string attribute in lint rules utility function: #42625
- Fix as option with optional catch all routes url object syntax: #42355
- fix comma splice in
verifyRootLayout.ts
: #42324
- build(next-swc): update turbopack to latest: #42733
- @next/font return types: #42753
- Eagerly bundle external ESM dependencies for pages: #42741
- Handle hydration replaceState for static page with searchParams: #42744
- Add test case for image generation: #42693
- Don't pushState when already on the url: #42735
- fix: enable emotion import map: #42750
- Fix resolving for esm package with only exports.import condition: #42767
- Track page counts during builds: #42766
Documentation Changes
- Fix Static Generation link on Pages page: #42462
- Docs: Fix invalid tsconfig importSource syntax: #42465
- Update response-helpers.md: #42378
- react-version.md: Update minimum React version for Next.js 13: #42490
- Included negative matcher docs in upgrade guide: #42489
- Edit Upgrade docs to correct new-link codemod: #42501
- Update turbopack docs to use
create-next-app@latest
: #42528
- Remove all custom server integration examples: #42549
- [docs] Document middleware response changes: #42295
- Convert
with-absolute-imports
example to TypeScript: #42529
- docs/next/link: Mention middleware + dynamic routes changes: #42607
- fix typo in api-reference next/sever: #42669
- font api updates: #42724
Example Changes
- Include app directory in Tailwind config: #42407
- Removed duplicate MONGODB_URI check in example: #42518
- Convert
middleware-matcher
example to TypeScript: #42520
- Convert
custom-server-express
example to TypeScript: #42110
- Example: fixed tailwind ver in readme: #42551
- (with-supertokens example): Fixes infinite redirect issue for unauthorised error during SSR: #42634
- chore: update scripts to work on windows: #42632
- example fix url: #42695
Misc Changes
- Reuse file when shared by several google font variants: #42480
- Fix replaceAll usage in font loader: #42550
- Fix default value handling for CNA in CI: #42596
- chore: encourage adding reproductions to issues: #42667
- Fix CSS handling rules: #42615
- Update to latest version of turbo CLI: #42711
Credits
Huge thanks to @lucasassisrosa, @kdy1, @ijjk, @jakemstar, @lachlanjc, @ws-jm, @davidnx, @steven-tey, @Brooooooklyn, @hanneslund, @josephcsoti, @fantaasm, @timneutkens, @sivtu, @leerob, @balazsorban44, @maxproske, @rightones, @bot08, @shuding, @huozhi, @wyattjoh, @ethomson, @alexkirsz, @kwonoj, @MaxLeiter, @rishabhpoddar, @feedthejim, @gnoff, @moetazaneta, @superbahbi, @NOCELL, @ademilter, @nathanhammond, @imranbarbhuiya, @mrkldshv, @cvolant, @hughlilly, @ismaelrumzan, and @sQVe for helping!
Compare Source
Core Changes
- Hybrid App Hooks Support: #41767
- Add sqlite3 to the default list of server externals: #42294
- Improve the error message when custom export fields are used in an entry: #42221
- Add preload for layouts / components: #41519
- Add mongodb to default server externals: #42313
- refactor(next/turbo): consolidate turbo devserver logic: #42315
- [middleware] add tests for body reading methods #37980: #41718
- Handle dynamic css-in-js styles under suspense: #42293
- Fix page folder being wrongly resolved as page file: #42348
- Update dev process exit handling: #42367
- Ensure edge runtime doesn't propagate
cache
on fetch as Cloudflare doesn't support it.: #42362
- Add
prisma
to the external package list: #42323
- Local font family name: #42286
- useSelectedLayoutSegment at the current level: #42299
- Stop writing window specific paths in vscode configuration: #42338
- Ensure Undici is enabled for appDir in all cases: #42382
- fix: usage of wasm in an appDir page file using the edge runtime: #41689
- feat(next/mdx): support experimental mdx-rs loader: #41919
- Fix CSS modules imports not collected due to race conditions: #42392
- Fix entry creation on Windows: #42421
- Mock @next/font when using next/jest: #42413
- Avoid breaking useRouter() type change: #42430
- Do not strip loader arg in dynamic for server components: #42426
- Clarify app and pages file conflicting files: #42415
- Change
usePathname
to return string | null
: #42380
- Fix undici warning showing unexpectedly: #42444
- Remove static generation bail-out from usePathname: #42440
Documentation Changes
- docs(script): explain expected
next/script
behavior on client-side navigation: #42260
- Add
path
for information in cookie setting: #42146
- Update wording to remove beta FUD and keep evergreen: #42337
- update font optimization page: #42266
- Fix broken link on the upgrading guide: #42340
- Fix typo: docs/api-reference/next/font.md: #42344
- Update getting-started.md: #42353
- Fix typo in usage of onError in script.md: #42368
- Fix negative lookahead example in middleware.md: #42320
- Update customizing-postcss-config.md: #42331
- update middleware cookies example: #42341
- Fix Docs API Reference font.md broken link: #42418
- fixed missing
<Link />
keyword: #42422
- Fix docs for next/image upgrade guide: #42424
- Revert font-optimization.md syntax: #42403
- Fix invalid markdown lang: #42442
Misc Changes
- Update app-dir E2E tests for deploy: [#42269](https://togithub.com/vercel