Packages

fastify

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

Your version

5.9.0

28 Jun 2026Where it was published

5.12.8 is the newest release of 5.x.

In short

2 new3 faster16 fixed1 changed44 internal

Security

Release note

What's Changed

  • Add request.mediaType

  • Prevent duplicate res.end in sendTrailer with sync callbacks

  • Avoid duplicate closeIdleConnections call on native servers

  • Error.code not present on some routing errors

  • Correct isCustomSerializerCompiler flag check

  • Validate invalid route logLevel at registration

  • Use ContentType parser for response schema lookup

  • types: Allow request.getValidationFunction() to return undefined

  • Do not trust forwarded host/proto when socket is missing

  • Defer ContentType parsing in getSchemaSerializer until needed

  • Cache parsed ContentType objects in ContentTypeParser

  • Add typeof guard before toString.call in send and onSendEnd

  • Enable diagnostics tracking for async error handlers

  • Ignore duplicate trailer completions

  • Add support of onMaxParamLength

  • Include hint and docs URL in FSTWRN004 warning message

  • Chunk large HTTP/2 buffer replies

  • Replace AssertionError with FST_ERR_PLUGIN_DEPENDENCY_NOT_REGISTERED in checkDependencies

  • Clear socket._meta after response to prevent keep-alive leaks

  • Avoid double slash when joining nested prefixes

  • hasRequestDecorator/hasReplyDecorator misses constructor-assigned built-in properties

  • Bumped v5.9.0

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.