Back to Explore

jshttp/type-is

GitHub
1 updates · last 90 days1 watchersOpen source

Last release: 3 weeks ago

type-is is a Node.js module that infers or checks the content-type of an HTTP request. It provides helpers to detect the request content-type against a list of media types, handle wildcards and suffixes, and determine whether a request has a body even when the Content-Type header is missing or invalid.

Project status

  • Actively maintained, with a recent upstream push on 2026-05-13 and a new version (v2.1.0) released the same day, plus follow-on historical releases in 2025.
  • Update cadence appears intermittent rather than frequent, with quick iterations around v2.0.0 to v2.0.1 in 2025-03 (one day apart), then a longer gap until v2.1.0 in 2026-05-13.

AI summary generated Today

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

Recent updates

  • v2.1.0

    3 weeks ago

    v2.1.0 upgrades the content-type dependency to v2 and refactors how this package normalizes MIME types for faster parsing. In addition to library changes, the release also updates CI workflows (CI permissions, CodeQL workflow) and bumps some GitHub Action versions.

    BreakingFeatures
  • 2.0.1

    3/27/2025

    Version 2.0.1 is a small refactor release focused on internal code cleanup and minor logic simplifications. It updates a few string handling operations (replacing deprecated String.prototype.substr usage) and slightly streamlines argument normalization in typeofrequest.

  • 2.0.0

    3/26/2025

    Release 2.0.0 primarily updates project tooling and documentation, adding a GitHub Actions CI workflow and an OSSF Scorecard supply-chain security workflow. The release notes themselves do not describe any runtime behavior changes. However, the code diff shows a significant change to how media types are parsed and normalized, alongside dependency upgrades.

    SecurityFeatures
  • 1.6.18

    4/26/2019

    Release 1.6.18 is a small patch release for the `type-is` package. The only described change is a fix for a regression related to how request objects were handled when calling `typeis.is`. The diff also shows expanded README and a significantly larger test suite for `typeis.is`.

  • 1.6.17

    4/25/2019

    Release 1.6.17 primarily updates the runtime dependency mime-types to a newer IANA-based mapping and adjusts documentation/badges. It also introduces a small runtime guard to avoid internal exceptions when an invalid (non-string) type value is provided.

  • 1.6.16

    2/16/2018

    Release 1.6.16 primarily bumps the runtime dependency mime-types from ~2.1.15 to ~2.1.18. The published release notes document the new and updated MIME type mappings introduced by that mime-types update.

  • 1.6.15

    4/1/2017

    Release 1.6.15 primarily updates the mime-types dependency (adding new MIME type mappings). The rest of the diff is tooling and documentation related, including CI (Travis) matrix tweaks and modernized linting setup.

    Features
  • 1.6.14

    11/19/2016

    This release updates the type-is package dependencies and CI/test tooling. The release notes only call out a mime-types bump, but the diff also modifies Travis CI Node.js versions, the lint script, and a dev dependency version.

  • 1.6.13

    5/19/2016

    Release 1.6.13 primarily bumps the mime-types dependency to ~2.1.11. The bundled library code changes shown in the diff are largely formatting/linting related, while the repo also adds ESLint configuration and updates CI/dev tooling.

  • 1.6.12

    2/29/2016

    Release 1.6.12 updates the mime-types dependency (from ~2.1.9 to ~2.1.10) and includes the resulting mime type metadata changes described in the release notes. The only other code diff content is documentation text and changelog metadata updates, with no functional runtime code changes shown.

    Features