Minor Changes
- Fix pages/index.js and pages/index/index.js behavior: #13699
- Use buildManifest to load page JS: #13870
- Enable Optional Catch-All by Default: #14687
- Add no-anon-default-export Babel lint rule: #14519
- Re-enable scroll restoration behind flag: #14046
- Attach previewData to API Route request: #13373
- Add
res.redirect response helper: #14705
- Stabilize revalidate: #15338
- Use chunkhash instead of buildId for pages: #13937
- De-experimentalize basePath config: #14283
- De-experimentalize custom-routes: #14602
- Stabilize Trailing Slash API: #15331
Patches
Documentation
- Better NODE_ENV explanation: #13476
- Update AMP validation docs: #13525
- Update environment variables documentation: #13618
- Update links in environment variables documentation: #13621
- Suggest
npx over npm init: #13637
- Add missing CMS links: #13683
- Add postcss-preset-env to the warning when customising the PostCSS configuration: #13695
- Use proper Jamstack casing: #13697
- Added React Strict Mode documentation: #13723
- Add supported browsers and features: #13741
- Small wording change (can => have to): #13757
- Update instances of Now to Vercel where applicable: #13760
- Adjust custom polyfill suggestion: #13766
- Add App.getInitialProps example to the TypeScript page: #13785
- Prefer docs site for documentation links in CMS examples: #13826
- Add FAQ section to Built-in CSS Support: #13846
- Small grammar fix.: #14043
- Update custom server docs: #14147
- Update preview-mode.md: #14210
- [Docs] Focus on useRouter: #14515
- Update the passHref link: #14584
- Updated exportPathMap docs: #14630
- Add basePath documentation: #14882
- Add custom routes docs (rewrites, redirects, headers): #14887
- Change default response code to 307 from 302 in docs: #14947
- Fixed typo in page-without-valid-component.md: #15022
- Update prerender-error.md: #14875
- Fixed some minor typos: #15080
- Fixed a minor typo: #15077
- Update docs about type checking: #15103
- Update docs for basePath custom-routes interop: #15140
- Documentation improvements from feedback: #14544
- Document API Middlewares with TypeScript: #14275
- Docs: include test env in default env vars: #13708
- Clarify optional catch all vs catch all routes: #15290
- Fix common misspelling errors: #15288
- Remove caveat in custom document docs: #15355
- More helpful README: #14830
- TypeScript documentation for _document.tsx:
Core
- Lint for invalid imports: #13482
- Fail production build quickly on errors: #13496
- Extract TypeScript preflight functions: #13510
- Speedup tests: #13461
- Replace
fork-ts-checker-webpack-plugin with faster alternative: #13529
- Update ampproject/toolbox-optimizer: #13547
- Update babel config found log to new logging output: #13550
- Remove old reloading code: #13554
- Add support for rewriting non-fallback SSG pages: #11010
- Add ETag Support for API routes: #12802
- Updated browserslist/caniuse-lite: #13605
- Update waitUntilValid parameters: #13612
- Handle encoding for data requests and fix fallback response: #13622
- Make getStaticPaths work with optional catch-all routes: #13559
- Remove middleware function that is never called: #13642
- Added no-shadow rule to eslint: #13645
- Propagate Serverless Errors to Platform: #12841
- Use inclusive naming for variables / examples: #13657
- Remove granularChunks experimental option as it was launched:
- Warn/revert custom devtool in development mode: #14285
- Avoid adding basePath when it's not needed: #14535
- Fix windows tests: snapshot backslash needs to be escaped: #14559
- Fix native-url path parsing bug: #14442
- Use entry option instead of custom make hook: #14527
- Fix trailing slash handling in exporting pages with getStaticPaths: #14620
- Use assetEmitted hook instead of afterEmit: #14626
- Positive req/seq change is not a warning: #14640
- Clean up plugins: #14676
- Convert incremental generation cache to a class: #14660
- Handle trailing slashes, even when query parameters: #14650
- Update to use getDataHref in fetchNextData: #14667
- Fix dynamic route encoding for NextLinks: #14281
- Upgrade CSSNano Version: #14638
- Fix link to file url behavior with trailingSlash: #14681
- Avoid pulling extra code in the bundles for trailingSlash logic: #14696
- Modify global css import error message: #14639
- Fix encoding for env files in serverless mode: #14750
- Add etag support for getServerSideProps/getStaticProps pages:
experimental
- Filtering unwanted jsx type in eslint plugin: #13520
- Add plugin to recommended eslint-plugin-next config: #13926
- Bug fixes for css eslint rule: #14202
- Only required polyfill.io lint rule: #15277
Create Next App
- Add .vercel to gitignore: #13595
- Remove unnecessary catch: #13639
- Chore(create-next-app): remove example picker: #13977
- Feat(create-next-app): Use CSS and CSS modules in default application template: #13983
- Use HEAD req for isUrlOk check: #14994
- CNA: replace make-dir with core recursive mkdir: #15006
- [create-next-app] Add engines to package.json: #15282
Examples
- Update with-redux example to use getStaticProps: #13378
- Update some examples to Vercel: #13477
- Add example with next-translate: #13511
- Fix typo in next-translate example: #13523
- Add with-web-worker example: #13444
- Update firebase to fix install errors on node 14: #13493
- Update linaria example: #13568
- Add with-mongodb example: #13028
- Update Stripe example: #13581
- Updated with redux persist: #13577
- Updated with redux thunk example: #13576
- Updated examples using NEXT_DATA: #13567
- Remove unused file from with-redux: #13570
- Updated with-magic example with new Environment Variables Support in Next.js 9.4+: #13623
- Fix with antd ssg: #13611
- Update with-typescript to remove React.FC: #13643
- Update with-redux-wrapper example: #13649
- Update chakra-ui example to pass through pageProps in custom app: #13690
- Refactor with redux observable: #13615
- Update index.js: #14528
- Add 'with-next-auth' example: #14530
- Add [with-storybook-typescript] example: #14398
- Remove next-cookies and prop-types: #14579
- Tailwind config: also look for .tsx .jsx and .ts: #14621
- Introduce react profiling production flag: #13873
- Add @prefresh/next to dependencies of preact example: #14649
- Add Environment Variables Example: #14575
- [examples/with-three-js] Component with useLoader can use dynamic import: #14648
- Fetch Data on Runtime (with-MongoDB-mongoose example): #14674
- Fix NextSeo example: #14643
- Example with Monogdb ReamlWeb: #14555
- Fix extra char in readme cms-sanity: #14725
- Update environment-variables example: #14653
- Update README.md for next-auth-example: #14763
- Update with-firebase-authentication styles: #14771
- Update examples React to 16.13.1: #14899
- Update example: update to new stitches version and api: #14876
- Fix cms-wordpress preview mode for post revisions: #14911
CMS Examples
Credits
Huge thanks to @chandan-reddy-k, @Timer, @aralroca, @artemisart, @sospedra, @prateekbh, @Prioe, @Janpot, @merceyz, @ijjk, @PavelK27, @marbiano, @MichelleLucero, @thorsten-stripe, @TodorTotev, @Skn0tt, @lfades, @timneutkens, @akhila-ariyachandra, @chibicode, @rafaelalmeidatk, @kirill-konshin, @jamesvidler, @JeffersonBledsoe, @tylev, @jamesmosier, @filipemarins, @Remeic, @vvo, @timothyis, @jazibsawar, @coetry, @adam-zacharski, @danwilliams, @tywmick, @matamatanot, @goldins, @mvllow, @its-tayo, @sshyam-gupta, @wilbert-abreu, @sebastianbenz, @jaydenseric, @developit, @dylanjha, @darshkpatel, @spinks, @stefanprobst, @moh12594, @jasonmerino, @cristiand391, @HyunSangHan, @mcsdevv, @M1ck0, @hydRAnger, @alexej-d, @valmassoi, @todortotev, @motleydev, @eKhattak, @jpedroschmitz, @JerryGoyal, @bowen31337, @phillip055, @balazsorban44, @chuabingquan, @youhosi, @andresz1, @bell-steven, @areai51, @Wssn, @ndom91, @anthonyshort, @zxzl, @jbowes, @IamLizu, @PascalPixel, @ralphilius, @ysun62, @muslax, @elsigh, @AsherFoster, @botv, @tomdohnal, @christianalfoni, @tomasztunik, @gsimone, @illuminist, @jplew, @OskarKaminski, @RickyAbell, @steph-query, @ericgoe, @MalvinJay, @cristianbote, @Ashikpaul, @jensmeindertsma, @amorriscode, @abhik-b, @awareness481, @LukasPolak, @arvigeus, @romMidnight, @jackyef, @drumm2k, @kuldeepkeshwar, @bogy0, @Belco90, @wawjr3d, @tanmaylaud, @SarKurd, @kevinsproles, @dstotijn, @styfle, @blackwright, @BrunoBernardino, @heyAyushh, @Necmttn, @TrySound, @obedparla, @NyashaNziramasanga, @tonyspiro, @kukicado, @ceorourke, @MehediH, @robintom, @karlhorky, and @tcK1 for helping!