-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Request: outdated
CLI command
#1223
Comments
As an additional request, something like Yarn v2's |
Bumping this issue to ask: Is this feature being considered/worked on? This and #1372 are basically the only reasons that I haven't adopted |
My mitigation for the missing
|
Currently I'm using this script: ...
"deps:update": "npx npm-check-updates --interactive --format group"
... When I run it using ➜ bun run deps:update
$ bun x npm-check-updates --interactive --format group It'll auto-convert |
For fastest implementation, I made a PR in ncu: At the moment, it's not support bun yet for installation after dependency update. That's the main point of my PR. |
Bun v0.7.4 gets You can use it to update all your dependencies via: bun update or you can update just a single dependency via bun update <my-package-name> Thanks to @alexlamsl #4046 |
I guess this is technically "do the update" instead of "check for updates", but I wonder if that's fine? |
In my opinion, this is still a valuable issue and shouldn't be closed. |
There is bun update --dry-run but it does the wrong thing right now (it prints out every version of instead of only changes, which is nonsensical) I think we should do |
|
Agree with @jack-weilage—this should not be closed yet. Sounds like |
sounds good, we'll do |
'ls' is used for 'list', ok, a little off-beat from npm but makes sense. But I see it only available using |
pnpm's This is needed |
@saturnonearth This command is so underrated! I've been using pnpm update --latest --interactive --recursive Would be great to have something similar in Bun! ❤️ |
+1 for |
it would be nice to have something like this package natively on bun: |
i use 2 commands with
i would love to have this in bun so i can fully replace definitely a must-have for me. |
Seems like someone added a tool based on npm-check: https://www.npmjs.com/package/npm-check-bun
(I'm not affiliated with the author, found it randomly) would love to see this built-in though, but looks like a good intermediate solution |
Found another alternative FYI in case you use
Works good with workspaces and has an interactive mode. |
This is really the one thing stopping me from trying bun for package management... |
It really shouldn't be -- like others mentionned, just do "scripts": {
"update-deps": "bunx npm-check-updates --root --format group -i"
} And you're good. |
Still |
Ya I moved all my projects over to pnpm now. It got performance (not as blazing fast as bun but next best) and it got useful management cmds like outdated, up interactive Would love to have bun as the 0 compromise package manager and runtime |
1+ Please deliver "bun outdated" command, same as "pnpm outdated". |
now that windows is out, would love for reference, check out how pnpm does it. its the only thing i do daily with pnpm. |
Thanks for sharing. This is awesome. Since bun is supposed to be all-in-one it would be great if native support is still added. |
Facing the same issue as others. Bun runs my Typescript project just fine, but lack of |
…as there is no `bun outdated` script yet[1]. [1] oven-sh/bun#1223
…as there is no `bun outdated` script yet[1]. [1] oven-sh/bun#1223
…as there is no `bun outdated` script yet[1]. [1] oven-sh/bun#1223
…as there is no `bun outdated` script yet[1]. [1] oven-sh/bun#1223
voting this up. really needed feature. I don't want to update dependencies if I can't see what's outdated |
For the moment you could simply create a terminal alias for |
btw for global install you can run bunx npm-check-updates -p bun --cwd $USERPROFILE/.bun/install/global |
Another alternative is https://github.com/antfu-collective/taze |
+1 for bun outdated |
if you try to run the command it shows its reserved, so they intend to do this feature and its already scoped, its just not the priority right now. The taze alternative does cover this necessity for the time being |
Wondering why such a core feature of package management was not implemented in the first place, is there any story behind it? |
Having tried taze for a bit, it feels like Also, it would be great to ignore pinned packages, because in a repo that uses a pre-release like |
@dylan-conway Would be nice if you would take this into account in your PR. The norm for packages is to specify a version range, and usually if there is a specific version instead of a range - there's a good reason for it. |
This feature will be part of the Bun v1.1.26 release, thanks to @dylan-conway in #13461 |
I'm very happy to see a native |
@Jarred-Sumner How do I check for outdated globally installed packages!? Something like pnpm -g outdated? No mentioning here or in docs |
What is the problem this feature will solve?
Currently there is no way to view outdated packages in a project like one can with NPM's CLI.
What is the feature you are proposing to solve the problem?
A new command has to be implemented that would show a similar result (perhaps better formatted) that shows any out dated packages within a project.
What alternatives have you considered?
N/A
The text was updated successfully, but these errors were encountered: