Skip to content

chore: bump type-is from 2.1.0 to 3.0.0 in the dependencies group across 1 directory - #236

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/dependencies-f8c5499457
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/dependencies-f8c5499457

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the dependencies group with 1 update in the / directory: type-is.

Updates type-is from 2.1.0 to 3.0.0

Release notes

Sourced from type-is's releases.

v3.0.0

This version switches the package to ESM and node >= 22.

Changed:

  • Publish the package as ESM and bump to node 22 (jshttp/type-is#106)
  • Publishes built-in types using TypeScript (jshttp/type-is#94)
  • Refactors the API shape to a class (jshttp/type-is#103)
    • 2-4x faster by initializing the class once (instead of every request)
    • 20% faster by initializing inline (e.g. every request)
    • Added support for matching parameters too (e.g. text/html; charset=utf-8)
    • Returns the original input string not the matched MIME type
      • Previously text/* would return e.g. text/html on match, now it returns the original text/*
    • Returns undefined instead of false on no match
    • Returns undefined when no input types are defined
    • Throws on invalid MIME type used to construct the matcher (e.g. new TypeIs(["invalid"]), it does not error if the header is invalid)
  • Matches return the original input string (jshttp/type-is#109)

Removed:

  • Removes mime-types from the package, only has 3 built in "shortcuts" (e.g. json -> application/json)
    • Pass mime-types.lookup as an option to override

Before:

const isText = typeis(req, ['text/*'])

After:

const isText = new TypeIs(['text/*']).request(req);

If you are upgrading an upstream dependency (e.g. express), and want maximum compatibility, something like this can help with compatibility for the extension aliases:

import * as mimeTypes from 'mime-types';
import { TypeIs, DEFAULT_LOOKUP } from 'type-is';
function lookup (value) {
return mimeTypes.lookup(value) || DEFAULT_LOOKUP(value);
}
req.is = function (types) {
const matcher = new TypeIs(types, { lookup });
return matcher.request(this);
};

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for type-is since your current version.

Install script changes

This version adds prepare script that runs during installation. Review the package contents before updating.


@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 1, 2026
Bumps the dependencies group with 1 update in the / directory: [type-is](https://github.com/jshttp/type-is).


Updates `type-is` from 2.1.0 to 3.0.0
- [Release notes](https://github.com/jshttp/type-is/releases)
- [Commits](jshttp/type-is@v2.1.0...v3.0.0)

---
updated-dependencies:
- dependency-name: type-is
  dependency-version: 3.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: dependencies
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore: bump type-is from 2.1.0 to 3.0.0 in the dependencies group chore: bump type-is from 2.1.0 to 3.0.0 in the dependencies group across 1 directory Oct 8, 2026
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/dependencies-f8c5499457 branch from e8f9e75 to bc9719f Compare October 8, 2026 05:22

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants