NPM dependencies seem to not respect minimumReleaseAge
#40101
-
How are you running Renovate?A Mend.io-hosted app Which platform you running Renovate on?GitHub.com Which version of Renovate are you using?42.59.0" Please tell us more about your question or problemFor NPM dependencies, we are seeing Pull Requests created by Renovate that don't seem to respect the I've created a minimal repro here that matches the structure of our monorepo. I use the same problematic dependency, but with a longer 14-day window. You can see renovate still generates an update PR here. I reviewed the discussion board, and #39963 seemed similar, but not even using Thank you in advance! Logs (if relevant)Logs |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
|
@RahulGautamSingh are you able to take a look, please? All debug logs for Job ID |
Beta Was this translation helpful? Give feedback.
-
|
Is there any update here @jamietanna @RahulGautamSingh ? We're still dealing with renovate being basically useless on our pnpm project because it just suggested versions that are too new every day. |
Beta Was this translation helpful? Give feedback.
-
|
Hi there, This is intended as a polite, automated request that users avoid We know it might be common elsewhere but we participate in hundreds of discussions a week and would need to turn off GitHub mobile notifications if we were mentioned in every one. As a general rule, we will read and respond to all discussions in this repository, so there is no need to mention us. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
|
@DanStough This reply is delayed, but the issue in your case might be the use of |
Beta Was this translation helpful? Give feedback.
Cause
The issue is package rule ordering and override precedence.
security:minimumReleaseAgeNpm(fromconfig:best-practices) injects this package rule:Package rules from extended presets are applied before your repo's own package rules. Your top-level
minimumReleaseAge: "7 days"is the base config, but the preset's package rule runs after it and overwrites the value for npm packages to3 days.Since none of your own
packageRulesmatch@tanstack/*to override it back, the tanstack packages end up withminimumReleaseAge: "3 days".Fix
Add an npm-…