# What changed in style-dictionary

> 9 changes in style-dictionary 5 from its official release notes, upgrade guides and advisories: 2 breaking, 1 security, 1 new APIs and options. Each one cited. Sources checked 2026-10-22. HTML: https://unstale.sh/npm/style-dictionary/

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

## style-dictionary 5

### Breaking changes

- Built-in name transforms ignore a trailing DTCG v2025.10 $root path segment, so root tokens are named after their group. (5.7.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.7.0)
- The transform preserves input precision using the minimum necessary decimals, avoids dividing values already in seconds, and no longer pads outputs with fixed decimals. (5.7.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.7.0)

### Security

- Style Dictionary - Prototype Pollution in convertTokenData utility function (5.4.4) — [security advisory](https://github.com/advisories/GHSA-VJ5C-M527-MPFF)

### New APIs and options

- Adds the sassdoc comment style, a triple-slash short comment. (5.6.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.6.0)

### Behavior and default changes

- The transform now matches DTCG duration tokens and handles object values, while remaining backwards compatible with Style Dictionary time tokens. (5.7.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.7.0)

### Fixes and other changes

- References to $root tokens are now replaced correctly when outputReferences is enabled. (5.7.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.7.0)
- The transform stringifies transition duration and delay properties, including properties that reference duration tokens. (5.7.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.7.0)
- Sorting with multiple levels of references no longer warns about filtered-out token references, allowing outputReferencesFilter to clear those warnings. (5.6.1) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.6.1)
- Resolves references containing RegExp special characters instead of leaking a raw placeholder into formatted output. (5.6.0) — [release notes](https://github.com/style-dictionary/style-dictionary/releases/tag/v5.6.0)
