@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
- Active maintenance: Yes, the repository is being maintained. The most recent update is v2.1.0 on 2026-08-08, which is very close to today (2026-08-13).
- Update cadence: Recent activity suggests an active cadence, with updates at 2026-08-08 (v2.1.0), and the previous update at 2025-01-02 (v2.0.1). Earlier changes exist in 2024-09-03 (v2.0.0), indicating periodic major/tooling updates but at least one recent patch-level update in 2026.
AI summary generated
Recent updates
v2.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