v10.0.6
Core Changes
- refactor(next): client/index.tsx: #20806
- Update profiling approach to cover webpack runs: #20900
- Prevent unpredictable dependency hosting by explicitly resolve module path on webpack.ProvidePlugin: #20971
- fix: Replace all backslashes when normalizing path in getFormattedDiagnostic: #17915
- Error when exporting to
static
directory: #20969 - fix(next): always enable absoluteRuntime when running under webpack: #19538
- perf(next): use require.resolve instead of resolve: #19518
- feat(css): add strictPostcssConfiguration flag: #20914
- Add proper error when conflicting paths are detected: #20918
- Font optimization - remove warning message: #20874
- Wrong index path revalidation timer: #20818
- Fix image cache for vector and animated images: #20480
- feat: webpack inlining with configuration for v4 / v5: #20598
- fix: bump node-sass peer dependency: #21084
- fix: webpack 5 and worker-loader support: #21050
- feat: Webpack loader inlining: #21127
- Bump minimum suggested React version: #21046
- fix: resolve two peer dep install warnings: #21176
- fix hydration mismatch on href for url with anchor refs: #21065
- Minimal mode normalizing: #21083
- use webpack resolve api to resolve in externals config: #21205
- improve splitChunks config for webpack 5: #21208
- Add codemod for files that do not support the new React JSX transform: #21281
- Fix webpack 5 warning + disabling of profiling: #21276
- chore: upgrade
chokidar
to fix install warning: #21343 - Fix splitting page path by buildId: #19901
- upgrade webpack 5 for empty entrypoint fix: #21353
- Add experimental per-page option to disable JS preloads: #21329
- chore: compile resolve-url-loader: #21351
- chore: compile
style-loader
dep: #21355 - chore: compile css-loader: #21357
- Preserve asPath while resolving rewrites: #21410
- ci: fix webpack 5 enabling for tests: #21436
- Fix shallow routing scroll: #21437
- fix(next): respect extends in tsconfig with exclude and include: #16619
- Fix hostname message in dev/start: #20409
- fix: upgrade pinned deps for tests: #21515
- Require only build directory to be writeable for build: #20977
- Critical css fix: #21462
- Fix aspath for getInitialProps: #20572
- refactor: server/api-utils.ts: #21148
- expanded on No Router Instance: #21248
- refactor: add types to name-default-components.ts: #21291
- Fix to parse REACT_EDITOR in env: #21331
- Remove mkdirp: #21365
- Change type of GetServerSidePropsContext.req.cookies the be the same as NextApiRequest.cookies: #21336
- Allow
undefined
body sent tosendData()
: #20981 - Font optimization - Pass nonce to inlined font definition: #21346
- chore: upgrade webpack5: #21563
- Ensure prerender-manifest contains all i18n revalidate values: #21404
- Improvements to webpack tracing, including hot-reload: #21652
- Experimental feature changes: #21646
Documentation Changes
- Fix deploy buttons URLs: #20834
- Fix typo in error markdown: #20825
- Replace
zeit/next.js
withvercel/next.js
: #20849 - Adding small note to ENV documentation: #20860
- Add note on destructuring to Env Variables docs: #20869
- Add "Migrating from React Router" docs.: #20982
- Fix teeny tiny typo: #21005
- Update a link: #20999
- Add missing word to Data Fetching docs: #21018
- Update redirected or broken Vercel docs links.: #21119
- Small spelling fix: #21246
- Add guide "Migrating from Create React App": #21212
- Update Supabase example.: #21200
- Add Note to i18n-routing Docs for Subdomains for Locale Domains: #21387
- Update data-fetching.md to use async file loading: #17518
- Update headers.md to clarify Cache-Control gets overwritten in prod: #19967
- Added Typescript example for withRouter: #18116
- Add Next.js Analytics to documentation.: #21527
- Doc: pageExtensions - note regarding affected files: #21326
- Add Kontent example to preview section: #21542
- Update docs and Create Next App to use API Middlewares by default.: #21639
- Add note about Yarn 2 support.: #21657
- Remove note about Yarn 2 support.: #21665
Example Changes
- Fix an error in Kontent CMS example caused by a file name typo: #20863
- Improve with firebase cloud messaging: #20868
- Update PostCSS plugin list in README: #20956
- Fix error in example: #20934
- Fix with-three-js example: #20897
- GraphCMS example - Upgrade to React 17 / Tailwind 2 and next/image: #20772
- Update Supabase Quickstart Screen + Tailwind 1.x to 2.x: #20770
- Use archive link for electron-next in the examples: #20879
- fix(examples): make with-graphql-hooks run correctly again: #20929
- Update with-polyfills example.: #20996
- Add useCreateIndex to mongoose connection options: #21145
- Include utm_source on example links to vercel.com: #21305
- added an ipcRenderer usage sample to the electron-typescript example: #20000
- Adds optional REDIS_PASSWORD env var to make setup with RedisLabs work easily for the
with-redis
example: #21432 - Use autoprefixer instead of postcss-preset-env: #21215
- feature/vanilla-emotion - add an example of vanilla emotion: #20228
- refactor(with-tailwindcss-emotion): example remove styles directory: #21368
- Fix typo in Header component of with-iron-session example: #21428
- Add example: Firebase authentication + SSR: #15202
- Unify installation scripts for example apps: #19808
- Bring Tailwind CSS example in line with official Tailwind docs: #19750
- Add "title" as the source for "slug" in cms-sanity example: #19867
- Update dependencies of with-tailwindcss example: #21517
- Corrected links in with-yarn-workspaces: #21523
- suppressing eslint warning: #21163
- Update links that go to vercel.com/now: #21556
- Grammatical fixes: #21644
Misc Changes
- Update redbox tests: #20866
- Update license year for all packages
- Add pnpm integration test: #17882
- Skip GitHub actions tests for irrelevant changes: #20867
- Update next/image test: #20986
- Fix "rule.test.test is not a function" in @next/plugin-storybook: #21032
- Fix tests for React 16 + Webpack 4/5: #21146
- Update 1.bug_report.yml
- fix: lint
- Update chromedriver brew install instructions in contributing doc: #21251
- Move hydration mis-match test suite: #21264
- fix: lint
- Remove console.log
- ci: stabilize Window CI: #21344
- Add additional dynamic route hash tests: #21363
- Update manifest.json
- Test: serverless target should set correct revalidation (
cache-control
) header: #15512 - Add a VSCode Launch configuration for debugging examples: #16940
- Filter canary branch for GitHub actions cancelling: #21524
- Fix docs only check for CI: #21530
- Fix and add test filterModuleRules for next-plugin-storybook: #17306
- Update CI docs change diff check: #21558
- Remove branches filter from actions cancel workflow: #21564
- Update CI publish step to trigger after build: #21661
Credits
Huge thanks to @lucleray, @jeremybalog, @tarunama, @zainfathoni, @destumme, @ijjk, @timneutkens, @VictorAssis, @giraffesyo, @bhbs, @ciruz, @lachlanjc, @simnalamburt, @Almad, @frol, @ludofischer, @merceyz, @elliottsj, @leerob, @Baheya, @lalit2005, @vldmrkl, @janicklas-ralph, @AriFreyr, @kaykdm, @guybedford, @Sharcoux, @ramasilveyra, @devknoll, @botv, @pkellner, @sumanthratna, @sokra, @lfades, @thorwebdev, @berndartmueller, @davidspiessens, @ShashiSrinath, @elsigh, @MMT-LD, @hankandre, @maxnowack, @kmjennison, @darshkpatel, @mohsen1, @DylanRJohnston, @calmonr, @imrobinized, @justintemps, @ncarchedi, @btk, @faizanv, @chulkilee, @ryan-lustre, @dfelber, @Ymirke, @Robogeek95, @mcha-dev, @youngvform, @andrehsu, @Simply007, @kaznak, @rokobekavac0, @ja0n, @Timer, @mattruby, and @divmain for helping!