@backblaze-labs/b2-sdk - v0.2.0
    Preparing search index...

    Variable VERSIONConst

    VERSION: string = pkg.version

    Current SDK version. Read directly from package.json so there is no second-source-of-truth to keep in sync — bumping version in package.json automatically propagates here, into the SDK's User-Agent header, and into the published artifact.

    Works in every runtime the SDK targets:

    • Node 22.3+, Bun, Deno: native JSON import attributes.
    • Vite builds: the JSON import is replaced with a version-only shim so published runtime chunks do not carry unrelated package metadata.
    • Vitest browser mode: Vite handles the import the same way as build.