Packages

fastify

5.12.8 · 2 Nov 2026MIT23.8M / weekRepositoryHomepagenpmAtom feed

Upgrading fastify From 4.29.1 to 5.0.0

1 release in betweenevery note read

Other targets from 4.29.1Clears its 9 advisories5.12.5Latest5.12.8
  1. 4.29.1yours
  2. 5.0.0target

Before you upgrade

Tick each one off as you go
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0
  • Breaking5.0.0

Security

Release by release

  1. 5.0.0

    Migration needed17 Sep 202421 new · 15 fixes
    • Breaking

      lib: Drop setDefaultRoute and getDefaultRoute methods

    • Breaking

      Add req.hostname and req.port

    • Breaking

      Remove deprecated variadic listen

    • Breaking

      Remove json shorthand

5 other lines we could not sort, mostly version bumps
  • Sync next-branch

    5.0.0
  • Next: Disallow decorate('name', null) in the types

    5.0.0
  • Change request id header default value to false

    5.0.0
  • types: Remove variadic listen types

    5.0.0
  • types: Remove nonexistant done parameter from onRegister

    5.0.0

71 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.