Back to Explore

fastify/fastify-plugin

GitHub
1 watchersOpen source

Last release:

fastify-plugin is a helper module for Fastify that wraps plugin functions to support shared plugin context (instead of using the skip-override hidden property) and can attach plugin metadata. It also lets you declare the minimum Fastify version, validate dependency graphs (by plugin and decorator dependencies), and optionally keep a plugin encapsulated.

Project status

  • Actively maintained: Yes, the source has very recent activity, with the last upstream push on 2026-08-06 and a new tagged update v6.0.0 on 2026-06-09.
  • Update cadence: In the last year it moved from v5.1.0 (2025-09-28) to v6.0.0 (2026-06-09), suggesting a cadence of roughly 6 to 9 months between notable updates.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v6.0.0

    v6.0.0 standardizes the package entry points and refactors the TypeScript type-testing setup from tsd to tstyche. It also bumps several dev/build dependencies and updates CI workflows (including adding concurrency controls and a scheduled lock-threads workflow).

    Breaking
  • v5.1.0

    Release v5.1.0 refactors `lib/getPluginName` stack trace parsing slightly, and updates repository development tooling and metadata. It also bumps several dev dependencies (including `neostandard`, `tsd`, and `@types/node`), adjusts CI workflow settings, and adds `.npmrc` configuration to ignore scripts.

  • v5.0.1

    v5.0.1 primarily updates the repository test tooling, migrating from TAP to Node's built-in test runner and adding c8 for coverage. It also updates the development Fastify dependency from an alpha version to the stable ^5.0.0 line.

  • v5.0.0

    v5.0.0 mainly updates development and tooling dependencies (tsd, @types/node, fastify/workflows, type-provider-typebox) and includes small internal refactors. The release also updates the Fastify version expectations across README and tests to target Fastify 5.x.

    Breaking
  • v4.5.1

    fastify-plugin v4.5.1 primarily updates TypeScript typings and documentation examples. The release includes dependency bumps for type tooling (tsd, type provider, and @types/node) plus a CI workflow tweak. The code diff also shows a more substantial rewrite of the TypeScript declaration for fastify-plugin’s main export.

  • v4.5.0

    v4.5.0 is a small maintenance release. It bumps the dev dependency tsd to 0.25.0, updates .gitignore to include clinic artifacts, and improves getPluginName so it can still determine plugin names when Error.stackTraceLimit is set too low.

  • v4.4.0

    v4.4.0 refactors the internal plugin name extraction logic, adds NodeNext-oriented changes (including TypeScript typings updates), and adjusts test and build configuration. Runtime behavior of fastify-plugin appears largely the same, but the published TypeScript declaration file and module export shape have changed.

    Features
  • v4.3.0

    v4.3.0 introduces a new `encapsulate` option for `fastify-plugin` to optionally preserve Fastify plugin encapsulation behavior. The release notes also include build tooling updates (tsd bump, semver added, TypeScript removed).

    Features
  • v4.2.1

    Release v4.2.1 is a small TypeScript typing update. The documented change is specifically a fix to support TypeScript 4.8 compatibility.

  • v4.2.0

    Release v4.2.0 updates the TypeScript typings for fastify-plugin (fp) to support additional generics for Fastify's RawServer and TypeProvider. The release notes describe this as a feature and includes corresponding type tests.

    Features