Releases: Mistralys/version-parser
Releases · Mistralys/version-parser
Branch name normalization
Parser improvements
Included in this release:
- Allowed more separator characters for the tag number (#2)
- Improved the branch and tag detection.
- More flexible and lenient parsing.
- Added the
VersionTagclass to hold tag and branch information. - Added
getTagInfo()to retrieve theVersionTagobject. - Added
isStable(),isDev()andisPatch(). - The
stabletag type is now recognized as well if present. - Added short tag name parameter to
registerTagType(). - Spaces are now supported as separator characters.
- More special characters are now filtered out.
- Added
toArray(), mostly for debug reasons. - Split the parser into several specialized subclasses.
- Deprecated
setUppercase()- usesetTagUppercase()instead. - Deprecated
getTagWeights()- use theTagWeightsclass instead.
PHP 7.4 update
Included in this release:
- Increased minimum requirement to PHP 7.4.
- Added the possibility to register custom tag types.
- Added
setSeparatorChar()to change the separator character. - Added
setUppercase()to convert version tags to uppercase. - Added support for the
snapshotversion tag type. - Added
isSnapshot(). - Using strict types in all classes.
- Set up PHPStan analysis, clean up to level 9.
Minor improvements
Included in this release:
- Improved build number generation.
- Added comparison methods
isHigherThan(),isLowerThan(). - Added the
changelog.mdfile.
Initial featureset release.
1.0.0 Initial commit