Vigia

Upgrading type-is from 2.x to 3.x

Comparison of the public API of type-is 2.1.0 and 3.0.0, computed automatically from their TypeScript types. A changed signature is a candidate for a breaking change, not a certainty.

Summary

Removed import paths0
Removed exports1
Changed signatures3
Removed class or interface members0
Changed class or interface members0
Newly deprecated0
Requirement changes (engines, peer dependencies)1
New exports7

Removed exports

importexportkindBefore
type-isisfunction(mediaType: string, types: string[]): string | false | (mediaType: string, ...types: string[]): string | false

Changed signatures

exportBeforeAfter
type-is · match(expected: string | false, actual: string): boolean(expected: string): (actual: string) => boolean
type-is · hasBody(request: IncomingMessage): boolean(req: RequestLike): boolean
type-is · normalize(type: string): string | false(value: string, options?: NormalizeOptions | undefined): string | string[]

Removed class or interface members

None detected.

Changed class or interface members

None detected.

Newly deprecated

None detected.

Requirement changes (engines, peer dependencies)

BeforeAfter
engines.node>= 18>= 22
New exports (7)
importexportkind
type-isTypeIsclass
type-isRequestLikeinterface
type-isTypeIsOptionsinterface
type-isDEFAULT_LOOKUPfunction
type-isParameterValuetype
type-isNormalizeOptionsinterface
type-isDEFAULT_PARAMETER_VALUEfunction

Frequently asked questions

What are the breaking changes when upgrading type-is from 2 to 3?

Between type-is 2.1.0 and 3.0.0, Vigia found 1 removed exports, 3 changed signatures and 0 removed or changed class or interface members.

What became deprecated in type-is 3?

0 exports or members are newly marked as deprecated in type-is 3.0.0.

For agents

GET https://vigia.coredls.cloud/v1/packages/npm/type-is/upgrade?from=2.1.0&to=3.0.0