github.com/Masterminds/semver/v3
go
pkg:golang/github.com/Masterminds/semver/v3
558 Dependabot PRs
12 days ago
372 repositories
11 repositories
Recent PRs (filtered by: Patch PRs )
Bump the go-deps group across 1 directory with 5 updates
fluxcd/helm-controller #1245
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1 in /lib
smartcontractkit/chainlink-testing-framework #1915
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1 in /lib
terminalelf/chainlink-testing-framework #50
Bump the go-deps group across 1 directory with 4 updates
fluxcd/helm-controller #1244
Bump the go-deps group across 1 directory with 5 updates
fluxcd/image-reflector-controller #788
Bump the go-deps group across 1 directory with 5 updates
fluxcd/helm-controller #1243
Bump the go-deps group across 1 directory with 3 updates
fluxcd/image-reflector-controller #784
build(deps): bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
jetkvm/kvm #593
Bump the go-deps group across 1 directory with 4 updates
fluxcd/helm-controller #1237
chore(deps): bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1 in /lib
cute-lightfury/chainlink-testing-framework #57
Bump the go-deps group across 1 directory with 3 updates
fluxcd/helm-controller #1235
Bump the go-deps group with 2 updates
fluxcd/image-reflector-controller #779
Bump the go-deps group across 1 directory with 2 updates
fluxcd/helm-controller #1228
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1 in the go-deps group
fluxcd/image-reflector-controller #770
Bump the go-deps group across 1 directory with 5 updates
fluxcd/helm-controller #1225
build(deps): bump the go-deps group across 1 directory with 10 updates
fluxcd/source-controller #1804
build(deps): bump the go-deps group across 1 directory with 15 updates
fluxcd/source-controller #1803
Bump the go-deps group across 1 directory with 3 updates
fluxcd/helm-controller #1219
Bump the go-deps group across 1 directory with 4 updates
fluxcd/helm-controller #1215
build(deps): bump the go-deps group across 1 directory with 13 updates
fluxcd/source-controller #1801
Bump the go-deps group across 1 directory with 3 updates
fluxcd/helm-controller #1213
build(deps): bump the go-deps group across 1 directory with 9 updates
fluxcd/source-controller #1798
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1 in /lib
monster0318/chainlink-framework-testing- #32
Bump the go-deps group across 1 directory with 2 updates
fluxcd/helm-controller #1211
build(deps): bump the go-deps group across 1 directory with 8 updates
fluxcd/source-controller #1792
build(deps): bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
zenaptix-lab/helm #329
build(deps): bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
build(deps): bump the gomod group across 1 directory with 6 updates
sassoftware/gotagger #270
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
chore(deps): bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
sealdice/sealdice-core #1201
build(deps): bump the backend group across 1 directory with 15 updates
Rose2161/hub #325
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
helm/helm #13561
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
helm/helm #13558
[Go] Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
STARRY-S/hosted-providers-e2e #3
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
gopxl/docgen #10
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.3.1
helm/helm #13468
Package Details
| Name: | github.com/Masterminds/semver/v3 |
| Ecosystem: | go |
| PURL Type: | golang |
| Package URL: | pkg:golang/github.com/Masterminds/semver/v3 |
| JSON API: | View JSON |
Package Information
Package semver provides the ability to work with Semantic Versions (http://semver.org) in Go. Specifically it provides the ability to: There are two functions that can parse semantic versions. The `StrictNewVersion` function only parses valid version 2 semantic versions as outlined in the specification. The `NewVersion` function attempts to coerce a version into a semantic version and parse it. For example, if there is a leading v or a version listed without all 3 parts (e.g. 1.2) it will attempt to coerce it into a valid semantic version (e.g., 1.2.0). In both cases a `Version` object is returned that can be sorted, compared, and used in constraints. When parsing a version an optional error can be returned if there is an issue parsing the version. For example, The version object has methods to get the parts of the version, compare it to other versions, convert the version back into a string, and get the original string. For more details please see the documentation at https://godoc.org/github.com/Masterminds/semver. A set of versions can be sorted using the `sort` package from the standard library. For example, There are two methods for comparing versions. One uses comparison methods on `Version` instances and the other is using Constraints. There are some important differences to notes between these two methods of comparison. There are differences between the two methods or checking versions because the comparison methods on `Version` follow the specification while comparison ranges are not part of the specification. Different packages and tools have taken it upon themselves to come up with range rules. This has resulted in differences. For example, npm/js and Cargo/Rust follow similar patterns which PHP has a different pattern for ^. The comparison features in this package follow the npm/js and Cargo/Rust lead because applications using it have followed similar patters with their versions. Checking a version against version constraints is one of the most featureful parts of the package. There are two elements to the comparisons. First, a comparison string is a list of comma or space separated AND comparisons. These are then separated by || (OR) comparisons. For example, `">= 1.2 < 3.0.0 || >= 4.2.3"` is looking for a comparison that's greater than or equal to 1.2 and less than 3.0.0 or is greater than or equal to 4.2.3. This can also be written as `">= 1.2, < 3.0.0 || >= 4.2.3"` The basic comparisons are: There are multiple methods to handle ranges and the first is hyphens ranges. These look like: The `x`, `X`, and `*` characters can be used as a wildcard character. This works for all comparison operators. When used on the `=` operator it falls back to the tilde operation. For example, Tilde Range Comparisons (Patch) The tilde (`~`) comparison operator is for patch level ranges when a minor version is specified and major level changes when the minor number is missing. For example, Caret Range Comparisons (Major) The caret (`^`) comparison operator is for major level changes once a stable (1.0.0) release has occurred. Prior to a 1.0.0 release the minor versions acts as the API stability level. This is useful when comparisons of API versions as a major change is API breaking. For example, In addition to testing a version against a constraint, a version can be validated against a constraint. When validation fails a slice of errors containing why a version didn't meet the constraint is returned. For example,
| Repository: | https://github.com/Masterminds/semver |
| Homepage: | https://github.com/Masterminds/semver |
| Latest Release: |
v3.3.1
over 1 year ago |
| Dependent Repos: | 27,798 |
| Dependent Packages: | 6,503 |
| Ranking: | Top 0.0364% by dependent repos Top 0.0376% by dependent pkgs |