@fastify/accept-negotiator negotiates HTTP accept-* headers, choosing the best matching value from a list of supported values. It provides a function (negotiate) and a class (Negotiator) with optional caching for faster repeated negotiations.
Project status
- The repo appears actively maintained, with a recent upstream push on 2026-10-21 and successive version bumps in 2026 (v2.1.2, v2.1.1, v2.1.0).
- The apparent updates cadence is fairly steady in 2026, about every 8 to 10 weeks between v2.1.1 (2026-10-10) and v2.1.0 (2026-08-08), plus a quick follow-up patch release v2.1.2 (2026-10-21).
AI summary generated
Recent updates
v2.1.2
Release v2.1.2 updates the package metadata only. The only functional change in the diff is removing the npm package.json "files" whitelist, which alters which files may be included when publishing the package.
v2.1.1
v2.1.1 adds CI release automation via a new GitHub Actions workflow and bumps the package version from 2.1.0 to 2.1.1. The release notes describe this CI change as the only notable modification.
Featuresv2.1.0
v2.1.0 primarily updates development tooling and CI configuration, alongside a types-related refactor. It migrates TypeScript type tests from tsd to tstyche and adds an exported NegotiatorOptions type for consumers, while also changing various GitHub automation settings.
Featuresv2.0.1
v2.0.1 is primarily a tooling and workflow release. It migrates the test setup from tap to node:test and c8, and switches formatting/lint tooling from standard to neostandard (with eslint). Public API types and README usage text receive only minor formatting/wording updates.
v2.0.0
Release v2.0.0 primarily updates development tooling and CI configuration (tsd, standard, tap, and fastify/workflows), plus adds repo hygiene files like .gitattributes and several .gitignore entries. The library runtime code does not appear to have changed in the provided diff, but there are metadata and CI behavior changes that may affect contributors and consumers.
v1.1.0
v1.1.0 is primarily a tooling and metadata update: CI workflow is enhanced with license checking and linting, and the test suite is migrated to tap. It also updates development tooling (tsd version bumps) and refreshes README/packaging links.
v1.0.0
v1.0.0 is the initial release of fastify/accept-negotiator. It introduces the core implementation from the first PR, enabling developers to use Accept header negotiation within Fastify.
Features