semver breaking changes
Updated December 4, 2026
On this page
Latest version 7.8.6, released November 2, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 6.1.0 to 7.7.0: 114 breaking changes in 7 versions.
- From 6.0.0 to 7.7.0: 128 breaking changes in 8 versions.
semver 7.7.0 breaking changes
- Removed
truncate
truncate was removed in semver 7.7.0 npmjs.com - Behavior changed
inc
The release adds identifier validation to inc(), so inputs it previously accepted may now be rejected. Check that any identifier you pass to inc() is valid. github.com
semver 7.6.0 breaking changes
- Behavior changed
coerce
coerce now preserves the pre-release and build parts of the version it parses, so results may differ from earlier releases. Check code that relies on coerce dropping them. github.com - Signature changed
inc
Was function inc(version: string | SemVer, release: semver.ReleaseType, identifier?: string, identifierBase?: inc.IdentifierBase | false): string | null function inc(version: string | SemVer, release: semver.ReleaseType, optionsOrLoose?... npmjs.com - Signature changed
inc.IdentifierBase
Was type IdentifierBase = "0" | "1"; now type IdentifierBase = "0" | "1" | false. npmjs.com - Signature changed
parse
Was function parse(version: string | SemVer | null | undefined, optionsOrLoose?: boolean | semver.Options): SemVer | null; now function parse(version: string | SemVer | null | undefined, optionsOrLoose: boolean | semver.Options... npmjs.com - Signature changed
ReleaseType
Was type ReleaseType = "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease"; now type ReleaseType = "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease" | "release". npmjs.com - Signature changed
SemVer.inc
Was inc(release: semver.ReleaseType, identifier?: string): SemVer; now inc(release: semver.ReleaseType, identifier?: string, identifierBase?: inc.IdentifierBase): SemVer. npmjs.com
semver 7.5.0 breaking changes
- Removed
truncate
truncate was removed in semver 7.5.0 npmjs.com - Signature changed
inc
Was function inc(version: string | SemVer, release: semver.ReleaseType, identifier: string, identifierBase?: inc.IdentifierBase): string | null function inc(version: string | SemVer, release: semver.ReleaseType, optionsOrLoose?: boolean |... npmjs.com - Signature changed
inc.IdentifierBase
Was type IdentifierBase = "0" | "1" | false; now type IdentifierBase = "0" | "1". npmjs.com - Signature changed
parse
Was function parse(version: string | SemVer | null | undefined, optionsOrLoose: boolean | semver.Options, throwErrors: true): SemVer function parse(version: string | SemVer | null | undefined, optionsOrLoose: boolean | semver.Options... npmjs.com - Signature changed
ReleaseType
Was type ReleaseType = "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease" | "release"; now type ReleaseType = "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease". npmjs.com - Signature changed
SemVer.inc
Was inc(release: semver.ReleaseType, identifier?: string, identifierBase?: inc.IdentifierBase): SemVer; now inc(release: semver.ReleaseType, identifier?: string): SemVer. npmjs.com
semver 7.4.0 breaking changes
- Signature changed
inc
Was function inc(version: string | SemVer, release: semver.ReleaseType, identifier?: string): string | null function inc(version: string | SemVer, release: semver.ReleaseType, optionsOrLoose?: boolean | semver.Options, identifier?... npmjs.com - Signature changed
parse
Was function parse(version: string | SemVer | null | undefined, optionsOrLoose?: boolean | semver.Options): SemVer | null; now function parse(version: string | SemVer | null | undefined, optionsOrLoose: boolean | semver.Options... npmjs.com - Signature changed
Range.set
Was set: ReadonlyArray<ReadonlyArray<Comparator>>; now set: ReadonlyArray<readonly Comparator[]>. npmjs.com - Signature changed
ReleaseType
Was type ReleaseType = 'major' | 'premajor' | 'minor' | 'preminor' | 'patch' | 'prepatch' | 'prerelease'; now type ReleaseType = "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease" | "release". npmjs.com - Signature changed
SemVer.inc
Was inc(release: semver.ReleaseType, identifier?: string): SemVer; now inc(release: semver.ReleaseType, identifier?: string, identifierBase?: inc.IdentifierBase): SemVer. npmjs.com
semver 7.3.0 breaking changes
- Removed
Options.includePrerelease
Options.includePrerelease was removed in semver 7.3.0 npmjs.com - Removed
simplify
simplify was removed in semver 7.3.0 npmjs.com - Signature changed
CoerceOptions.rtl
Was rtl?: boolean; now rtl?: boolean | undefined. npmjs.com - Signature changed
Comparator.constructor
Was constructor(comp: string | Comparator, optionsOrLoose?: boolean | sermver.Options); now constructor(comp: string | Comparator, optionsOrLoose?: boolean | semver.Options). npmjs.com - Signature changed
Comparator.intersects
Was intersects(comp: Comparator, optionsOrLoose?: boolean | sermver.Options): boolean; now intersects(comp: Comparator, optionsOrLoose?: boolean | semver.Options): boolean. npmjs.com - Signature changed
Comparator.options
Was options: sermver.Options; now options: semver.Options. npmjs.com - Signature changed
compareBuild
Was function compareBuild(a: string | SemVer, b: string | SemVer): 1 | 0 | -1; now function compareBuild(a: string | SemVer, b: 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 | semver.Options): semver.ReleaseType | null; now function diff(v1: string | SemVer, v2: string | SemVer): semver.ReleaseType | null. npmjs.com - Signature changed
gtr
Was function gtr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | semver.Options): boolean; now function gtr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | semver.RangeOptions)... npmjs.com - Signature changed
intersects
Was function intersects(range1: string | Range, range2: string | Range, optionsOrLoose?: boolean | semver.Options): boolean; now function intersects(range1: string | Range, range2: string | Range, optionsOrLoose?: boolean |... npmjs.com
And 11 more in this version. Sign up to see every change
semver 7.1.0 breaking changes
- Removed
inc.IdentifierBase
inc.IdentifierBase was removed in semver 7.1.0 npmjs.com - Removed
RangeOptions
RangeOptions was removed in semver 7.1.0 npmjs.com - Removed
RELEASE_TYPES
RELEASE_TYPES was removed in semver 7.1.0 npmjs.com - Removed
SemVer.toString
SemVer.toString was removed in semver 7.1.0 npmjs.com - Removed
simplifyRange
simplifyRange was removed in semver 7.1.0 npmjs.com - Removed
subset
subset was removed in semver 7.1.0 npmjs.com - Removed
truncate
truncate was removed in semver 7.1.0 npmjs.com - Signature changed
CoerceOptions.includePrerelease
Was includePrerelease?: boolean | undefined; now includePrerelease?: boolean. 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 | semver.Options); now constructor(comp: string | Comparator, optionsOrLoose?: boolean | sermver.Options). npmjs.com
And 22 more in this version. Sign up to see every change
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
semver 7.0.0 breaking changes
- Removed
Options.includePrerelease
Options.includePrerelease was removed in semver 7.0.0 npmjs.com - 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
And 40 more in this version.
semver 6.1.0 breaking changes
- Signature changed
coerce
Was function coerce(version: string | SemVer): SemVer | null; now function coerce(version: string | number | SemVer | null | undefined, options?: CoerceOptions): SemVer | null. npmjs.com - Signature changed
compareIdentifiers
Was function compareIdentifiers(a: string | null, b: string | null): 1 | 0 | -1; now function compareIdentifiers(a: string | null | undefined, b: string | null | undefined): 1 | 0 | -1. npmjs.com
And 12 more in this version.
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
And 37 more in this version.
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.