-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rejectVersionFunction gets the semver string as its first argument, not the name of the package #1442
Comments
Hi, thanks for reporting. Yes, that's definitely not right. I'll work on cleaning that up. Any change in behavior will have to wait for a major version update, but in the mean time can you try switching to |
Yeah, with |
filterResults runs after the latest versions are fetched, allowing you to filter on the upgraded version. |
I have same problem with filterVersion: (name, semver) => {
if (name === 'codemirror' && semver[0]?.semver === '6.65.7') {
return false
}
return true
} |
^ I was able to achieve what I wanted with this code: filterResults: (packageName, {upgradedVersion}) => {
console.log(packageName, upgradedVersion)
if (packageName === 'codemirror' && upgradedVersion === '6.65.7') {
return false
}
return true
} But the Readme is incorrect for |
Thanks, I will update the README! |
Steps to Reproduce
.ncurc.js:
Steps:
Execute ncu with this configuration file
Current Behavior
The first argument that gets passed in is the string of the version, like "^4.3.16"
Expected Behavior
The first argument that gets passed in should be the name of the package, as described in the documentation. This way the rejectVersion function is not really useful
The text was updated successfully, but these errors were encountered: