Back to Explore

jshttp/accepts

GitHub
1 watchersOpen source

Last release: 3/24/2025

Node.js module for higher-level HTTP content negotiation. It creates an Accepts object from a request and helps you pick the first accepted charset, encoding, language, or MIME type (including type shorthands), returning false when nothing matches.

Project status

  • The source appears actively maintained, with an upstream push noted at 2026-04-02, and a tagged update as recently as 2025-03-24 (v2.0.0).
  • Update cadence is relatively infrequent: v1.3.7 (2019-04-30), v1.3.8 (2022-02-02), and v2.0.0 (2025-03-24), suggesting multi-year gaps between major changes.

AI summary generated Today

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

Recent updates

  • 2.0.0

    3/24/2025

    Release 2.0.0 updates the accepts package dependencies, most notably upgrading mime-types to a new major version. It also modernizes CI by targeting newer Node.js versions and adds an OpenSSF Scorecard workflow. Some CI and runtime-impacting changes are not called out in the release notes.

    BreakingSecurityFeatures
  • 1.3.8

    2/2/2022

    Release 1.3.8 primarily updates runtime dependencies, bumping mime-types and negotiator. The code diff also shows substantial dev tooling and CI changes, including major eslint/mocha/nyc version upgrades and a new GitHub Actions workflow replacing Travis.

  • 1.3.7

    4/30/2019

    Release 1.3.7 primarily bumps the runtime dependency negotiator from 0.6.1 to 0.6.2. The release notes only mention a charset/encoding/language sorting fix in negotiator.

  • 1.3.6

    4/28/2019

    Release 1.3.6 documents only dependency bumps for mime-types (and its transitive mime-db). The provided diff, however, also includes multiple non-runtime changes to CI configuration, linting setup, README badge link definitions, test utilities, and devDependency versions.

  • 1.3.5

    3/1/2018

    Release 1.3.5 updates dependency versions, including mime-types and its underlying mime-db. The code diff also shows changes to CI configuration (Travis) and multiple development tool dependency bumps (eslint and plugins), none of which are mentioned in the release notes.

  • 1.3.4

    8/23/2017

    Release 1.3.4 primarily updates the runtime dependency mime-types from ~2.1.11 to ~2.1.16 (with mime-db updated accordingly per release notes). In addition, the commit includes several non-runtime changes related to linting and CI configuration, plus minor README/HISTORY formatting updates.

  • 1.3.3

    5/3/2016

    Release 1.3.3 updates the accepts package dependencies (mime-types, mime-db, and negotiator) and pulls in negotiator 0.6.1 performance improvements for parsing HTTP Accept headers. It also updates the npm package version and slightly adjusts CI Node.js versions in the Travis configuration.

  • 1.3.2

    3/9/2016

    Release 1.3.2 updates the accepts library to use a newer mime-types dependency, aligning MIME type to extension mappings. The release notes describe specific corrections to `application/dash+xml` and a primary extension update for `audio/mp4` (with an indirect mime-db update).

  • 1.3.1

    1/20/2016

    Release 1.3.1 primarily updates the mime-types dependency (and its mime-db transitive dependency) and bumps the package version. The code diff also changes the CI Node.js test matrix and updates a devDependency used for coverage instrumentation.

  • 1.3.0

    9/30/2015

    Release 1.3.0 updates runtime dependencies, bumping mime-types to ~2.1.7 and negotiator to 0.6.0. The release notes primarily describe negotiator changes focused on Accept header parsing fixes and performance improvements.