v10.2.0
Core Changes
- Ensure default fallback values are correct with i18n: #23675
- Font optimization: #21676
- Stop mutating
resolvedAsPath
: #23705 - Fix webpack5 cache distDir: #23718
- Ensure basePath is not applied for external GSSP redirect: #23673
- Ensure fallback rewrites dont match over pages with i18n: #23674
- Ensure no-op export returns without error: #23752
- upgrade to webpack 5.31.0: #23776
- Babel fast mode: #23760
- Resolve new babel loader through require.resolve: #23819
- upgrade webpack to 5.31.2: #23861
- reduce the number of write syscalls by buffering: #23863
- Remove bugfix needed for webpack 4 when webpack 5 is used: #23886
- Ensure no-op rewrite matches dynamic route with i18n correctly: #23860
- Ensure minimal mode SSR 404 handling is correct: #23996
- Enable webpack5 by default: #23810
- Add request deduplication to image optimizer: #24000
- Use regex lexer for gathering named groups from has: #23626
- Clean up eventsource initialization: #24015
- Add react@experimental testing: #23359
- fix: upgrade cssnano/postcss version: #24034
- update webpack to 5.33: #24077
- Fall back to default components when a top-level error occurs: #24079
- improve pr stats action: #24086
- Fix IE11 incompatibility due to string litterals: #23784
- Fix fallback: false triggering 404 before rewrites: #24121
- Use same num workers between export and build: #24180
- Fix serving Images through external rewrite with Image component: #21001
- Ensure locale is not duplicated from differing casing: #24187
- Add error for getStaticPaths on non-dynamic page: #24188
- Ensure query for static pages with rewrites is updated correctly: #24189
- startup performance improvements: #24129
- ci: fix PnP e2e tests using Webpack 5: #24216
- Disable strictExportPresence when webpack 5 is enabled: #24214
- upgrade webpack to 5.34: #24230
- Omit un-necessary stack trace from invalid routes: #24240
- Babel Turbo Loader, Part 2: #24078
- Ensure locale cookie does not error with similarly named cookie: #24182
- Add event for webpack 5 usage: #24222
- Fix metrics measurements under new root API: #24110
- feat: add type to previewData: #21574
- improve react-loadable-plugin: #24281
- webpack 5.35: #24293
- Ensure locale key not duplicated when navigating back to root path with a query or hash value: #24323
- Adding script loader files to package.json: #24326
- Bump next-babel-loader cache key: #24335
- Ensure dev overlay is triggered for more _app/_document errors: #24328
- Fix not exposing server errors in hot reloader: #24331
- experimental: remove legacy plugin system: #20759
- Replace experimental
reactMode
withreactRoot
: #24280 - [next] update initial config message: #23165
- Upgrade eslint to the latest version: #24377
- Ensure proxy rewrite does not hang on error: #24394
- Font optimization bug fix: #24162
- Ensure stalled CSS triggers fallback navigation: #24488
- Remove experimental note for has routes: #24529
- Test fixes for Babel mode: #24312
- Upgrade postcss: #24546
Documentation Changes
- Add note about prefetching: #23732
- docs: Update built-in-css-support.md with Linaria example: #23333
- Fix upgrading broken link: #23785
- Add experimental note to docs for has: #23835
- Update incremental migration doc and add version for new rewrites: #23859
- Add missing import in CSS docs: #24007
- docs: Fix TypeScript casing: #24040
- Update .now.sh to .vercel.app.: #22359
- Updated prefetch documentation: #24171
- Docs update: Redirect paths with parentheses: #24062
- Update incremental adoption in rewrites doc: #24186
- docs: fix a11y router examples: #23031
- Add next-intl example: #21447
- Clarify dynamic imports documentation: #24168
- docs: reduce image size in sample Dockerfile: #24108
- Update Preview Mode docs for developing locally: #22906
- Docs: add info about fallback to prerender-error: #22828
- Add note for exportPathMap query and prerender pages: #24266
- Mention notFound cache purging use-case: #21234
- docs(deployment): prune non-production deps: #23056
- Docs update: Adds supertokens to 'Bring Your Own Database' section as well + improvements to code structure in example: #23779
Example Changes
- fixes a part of #23607 remove with-glamor example: #23639
- fix with-web-worker example.: #23634
- fix with-styled-jsx-plugins example.: #23635
- fix with-mqtt-js example.: #23636
- Fix: Codeblock Syntax Highlighting: #23545
- Update to with-supertokens example: #23728
- Fixed issue accessing index page of "with-reason-relay" example: #23780
- Adding a plausible example: #23814
- Update tailwind css to v2.1 with jit support: #23793
- Update Tailwind CSS example with emotion to use JIT: #23843
- Update with-electron example: #23873
- Update redux-toolkit-typescript example: #23997
- Fix typescript types.: #23771
- Update Chakra UI examples to latest versions.: #23585
- Update SWR in with-magic example: #24185
- Minor fix to build command: #24158
- Fix call to setInterval: #22357
- Fixed bug where styled-jsx examples don't work because of a wrong plugin: #23414
- Bumping up the rebass version (v1 - v4) and fixing components and styling for it.: #23342
- cache Mongoose connections between hot reloads: #23321
- update with-realm-web example: #24241
- Update seed data for Kontent CMS example.: #24089
- Enable JIT for Tailwind + Emotion CSS example: #23912
- body parsing middleware is bundled with express >= 4.16.0: #23899
- chore(with-react-intl): allow extracting translation key from a deeper directory: #23874
- Simplify with redux toolkit typescript: #24161
- docs(examples): with-iron-session logout must be called via POST: #22240
- feat: add with-reflexjs example: #24068
- Add Clerk.dev example: #24311
- Fix for with-clerk example: #24324
- Fix strapi links: #24330
- Update with-aws-amplify-typescript example: #24292
- Now -> Vercel in api-routes-rest: #24431
- Fix: Object Destructuring Error: #24397
- feat: bump styled-components lib version examples: #24482
Misc Changes
- test(create-next-app): suppplying --use-npm prefers npm for installation: #23880
- Increase base Lighthouse score of default Create Next App template: #23887
- docs(create-next-app): add --use-npm: #24018
- Switch Create Next App default template to use next/image: #24076
- Update with-electron test: #24036
- Document the need to call App.getInitialProps() from a custom app's getInitialProps: #24002
- test(create-next-app): use latest examples: #24048
- add css to the stats-app: #24228
- Update 1.bug_report.yml
- Update 2.example_bug_report.yml
- Update 3.feature_request.yml
- Update CI jobs to re-use cache: #24231
- chore(create-next-app): update help information: #24251
- fix types of next-webdriver: #23995
- Made template look correct in IE11: #24245
- Add test for top-level _document error: #24313
- Fix side effects in router-is-ready tests: #24360
- Workaround for discrete passive effects change: #24369
- Update 1.bug_report.yml
- Update 2.example_bug_report.yml
- Update 3.feature_request.yml
Credits
Huge thanks to @rpxs, @lemarier, @rayhanadev, @janicklas-ralph, @devknoll, @felipeptcho, @rishabhpoddar, @sokra, @m-leon, @turadg, @PierreBerger, @divmain, @dominikwilkowski, @pranavp10, @ijjk, @santidalmasso, @HaNdTriX, @jamesgeorge007, @garmeeh, @leerob, @shuding, @feute, @timneutkens, @AlexVilchis, @Timer, @malixsys, @sahilrajput03, @marcvangend, @steven-tey, @julienben, @umarsenpai, @mzaien, @merceyz, @AntelaBrais, @SystemDisc, @M1ck0, @jbmoelker, @jaisharx, @amannn, @vkarpov15, @gaelhameon, @4ortytwo, @Simply007, @styxlab, @xCloudzx, @wodCZ, @emmanuelgautier, @leosuncin, @ludder, @geritol, @vassbence, @vvo, @portenez, @arshad, @tarunama, @flybayer, @Hanaffi, @SokratisVidros, @chibicode, @kylemarshall18, @jarrodwatts, @sampoder, @coetry, @Jkker, and @omariosouto for helping!