-
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
[FR] Introduce safe
option
#1034
Comments
Thanks for the idea!
I will say that As for specific options like module.exports = {
target: (name, version) =>
version.startsWith('^') ? 'minor'
: version.startsWith('~') ? 'patch'
: 'latest'
} This would be the most flexible option for users with more complex upgrade policies. |
Ohh cool, just learned about the ncurc file 🎉! Maybe we should then be more generic in deferring the options of the parameters to what a function in that file returns? 🤔 The downside to running multiple commands apart from time etc is that if you want to upgrade with |
OK cool, I can try to look into this in the coming week. |
Yes, you can just add function support to You don't need to change I recommend that the
The biggest change is that you will need to call a different
These are then mapped across the package list: npm-check-updates/src/lib/queryVersions.ts Line 111 in 5c979d1
You should be able to map a factory function that creates the correct Let me know if I can help in any way :). |
Sorry was swamped with meetings before my upcoming time off - so I wont be able to provide a PR until in two weeks, if anyone else is up for it, please go ahead, otherwise I'll come back to this then 😃 |
OK finally had a bit of time to get into it. Though target seems way more complicated to wrap my head around than filter. Drafted #1050 in case you are interested to also allow functions for filter 😄 |
Mhh ok - started of with the first initial commit but am not very happy yet how far I got before hitting a wall - need your help / hand holding a bit to continue from here 🤔 |
I am currently using the
--filterVersion
option in order to run the checks only on non-pinned versions.However I need to run it twice since
gives me not exactly want I want.
I actually don't want to bump a
minor
(^
) on @typescript-eslint/parser but only apatch
(~
)So instead I changed that to
Which gives me the "correct" minor and patches for the ones I want and skips pinned versions.
Though I wonder if we could introduce a new target version like
safe
(naming is hard, maybe you have a better one) that does that automatically:What do you think?
EDIT: Apparently I missed #581 / #950 - however if you like I can try to take a stab at it 👍🏻
Originally posted by @Primajin in #958 (comment)
The text was updated successfully, but these errors were encountered: