# What changed in @metamask/superstruct

> 3 changes in @metamask/superstruct 3 from its official release notes, upgrade guides and advisories: 2 security, 1 new APIs and options. Each one cited. Sources checked 2026-10-20. HTML: https://unstale.sh/npm/@metamask/superstruct/

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

## @metamask/superstruct 3

### Security

- Fixes deep sensitive redaction. (3.4.1) — [release notes](https://github.com/MetaMask/superstruct/releases/tag/v3.4.1)
- Adds a struct for redacting secret values from validation errors. (3.4.0) — [release notes](https://github.com/MetaMask/superstruct/releases/tag/v3.4.0)

### New APIs and options

- The type struct now supports exactOptional. (3.3.0) — [release notes](https://github.com/MetaMask/superstruct/releases/tag/v3.3.0)
