Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated features and enable future flag #26066

Merged
merged 8 commits into from
Jun 14, 2021

Commits on Jun 14, 2021

  1. Remove deprecated features and enable future flag

    - Enables excludeDefaultMomentLocales by default
    - Adds distDir cleaning (See RFC vercel#6009)
    - Removes `router.router.events` (never documented)
    - 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
    timneutkens committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    2f796f2 View commit details
    Browse the repository at this point in the history
  2. Fix type error

    timneutkens committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    efe8c18 View commit details
    Browse the repository at this point in the history
  3. Add support for PORT

    Added docs and tests for this change as well
    
    Co-Authored-By: Emilis Kiškis <kikis.emilis@gmail.com>
    timneutkens and emiliskiskis committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    569fa30 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    aefef0e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ccaf439 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4e7a2a9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f446212 View commit details
    Browse the repository at this point in the history
  8. Update test

    timneutkens committed Jun 14, 2021
    Configuration menu
    Copy the full SHA
    a233396 View commit details
    Browse the repository at this point in the history