Repository navigation
add catalog support to bun (outdated|update -i) and --filter to bun update -i - #21482
Merged
Merged
Conversation
bun (update|outdated) and --filter to bun ipdatebun (update|outdated) and --filter to bun update
Collaborator
|
Updated 5:31 AM PT - Aug 5th, 2025
❌ @RiskyMH, your commit cccb037 has 4 failures in
🧪 To try this PR locally: bunx bun-pr 21482That installs a local version of the PR into your bun-21482 --bun |
RiskyMH
marked this pull request as draft
July 30, 2025 08:12
bun (update|outdated) and --filter to bun updatebun (update|outdated) and --filter to bun update -i
bun (update|outdated) and --filter to bun update -ibun (outdated|update -i) and --filter to bun update -i
|
Amazing PR, thanks so much Risky! |
RiskyMH
marked this pull request as ready for review
August 5, 2025 11:48
Contributor
Author
|
This is still a little weird code that I personally dont like too much, but its the simplest way that I could find to integrate with bun still (the dealing with many workspaces and catalogs isn't very simple with current structs and didn't want to do a major refactor rn) Also I believe lots of the tests are duplicates. |
charpeni
added a commit
to charpeni/bun
that referenced
this pull request
May 20, 2026
`-r, --recursive` is already advertised on `bun update` (from oven-sh#21482) with the meaning "Update packages in all workspaces" — the workspace-iteration semantics tracked as oven-sh#23507. Although no consumer reads it on `bun update` today, repurposing the same flag for transitive recursion would conflict with that intent and with `bun outdated --recursive` / `bun remove --recursive` which already implement workspace iteration. Introduce a dedicated `-t, --transitive` flag for the transitive CVE-remediation behavior. Restore the original `--recursive` help text on `bun update` so it remains aligned with the rest of Bun's CLI vocabulary and with oven-sh#23507's eventual implementation. This means Bun's `--transitive` corresponds to Yarn's `yarn up --recursive` (transitive recursion), while Bun's `--recursive` corresponds to pnpm's `pnpm update --recursive` (workspace iteration). Documented in docs/pm/cli/ update.mdx.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
bun update --filter="*": Filtering support like outdatedbun update -rorbun outdated -r: All workspaces like pnpmbun update --interactive --filter=*: A "Workspace" column shows which workspace each dependency belongs tobun update -rorbun outdated -r(many workspaces selected): Uses the workspace column to group catalog dependencies to reduce noisenote: needs more testing + code needs to be looked more over as potentially breaking other things
bun update -iupdates bun.lock, but not package.json #21558bun updatedoes not supportcatalogsor monorepo setups #21236updatecommand does not update package.json and definelatest(?) #21343How did you verify your code works?
manual testing as hard to make tests for the --interactive. but needs more testing