Questions tagged [semantic-versioning]

Semantic Versioning is a community-driven version-numbering standard. Use this tag to indicate the software versioning concepts defined at http://semver.org.

Semantic Versioning is a conceptual software scheme which defines concepts of API compatibility and a specific, strict set of versioning rules intended to avoid dependency hell.

A number of software packages have made a commitment to apply the concepts of Semantic Versioning, or help to enforce its rules. For example: , and other package managers often help manage software dependencies using these rules.

Not all software versioning applies these semantics, which can lead to confusion. Semantic Versioning 2.0.0, the current specification, was originally written by Tom Preston-Werner, and is a community based effort hosted at https://github.com/semver/semver.

664 questions
-2
votes
2 answers

How do I write functions that handle versioned data when Rust doesn't have inheritance?

I have data that is versioned using SemVer. I have functions that have SemVer requirements, e.g. they support versions in the half-open interval [1.1, 2.0). In C++ I could do something like this: struct Data_v1_0 { // Added in V1.0 int…
Timmmm
  • 88,195
  • 71
  • 364
  • 509
-2
votes
3 answers

How to filter an array keeping the highest patch version in each minor version?

I have following array: array(174) { [0]=> string(5) "3.0.3" [1]=> string(5) "3.0.2" [2]=> string(5) "3.0.1" [3]=> string(5) "3.0.0" [9]=> string(5) "2.9.5" [10]=> string(5) "2.9.4" [11]=> string(5) "2.9.3" [12]=> …
user2450639
  • 196
  • 1
  • 14
-3
votes
1 answer

how to get top 5 semantic versions if you are using Semantic Versioning in a folder

I have a folder with lot of zip files based on semantic versions i want to get the top 5 versions and delete rest. I want to know how can i query the latest top 5 versions in a query MyService- 1.0.2.5.zip MyService- 1.0.2.6.zip …
Imran
  • 71
  • 1
  • 8
1 2 3
44
45