> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/tools-terraform/vendor/github.com/hashicorp/go-version/changelog.md).

# 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](https://github.com/hashicorp/go-version/pull/91))
* Implement the `database/sql.Scanner` and `database/sql/driver.Value` interfaces for `Version` ([#133](https://github.com/hashicorp/go-version/pull/133))

INTERNAL:

* \[COMPLIANCE] Add Copyright and License Headers ([#115](https://github.com/hashicorp/go-version/pull/115))
* \[COMPLIANCE] Update MPL-2.0 LICENSE ([#105](https://github.com/hashicorp/go-version/pull/105))
* Bump actions/cache from 3.0.11 to 3.2.5 ([#116](https://github.com/hashicorp/go-version/pull/116))
* Bump actions/checkout from 3.2.0 to 3.3.0 ([#111](https://github.com/hashicorp/go-version/pull/111))
* Bump actions/upload-artifact from 3.1.1 to 3.1.2 ([#112](https://github.com/hashicorp/go-version/pull/112))
* GHA Migration ([#103](https://github.com/hashicorp/go-version/pull/103))
* github: Pin external GitHub Actions to hashes ([#107](https://github.com/hashicorp/go-version/pull/107))
* SEC-090: Automated trusted workflow pinning (2023-04-05) ([#124](https://github.com/hashicorp/go-version/pull/124))
* update readme ([#104](https://github.com/hashicorp/go-version/pull/104))

## 1.6.0 (June 28, 2022)

FEATURES:

* Add `Prerelease` function to `Constraint` to return true if the version includes a prerelease field ([#100](https://github.com/hashicorp/go-version/pull/100))

## 1.5.0 (May 18, 2022)

FEATURES:

* Use `encoding` `TextMarshaler` & `TextUnmarshaler` instead of JSON equivalents ([#95](https://github.com/hashicorp/go-version/pull/95))
* Add JSON handlers to allow parsing from/to JSON ([#93](https://github.com/hashicorp/go-version/pull/93))

## 1.4.0 (January 5, 2022)

FEATURES:

* Introduce `MustConstraints()` ([#87](https://github.com/hashicorp/go-version/pull/87))
* `Constraints`: Introduce `Equals()` and `sort.Interface` methods ([#88](https://github.com/hashicorp/go-version/pull/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](https://github.com/hashicorp/go-version/pull/85))

## 1.2.1 (June 17, 2020)

BUG FIXES:

* Prevent `Version.Equal` method from panicking on `nil` encounter ([#73](https://github.com/hashicorp/go-version/pull/73))

## 1.2.0 (April 23, 2019)

FEATURES:

* Add `GreaterThanOrEqual` and `LessThanOrEqual` helper methods ([#53](https://github.com/hashicorp/go-version/pull/53))

## 1.1.0 (Jan 07, 2019)

FEATURES:

* Add `NewSemver` constructor ([#45](https://github.com/hashicorp/go-version/pull/45))

## 1.0.0 (August 24, 2018)

Initial release.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ionos.com/cloud/tools-terraform/vendor/github.com/hashicorp/go-version/changelog.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
