-
We've hit some bumps while using update-notifier in the last mile of I'd like for us to discuss and come up with an actionable decision we can work on in time for v7. Possible actions:
Related previous discussions: |
Beta Was this translation helpful? Give feedback.
Replies: 12 comments
-
A fourth option would be to remove it, and work like most npm modules do - only update when requested. |
Beta Was this translation helpful? Give feedback.
-
I've found it useful to have all team members use the same version of If some engineers respect and pay attentiont to update notifications and others don't then that leads to divergent versions in a team. |
Beta Was this translation helpful? Give feedback.
-
i follow a similar strategy with my team and even went as far as contributing a way to disable the notifier. i add this setting to the i encourage my team to simply use the version installed with node, which we manage with nvm. nvm understandably doesn't yet support managing npm independently of node, but even if that were available to decouple us from the node version, i wouldnt want npm encouraging the team to get out of sync. |
Beta Was this translation helpful? Give feedback.
-
oh yeah of course 😅 added it to the list! thanks! |
Beta Was this translation helpful? Give feedback.
-
I think "work like most npm modules do" is not really ideal, since npm is not most npm modules. While it is not universally appreciated, this feature does provide a valuable feature for a lot of users who might not otherwise know that a bug or security issue has been fixed in the latest release. Over the last few years that it's been part of the CLI, we've seen a pretty significant reduction in bugs posted for things that are fixed in newer releases. That being said, regardless of how we approach this, I'd like to see these ideas explored in an RFC:
|
Beta Was this translation helpful? Give feedback.
-
The last bullet point seems particularly interesting, since it would let private registries return a desired version as well. |
Beta Was this translation helpful? Give feedback.
-
Oh, good point! I hadn't considered that, but yes, it would provide some interesting hooks to help people stay in sync rather than nudging them out of sync. |
Beta Was this translation helpful? Give feedback.
-
while that is interesting, i'm not sure the registry would be the best place to specify version either. at least in my case, we can vary across projects, but i imagine the registry doesn't know which project the requests are on behalf of (excuse my ignorance if this isn't true). our variation is most often because of limitations of the host we are deploying to, since we try to use the same node version when developing. while we do stay up to date pretty well, some of the hosting we use only currently supports node v10, while other projects are able to leverage v12. while i can buy the argument that we could just be consistent across all projects, regardless of node version, that still comes with additional complication. with the nvm approach mentioned above, along with using avn locally, we are better automated for actually staying in sync than a prompt can do. in addition, the nvm approach ensures that we are also using the same version on CI without additional configuration and maintenance. |
Beta Was this translation helpful? Give feedback.
-
@travi In those cases, I assume you'd either set The registry does know what scope you're making requests for, but not which project specifically. So we could in theory make this an org-level config option server-side. |
Beta Was this translation helpful? Give feedback.
-
yep, that is what i do for our projects currently, but just wanted to provide context for that use case. |
Beta Was this translation helpful? Give feedback.
-
Action item from the OpenRFC call:
|
Beta Was this translation helpful? Give feedback.
-
folllowing up with #146 |
Beta Was this translation helpful? Give feedback.
folllowing up with #146