Display pending versions of NPM packages #25316
-
How are you running Renovate?Mend Renovate hosted app on github.com Was this something which used to work for you, and then stopped?I am trying to get this working for the first time Describe the problemRenovate PRs don't show pending versions for NPM packages. Actual behaviourFor NPM packages, Renovate does not indicate a pending version.
Expected behaviourHere's a Node.js update PR. Renovate has updated it to display the pending version. Using this information, as well as the changelog in the PR, I can properly decide whether to merge this already-outdated version, or wait for the next one. I've looked through old Renovate PRs; surprisingly I don't think this ever worked with NPM packages. I've thoroughly searched issues and discussions, and quickly searched the code for I don't know how to create a minimal reproduction for this, given the nature of pending versions, but if there is a way, please let me know. Relevant debug logs
Edit: I've added log excerpts focusing on NPM dependency Logs
The pending version was not included in the pull request: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsIf you're running self-hosted, run with Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Please look for the |
Beta Was this translation helpful? Give feedback.
-
The default value of The hosted app automatically enables the This is why pending versions are visible for other types of dependencies, but not for NPM dependencies. The merge confidence documentation explains how you can disable this preset. You can additionally define your own {
"ignorePresets": ["mergeConfidence:all-badges"],
"packageRules": [
{
"matchDatasources": ["npm"],
"matchUpdateTypes": ["patch", "minor", "major"],
"prBodyColumns": [
"Package",
"Update",
"Change",
"Age",
"Confidence",
"Pending"
]
}
]
} |
Beta Was this translation helpful? Give feedback.
The default value of
prBodyColumns
is["Package", "Type", "Update", "Change", "Pending"]
.The hosted app automatically enables the
mergeConfidence:all-badges
preset, which for NPM dependencies changes the value ofprBodyColumns
to["Package", "Change", "Age", "Adoption", "Passing", "Confidence"]
.This is why pending versions are visible for other types of dependencies, but not for NPM dependencies.
The merge confidence documentation explains how you can disable this preset. You can additionally define your own
"prBodyColumns"
value to combine pending versions with merge confidence badges for the best of both worlds: