build: update dependency next to v11
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
next (source) | 10.0.6 -> 11.0.1 |
Release Notes
vercel/next.js
v11.0.1
Core Changes
- Fix failing Runner import: #26172
- docs: fix ignoring-eslint-url during build: #26165
- Fix babel-loader failing on JSON5 syntax: #26194
- Fix eslint version check for older versions: #26212
- fix: use a client-side navigation when redirecting to a rewriten URL: #25990
- Fix next/image noscript src path with loaders: #24011
- Fix long URLs causing 400s with dynamic routes/rewrites: #26221
- Ensure has query encoding is normalized: #25732
- Fix Show error when user put wrong values in width or height: #26166
- Update to latest TypeScript version and de-dupe versions: #26285
- Automatically use createRoot for React@>=18: #26279
- Omit svg static imports if custom webpack config is defined: #26281
- [ESLint] Adds
--quiet
flag, TypeScript resolver and bug fixes: #26280 - Add runtime to hotUpdateMainFilename: #26256
- Add check for startLatency in fast refresh: #26417
- fix: ignore invalid accept-language header: #26476
- chore: Add Alex to lint documentation: #26354
- Fix domain locales not available on client: #26083
- Update to only add image import types when enabled: #26485
- Strongly type
Router.events.on
andRouter.events.off
: #26456
Documentation Changes
- docs(image): fix image import path: #26142
- Ensure all errors are added in manifest: #26129
- Update next/image docs and examples: #26150
- Fixed no-img-element documentation snippet.: #26154
- docs(next/script): Improve formatting of docs: #26149
- add missing step of installing next@latest: #26141
- Fix
next/image
docs version history: #26192 - Update next/image docs and example with shimmer animation: #26183
- Update docs on static image imports: #26211
- Update note in script doc: #26214
- Doc "no-sync-scripts" remove experimental notice: #26225
- Correct the word "remove": #26258
- Update next/script docs to clear up confusion around next/head and client-side JS: #26253
- docs: remove duplicated
--ts, --typescript
from Options: #26252 - Correct Next.js 9 upgrade instructions: #26271
- Fix closing tag in Script docs: #26276
- docs: fixed typo: #26311
- Extend disclaimer for dynamic image imports: #26241
- Add docs on adding HTTP security headers.: #25833
- Improve the
next/script
documentation.: #26325 - add missing closing bracket: #26375
- Docs: Add Prettier section on ESLint page: #26347
- docs(router.md) Add note about page state and navigation: #26320
- Add module.exports to security headers documentation: #26466
- Update i18n fields in docs: #26492
Example Changes
- (examples/image-component): fix placeholder href: #26140
- fix(examples):
future.webpack5
-> top levelwebpack5
: #26175 - [examples/cms-wordpress] fix typo on alert message: #26115
- Follow the breaking change of jest-config: #26082
- Update examples to use React 17: #26133
- Add cms-drupal example: #25198
- Fix: upgrade react-test-renderer version to 17.0.2: #26229
- Update postcss version in examples: #26226
- Update with-supertokens example: #26266
- Updating Typescript to recommended minimum 4.3.2: #26267
- (examples/with-lingui): update example: #26076
- Examples: Fixed the example path to correct value: #26255
- Update with-eslint example.: #25817
- (examples/with-webassembly) fixed for webpack 5: #26440
Misc Changes
- Update create-next-app template favicons: #26289
- Remove period for ESLint
passHref
docs link.: #26402 - Ensure image-types file is included: #26495
Credits
Huge thanks to @HermanNygaard, @styfle, @IvanKalinin, @lachlanjc, @Braweria, @RileyMShea, @Dev-CasperTheGhost, @CauanCabral, @toyamarinyon, @DavidVaness, @nickbabcock, @jwilsson, @timneutkens, @antoinechalifour, @valse, @arshad, @Silinde87, @Vadorequest, @tim-hanssen, @ducdev, @rishabhpoddar, @LEvinson2504, @akellbl4, @schemburkar, @greatSumini, @giraffesyo, @zNeb, @jthcast, @devknoll, @housseindjirdeh, @lukeingalls, @joe-bell, @leerob, @pacocoursey, @aksdevac, @araujogui, @ijjk, @vitalybaev, @samrobbins85, @huozhi, @petermekhaeil, @RobVermeer, and @flybayer for helping!
v11.0.0
Core Changes
- fix(types): allow nonpromise return types for static functions: #24685
- Ensure history navigates correctly with dynamic routes + basePath: #25459
- Fix external check for non-local next import: #25518
- Ensure providing only query on dynamic route works as expected: #25469
- Assume a recent
react@experimental
ifreactRoot
is set: #25496 - Update to latest webpack 5 and webpack-sources: #25558
- Set default webpack publicPath value to override auto: #25452
- Add helpful error for link with multiple children: #25657
- Ensure rewrites are resolved correctly through history: #25666
- Fix rewrite and dynamic params on navigating to initial history entry: #25495
- Enable serial build by default: #25642
- Don't show webpack version message in production server: #25654
- Font optimization add preconnect: #25346
- Enable new babel mode: #25635
- Remove deprecated features: #25446
- Disable split chunks in webpack 5 in dev mode: #25735
- Remove experimental tag from Script component: #25435
-
next lint
+ ESLint in Create Next App: #25064 - Bump "engines" to node >= 12.0.0: #25761
- Support for static image imports: #24993
- Bump minimum React version to
^17.0.2
: #25788 - Remove feature flags for static image and blurry placeholder: #25797
- Add note to upgrading guide about React version: #25849
- Fix "env" key in babelrc with new Babel mode: #25841
- Enable webpack5 for all apps: #25639
- Fix types for static image: #25808
- Do not remove placeholder for data URL: #24704
- Add warning for older TypeScript versions: #25867
- Prevent node inspect from causing webpack check to fail: #25876
- fix(21606): consider scroll option when using shallow routing: #24888
- remove opentelemetry/api: #25900
- Adjust JPEG quality when generating placeholder: #25904
- Improve check for eslint version: #25910
- Refactor image optimizer static immutable header: #25909
- ESLint Updates: #25895
- Fix immutable header on static image: #25914
- ESLint: Updates disable ESLint message during builds: #25917
- Remove
@types/comment-json
: #25810 - Add delay to placeholder removal: #25916
- Add experimental cra-to-next transform in codemod cli: #24969
- add global callback for refresh latency: #25944
- Add css blur when
placeholder=blur
: #25945 - ESLint: More updates and bug fixes: #25952
- Add errors for invalid
placeholder=blur
usage: #25953 - Fix delay between blur image and high res image: #25994
- Update
json5
and remove@types/json5
: #25946 - Disable prerendering /500 when _error has getServerSideProps: #23586
- Update comments for clarity & grammar in router.ts: #25947
- include lib folder when publishing next-codemod: #26003
- Update client-side default error: #25997
- Add gitignore template to published files for codemod: #26008
- Fix Firefox image decode error: #26011
- Enable optimized loading strategy: #26021
- Remove deprecated features and enable future flag: #26066
- Remove unsupported examples: #26075
- Remove React version checks and warnings that are no longer needed: #25992
- fix: don't create .eslintrc if package.json contains eslintConfig: #26025
- Add lint checking events: #26089
- Update to latest version of webpack 5: #26102
Documentation Changes
- Update Authentication docs to be an examples list.: #25497
- Improve documentation of CDN asset paths : #25531
- Fix rewrite example for fallback site: #25508
- doc: update TS version for --incremental: #25736
- Update ESLint docs.: #25816
- ESLint Plugin: Fix Document and Head import rules: #25730
- Adding
--typescript
option: #25831 - Fix command in upgrade guide: #25879
- docs: use descriptive links instead of "click here": #25897
- Fix loader url composition on image/next doc: #25893
- Add changing the hostname to the cli doc: #25971
- Add experimental CRA transform to docs: #25989
- docs: advise users of
create-next-app --ts, --typescript
: #25349 - Update react-version.md: #26093
- [ESLint] Adds section to docs for migrating existing ESLint configurations: #26101
- Update learn path in getting started and from cra docs: #26104
- Script component docs: #25471
- Update image documentation for static image: #25949
Example Changes
- Updated example name: #25428
- Example: Treat "mockServiceWorker" as a generated artifact in "with-msw": #25515
- Fix with-docker example fails to load image: #25536
- Updated with-mdx-remote dynamic components example: #25366
- up-to-date electron: #25551
- Update tsconfig of example to be consistent with default output of next.js: #25581
- Remove react-relay-network-modern example.: #25815
- fix mobx-state-tree-typesript missing babel/core dependency: #25589
- feat: bump styled-components version on examples: #25826
- Add run on Google Cloud Run button to the docker example: #25824
- updated example for zustand v3.5.1 interface change: #25066
- fix: added typescript dependency in next-sitemap example: #25866
- docs(examples/with-iron-session): fix mutate + fetch, add TypeScript example link: #25889
- docs: add 'Open in StackBlitz' buttons to various examples: #25853
- fix: move viewport meta tag to head in _app.js: #25901
- fix: use key while rendering arrays: #25902
- docs(examples/with-mobx-state-tree-typescript): add 'Open in StackBlitz' button: #25926
- tslib module missing in package.json: #25829
- Updated Readme: #25575
- Modify image component examples app for static image: #25956
- (examples/with-urql): fixes graphql server url: #25987
- docs(examples/with-redux-persist): add 'Open in StackBlitz' button: #25972
- Example blog with comments: #24829
- docs: fix typo in with-unstated/README.md: #26004
- (examples/with-react-md): switch from node-sass to sass: #26001
- Update next-transpile-modules to 7.3.0 across examples: #26040
- examples/with-mongodb: avoid destructuring of environment variables.: #26029
- (example/with-typescript-grapql): fix deps: #26010
- (examples): fix missed peer dependencies: #26069
- (examples/with-rbx-bulma-pro): update deps: #26077
Misc Changes
- Update
yarn next
script with--enable-source-maps
: #25533 - Update size limit test
- ESLint Config: Adds
alt
text rule for Image: #25462 - Enable Strict Mode in new
create-next-app
projects: #25696 - Replace 'require' with 'import' in bench files and update dependancies: #25775
- Fix occasional test failures: #25855
- feat: have .tsx be in ts template for create-next-app: #25820
- Run acceptance tests non-concurrently: #25861
- Update CNA build target in tsconfig: #25780
- Replace
CLIEngine
withESLint
: #25801 - Ensure correct browser env is used: #26014
- Update preload test for safari: #26020
- Update safari preload test: #26086
- Fix react@next and react@experimental tests: #26088
Credits
Huge thanks to @kahy9, @ljosberinn, @leerob, @kettanaito, @thomasboyt, @hussainanjar, @styfle, @devknoll, @LiuuY, @timneutkens, @housseindjirdeh, @PepijnSenders, @janicklas-ralph, @payapula, @tmtk75, @ijjk, @hiramhuang, @daku10, @atcastle, @matamatanot, @pelhage, @Lukazovic, @Mzaien, @gleich, @geshan, @Munawwar, @ykzts, @vitalybaev, @mottox2, @vvo, @chrisneven, @turneand, @d3lm, @akellbl4, @sokra, @johnjago, @alicanyildirim, @sanathusk, @valse, @samrobbins85, @SamVerschueren, @ademilter, @ctjlewis, @brandondc741, @eltociear, @martpie, @kasipavankumar, and @joecohens for helping!
v10.2.3
Core Changes
- lazy load postcss plugins: #25317
- Add missing i18n types in gip context: #25363
- Ensure externals are correct for mini-css-extract-plugin: #25340
- Update beforeFiles rewrites to continue: #25418
Documentation Changes
Example Changes
- Fix PatternFly 4 example: #25356
- Update package.json blog-starter-typescript: #25361
- New kontent UI screenshots: #25387
Misc Changes
Credits
Huge thanks to @alexbrazier, @jamsinclair, @sokra, @fabianishere, @rokinsky, @ijjk, @msidqi, @rubensdemelo, and @Simply007 for helping!
v10.2.2
Core Changes
- server doesn't need to be contenthashing at all: #25251
- Update postcss-loader to 4.3.0: #25197
- restore webpack defaults for managed/immutablePaths: #25250
- react-loadable-plugin. Handle undefined opts.caller: #25264
Documentation Changes
- doc(typescript.md) Mention incremental type checking: #25268
Misc Changes
- Ensure CNA install succeeds with npm and example flags: #25267
- Update output size test to handle version change: #25275
- Update the text for eslint/no-page-custom-font rule: #25117
Credits
Huge thanks to @sokra, @bradlc, @SinimaWath, and @rgabs for helping!
v10.2.1
Core Changes
- Remove unnecessary optimizeFonts key from type: #24563
- Fix Image compatibility issue when using
sizes
: #24569 - Replace regex lexer with minimal regex for named groups: #24604
- Remove un-used lib files: #24625
- Adds ESLint with default rule-set: #23702
- Don't swallow MODULE_NOT_FOUND error: #24577
- Fix/link router 24075 take asPath instead of pathName in router: #24199
- Add experimental blurry placeholder to image component: #24153
- update webpack to 5.36.2, use dependOn: #24656
- Add type checking events: #24595
- fix memory leak in require.cache: #24282
- Don't throw 500 error when Content-type is invalid: #24818
- Land - Font optimizations - Adobe Fonts / Typekit support : #24834
- updated zustand example : #24884
- feat(build): Log whether type checking is actually performed: #24440
- webpack 5 externals fixes: #24603
- Remove experimental babel flag: #24776
- cache typechecking with incremental compilation: #24559
- Ensure next/dynamic transpiles for tests: #24751
- fix: handle compression for custom-server render calls (#16378): #18891
- Refactor experimental-script component : #24940
- Fix: Non-writable pages/_app breaks build : #24849
- I18n context initial props: #21930
- update webpack to 5.37.0: #24954
- Ensure webpack cache is invalidated for alias change: #24956
Documentation Changes
- Add documentation on Font Optimization.: #24572
- Clarify whether router.pathname includes basePath: #24675
- Update font optimization docs to mention opting out.: #24756
- Bumps version of supertokens dependencies and updates its README: #24571
- docs(response-helpers): Update res.json definition: #24782
- docs(next/router): Update router.push api: #24833
- docs(config intro): Fix github link hash: #24838
- Add version note for
has
property: #24836 - Remove old docs sections: #24853
- Add additional reason for the Prerender Error when running next export: #24828
- feat(create-next-app): add
--ts, --typescript
support: #24655 - ESLint Plugin: Disallow in Head from next/document: #24868
- Clarify rewrites and other docs cleanup.: #24890
- ESLint Plugin: Google Font rules: #24766
- ESLint Plugin: passHref is not assigned: #24670
- ESLint Plugin: Custom Font at page-level rule: #24789
- ESLint Plugin: Prevent bad imports of next/document and next/head: #24832
Example Changes
- Fix: with-passport example dependency issue: #24567
- demo serving storybook static build with serve: #24812
- Update signin/signup form samples: #24524
- react-hook-form example: #21245
- Update example with-sentry: #24819
- Update custom server examples: #24814
- Remove outdated/deprecated/unmainted examples: #24945
- Fix build in blog-starter-typescript example: #24695
- Update with-three-js example: #24857
- Update with-mdx-remote example: #24973
Misc Changes
- fix(next-storybook): make rules an array in webpack config: #22125
- Fix rewrite shape in Storybook: #24827
- Match last MR mention in commit message for release notes
- Add label for chrome automatically to MR
Credits
Huge thanks to @darshkpatel, @leerob, @sumanthratna, @shuding, @housseindjirdeh, @PepijnSenders, @prophet1996, @Joonpark13, @tremby, @sokra, @stefanprobst, @dopt, @rishabhpoddar, @aydinkn, @ErfanMirzapour, @vitalybaev, @ijjk, @tubbo, @frontendtony, @eric-burel, @ctjlewis, @Munawwar, @iker-barriocanal, @eps1lon, @janicklas-ralph, @Gigiz, @mplis, @HaNdTriX, and @jigsawye for helping!
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!
v10.1.3
Core Changes
- Fix memory leak in image optimization: #23565
- Mark this.router protected: #23573
- Ensure has segments are allowed in destination: #23588
- Update decoder to correctly handle grayscale PNGs: #23393
- update webpack to 5.30: #23612
- Clean up RenderOptsPartial: #23614
Documentation Changes
- Update router.md to improve a11y: #23611
Example Changes
- Remove redundant prefresh dependency in with-preact example: #23567
- Delete examples/with-style-sheet directory: #23609
- Update custom-routes-proxying to use fallback rewrites: #23610
Credits
Huge thanks to @shuding, @zephraph, @timneutkens, @samrobbins85, @sokra, and @devknoll for helping!
v10.1.2
Core Changes
- Temporarily remove experimental ESLint integration: #23521
Credits
Huge thanks to @Timer for helping!
v10.1.1
Core Changes
- Make eslint opt-in until it lands on stable: #23509
Documentation Changes
- Fix YAML parsing issue in ESLint docs.: #23511
Credits
Huge thanks to @leerob for helping!
v10.1.0
Core Changes
- Revert "Revert "[a11y] Route Announcements"": #23086
- Upgrade jest-worker: #23077
- update webpack, fix runtime location, fix undeclared variable, omit env vars from cache version: #23113
- add env var to enable advanced webpack logging and profiling: #23178
- get files from entrypoints instead of from chunks: #23174
- rename to NEXT_WEBPACK_LOGGING: #23186
- Improve image optimizer to only create 1 worker thread: #23188
- Ensure process exits after build completes : #23207
- Fix invalid console.error link: #23213
- Experimental feature for allowing importing Typescript files outside of the root directory: #22867
- add separate progress output for typechecking: #23226
- Fix wrong source path resolved from the stack frame to not expose internal code: #23203
- upgrade webpack to 5.27.1: #23224
- Remove
visibility: hidden
from the image component: #23278 - Add fallback for component when JavaScript is disabled in browser: #19052
- Add polyfills for node_modules that are covered in webpack 4 to webpack 5: #23316
- Add ESLint to Next.js: #22437
- Remove
visibility: inherit
from the image component: #23329 - Automatically enable webpack 5 when possible: #22323
- upgrade webpack to 5.28.0: #23350
- Add has route field: #22341
- Make sure the image optimization endpoint only response with images: #23366
- Run server client/server builds serially: #23371
- Add handling fo beforeFiles, afterFiles, and fallback rewrites: #23407
- Update err.sh links to use nextjs.org/docs/messages instead: #23353
- Add os-browserify dep: #23354
- Temporarily remove the automatic opt-in for webpack5: #23497
Documentation Changes
- Add note about next/export to Image Optimization docs.: #23088
- Duplicate scroll description: #23103
- Add image base path configuration option: #23115
- Document how to use
basePath
withnext/image
.: #23123 - Update next.config.js link to default config: #22989
- Add note about multiple requests when using incremental static generation: #23190
- docs(authentication): rephrase next-iron-session/next-auth: #23199
- Clarify a custom server doesn't mean you can't use an existing backend.: #23200
- Added Prepr CMS Examples to docs: #23221
- Include useEffect in SPA demo import, Fix punctuation: #23256
- Add manifest of error pages: #23310
- Fix typo in eslint doc: #23338
- Update babel docs to mention you can use babel.config.js.: #23434
- doc: fix ActiveLink detection condition: #23472
- Update
with-docker
example and deployment docs.: #23486
Example Changes
- fix(lib/db): type mismatch: #23107
- Simplify redux toolkit example and update packages: #23047
- Add Typescript section to Redux Toolkit Example: #23166
- Update Redis example to use Tailwind.: #23131
- Make @tailwindcss/jit default engine for Tailwind CSS: #23192
- Update README for sentry example.: #23205
- Update reference to commit sha: #23215
- Fix broken link: #23230
- Add portfolio starter kit.: #23212
- feat: add exemple with redux toolkit in typescript: #23250
- Update with-stitches example: #23281
- Small updates to blog example.: #23258
- update with-xstate example and add documentation for inspect package usage: #23287
- Update dependencies for blog starter.: #23317
- Update with stitches example: #23326
-
with-stitches
: Uselatest
version: #23343 - with-stitches Fix Stitches config: #23394
- update with-linaria example: #23332
- [examples] Fix image-component typo: #23437
- Add links to dependencies in with-three-js example README: #23470
Misc Changes
- Update CODEOWNERS
- Add MR template
- Consistent use of colons in contributing docs: #23260
- Update static-dir-deprecated.md
- Update next.config.js rewrites
- Update manifest.json
- Update webpack5.md
Credits
Huge thanks to @shuding, @leerob, @rekomat, @Mzaien, @phoenixbox, @Mokshit06, @sokra, @jflayhart, @vvo, @ijjk, @samsisle, @tim-hanssen, @cipriancaba, @DeHoKo, @Mito9999, @JulienKode, @elitan, @peduarte, @timneutkens, @moh12594, @brunocrosier, @housseindjirdeh, @matamatanot, @Timer, @turadg, @styfle, @huozhi, and @scottmacdonnell for helping!
v10.0.9
Core Changes
- Fix idleTimeout error being thrown in route loader: #22775
- Dedupe in-flight server data requests: #22781
- Ensure /404 is not exported during build un-necessarily: #22825
- Remove extra work on cli functions: #22855
- Upgrade webpack 5: #22864
- Ensure env is loaded before next config: #22879
- Update /500 page exporting when _error has custom GIP: #22887
- Add appDir field to server files manifest: #22915
- Fix next/image being downloaded multiple times on Safari: #22902
- Telemetry-compatible tracing: #22713
- Silence trace debug messages: #22988
- Ensure export only triggers when static pages are present: #22996
- Ensure i18n index prefetch is correct with trailingSlash: #22746
- Update README to fix broken links.: #23058
- Update error message for next export and next/image.: #23061
Documentation Changes
- Update module-path-aliases.md: #22739
- Update router.md: #21899
- Fix typo: #22891
- Add documentation for new static 500 behavior: #22888
- Fix typo in source maps documentation.: #22952
- Add note for loading env files during testing: #22982
- When there is data already, the props is props: { data }: #23003
- it is props: { posts }: #23004
- Update pages.md: #23064
Example Changes
- Add deploy with Vercel button to api-routes-apollo-server-and-client example: #22841
- Add RTL to with-next-translate example: #22808
- Corrected the url to strapi documentation: #22870
- chore: adds compiled css example: #22786
- Install tailwindcss as a development dependency: #22964
- Add an example for styled-jsx with content security policy: #23021
Credits
Huge thanks to @shuding, @edazpotato, @laithyounes, @ijjk, @harshitsan, @selrond, @sromexs, @melono6, @timneutkens, @madou, @mottox2, @leerob, @divmain, @nblthree, @KennethKinLum, @KarthikeyanRanasthala, and @alex-safian for helping!
v10.0.8
Core Changes
- fix: use absolute paths for require hook: #21877
- Experimental feature - fix optimizeCss flag for serverless deployments: #21790
- feat(next/image): remove
sharp
for wasm variant: #22253 - Add isPreview field to router: #21638
- Delay server compilation until client compilation is done in development: #22187
- Reduce webpack watcher aggregate timing: #22418
- Add generating static 500 status page: #22139
- chore: upgrade webpack5: #22460
- Ensure static 500 hydrates correctly with query: #22468
- Ensure rewrites are resolved while prefetching: #22442
- Allow smaller sizes in srcset for image with fill layout and sizes prop: #21670
- Experimental script loader changes: #22038
- Ensure component load order: #22731
- chore: upgrade webpack 5 version: #22737
- Fix index revalidate with dynamic route in minimal mode: #22783
Documentation Changes
- Document
scroll
option for router.push: #22275 - Point to official next-auth example: #22282
- Update docs.: #22358
- docs(deployment): Add Docker Image section: #17794
- add-supertokens-to-authentication.md: #22223
- Update NEXT_LOCALE cookie note: #22736
Example Changes
- With Supertokens example: #21384
- Fixing grammar: #22201
- Update emotion example package names in readme: #22144
- with-google-analytics: replace the GA_TRACKING_ID string by a environment variable: #21817
- Fix typo in German translation: #22291
- Change zeit fetch to vercel fetch: #21913
- Fix/Update (with-chakra-ui-typescript) dependencies: #22328
- improved the example on how to use WDYR with the latest next.js: #21651
- chore: fix typo in web.js: #22150
- added port config var to migrate-db.js and .env: #22395
- fix(examples/with-three-js): Upgrade drei@2.2.21 & three@0.125.0 #22365: #22431
- moving to upstash and new integration: #22436
- Add Azure Pipelines example to no-cache docs: #22708
- Add missing dependencies in example: #22712
Misc Changes
- Update CODEOWNERS: #22232
- Fix issue templates: #22349
- docs(deployment): Update working directory in builder stage: #22478
- Update deployment docs to mention caveat on next.config.js.: #22480
- example: Nhost with auth and realtime graphql example added: #22493
- fix: correctly handle fallbacks for webpack 5: #22497
- Mention regex route behavior with i18n: #22500
- Fix experimental optimizeCss for SSR: #22513
- docs(deployment): Update user ownership in docker deployment docs (#22539)
- bug (#21943): remove incorrect rewrite of parsedUrl.pathname in serverless handler (#22445)
- Forward log argument from loadEnvConfig to processEnv (#22440)
- Update the react-three-js example. (#22549)
- Add link to TypeScript docs from API Routes section (#22564)
- Simplify code examples for dynamic API routes (#22546)
- Load next.config.js async (#22578)
- fix: load webpack hook before config is required (#22583)
- Switch to stable rust for with-webassembly example (#22582)
- Add use cases for API Routes to documentation. (#22616)
- Fix typescript-eslint-jest example to remove Prettier package causing errors (#22452)
- Add note about other redirects to
next.config.js
docs.: #22640 - Update authentication.md SSR example: #22641
- Fix grammar in next/amp API reference: #22653
- Add note about preloading to routing introduction.: #22656
- [examples/with-typescript] Upgrade to React v17: #22674
- deps(examples/hello-world): Upgrade to React v17: #22692
- Add note for using
getStaticProps
with404.js
: #22693 - Ensure optional params are normalized in minimal mode: #22676
- Update webpack server chunks output: #22697
- Examples bump supertokens: #22764
- Add example prepr cms: #22776
Credits
Huge thanks to @rishabhpoddar, @daviavmello, @jpalmieri, @merceyz, @Segolene-Alquier, @divmain, @michrome, @janicklas-ralph, @Parnswir, @giraffesyo, @balazsorban44, @ijjk, @Cicada95, @vzaidman, @deniseyu, @leerob, @eltociear, @unimprobable, @timneutkens, @getspooky, @Timer, @armand1m, @alexknipfer, @elitan, @atcastle, @noahfschr, @amille44420, @laanayam333, @spidgorny, @devuxer, @Janpot, @nickbabcock, @rsipakov, @NkxxkN, @dominicfraser, @alevosia, @Kerumen, @CMeeg, @Pomaio, and @tim-hanssen for helping!
v10.0.7
Core Changes
- Fix #top anchor link scroll: #16638
- fix: add declarations for compiled webpack and loader: #21741
- Add stats config option: #21761
- Update stats flag default: #21791
- Add webpack type to ncc bundle: #21785
- Rename package build scripts to dev: #21743
- Add version for stats: #21823
- feat: Implement webpack require hook: #21802
- Make experimental stats file approximately 90% smaller: #21858
- Update reasons array to use module id instead of identifier: #21895
- Make sure all modules are included in the stats file: #21942
- Fix profiling plugin for next build: #21989
- Ensure error is passed up in minimal mode: #22030
- Add nccing AMP optimizer: #21980
- Only create locale domain links if on locale domain: #22032
- fix(link): cancel idle callback on unmount: #22072
- Check if parentspan is provided in profiler: #22061
- Upgrade to lerna 4: #22039
Documentation Changes
- Fix “it’s” typo in CRA migration doc: #21678
- Docs: delete extra bracket [introduction.md]: #21715
- Fix docs for sample query parameters: #21879
- Revert "Fix docs for sample query parameters": #21881
- Add example for headers and link in the docs: #21821
- Update server output path in static optimization docs: #21910
Example Changes
- Return a number from sort compare function: #21763
- fix: send url to gtm.pageview: #21747
- Remove dotenv from Relay example.: #21814
- Fix Linaria link: #21826
- Update react to 17.0.1 in example/with-typescript-eslint-jest: #21870
- Update React version in Tailwind example: #21906
- [examples] Wrap entire app with Styletron provider for with-styletron: #21908
- Fix example for custom server SSR caching: #18786
- Added blog-starter example using Ghost CMS: #19990
- Upgrade packages for example/with-typescript-eslint-jest: #21963
- Improve sanity.io example: #18227
- with-apollo SSR example added.: #21956
- Fix with-firebase-hosting running locally: #21971
Misc Changes
Credits
Huge thanks to @lachlanjc, @lebreRafael, @AryanBeezadhur, @ijjk, @guybedford, @giraffesyo, @balazsorban44, @timneutkens, @leerob, @petecorreia, @kaznak, @sam3d, @Timer, @fwuensche, @rafaellaurindo, @sphilee, @styxlab, @rexxars, @smitbarmase, @maerzhase, @divmain, and @matamatanot for helping!
Configuration
-
If you want to rebase/retry this MR, check this box.
This MR has been generated by Renovate Bot.