Skip to content
This repository was archived by the owner on Nov 27, 2020. It is now read-only.

use semver caret operator and stable symfony 3 #895

Merged
merged 1 commit into from
Nov 30, 2015
Merged

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Nov 30, 2015

@fabpot would be nice to merge this before tagging 3. all those libraries use semantic versioning. so lets use caret operator to spreads best practices.

@fabpot
Copy link
Member

fabpot commented Nov 30, 2015

Thank you @Tobion.

@fabpot fabpot merged commit f3e9361 into master Nov 30, 2015
fabpot added a commit that referenced this pull request Nov 30, 2015
This PR was merged into the 3.0-dev branch.

Discussion
----------

use semver caret operator and stable symfony 3

@fabpot would be nice to merge this before tagging 3. all those libraries use semantic versioning. so lets use caret operator

Commits
-------

f3e9361 use semver caret operator and stable symfony 3
@Tobion Tobion deleted the Tobion-patch-1 branch November 30, 2015 21:07
@ghost
Copy link

ghost commented Dec 1, 2015

@Tobion Could you explain the different between tildes (~) and carets (^)? I don't really understand the difference in the official composer documentation. https://getcomposer.org/doc/articles/versions.md#caret

An example of the difference would be nice. As I understand both ensure backward compatibility because they do not allow changes of the major version.

@stof
Copy link
Member

stof commented Dec 1, 2015

@JHGitty if you use only a major or minor version after the operator, there is no difference. But if you specify a patch version, ~1.3.2 will go only up to the next minor version (<1.4), i.e. it allows to increment only the last segment (excluding major versions), whereas ^1.3.2 will still allow to move up to the next major version (<2.0)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants