Renovate violating v0 semver semantics #15093
-
How are you running Renovate?WhiteSource Renovate hosted app on github.com Was this something which used to work for you, and then stopped?I never saw this working Describe the bugReproduction repo: https://github.com/trevor-scheer/renovate-reproduction At Apollo, we use the following package rule for grouping {
groupName: "all non-major dependencies",
matchUpdateTypes: ["patch", "minor"],
groupSlug: "all-npm-minor-patch",
matchManagers: [ "npm" ],
}This package rule is unexpectedly including a package whose version is going from Here's a snippet using the const {satisfies} = require('semver');
console.log(satisfies('0.3.0', '^0.2.3')); // false
console.log(satisfies('0.3.0', '~0.2.3')); // false
console.log(satisfies('0.2.4', '^0.2.3')); // true
console.log(satisfies('0.2.4', '~0.2.3')); // trueRelevant debug logsLogsHave you created a minimal reproduction repository?I have linked to a minimal reproduction repository in the bug description |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
This is not a bug, so I have converted it to a discussion. You are misunderstanding the difference between a major update (eg 0.x to 1.x) and a breaking update (which 0.2.x to 0.3.x may be). 0.2.x to 0.3.x is a minor update, so current behaviour is correct. Add a matchCurrentVersion pattern to your package rule if you want 0.x packages excluded |
Beta Was this translation helpful? Give feedback.
This is not a bug, so I have converted it to a discussion. You are misunderstanding the difference between a major update (eg 0.x to 1.x) and a breaking update (which 0.2.x to 0.3.x may be). 0.2.x to 0.3.x is a minor update, so current behaviour is correct. Add a matchCurrentVersion pattern to your package rule if you want 0.x packages excluded