Skip to content

Commit d9b8b8a

Browse files
committed
Update semver
1 parent bd39ae5 commit d9b8b8a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

angular-semver-sort.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ SemVer.prototype.inc = function(release) {
361361
this.inc('pre');
362362
break;
363363
case 'prepatch':
364+
// If this is already a prerelease, it will bump to the next version
365+
// drop any prereleases that might already exist, since they are not
366+
// relevant at this point.
367+
this.prerelease.length = 0
364368
this.inc('patch');
365369
this.inc('pre');
366370
break;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Dominik Porada",
66
"license": "BSD",
77
"dependencies": {
8-
"semver": "2.3.0"
8+
"semver": "2.3.1"
99
},
1010
"devDependencies": {
1111
"karma": "~0.12.16",

0 commit comments

Comments
 (0)