rsnext/packages/next/next-server/lib
Tim Neutkens cb84bc5daf
Remove deprecated features and enable future flag (#26066)
- Enables excludeDefaultMomentLocales by default
- Adds distDir cleaning (See RFC #6009)
- Adds support for `PORT`
- Removes `router.events` from the server-side router as it should not be used server-side (long-standing todo that is potentially breaking). Note that it's still available as `Router.events` (import Router from 'next/router') and with `useRouter` in `useEffect`. Using it with `useEffect` is the correct way and I've updated the upgrading guide to reflect that
- Added webpack 5 to the upgrading guide
- Removed `Head.rewind` as it's been a no-op since Next.js 9.5 and can now be safely removed from user code

Fixes #11408 
Fixes #10338
Fixes #5554



## Bug

- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added

## Feature

- [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [x] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.

## Documentation / Examples

- [ ] Make sure the linting passes
2021-06-14 14:20:34 +00:00
..
i18n Ensure locale cookie does not error with similarly named cookie (#24182) 2021-04-20 13:41:14 +00:00
router fix(21606): consider scroll option when using shallow routing (#24888) 2021-06-08 16:48:15 +00:00
amp-context.ts Add sourcemaps to Next.js core compilation (#13049) 2020-05-19 09:09:59 +02:00
amp.ts chore(next): export/lib/next-server missing types (#13320) 2020-05-24 22:44:05 +00:00
constants.ts Font optimization add preconnect (#25346) 2021-06-02 11:43:03 +02:00
document-context.ts Support persisting the dev cache buster (#15827) 2020-08-03 14:22:55 +00:00
dynamic.tsx Remove deprecated features (#25446) 2021-06-02 10:11:03 -05:00
head-manager-context.ts Script loader component (#18281) 2020-12-01 19:10:16 +01:00
head.tsx Remove deprecated features and enable future flag (#26066) 2021-06-14 14:20:34 +00:00
loadable-context.ts Add sourcemaps to Next.js core compilation (#13049) 2020-05-19 09:09:59 +02:00
loadable.d.ts Improve linting rules to catch more errors (#9374) 2019-11-10 19:24:53 -08:00
loadable.js Remove deprecated features (#25446) 2021-06-02 10:11:03 -05:00
mitt.ts Remove tslint disables (#16116) 2020-08-12 14:39:07 +00:00
post-process.ts Enable optimized loading strategy (#26021) 2021-06-12 11:26:47 +00:00
router-context.ts Add sourcemaps to Next.js core compilation (#13049) 2020-05-19 09:09:59 +02:00
runtime-config.ts chore(next): export/lib/next-server missing types (#13320) 2020-05-24 22:44:05 +00:00
side-effect.tsx Handle rendering next/head outside of Next.js (#14511) 2020-06-23 20:46:40 +00:00
to-base-64.ts Fix html validation for Image component (#18903) 2020-11-07 17:39:14 +00:00
utils.ts Add missing i18n types in gip context (#25363) 2021-05-22 16:35:57 +00:00