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
7
votes
2 answers

dotnet semantic versioning in a continuous deployment environment

I am configuring semantic versioning with GitLab for my dotnet core apps and netstandard 2.0 packages. After reading quite a bit of opinions, some of them contradictory, this is what is clear to me. A semantic version should be something…
diegosasw
  • 13,734
  • 16
  • 95
  • 159
7
votes
2 answers

4 digit versioning in npm

I'm surprised that 4 digit versioning is not allowed in npm ecosystem: https://docs.npmjs.com/about-semantic-versioning However, I have to merge my end product from npm to other systems where 4 digits are allowed. So, my question is: (how) can we…
Asqan
  • 4,319
  • 11
  • 61
  • 100
7
votes
5 answers

NuGet Versioning with ProjectReference Dependencies

I have a solution containing several projects. Let's say PackageA and PackageB, where PackageB depends on PackageA with a ProjectReference. Each project is set to also output a NuGet package on build. This process itself works perfectly but I am…
Aeon
  • 81
  • 1
  • 8
7
votes
1 answer

Does PIP/Python support multiple versions of the same package?

Let's say I have a package foo, and foo packages up binary shared objects that I use in multiple Python scripts. Foo v1 (shared objects) Bar v1 (requires Foo v1) Baz v1 (requires Foo v1) Now I want to push out a new breaking update to Foo. Foo…
Evan Carroll
  • 78,363
  • 46
  • 261
  • 468
7
votes
1 answer

Asp.Net 5 Semantic Versioning

It seems that versioning works differently than in previous versions of .Net. The project.json seems to use semantic versioning (from what I have seen online) with the format Major.Minor.Patch-Special. Does this replace the Assembly version idea…
Gekctek
  • 1,161
  • 2
  • 12
  • 23
7
votes
2 answers

What does semantic versioning imply about parameter name changes?

Trying to explain the importance of semantic versioning to a friend, I faced the following dilemma. Let's say we have library libfoo, version 1.2.3 that exposes the following function: def foo(x, y): """ Compute the sum of the operands. …
ereOn
  • 53,676
  • 39
  • 161
  • 238
6
votes
1 answer

Can prerelease NuGet packages be displayed in VS Package Manager UI?

I'm using a custom NuGet feed for deploying own NuGet packages. I'm using semver so my CI server is generating a deploying new prerelease packages on every build. Those prerelease packages are obviously not visible by default in Package Manager. Is…
Jakub Konecki
  • 45,581
  • 7
  • 87
  • 126
6
votes
1 answer

NPM Install pre-release versions for peer dependency

We have a mono-repository using lerna. On every pull request, we would like to create a pre-release version and publish it. Demo Project for better understanding => react-lerna-demo Package structure: util-lib shared-ui --> util-lib…
kk-dev11
  • 2,654
  • 5
  • 37
  • 48
6
votes
2 answers

Is it possible to update files as part of a merge via GitHub Actions without creating a second commit?

Currently, I'm trying to automate the bump versions for the applications as part of the PR Merge using the GitHub Actions. There is a custom script that would identify the current version of the application and the label attached with the PR and…
6
votes
0 answers

How to use GitHub Releases with Vercel?

I am working on an ecommerce site with Next.js and want to deploy it to Vercel. I have seen that Vercel uses the Deploy-Preview-Ship model (DPS) and while I am not sure if this is something that goes against that I was wondering if there is a way to…
Max
  • 73
  • 3
6
votes
1 answer

Semantic versioning: changing a non-opaque struct that *should* be allocated through library functions

My C library, in version 1.0.0, defines a struct and some functions to allocate and use the struct: typedef struct { int x; int y; } MyStruct; MyStruct *allocate( int, int ); void destroy( MyStruct* ); void print( MyStruct* ); Users are supposed to…
Blue Nebula
  • 932
  • 4
  • 9
6
votes
2 answers

Could not find a 'develop' or 'master' branch, neither locally nor remotely. - Semantic gitversion

I have a repo in azure and it has the default branch "main". Also, I have a task in yml file for semantic versioning. - task: gittools.gitversion.gitversion-task.GitVersion@5 displayName: Get Semantic Git Version I am hitting the below error No…
6
votes
1 answer

npm version in Azure DevOps pipeline

I have a build pipeline in Azure DevOps which releases artifact via npm pack for later publishing into Artifacts Feed. I would like to set my major and minor version via GIT but patch version to tie with build number. E.g. 1.2.20201212.4 where 1…
irriss
  • 742
  • 2
  • 11
  • 22
6
votes
1 answer

What -next means in semantic versioning

What is the meaning of pre-release version x.x.x-next in semantic versioning, for example 6.0.0-next.0, 6.0.0-next.1, 6.0.0-next.2? I saw this terminology at least in angular and npm projects. Is this replacement of legacy alpha, beta, rc…
bladekp
  • 1,529
  • 22
  • 29
6
votes
2 answers

npm cannot find module 'semver' after reinstall

I am using ubuntu 19.04. I am getting following error, when trying to do anything with npm internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'semver' at Function.Module._resolveFilename…
jonasgroenbek
  • 135
  • 1
  • 3
  • 9