---
title: "@midnight-ntwrk/wallet-sdk-hd 4.0.0 Breaking Changes on npm"
description: "What each @midnight-ntwrk/wallet-sdk-hd release removed, renamed or changed: 4 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@midnight-ntwrk/wallet-sdk-hd
last_updated: 2026-12-04
---

# @midnight-ntwrk/wallet-sdk-hd breaking changes

@midnight-ntwrk/wallet-sdk-hd 4.0.0 (November 5, 2026) is its newest release with breaking changes, 2 of them. The first: Removed Roles.Metadata. Every breaking API change we have recorded in @midnight-ntwrk/wallet-sdk-hd on npm: 4 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.0`, released November 5, 2026. [Source repository](https://github.com/midnightntwrk/midnight-wallet)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [3.0.3](#v-3-0-3) to [4.0.0](#v-4-0-0): 2 breaking changes in 1 version.

## @midnight-ntwrk/wallet-sdk-hd 4.0.0 breaking changes

@midnight-ntwrk/wallet-sdk-hd 4.0.0, released November 5, 2026: 2 breaking changes.

- **Removed** `Roles.Metadata`  

Role 4 now derives ECDSA unshielded keys. Code that names Roles.Metadata must name Roles.EcdsaUnshielded or the value 4. [github.com](https://github.com/midnightntwrk/midnight-wallet/releases/tag/%40midnightntwrk/wallet-sdk-hd%404.0.0)
- **Signature changed** `Roles`  

Was const Roles: {readonly NightExternal: 0; readonly NightInternal: 1; readonly Dust: 2; readonly Zswap: 3; readonly Metadata: 4;}; now const Roles: {readonly NightExternal: 0; readonly NightInternal: 1; readonly Dust: 2; readonly Zswap... [npmjs.com](https://www.npmjs.com/package/@midnight-ntwrk/wallet-sdk-hd/v/4.0.0)

## @midnight-ntwrk/wallet-sdk-hd 3.0.3 breaking changes

@midnight-ntwrk/wallet-sdk-hd 3.0.3, released June 22, 2026: 2 breaking changes.

- **Behavior changed** `deriveKeyAt`  

deriveKeyAt now returns keyOutOfBounds for invalid path components instead of throwing the raw invalid child index error from @scure/bip32. Code that catches or matches that thrown error must handle the new result. [github.com](https://github.com/midnightntwrk/midnight-wallet/releases/tag/%40midnightntwrk/wallet-sdk-hd%403.0.3)
- **Behavior changed** `deriveKeysAt`  

deriveKeysAt now returns keyOutOfBounds for invalid path components instead of throwing the raw invalid child index error from @scure/bip32. Code that catches or matches that thrown error must handle the new result. [github.com](https://github.com/midnightntwrk/midnight-wallet/releases/tag/%40midnightntwrk/wallet-sdk-hd%403.0.3)

## Related packages

- [@midnight-ntwrk/wallet-sdk-facade](https://since.dev/packages/npm/@midnight-ntwrk/wallet-sdk-facade.md)
- [@midnight-ntwrk/wallet-sdk-dust-wallet](https://since.dev/packages/npm/@midnight-ntwrk/wallet-sdk-dust-wallet.md)
- [@midnight-ntwrk/wallet-sdk-shielded](https://since.dev/packages/npm/@midnight-ntwrk/wallet-sdk-shielded.md)
- [@midnight-ntwrk/wallet-sdk-unshielded-wallet](https://since.dev/packages/npm/@midnight-ntwrk/wallet-sdk-unshielded-wallet.md)
- [@midnight-ntwrk/wallet-sdk-address-format](https://since.dev/packages/npm/@midnight-ntwrk/wallet-sdk-address-format.md)
- [@midnight-ntwrk/compact-runtime](https://since.dev/packages/npm/@midnight-ntwrk/compact-runtime.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
