fix: increment dotted prerelease identifiers by liuzemei · Pull Request #870 · npm/node-semver (original) (raw)
Navigation Menu
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Conversation
Fixes #226.
Summary
- treat a dotted prerelease identifier as a prefix when deciding whether to continue incrementing the existing prerelease sequence
- keep replacing the prerelease when the matched prefix is followed by a non-numeric segment
- add fixtures for dotted identifiers such as
alpha.betaandalpha.beta.5
Testing
npm test
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@liuzemei thanks for casually fixing a 9 year old bug!
Nice! totally forgot about this one
owlstronaut pushed a commit that referenced this pull request
This was referenced
Jun 6, 2026
claude Bot mentioned this pull request
1 task
This was referenced
Jun 8, 2026
claude Bot mentioned this pull request
1 task
This was referenced
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})