# What changed in @radix-ui/react-primitive

> 5 changes in @radix-ui/react-primitive 2 from its official release notes, upgrade guides and advisories: 1 breaking, 1 security. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/@radix-ui/react-primitive/

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

## @radix-ui/react-primitive 2

### Breaking changes

- Removed the global augmentation from emitted declaration files. (2.1.7) — [release notes](https://github.com/radix-ui/primitives/blob/e46b65900b0c8243dad96dae0f1d44321fa1ff72/packages/react/primitive/CHANGELOG.md#217)

### Security

- Packages are re-released through CI with provenance attestations, enabling verification of their publishing provenance. (2.1.8) — [release notes](https://github.com/radix-ui/primitives/blob/e46b65900b0c8243dad96dae0f1d44321fa1ff72/packages/react/primitive/CHANGELOG.md#218)

### Fixes and other changes

- Optional types now allow explicit undefined for compatibility with TypeScript's exactOptionalPropertyTypes flag. (2.2.0) — [release notes](https://github.com/radix-ui/primitives/blob/e46b65900b0c8243dad96dae0f1d44321fa1ff72/packages/react/primitive/CHANGELOG.md#220)
- Reverted breaking changes that caused compatibility issues with React Server Components. (2.1.10) — [release notes](https://github.com/radix-ui/primitives/blob/e46b65900b0c8243dad96dae0f1d44321fa1ff72/packages/react/primitive/CHANGELOG.md#2110)
- Fixed errors that surfaced when consuming multiple packages together. (2.1.6) — [release notes](https://github.com/radix-ui/primitives/blob/e46b65900b0c8243dad96dae0f1d44321fa1ff72/packages/react/primitive/CHANGELOG.md#216)
