Skip to content

Bun not supported in update-db #77

Closed

Description

@cehenriques

update-db doesn't support Bun. The function getLatestInfo fallbacks on trying to use npm with Bun because Bun didn't had support for the info command:

if (lock.mode === 'bun') {
    //  TO-DO: No 'bun info' yet. Created issue: https://github.com/oven-sh/bun/issues/12280
    return JSON.parse(execSync(' npm info caniuse-lite --json').toString())
  }

https://github.com/browserslist/update-db/blob/main/index.js

In the meantime, Bun already has support for the info command:
https://bun.com/docs/pm/cli/info

added in Bun 1.3: https://bun.com/blog/bun-v1.3#new-commands

Activity

  1. ai commented on Dec 15, 2025

    @ai
    Member

    Do you want to send PR and save your name in the project history?

  2. cehenriques commented on Dec 16, 2025

    @cehenriques
    ContributorAuthor

    Do you want to send PR and save your name in the project history?

    Pull request opened: #78

  3. added a commit that references this issue on Dec 16, 2025
  4. ai commented on Dec 16, 2025

    @ai
    Member

    Thanks. Released in 1.2.3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions