@types/semver breaking changes
@types/semver 7.1.0 (January 27, 2020) is its newest release with breaking changes, 43 of them. The first: Signature changed clean. Every breaking API change we have recorded in @types/semver on npm: 82 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.8.0, released August 2, 2026.
Packages on npm run on Node.js. Node.js end of life dates.
@types/semver 7.1.0 breaking changes
- Signature changed
clean
Was function clean(version: string, optionsOrLoose?: boolean | Options): string | null; now function clean(version: string, optionsOrLoose?: boolean | semver.Options): string | null. npmjs.com - Signature changed
cmp
Was function cmp(v1: string | SemVer, operator: Operator, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function cmp(v1: string | SemVer, operator: semver.Operator, v2: string | SemVer, optionsOrLoose?: boolean |... npmjs.com - Signature changed
coerce
Was function coerce(version: string | number | SemVer | null | undefined, options?: CoerceOptions): SemVer | null; now function coerce(version: string | number | SemVer | null | undefined, options?: semver.CoerceOptions): SemVer | null. npmjs.com - Signature changed
CoerceOptions.rtl
Was rtl?: boolean | undefined; now rtl?: boolean. npmjs.com - Signature changed
Comparator.constructor
Was constructor(comp: string | Comparator, optionsOrLoose?: boolean | Options); now constructor(comp: string | Comparator, optionsOrLoose?: boolean | sermver.Options). npmjs.com - Signature changed
Comparator.intersects
Was intersects(comp: Comparator, optionsOrLoose?: boolean | Options): boolean; now intersects(comp: Comparator, optionsOrLoose?: boolean | sermver.Options): boolean. npmjs.com - Signature changed
Comparator.options
Was options: Options; now options: sermver.Options. npmjs.com - Signature changed
compare
Was function compare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): 1 | 0 | -1; now function compare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): 1 | 0 | -1. npmjs.com - Signature changed
diff
Was function diff(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): ReleaseType | null; now function diff(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): semver.ReleaseType... npmjs.com - Signature changed
eq
Was function eq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function eq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
gt
Was function gt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function gt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
gte
Was function gte(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function gte(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
gtr
Was function gtr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options): boolean; now function gtr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
inc
Was function inc(version: string | SemVer, release: ReleaseType, identifier?: string): string | null function inc(version: string | SemVer, release: ReleaseType, optionsOrLoose?: boolean | Options, identifier?: string): string | null; now... npmjs.com - Signature changed
intersects
Was function intersects(range1: string | Range, range2: string | Range, optionsOrLoose?: boolean | Options): boolean; now function intersects(range1: string | Range, range2: string | Range, optionsOrLoose?: boolean | semver.Options)... npmjs.com - Signature changed
lt
Was function lt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function lt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
lte
Was function lte(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function lte(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
ltr
Was function ltr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options): boolean; now function ltr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
major
Was function major(version: string | SemVer, optionsOrLoose?: boolean | Options): number; now function major(version: string | SemVer, optionsOrLoose?: boolean | semver.Options): number. npmjs.com - Signature changed
maxSatisfying
Was function maxSatisfying<T extends string | SemVer>(versions: readonly T[], range: string | Range, optionsOrLoose?: boolean | Options): T | null; now function maxSatisfying<T extends string | SemVer>(versions: ReadonlyArray<T>, range... npmjs.com - Signature changed
minor
Was function minor(version: string | SemVer, optionsOrLoose?: boolean | Options): number; now function minor(version: string | SemVer, optionsOrLoose?: boolean | semver.Options): number. npmjs.com - Signature changed
minSatisfying
Was function minSatisfying<T extends string | SemVer>(versions: readonly T[], range: string | Range, optionsOrLoose?: boolean | Options): T | null; now function minSatisfying<T extends string | SemVer>(versions: ReadonlyArray<T>, range... npmjs.com - Signature changed
minVersion
Was function minVersion(range: string | Range, optionsOrLoose?: boolean | Options): SemVer | null; now function minVersion(range: string | Range, optionsOrLoose?: boolean | semver.Options): SemVer | null. npmjs.com - Signature changed
neq
Was function neq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean; now function neq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
Options.includePrerelease
Was includePrerelease?: boolean | undefined; now includePrerelease?: boolean. npmjs.com - Signature changed
Options.loose
Was loose?: boolean | undefined; now loose?: boolean. npmjs.com - Signature changed
outside
Was function outside(version: string | SemVer, range: string | Range, hilo: ">" | "<", optionsOrLoose?: boolean | Options): boolean; now function outside(version: string | SemVer, range: string | Range, hilo: '>' | '<', optionsOrLoose?... npmjs.com - Signature changed
parse
Was function parse(version: string | SemVer | null | undefined, optionsOrLoose?: boolean | Options): SemVer | null; now function parse(version: string | SemVer | null | undefined, optionsOrLoose?: boolean | semver.Options): SemVer | null. npmjs.com - Signature changed
patch
Was function patch(version: string | SemVer, optionsOrLoose?: boolean | Options): number; now function patch(version: string | SemVer, optionsOrLoose?: boolean | semver.Options): number. npmjs.com - Signature changed
prerelease
Was function prerelease(version: string | SemVer, optionsOrLoose?: boolean | Options): readonly string[] | null; now function prerelease(version: string | SemVer, optionsOrLoose?: boolean | semver.Options): ReadonlyArray<string> | null. npmjs.com - Signature changed
Range.constructor
Was constructor(range: string | Range, optionsOrLoose?: boolean | Options); now constructor(range: string | Range, optionsOrLoose?: boolean | semver.Options). npmjs.com - Signature changed
Range.intersects
Was intersects(range: Range, optionsOrLoose?: boolean | Options): boolean; now intersects(range: Range, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
Range.options
Was options: Options; now options: semver.Options. npmjs.com - Signature changed
Range.set
Was set: ReadonlyArray<readonly Comparator[]>; now set: ReadonlyArray<ReadonlyArray<Comparator>>. npmjs.com - Signature changed
rcompare
Was function rcompare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): 1 | 0 | -1; now function rcompare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | semver.Options): 1 | 0 | -1. npmjs.com - Signature changed
rsort
Was function rsort<T extends string | SemVer>(list: T[], optionsOrLoose?: boolean | Options): T[]; now function rsort<T extends string | SemVer>(list: T[], optionsOrLoose?: boolean | semver.Options): T[]. npmjs.com - Signature changed
satisfies
Was function satisfies(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options): boolean; now function satisfies(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | semver.Options)... npmjs.com - Signature changed
SemVer.constructor
Was constructor(version: string | SemVer, optionsOrLoose?: boolean | Options); now constructor(version: string | SemVer, optionsOrLoose?: boolean | semver.Options). npmjs.com - Signature changed
SemVer.inc
Was inc(release: ReleaseType, identifier?: string): SemVer; now inc(release: semver.ReleaseType, identifier?: string): SemVer. npmjs.com - Signature changed
SemVer.options
Was options: Options; now options: semver.Options. npmjs.com - Signature changed
sort
Was function sort<T extends string | SemVer>(list: T[], optionsOrLoose?: boolean | Options): T[]; now function sort<T extends string | SemVer>(list: T[], optionsOrLoose?: boolean | semver.Options): T[]. npmjs.com - Signature changed
valid
Was function valid(version: string | SemVer | null | undefined, optionsOrLoose?: boolean | Options): string | null; now function valid(version: string | SemVer | null | undefined, optionsOrLoose?: boolean | semver.Options): string | null. npmjs.com - Signature changed
validRange
Was function validRange(range: string | Range | null | undefined, optionsOrLoose?: boolean | Options): string; now function validRange(range: string | Range | null | undefined, optionsOrLoose?: boolean | semver.Options): string. npmjs.com
@types/semver 6.0.0 breaking changes
- Signature changed
clean
Was function clean(version: string, loose?: boolean): string | null; now function clean(version: string, optionsOrLoose?: boolean | Options): string | null. npmjs.com - Signature changed
cmp
Was function cmp(v1: string | SemVer, operator: Operator, v2: string | SemVer, loose?: boolean): boolean; now function cmp(v1: string | SemVer, operator: Operator, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean. npmjs.com - Signature changed
Comparator.constructor
Was constructor(comp: string | Comparator, loose?: boolean); now constructor(comp: string | Comparator, optionsOrLoose?: boolean | Options). npmjs.com - Signature changed
Comparator.intersects
Was intersects(comp: Comparator, loose?: boolean): boolean; now intersects(comp: Comparator, optionsOrLoose?: boolean | Options): boolean. npmjs.com - Signature changed
Comparator.operator
Was operator: string; now operator: '' | '=' | '<' | '>' | '<=' | '>='. npmjs.com - Signature changed
Comparator.value
Was value: boolean; now value: string. npmjs.com - Signature changed
compare
Was function compare(v1: string | SemVer, v2: string | SemVer, loose?: boolean): 1 | 0 | -1; now function compare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): 1 | 0 | -1. npmjs.com - Signature changed
diff
Was function diff(v1: string, v2: string, loose?: boolean): ReleaseType | null; now function diff(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): ReleaseType | null. npmjs.com - Signature changed
eq
Was function eq(v1: string | SemVer, v2: string | SemVer, loose?: boolean): boolean; now function eq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean. npmjs.com - Signature changed
gt
Was function gt(v1: string | SemVer, v2: string | SemVer, loose?: boolean): boolean; now function gt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean. npmjs.com
And 29 more in this version. Sign up to see every change
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.