Skip to content

chore: bump type-is from 2.1.0 to 3.0.0 in the dependencies group - #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: 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 compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the dependencies group with 1 update: [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 added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 1, 2026
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