Skip to content

Commit

Permalink
Update semver
Browse files Browse the repository at this point in the history
porada committed Jul 12, 2014
1 parent bd39ae5 commit d9b8b8a
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions angular-semver-sort.js
Original file line number Diff line number Diff line change
@@ -361,6 +361,10 @@ SemVer.prototype.inc = function(release) {
this.inc('pre');
break;
case 'prepatch':
// If this is already a prerelease, it will bump to the next version
// drop any prereleases that might already exist, since they are not
// relevant at this point.
this.prerelease.length = 0
this.inc('patch');
this.inc('pre');
break;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"author": "Dominik Porada",
"license": "BSD",
"dependencies": {
"semver": "2.3.0"
"semver": "2.3.1"
},
"devDependencies": {
"karma": "~0.12.16",

0 comments on commit d9b8b8a

Please sign in to comment.