Skip to content

Releases: Masterminds/semver

v3.4.0

27 Jun 14:57
v3.4.0
61fc460
Compare
Choose a tag to compare

There are a few changes in this release to highlight:

  1. Constraints now has a property IncludePrerelease. When set to true the Check and Validate methods will include prereleases.
  2. 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.
  3. NewVersion coercion with leading "0"'s is restored. This can be disabled by setting the package level property CoerceNewVersion to false.

What's Changed

New Contributors

Full Changelog: v3.3.1...v3.4.0

v3.3.1

19 Nov 20:25
v3.3.1
1558ca3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v3.3.0...v3.3.1

v3.3.0

27 Aug 21:34
v3.3.0
e6e3d4d
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v3.2.1...v3.3.0

v3.2.1

10 Apr 15:32
v3.2.1
e06051f
Compare
Choose a tag to compare

Changed

  • #198: Improved testing around pre-release names
  • #200: Improved code scanning with addition of CodeQL
  • #201: Testing now includes Go 1.20. Go 1.17 has been dropped
  • #202: Migrated Fuzz testing to Go built-in Fuzzing. CI runs daily
  • #203: Docs updated for security details

Fixed

  • #199: Fixed issue with range transformations

Full Changelog: v3.2.0...v3.2.1

v3.2.0

28 Nov 21:01
v3.2.0
4694ab0
Compare
Choose a tag to compare

Added

  • #190: Added text marshaling and unmarshaling
  • #167: Added JSON marshalling for constraints (thanks @SimonTheLeg)
  • #173: Implement encoding.TextMarshaler and encoding.TextUnmarshaler on Version (thanks @MarkRosemaker)
  • #179: Added New() version constructor (thanks @kazhuravlev)

Changed

Fixed

  • #186: Fixing issue where validation of constraint section gave false positives
  • #176: Fix constraints check with *-0 (thanks @mtt0)
  • #181: Fixed Caret operator (^) gives unexpected results when the minor version in constraint is 0 (thanks @arshchimni)
  • #161: Fixed godoc (thanks @afirth)

v3.1.1

23 Nov 17:08
v3.1.1
Compare
Choose a tag to compare

Fixed

  • #158: Fixed issue with generated regex operation order that could cause problem

3.1.0

16 Apr 14:29
v3.1.0
60c7ae8
Compare
Choose a tag to compare

Added

Changed

  • #148: More accurate validation messages on constraints

v3.0.3

13 Dec 17:30
v3.0.3
910aa14
Compare
Choose a tag to compare

Fixed

  • #141: Fixed issue with <= comparison

3.0.2

14 Nov 15:43
v3.0.2
25911d3
Compare
Choose a tag to compare

Fixed

3.0.1

18 Sep 16:08
v3.0.1
fe7c210
Compare
Choose a tag to compare

#125: Fixes issue with module path for v3