# What changed in @napi-rs/keyring

> 9 changes in @napi-rs/keyring 2 from its official release notes, upgrade guides and advisories: 5 breaking, 1 new APIs and options. Each one cited. Sources checked 2026-11-30. HTML: https://unstale.sh/npm/@napi-rs/keyring/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @napi-rs/keyring 2

### Breaking changes

- The async return type now includes null for missing entries, so callers can account for absent passwords. (2.1.1) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.1.1)
- Returns false only when the credential did not exist; other delete failures now throw or reject. (2.0.0) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.0.0)
- As a delete alias, returns false only when the credential did not exist; other delete failures now throw or reject. (2.0.0) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.0.0)
- Returns null only when the credential is missing; other credential-store errors now throw or reject instead of being silenced. (2.0.0) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.0.0)
- Returns the absent result only when the credential is missing; other credential-store errors now throw or reject instead of being silenced. (2.0.0) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.0.0)

### New APIs and options

- Adds the ability to select the Linux credential store explicitly. (2.1.0) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.1.0)

### Tooling

- macOS prebuilt binaries are now signed and notarized, which may affect how developers assess or deploy them. (2.1.2) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.1.2)

### Fixes and other changes

- The async return type now includes null for missing entries, so callers can account for absent secrets. (2.1.1) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.1.1)
- The async alias is now declared as Promise<boolean> instead of Promise<unknown>, narrowing its TypeScript return type. (2.0.0) — [release notes](https://github.com/Brooooooklyn/keyring-node/releases/tag/v2.0.0)
