semantic version parsing and stringification
npm install @magic/semver
import semver from '@magic/semver'
// -alpha.0 is optional.
const version = '0.0.1-alpha.0'
const parsed = semver.parse(version)
// parsed === { major: 0, minor: 0, patch: 1, demo: { string: 'alpha', version: 0 } }
const serialized = semver.serialize(parsed)
// version === serialized
first release
add bump and isSemver
handle -alpha and -beta separately to stop decrementing the version by mistake.
fix behaviour of appending -alpha.0 and -beta.0. these two edgecases also bump patch version now.
add isBigger and isSmaller version comparison
remove @magic/fs
bump required node version to 14.2.0
update dependencies
- bump required node version to 14.15.4
- update dependencies
- update README
- bump dev dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
update dependencies
...