unstale

npm / @fastify/static

@fastify/static

What changed in @fastify/static 8 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-22.

2 breaking4 security1 new APIs and options10 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.2 on npm

@fastify/static 1010 changes

Breaking changes 1

  • setHeaders now receives FastifyReply instead of Response; use reply helpers such as reply.header to set headers.

    10.0.0release notes

Security 2

New APIs and options 1

Fixes and other changes 6

  • Files with # or ? in their names can now be served and listed.

    10.1.7release notes

  • Relative downloads now use the registered root.

    10.1.5release notes

  • Fixes a route guard and allowedPath bypass on case-insensitive filesystems.

    10.1.4release notes

  • Responses using preCompressed now set Vary: Accept-Encoding.

    10.1.0release notes

  • Unsupported deflate is now ignored for precompressed assets.

    10.0.0release notes

  • setHeaders can now override headers set during sending.

    10.0.0release notes

@fastify/static 96 changes

Security 2

Fixes and other changes 4

  • Propagates the return value from fastify.errorHandler.

    9.2.0release notes

  • Wildcard prefixes now work with route params.

    9.1.3release notes

  • Wildcard paths are resolved in encapsulated contexts.

    9.1.2release notes

  • Fixed cases where sendFile ignored option overrides.

    9.1.0release notes

@fastify/static 81 changes

Breaking changes 1

  • When serve is false and root is not defined, only files with absolute paths can be sent.

    8.3.0release notes