Skip to content

bun update --latest doesn't follow exact versions syntax of npm update --save #19091

Open
@deadcoder0904

Description

@deadcoder0904

What version of Bun is running?

1.2.10+db2e7d7f7

What platform is your computer?

Darwin 24.4.0 arm64 arm

What steps can reproduce the bug?

  1. Create new repo & do bun add -D @biomejs/biome@beta
  2. Change the biome dependency to be exact now: "@biomejs/biome": "2.0.0-beta.1" without ^
  3. Try bun update --latest and see it'll update the beta dependency to latest like 1.9.4 when it technically shouldn't. This is how npm update --save works.
bun update v1.2.10 (db2e7d7f)

↑ @biomejs/biome 2.0.0-beta.1 → 1.9.4

2 packages installed [5.31s]

Blocked 1 postinstall. Run `bun pm untrusted` for details.

What is the expected behavior?

Use the exact version if I specify exact version in package.json

What do you see instead?

Updated to latest

Additional information

Its annoying since biome@beta has a feature that makes my VSCode go bonkers otherwise if I used biome@latest & I have a habit of updating packages daily on personal projects so I have to perform bun add -D @biomejs/biome@beta every time I do bun update --latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbun installSomething that relates to the npm-compatible client

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions