-
Notifications
You must be signed in to change notification settings - Fork 240
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
[RRFC] make npm update useful for modern package management #571
Comments
from today's meeting, I suggest we:
|
I'm excited about the potential here! @jurre @mctofu 👋 This npm discussion rfc was created to improve the dx for developers wanting to update their deps but seems like it could be very relevant for Dependabot, ideally a drop-in-replacement for a bunch of logic in core. Do you have any thoughts on how this should work so that Dependabot to make use of it? If anything, there's quite a few years of customers feedback around npm updates enshrined in dependabot's codebase. A few things that come to mind:
|
This sounds great! Like @feelepxyz mentioned, Dependabot does tend to get into some more complicated allowed/ignored version configurations. We can have a mix of user supplied ranges, user preference to ignore patch, minor or major updates as well as specific versions being ignored (so we won't keep opening the same PR if closed by the user). It would also be helpful to have structured output to describe what changed or what went wrong. Knowing what changed lets us create description PR messages (bumping these deps from version x to version y). Knowing what's wrong without needing to parse it out from text makes our error detection more reliable. We do also have quite a bit of complexity in Dependabot as a result of needing to patch up the manifest files to work in Dependabot's environment (rewriting ssh deps to https for example). It would help if there were additional options we could use that would bypass that need but that may be out of scope for this issue. |
Also additional context on what Cargo does: |
@darcyclarke curious if there's been progress on thinking about this/discussing this? |
@darcyclarke should this be closed? Not sure how to parse the lack of reply 😅 |
Motivation ("The Why")
Today, I wouldn't be surprised if updating packages is more common than installing packages. The
npm install
DX is pretty good, butnpm update
is sorely lacking to the point that we've collectively built a lot of tools to try to help.IMO the growth of tooling in this space is a result of the lack of strong update management being a norm in the package management tools we rely on at the root. I'd really like to see npm be able to support the average (modern) user's dependency update requirements, rather than those users reach to third-party tooling to achieve good dependency updates.
Example
How
Current Behaviour
Desired Behaviour
npm update
-y
flag for auto-apply-y
flag is missinga different way to look at this:
npm update -y
package.json
if anything changesnpm update
would have already updated everything.yet another way to look at this:
npm update
with limited additional configuration to power their JavaScript update tooling.References
The text was updated successfully, but these errors were encountered: