# What changed in @owf/crypto

> 7 changes in @owf/crypto 0.2 to 0.5 from its official release notes, upgrade guides and advisories: 4 breaking, 2 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@owf/crypto/

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

## @owf/crypto 0.5

### Breaking changes

- The CommonJS build is dropped; only ESM is published, avoiding the dual-package hazard that caused instanceof checks to fail in single-module-system runtimes. (0.5.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#050)

## @owf/crypto 0.4

### Breaking changes

- Decoding base64url input with an impossible length, such as a single trailing character, now throws instead of returning a corrupt byte. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#040)
- JWT decoding builds on the shared encoding layers, making JSON decoded from base64url strict about UTF-8. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#040)
- The environment must provide TextEncoder and TextDecoder because string encoding and decoding now use them. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#040)

## @owf/crypto 0.2

### New APIs and options

- Adds a package-specific exception class extending IdentityException, replacing plain Error throws. (0.2.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#020)
- Adds wrappers for ES256/384/512 key generation, signing, and verification, plus SHA-256/384/512 hash functions. (0.2.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#020)

### Tooling

- Adds CommonJS builds for the package. (0.2.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/crypto/CHANGELOG.md#020)
