Packages

fastify

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

Upgrading fastify From 4.0.0 to 4.29.1

60 releases in betweennotes for 57

Other targets from 4.0.0Clears its 11 advisories5.12.5Latest5.12.8
  1. 4.0.0yours
  2. 13 releases
  3. 4.7.0security
  4. 1 release
  5. 4.8.1security
  6. 5 releases
  7. 4.10.2security
  8. 11 releases
  9. 4.18.0breaking
  10. 25 releases
  11. 4.29.1target
3+
changes to make
2
advisories fixed
85+
new
138+
fixes

Counted from 57 of 60 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking4.18.0
  • Deprecated4.26.0
  • Deprecated4.11.0

Security

Release by release

  1. 4.29.1

    Security fix28 Apr 2025
  2. 4.29.0

    4 Dec 20244 new · 5 fixes
    • New

      backport 4.x: Add body parsing on copy move mkcol methods

    • New

      Support different body schema per content type

    • New

      Add fastify v4 codemods

    • New

      Bind this to instance in onclose

  3. 4.28.1

    29 Jun 20242 fixes
    • Fixed

      Server.listen listener is not cleanup properly

    • Fixed

      v4: Update .npmignore

  4. 4.28.0

    14 Jun 20241 fix
    • Fixed

      (backport) Type inferrence with auxilliary hook handlers

  5. 4.27.0

    7 May 20244 new · 5 fixes
    • New

      Adds webdav methods that require body & content type parsing

    • New

      Disable request logging

    • New

      Add mkcalendar and report methods

    • New

      Handle synchronous errors in errorHandler

  6. 4.26.2

    3 Mar 20242 new · 3 fixes
    • New

      Add a Firebase Functions step by step guide

    • New

      Use FifoMap to check contentType

    • Fixed

      Cb is not a function at fallbackErrorHandler

    • Fixed

      types: Fix test failure

    • Fixed

      Database migration doc missing db connection code

  7. 4.26.1

    12 Feb 20242 fixes
    • Fixed

      Amend error codes for latest avvio v8.3.0

    • Fixed

      types: Request route options url add undefined

  8. 4.26.0

    Deprecation29 Jan 20244 new · 6 fixes
    • Deprecated

      Deprecate Reply#getResponseTime() in favour of Reply#elapsedTime

    • New

      routes: Expose findRoute and param validator

    • New

      Add use semicolon delimter config, default = true

    • New

      Expose method for setGenReqId on FastifyInstance

76 other lines we could not sort, mostly version bumps
  • types: Narrow code reply type based on schema

    4.27.0
  • types: reply.getSerializationFunction can return undefined

    4.27.0
  • types: Request route schema might be undefined

    4.27.0
  • types: Export preClose hook types

    4.26.2
  • Sync next

    4.26.0
  • types: Nullish error types in callback function's parameter for after and ready method

    4.25.0
  • Make FastifySchemaValidationError.params wider

    4.22.0
  • ERR_REP_ALREADY_SENT hint that a route may be missing "return reply"

    4.21.0
  • Update Prototype-Poisoning.md

    4.20.0
  • Improve hooks.validate

    4.20.0

359 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.