You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the latest version of npm-check-updates
I am using node >= 14.14
Currently, when setting the enginesNode option, and setting the node version on our package.json file, any package that does not specify its node version at all, will be ignored.
I think we should allow current behaviour, maybe as enginesNodeStrict and make enginesNode be more relaxed, by not skipping packages that don't specify the node version.
Are you sure you are using the latest version of npm-check-updates? --greatest was deprecated a while ago.
The given command works as expected on npm-check-updates v16.11.1.
Type on my end, sorry. Yes I'm using the latest version.
I have updated with a full package json that reproduces the issue. The key is the engines restriction. Can you please have another look?
Thank you. I'm not sure if the original implementation in #602 was flawed, or if this was a later regression, but it is definitely not working correctly for packages without an engines.node entry.
The tests may have subtly changed behavior too as they are querying the live registry, which changes over time. I updated the relevant test to use https://github.com/raineorshine/ncu-test-v2 so there is no more slippage.
npm-check-updates
node >= 14.14
Currently, when setting the
enginesNode
option, and setting the node version on ourpackage.json
file, any package that does not specify its node version at all, will be ignored.I think we should allow current behaviour, maybe as
enginesNodeStrict
and makeenginesNode
be more relaxed, by not skipping packages that don't specify the node version.The filtering happens here:
https://github.com/raineorshine/npm-check-updates/blob/3bf214997322371fbb8cafa168186bb04b900435/src/package-managers/filters.ts#L38C17-L44
Steps to Reproduce
.ncurc:
Dependencies:
Steps:
Current Behavior
no upgrade is suggested
Expected Behavior
upgrade to 4.7.17 should be suggested
The text was updated successfully, but these errors were encountered: