# What changed in @owf/identity-common

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

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

## @owf/identity-common 0.5

### Breaking changes

- The CommonJS build is removed; 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/identity-common/CHANGELOG.md#050)

## @owf/identity-common 0.4

### Breaking changes

- Base64 and base64url now share one codec; decoding input with an impossible length throws instead of returning a corrupt byte. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Invalid base64url, UTF-8 or JSON in a JWT header or payload now throws `IdentityCommonException('Invalid JWT as input')` without exposing parser details. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- These APIs must now be available in the environment for `stringToBytes` and `bytesToString`. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)

### New APIs and options

- Accepts `{ fatal: true }` to throw on invalid UTF-8 instead of replacing it. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Adds a function for decoding JSON from base64url input. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Accepts `{ fatal: true }` to throw on invalid UTF-8 instead of replacing it. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Adds a function to convert a date to seconds. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Adds a function for extracting media types from `Content-Type` header values. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Adds a function for comparing `Content-Type` values against expected media types, ignoring casing and parameters. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Adds a function for working with the current time in seconds. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
- Adds a function to convert seconds to a date. (0.4.0) — [release notes](https://github.com/openwallet-foundation-labs/identity-common-ts/blob/4f0b8736a475d2b457d8c7d770df0e65187661d9/packages/identity-common/CHANGELOG.md#040)
