npm / @napi-rs/keyring
@napi-rs/keyring
What changed in @napi-rs/keyring 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
5 breaking1 new APIs and options1 tooling2 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@napi-rs/keyring 29 changes
Breaking changes 5
The async return type now includes null for missing entries, so callers can account for absent passwords.
Returns false only when the credential did not exist; other delete failures now throw or reject.
As a delete alias, returns false only when the credential did not exist; other delete failures now throw or reject.
Returns null only when the credential is missing; other credential-store errors now throw or reject instead of being silenced.
Returns the absent result only when the credential is missing; other credential-store errors now throw or reject instead of being silenced.
New APIs and options 1
Adds the ability to select the Linux credential store explicitly.
Tooling 1
macOS prebuilt binaries are now signed and notarized, which may affect how developers assess or deploy them.
Fixes and other changes 2
The async return type now includes null for missing entries, so callers can account for absent secrets.
The async alias is now declared as Promise<boolean> instead of Promise<unknown>, narrowing its TypeScript return type.