Skip to content

build(deps): bump @backblaze-labs/b2-sdk from 0.3.0 to 0.5.0 - #269

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backblaze-labs/b2-sdk-0.5.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/backblaze-labs/b2-sdk-0.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown

Bumps @backblaze-labs/b2-sdk from 0.3.0 to 0.5.0.

Release notes

Sourced from @​backblaze-labs/b2-sdk's releases.

v0.5.0

Added

  • Targeted single-file upload connection-fault retry opt-out. retryUploadConnectionFaults defaults to true on client and per-upload options; per-call values take precedence. Set it to false to surface single-file POST network faults and pre-response-header timeouts while retaining server/auth/upload-URL retries and backoff. A replay can create duplicate versions retained by Object Lock. Multipart parts still replace the same part number and retain their existing retry policy. Success-body failures and body-read timeouts remain independently controlled by retryResponseBodyFailures (default false).

Changed

  • Upload POST connection failures now retry by default. BEHAVIOR CHANGE: single-file and multipart-part uploads retry connection faults with a fresh upload URL. If the first single-file POST reached B2 before the connection failed, retrying can create duplicate versions, including in versioned or Object Lock buckets. Set retry: { maxRetries: 0 } on an upload to disable retries, including the 503, BadAuthTokenError, and bad-upload-URL retries that v0.4.0 already performed. Setting it on the client also disables client-level retries. To disable only the single-file connection-fault retry while keeping the others, set retryUploadConnectionFaults: false (see Added above). retryResponseBodyFailures remains false by default and separately controls replay after an unreadable success response body. See MIGRATION.md.
  • BREAKING: B2Client.accountInfo is now a prototype accessor. It is no longer an own property, so { ...client }, Object.keys(client), Object.assign({}, client), Object.hasOwn(client, 'accountInfo'), and Object.getOwnPropertyDescriptor(client, 'accountInfo') no longer see it. Assigning client.accountInfo throws in strict mode, and a subclass redeclaring accountInfo as a field fails with TypeScript TS2610. client.accountInfo and 'accountInfo' in client still work on the instance (not through a Proxy wrapper — see the next entry). Read client.accountInfo directly, and pass a custom store through the constructor's accountInfo option.
  • BREAKING: SDK objects reject Proxy wrappers. Because credentials now live in private (#) fields, calling a method that reads those fields — which is most methods — on B2Client, Bucket, B2Object, InMemoryAccountInfo, FileAccountInfo, or an upload URL pool through a Proxy wrapper (for example Vue reactive(client)) throws TypeError: Cannot read private member. Code that worked in v0.4.0, such as reactive(new B2Client(options)).authorize(), now throws. A method that touches only ordinary state (for example FileAccountInfo.flushed()) is unaffected. Keep SDK instances outside reactive proxy wrappers and call methods on the raw instance; see MIGRATION.md.

Fixed

  • Large-file uploads record whole-file SHA-1 metadata and preserve resume integrity. Sliceable sources get a computed large_file_sha1 unless the caller supplies a value. Resume matching compares computed and caller-provided digests, rejects differing known values with file-info-mismatch, and remains compatible when either side lacks the digest. Prehash reads honor cancellation before each slice and during pending reads.

Security

  • SDK objects hide application keys and authorization tokens in diagnostics. Logging, inspecting, or serializing clients, bucket and file handles, auth stores, and upload URL pools no longer prints stored credentials. Explicit authorize() and getAuth() responses still contain the real token, and file auth caches still persist it. Methods called through a Proxy wrapper (for example Vue reactive(client)) now throw Cannot read private member, the same constraint as the Partner client. Keep these SDK instances outside reactive proxy wrappers.
  • Updated development tooling and transitive dependencies, with an expiring allowlist entry for the dev-only minimatch advisory.

v0.4.0

Upgrading across the v4 native-API changes below? See MIGRATION.md for per-change migration steps.

Added

... (truncated)

Changelog

Sourced from @​backblaze-labs/b2-sdk's changelog.

0.5.0 - 2026-11-06

Added

  • Targeted single-file upload connection-fault retry opt-out. retryUploadConnectionFaults defaults to true on client and per-upload options; per-call values take precedence. Set it to false to surface single-file POST network faults and pre-response-header timeouts while retaining server/auth/upload-URL retries and backoff. A replay can create duplicate versions retained by Object Lock. Multipart parts still replace the same part number and retain their existing retry policy. Success-body failures and body-read timeouts remain independently controlled by retryResponseBodyFailures (default false).

Changed

  • Upload POST connection failures now retry by default. BEHAVIOR CHANGE: single-file and multipart-part uploads retry connection faults with a fresh upload URL. If the first single-file POST reached B2 before the connection failed, retrying can create duplicate versions, including in versioned or Object Lock buckets. Set retry: { maxRetries: 0 } on an upload to disable retries, including the 503, BadAuthTokenError, and bad-upload-URL retries that v0.4.0 already performed. Setting it on the client also disables client-level retries. To disable only the single-file connection-fault retry while keeping the others, set retryUploadConnectionFaults: false (see Added above). retryResponseBodyFailures remains false by default and separately controls replay after an unreadable success response body. See MIGRATION.md.
  • BREAKING: B2Client.accountInfo is now a prototype accessor. It is no longer an own property, so { ...client }, Object.keys(client), Object.assign({}, client), Object.hasOwn(client, 'accountInfo'), and Object.getOwnPropertyDescriptor(client, 'accountInfo') no longer see it. Assigning client.accountInfo throws in strict mode, and a subclass redeclaring accountInfo as a field fails with TypeScript TS2610. client.accountInfo and 'accountInfo' in client still work on the instance (not through a Proxy wrapper — see the next entry). Read client.accountInfo directly, and pass a custom store through the constructor's accountInfo option.
  • BREAKING: SDK objects reject Proxy wrappers. Because credentials now live in private (#) fields, calling a method that reads those fields — which is most methods — on B2Client, Bucket, B2Object, InMemoryAccountInfo, FileAccountInfo, or an upload URL pool through a Proxy wrapper (for example Vue reactive(client)) throws TypeError: Cannot read private member. Code that worked in v0.4.0, such as reactive(new B2Client(options)).authorize(), now throws. A method that touches only ordinary state (for example FileAccountInfo.flushed()) is unaffected. Keep SDK instances outside reactive proxy wrappers and call methods on the raw instance; see MIGRATION.md.

Fixed

  • Large-file uploads record whole-file SHA-1 metadata and preserve resume integrity. Sliceable sources get a computed large_file_sha1 unless the caller supplies a value. Resume matching compares computed and caller-provided digests, rejects differing known values with file-info-mismatch, and remains compatible when either side lacks the digest. Prehash reads honor cancellation before each slice and during pending reads.

Security

  • SDK objects hide application keys and authorization tokens in diagnostics. Logging, inspecting, or serializing clients, bucket and file handles, auth stores, and upload URL pools no longer prints stored credentials. Explicit authorize() and getAuth() responses still contain the real token, and file auth caches still persist it. Methods called through a Proxy wrapper (for example Vue reactive(client)) now throw Cannot read private member, the same constraint as the Partner client. Keep these SDK instances outside reactive proxy wrappers.
  • Updated development tooling and transitive dependencies, with an expiring allowlist entry for the dev-only minimatch advisory.

[0.4.0] - 2026-09-01

... (truncated)

Commits
  • a75d352 Release 0.5.0 (#366)
  • d549068 0.4.0
  • 6b7f88d version: resolve release-channel User-Agent version (#288)
  • ab62c79 docs: record native docs repo recheck (#287)
  • d7ce871 test(partner): skip backup v1 pin when account not entitled
  • 95cbc91 fix(partner): list_group_members returns a single object
  • 2070301 fix(partner): model stats timestamps and standing per live B2
  • d69dcf4 fix(partner): b2Stats counters are numbers, not strings
  • 3708349 test(live): wire master credential matrix (#286)
  • acf5213 fix: clean B2-to-local download staging root (#285)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@backblaze-labs/b2-sdk](https://github.com/backblaze-labs/b2-sdk-typescript) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/backblaze-labs/b2-sdk-typescript/releases)
- [Changelog](https://github.com/backblaze-labs/b2-sdk-typescript/blob/main/CHANGELOG.md)
- [Commits](backblaze-labs/b2-sdk-typescript@v0.3.0...v0.5.0)

---
updated-dependencies:
- dependency-name: "@backblaze-labs/b2-sdk"
  dependency-version: 0.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Author

Labels

The following labels could not be found: deps. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@goanpeca

Copy link
Copy Markdown
Contributor

Superseded by #272, which applies this update together with the other open Dependabot updates.

@goanpeca goanpeca closed this Nov 24, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 24, 2026

Copy link
Copy Markdown
Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/backblaze-labs/b2-sdk-0.5.0 branch November 24, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant