-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NewVersion now validates and CoerceNewVersion handles semver-ish
* NewVersion only handles spec compliant SemVer. * NewVersion has a new method to parse the string that is faster than regex and uses fewer B/op. For stable versions is uses fewer allocs and when pre-release or metadata are on the version it uses 1 more alloc. All around performance is significantly faster * CoerceNewVersion handles a semver-ish string. It tries to take a string that is similar to semver (e.g., 1.2) and turn it into a valid SemVer instance. This is similar to the previous handling Closes #75
- Loading branch information
1 parent
220fba6
commit 23f51de
Showing
7 changed files
with
374 additions
and
72 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.