Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

CHANGELOG

1.9.0 (Mar 30, 2026)

ENHANCEMENTS:

Support parsing versions with custom prefixes via opt-in option in https://github.com/hashicorp/go-version/pull/79

INTERNAL:

  • Bump the github-actions-backward-compatible group across 1 directory with 2 updates in https://github.com/hashicorp/go-version/pull/179

  • Bump the github-actions-breaking group with 4 updates in https://github.com/hashicorp/go-version/pull/180

  • Bump the github-actions-backward-compatible group with 3 updates in https://github.com/hashicorp/go-version/pull/182

  • Update GitHub Actions to trigger on pull requests and update go version in https://github.com/hashicorp/go-version/pull/185

  • Bump actions/upload-artifact from 6.0.0 to 7.0.0 in the github-actions-breaking group across 1 directory in https://github.com/hashicorp/go-version/pull/183

  • Bump the github-actions-backward-compatible group across 1 directory with 2 updates in https://github.com/hashicorp/go-version/pull/186

1.8.0 (Nov 28, 2025)

ENHANCEMENTS:

  • Add benchmark test for version.String() in https://github.com/hashicorp/go-version/pull/159

  • Bytes implementation in https://github.com/hashicorp/go-version/pull/161

INTERNAL:

  • Add CODEOWNERS file in .github/CODEOWNERS in https://github.com/hashicorp/go-version/pull/145

  • Linting in https://github.com/hashicorp/go-version/pull/151

  • Correct typos in comments in https://github.com/hashicorp/go-version/pull/134

  • Migrate GitHub Actions updates from TSCCR to Dependabot in https://github.com/hashicorp/go-version/pull/155

  • Bump the github-actions-backward-compatible group with 2 updates in https://github.com/hashicorp/go-version/pull/157

  • Update doc reference in README in https://github.com/hashicorp/go-version/pull/135

  • Bump the github-actions-breaking group with 3 updates in https://github.com/hashicorp/go-version/pull/156

  • [Compliance] - PR Template Changes Required in https://github.com/hashicorp/go-version/pull/158

  • Bump actions/cache from 4.2.3 to 4.2.4 in the github-actions-backward-compatible group in https://github.com/hashicorp/go-version/pull/167

  • Bump actions/checkout from 4.2.2 to 5.0.0 in the github-actions-breaking group in https://github.com/hashicorp/go-version/pull/166

  • Bump the github-actions-breaking group across 1 directory with 2 updates in https://github.com/hashicorp/go-version/pull/171

  • [IND-4226] [COMPLIANCE] Update Copyright Headers in https://github.com/hashicorp/go-version/pull/172

  • drop init() in https://github.com/hashicorp/go-version/pull/175

1.7.0 (May 24, 2024)

ENHANCEMENTS:

  • Remove reflect dependency (#91)

  • Implement the database/sql.Scanner and database/sql/driver.Value interfaces for Version (#133)

INTERNAL:

  • [COMPLIANCE] Add Copyright and License Headers (#115)

  • [COMPLIANCE] Update MPL-2.0 LICENSE (#105)

  • Bump actions/cache from 3.0.11 to 3.2.5 (#116)

  • Bump actions/checkout from 3.2.0 to 3.3.0 (#111)

  • Bump actions/upload-artifact from 3.1.1 to 3.1.2 (#112)

  • GHA Migration (#103)

  • github: Pin external GitHub Actions to hashes (#107)

  • SEC-090: Automated trusted workflow pinning (2023-04-05) (#124)

  • update readme (#104)

1.6.0 (June 28, 2022)

FEATURES:

  • Add Prerelease function to Constraint to return true if the version includes a prerelease field (#100)

1.5.0 (May 18, 2022)

FEATURES:

  • Use encoding TextMarshaler & TextUnmarshaler instead of JSON equivalents (#95)

  • Add JSON handlers to allow parsing from/to JSON (#93)

1.4.0 (January 5, 2022)

FEATURES:

  • Introduce MustConstraints() (#87)

  • Constraints: Introduce Equals() and sort.Interface methods (#88)

1.3.0 (March 31, 2021)

Please note that CHANGELOG.md does not exist in the source code prior to this release.

FEATURES:

  • Add Core function to return a version without prerelease or metadata (#85)

1.2.1 (June 17, 2020)

BUG FIXES:

  • Prevent Version.Equal method from panicking on nil encounter (#73)

1.2.0 (April 23, 2019)

FEATURES:

  • Add GreaterThanOrEqual and LessThanOrEqual helper methods (#53)

1.1.0 (Jan 07, 2019)

FEATURES:

  • Add NewSemver constructor (#45)

1.0.0 (August 24, 2018)

Initial release.

Last updated

Was this helpful?