Skip to content

v4.0.13

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 10:35
· 13 commits to main since this release
b421350

What's Changed

  • fix: run every middleware passed to use() after the path by @mcollina in #217

Behavior change

fastify.use() now runs every middleware passed to it. Previously only the first one after the path was registered and the rest were silently dropped:

  • fastify.use('/admin', audit, auth) never ran auth, and
  • fastify.use(a, b, c) never ran c.

If you pass several middleware in a single use() call, the ones that were being ignored will start running after this upgrade. Check those calls, in particular where the dropped middleware does authentication or authorization.

Full Changelog: v4.0.12...v4.0.13