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
chore(deps): bump the gomod-updates group across 1 directory with 12 updates
xmtp/xmtpd #2010
chore(deps): Bump the production-dependencies group across 1 directory with 41 updates
kubevirt/ssp-operator #1833
chore(deps): bump the go-minor group with 30 updates
akuity/kargo #6389
chore(deps): bump the go-minor group with 34 updates
akuity/kargo #6345
chore(deps): Bump the go-minor-patch group across 1 directory with 25 updates
container-registry/harbor-next #219
Bump the non-kubernetes group across 2 directories with 28 updates
kubernetes/autoscaler #9650
Bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0 in /system-tests/tests
mikeyhodl/chainlink #1816
chore(deps): bump the go-modules group across 1 directory with 19 updates
hatchet-dev/hatchet #3920
build(deps): Bump github.com/Masterminds/semver/v3 in /api/golang
kurtosis-tech/kurtosis #3105
Bump the all-dependencies group across 1 directory with 5 updates
gardener/gardener-extension-provider-gcp #1403
build(deps): bump the github-dependencies group across 1 directory with 36 updates
kubernetes-csi/external-provisioner #1508
chore(deps): Bump the production-dependencies group across 1 directory with 39 updates
kubevirt/ssp-operator #1809
build(deps): bump the go group across 1 directory with 11 updates
chore(deps): bump the go-minor-patch group across 1 directory with 28 updates
build(deps): bump the go-dependencies group across 1 directory with 28 updates
chore: bump the go-minor-patch group across 1 directory with 3 updates
deps: Bump the gomod group across 1 directory with 2 updates
chore(deps): Bump the production-dependencies group across 1 directory with 38 updates
kubevirt/ssp-operator #1780
build(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
mongodb/mongodb-atlas-cli #4567
chore(deps): bump the go-minor-patch group across 1 directory with 25 updates
chore(deps): Bump the gomod group with 12 updates
stolostron/governance-policy-addon-controller #1221
chore(deps):(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
oleg-koval/dcli #63
Bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
spectrocloud/terraform-provider-spectrocloud #904
Chore(deps): Bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.5.0
benchmark-large-codebase/grafana__grafana__lyxor__PR97529__20260504 #22
chore(deps): Bump the misc-dependencies group across 3 directories with 20 updates
kubernetes-sigs/aws-iam-authenticator #1032
build(deps): bump the other group across 1 directory with 50 updates
Hsn723/cert-estuary #177
build(deps): bump the gomod group across 1 directory with 33 updates
crowdsecurity/crowdsec #4448
chore(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0 in /specter
Hanalyx/specter #121
chore(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
build(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
Bump the gomod group with 8 updates
open-cluster-management-io/governance-policy-framework-addon #222
chore(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
zenaptix-lab/helm #711
chore(deps)(deps): bump github.com/Masterminds/semver/v3 from 3.4.0 to 3.5.0
k8s-manifest-kit/renderer-helm #32
Bump github.com/Masterminds/semver/v3 from 3.3.0 to 3.4.0 in /pkg/build
Gitar-Martian-Review-Benchmark/grafana__grafana__gitar__PR103633__20260305 #252
Chore(deps): Bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.4.0 in /pkg/build
LX-CodeReview/grafana__grafana__codehawk__PR97529__20260407 #19
Bump github.com/Masterminds/semver/v3 from 3.3.1 to 3.4.0 in /pkg/build
clearalonging/grafana__grafana__ai-code-review-v1__PR106778__20260407 #27
chore(deps): bump the go-backend-minor-patch group in /kubilitics-backend with 26 updates
chore(deps): Bump the go-backend-minor-patch group in /kubilitics-backend with 26 updates
Bump the all-dependencies group across 1 directory with 47 updates
istio/istio #59553
chore(deps): Bump the go-backend-minor-patch group in /kubilitics-backend with 26 updates
Bump the all-dependencies group across 1 directory with 46 updates
openshift-service-mesh/istio #669
Bump the all-dependencies group across 1 directory with 65 updates
istio/istio #59393
Bump the all-go-modules group across 1 directory with 29 updates
chore(deps): bump the go-backend-minor-patch group in /kubilitics-backend with 18 updates
Bump the all-go-modules group across 1 directory with 28 updates
Bump the gomod-minor-patch group with 13 updates
m-lab/autojoin #81
:seedling: Bump github.com/Masterminds/semver/v3 from 3.2.1 to 3.4.0
p21nc3/Open-Source-Inspector #377
golang: bump github.com/Masterminds/semver/v3 from 3.2.1 to 3.4.0
Bump the gomod group with 38 updates
armadaproject/armada #4581
Bump github.com/Masterminds/semver/v3 from 3.2.0 to 3.4.0
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 |