There are a few changes in this release to highlight:
Constraintsnow has a propertyIncludePrerelease. When set to true theCheckandValidatemethods will include prereleases.- When an AND group has one constraint with a prerelease but more than one constraint then prereleases will be included. For example,
>1.0.0-beta.1 < 2. In the past this would not have included prereleases because each constraint needed to have a prerelease. Now, only one constraint needs to have a prerelease. This is considered a long standing bug fix. Note, this does not carry across OR groups. For example,>1.0.0-beta.1 < 2 || > 3. In this case, prereleases will not be included when evaluating against>3. NewVersioncoercion with leading "0"'s is restored. This can be disabled by setting the package level propertyCoerceNewVersiontofalse.
What's Changed
- fix the CodeQL link by @dmitris in https://github.com/Masterminds/semver/pull/257
- Restore detailed errors when failed to parse with NewVersion by @mattfarina in https://github.com/Masterminds/semver/pull/262
- updating go version tested with by @mattfarina in https://github.com/Masterminds/semver/pull/263
- Restore the ability to have leading 0's with NewVersion by @mattfarina in https://github.com/Masterminds/semver/pull/266
- Handle pre-releases on all in an and group by @mattfarina in https://github.com/Masterminds/semver/pull/267
- Add property to include prereleases by @mattfarina in https://github.com/Masterminds/semver/pull/268
- Updating the error message handling by @mattfarina in https://github.com/Masterminds/semver/pull/269
- Update the release notes and readme for new version by @mattfarina in https://github.com/Masterminds/semver/pull/270
New Contributors
- @dmitris made their first contribution in https://github.com/Masterminds/semver/pull/257
Full Changelog: https://github.com/Masterminds/semver/compare/v3.3.1...v3.4.0