semver
7.8.5 · 19 Jun 2026ISC750.1M / weekRepositoryHomepagenpmAtom feed
117 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 7.x · latest line
7.8.5
19 Jun 2026Include prereleases in tilde range lower bound with includePrerelease
7.8.4
9 Jun 2026Reject numeric segments after x-ranges
7.8.3
8 Jun 2026Align caret includePrerelease lower bounds
Bug Fixes
Align caret includePrerelease lower bounds
7.8.2
4 Jun 2026Increment dotted prerelease identifiers (#870) (@liuzemei, @SheldonNeo)
7.8.1
21 May 2026Strip build metadata before comparator trimming
Handle prerelease bounds in subset (#867) (@puneetdixit200, Puneet Dixit)
7.8.0
8 May 2026Add
truncatefunction (#855) (@pjohnmeyer, @owlstronaut)Warn when defaulting to --inc=patch in CLI
Features
Add
truncatefunction (#855) (@pjohnmeyer, @owlstronaut)
Bug Fixes
Warn when defaulting to --inc=patch in CLI
7.7.4
5 Feb 2026cli: Pass options to semver.valid() for loose version validation
Bug Fixes
cli: Pass options to semver.valid() for loose version validation
7.7.3
7 Oct 2025Faster paths for compare
x-range build metadata support (i529015)
Bug Fixes
Faster paths for compare
x-range build metadata support (i529015)
7.7.2
12 May 2025Add missing
'use strict'directivesPrerelease identifier starting with digits
Bug Fixes
Add missing
'use strict'directivesPrerelease identifier starting with digits
7.7.1
3 Feb 2025inc: Fully capture prerelease identifier
7.7.0
29 Jan 2025Add "release" inc type
diff: Fix prerelease to stable version diff logic (#755) (@eminberkayd, berkay.daglar)
Add identifier validation to
inc()
Features
Add "release" inc type
Bug Fixes
diff: Fix prerelease to stable version diff logic (#755) (@eminberkayd, berkay.daglar)
Add identifier validation to
inc()
7.6.3
16 Jul 2024Optimize Range parsing and formatting
Bug Fixes
Optimize Range parsing and formatting
7.6.2
9 May 2024lru: Use map.delete() directly (#713) (@negezor, @lukekarrys)
7.6.1
7 May 2024linting: no-unused-vars
Use internal cache implementation
Typo in compareBuild debug message
Bug Fixes
linting: no-unused-vars
Use internal cache implementation
Typo in compareBuild debug message
7.6.0
5 Feb 2024Preserve pre-release and build parts of a version on coerce (#671) (@madtisa, madtisa, @wraithgar)
Features
Preserve pre-release and build parts of a version on coerce (#671) (@madtisa, madtisa, @wraithgar)
7.5.4
7 Jul 2023Reading the note…
7.5.3
22 Jun 2023Reading the note…
7.5.2
15 Jun 2023Reading the note…
7.5.1
12 May 2023Reading the note…
7.5.0
17 Apr 2023Allow identifierBase to be false
Throw on bad version with correct error message
Incorrect results from diff sometimes with prerelease versions
Features
Allow identifierBase to be false
Bug Fixes
Throw on bad version with correct error message
Incorrect results from diff sometimes with prerelease versions
Avoid re-instantiating SemVer during diff compare
7.4.0
10 Apr 2023identifierBase parameter for .inc (#532) (@wraithgar, @b-bly)
Export new RELEASE_TYPES constant
Intersects with v0.0.0 and v0.0.0-0
Features
identifierBase parameter for .inc (#532) (@wraithgar, @b-bly)
Export new RELEASE_TYPES constant
Bug Fixes
Intersects with v0.0.0 and v0.0.0-0
Faster parse options
Faster cache key factory for range
Optimistic parse
Semver.diff prerelease to release recognition (#533) (@wraithgar, @dominique-blockchain)
Reuse comparators on subset
Faster diff
7.3.8
4 Oct 2022Reading the note…
7.3.7
12 Apr 2022Reading the note…
7.3.6
6 Apr 2022Reading the note…
7.3.5
23 Mar 2021Reading the note…
7.3.4
1 Dec 2020Reading the note…
7.3.3
1 Dec 2020Reading the note…
7.3.2
14 Apr 2020Reading the note…
7.3.1
14 Apr 2020Reading the note…
7.3.0
14 Apr 2020Add
subset(r1, r2)method to determine ifr1range is entirely contained byr2range.
7.2.3
13 Apr 2020Reading the note…
7.2.2
10 Apr 2020Reading the note…
7.2.1
6 Apr 2020Reading the note…
7.2.0
6 Apr 2020Add
simplifyRangemethod to attempt to generate a more human-readable range expression that is equivalent to a supplied range, for a given set of versions.
7.1.3
11 Feb 2020Reading the note…
7.1.2
31 Jan 2020Reading the note…
7.1.1
17 Dec 2019Reading the note…
7.1.0
17 Dec 2019Add
require('semver/preload')to load the entire module without using lazy getter methods.
7.0.0
14 Dec 2019- removed
Drop support for very old node versions, use const/let,
=>functions, and classes. Refactor module into separate files for better tree-shaking
- 6.x
6.3.1
10 Jul 2023Reading the note…
6.3.0
23 Jul 2019Reading the note…
6.2.0
1 Jul 2019Reading the note…
6.1.3
1 Jul 2019Reading the note…
6.1.2
24 Jun 2019Reading the note…
6.1.1
28 May 2019Reading the note…
6.1.0
22 May 2019Reading the note…
6.0.0
26 Mar 2019Reading the note…
- 5.x
5.7.2
10 Jul 2023Reading the note…
5.7.1
12 Aug 2019Reading the note…
5.7.0
26 Mar 2019Reading the note…