Skip to content

Update sdk-internal to 0.2.0-main.1149 - #24005

Merged
dani-garcia merged 1 commit into
mainfrom
sdlc/sdk-update
Oct 22, 2026
Merged

dani-garcia merged 1 commit into
mainfrom
sdlc/sdk-update

Conversation

@bw-ghapp

@bw-ghapp bw-ghapp Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Automated SDK Update

This PR updates the SDK packages to version 0.2.0-main.1149.

Changes

  • @bitwarden/sdk-internal: 0.2.0-main.1141 → 0.2.0-main.1149
  • @bitwarden/commercial-sdk-internal: 0.2.0-main.1141 → 0.2.0-main.1149

What's Changed in SDK

Raw changelog
- Update API bindings to 4aa2373be206cc2949f928de69648f467ed4f811 (#1640)
- [PAM-420] (4a) Add Cipher::change_login_password for password changes outside a user session (#1654)
- [PAM-422] (4c) PAM: access connector credential resolution and target integrations (#1660)
- [PM-42985] refactor: Adopt impl_wire_string! for SealedOpenOrgInviteData (#1647)
- [PM-39336] perf: Reduce IPC client copies and retained messages (#1643)
- [PM-44162] Add investigate-crypto-bug skill (#1529)

Links

@bw-ghapp bw-ghapp Bot added automated pr PR created by workflow or other automation t:deps Change Type - Dependencies labels Oct 20, 2026
@claude

claude Bot commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @bw-ghapp[bot]'s task in 3m 19s —— View job


SDK bump evaluated

0.2.0-main.1141 → 0.2.0-main.1149 for both @bitwarden/sdk-internal and @bitwarden/commercial-sdk-internal (pins match; lint:sdk-internal-versions constraint satisfied).

sdk-internal range: c100ac3e..29089fe2 — 6 commits.

Surface diff: 0 removed, 4 added, 0 mutated in sdk-internal (2415 → 2419 declarations); 1 mutated in commercial-sdk-internal (2787 → 2791).

Compile-time breaks

None found. The verifying type check passed — npm run test:types exited 0 against the bumped 0.2.0-main.1149 packages as installed on this branch, with all library projects and tsc-strict (4534 strict files) clean and no error TS diagnostics.

Each changed symbol was greppped repo-wide for the bare name and has no call site:

Symbol Change Call sites in clients
ChangeLoginPasswordError (+ .name, .variant) added, new owner none
isChangeLoginPasswordError added, new none
TargetSystemKind mutated (commercial) none

The additions all land on new owners, so no existing construction site gains a required member. The TargetSystemKind mutation is a union narrowing — "entra" | "mssql" | "custom_script" | "unknown" → "entra" | "custom_script" | "unknown" — which would break any site passing "mssql", but git grep -i mssql and git grep TargetSystemKind both return zero hits across apps/, libs/ and bitwarden_license/.

Step 7's three uncovered sets add nothing: the 26 jest.mock("@bitwarden/sdk-internal") factory mocks, the 26 apps/**/*.spec.ts files that no project type-checks, and the @ts-strict-ignore files under apps//bitwarden_license/ contain none of the four symbols. No class, constructor or accessor changed, so jest-sdk-client-factory.ts and mock-sdk.service.ts are unaffected.

The 29 changeLoginPassword grep hits are a pre-existing, unrelated TypeScript ChangeLoginPasswordService (the autofill change-password-URL service) — not the SDK's new Rust method.

Runtime considerations

1. IPC sender must not retain the message — bitwarden/sdk-internal#1643 (5b8443a8)

JsCommunicationBackend::send changed from taking message: OutgoingMessage to message: &JsValue, and now calls drop(OutgoingMessage::try_from_js_value(message)) after the returned promise settles. The new doc comment states the contract: "The SDK frees message once the returned promise settles, so it must not be kept."

The TypeScript signature is unchanged (send(message: OutgoingMessage): Promise<void>), so nothing fails to compile — but any implementation that stashed the message and read it later would now hit a freed wasm pointer. I checked all seven implementations, and every one reads destination, payload and topic synchronously inside the promise, copying the payload with [...message.payload]:

  • apps/browser/src/platform/ipc/ipc-background.service.ts:35 (delegates and awaits)
  • apps/browser/src/platform/ipc/transports/web-ipc.transport.ts:60
  • apps/browser/src/platform/ipc/transports/desktop-ipc.transport.ts:60
  • apps/cli/src/platform/services/cli-ipc.service.ts:82 and cli-desktop-ipc.transport.ts:63
  • apps/desktop/src/platform/services/ipc-renderer.service.ts:35 and ipc.main.service.ts:44
  • apps/web/src/app/platform/ipc/web-ipc.service.ts:40
  • libs/common/src/platform/ipc/noop-ipc.service.ts:24 (no-op)

No retention anywhere, so no fix is needed — but this is a contract worth knowing about for any future sender, since violating it compiles cleanly and fails only at runtime.

2. TargetSystemKind dropped the "mssql" wire value — bitwarden/sdk-internal#1660 (55beb95b)

A wire-value removal from a string union. It is inert here today (no consumer), but a server or connector still emitting "mssql" would no longer map to a known kind. Flagging it as a heads-up for the PAM work rather than as a defect in this repo. Note the upstream PR body says "Purely additive. No breaking changes," which does not hold for this TypeScript union.

Everything else in range — confirmed safe

  • 18ca88e5 — #1640 API-binding regeneration (sponsorships, Slack/Teams integrations, PAM access-connector models, send metadata). Internal Rust models only; nothing reached the .d.ts.
  • 54158954 — #1654 Cipher::change_login_password plus TryFrom<CipherMiniResponseModel> for Cipher. The method carries no #[wasm_bindgen], so it is not callable from TypeScript; only its error type is exported. Purely additive, nothing to adopt. The decrypt/re-encrypt stays inside the SDK.
  • 55beb95b — #1660 new bitwarden-access-connector modules (Entra, scripting, resolver), all #[allow(dead_code)] until the run loop lands. Only the TargetSystemKind hunk above touches the surface.
  • d1714d2e — #1647 swaps hand-written wasm ABI impls for bitwarden_ffi::impl_wire_string!. I read the macro: it sets type Wire = String and reuses String's ABI, identical to the code it replaced. Serialization is unchanged, and SealedOpenOrgInviteData appears nowhere in the surface diff.
  • 5b8443a8 — #1643 IPC copy/retention reduction. Surface unchanged; the behavioral contract is item 1 above.
  • 29089fe2 — #1529 adds a .claude skill doc. No shipped code.

Commit

No commit — nothing needed fixing. The branch is unchanged from 7a637a4; the version pins are the bump's own output and were left alone.


· branch sdlc/sdk-update

@codecov

codecov Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.41%. Comparing base (2e473d7) to head (e7dbfa5).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #24005   +/-   ##
=======================================
  Coverage   59.41%   59.41%           
=======================================
  Files        4704     4704           
  Lines      148925   148925           
  Branches    23758    23758           
=======================================
  Hits        88477    88477           
  Misses      54283    54283           
  Partials     6165     6165           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 4c32e4b to c324cc4 Compare October 21, 2026 09:19
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1136 Update sdk-internal to 0.2.0-main.1137 Oct 21, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from c324cc4 to b54668d Compare October 21, 2026 09:28
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1137 Update sdk-internal to 0.2.0-main.1138 Oct 21, 2026
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1138 Update sdk-internal to 0.2.0-main.1139 Oct 21, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch 2 times, most recently from b635161 to 12abbc1 Compare October 21, 2026 18:01
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1139 Update sdk-internal to 0.2.0-main.1140 Oct 21, 2026
@bw-ghapp
bw-ghapp Bot requested a review from a team as a code owner October 21, 2026 18:17
@bw-ghapp
bw-ghapp Bot requested a review from gbubemismith October 21, 2026 18:17
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 0818e0c to 462e1ca Compare October 21, 2026 18:42
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1140 Update sdk-internal to 0.2.0-main.1141 Oct 21, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 775df39 to 244d364 Compare October 21, 2026 20:05
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1141 Update sdk-internal to 0.2.0-main.1143 Oct 21, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 244d364 to db6be03 Compare October 21, 2026 23:25
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1143 Update sdk-internal to 0.2.0-main.1144 Oct 21, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from d99910f to 36ef5ef Compare October 22, 2026 00:27
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1144 Update sdk-internal to 0.2.0-main.1145 Oct 22, 2026
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1145 Update sdk-internal to 0.2.0-main.1146 Oct 22, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 9cd4342 to 7a637a4 Compare October 22, 2026 08:22
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 7a637a4 to e7dbfa5 Compare October 22, 2026 11:41
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1146 Update sdk-internal to 0.2.0-main.1149 Oct 22, 2026
@dani-garcia
dani-garcia merged commit 18d6d9f into main Oct 22, 2026
160 of 162 checks passed
@dani-garcia
dani-garcia deleted the sdlc/sdk-update branch October 22, 2026 12:26
@djsmith85 djsmith85 added browser Browser Extension desktop Desktop Application cli CLI Application web labels Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated pr PR created by workflow or other automation browser Browser Extension cli CLI Application desktop Desktop Application t:deps Change Type - Dependencies web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants