Skip to content

Bump style-dictionary from 3.9.2 to 5.7.1 - #201

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/style-dictionary-5.7.1
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/style-dictionary-5.7.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 27, 2026

Copy link
Copy Markdown
Contributor

Bumps style-dictionary from 3.9.2 to 5.7.1.

Release notes

Sourced from style-dictionary's releases.

v5.7.1

Patch Changes

  • c3c37e1: Protect convertTokenData to output 'object' from another prototype pollution vulnerability (GHSA-m4pr-rgwp). In this case, the attack vector was by placing 2 tokens and letting the 2nd descend into the 1st one, and then polluting the object prototype in that descension.

v5.7.0

Minor Changes

  • 2f0b0ff: Add support for DTCG v2025.10 duration token values, while remaining backwards compatible for Style Dictionary time tokens.

    The time/seconds transform now also matches duration tokens and handles their object values, and transition/css/shorthand stringifies the duration and delay properties of a transition, including when those properties reference duration tokens.

    {
      "fast": {
        "$type": "duration",
        "$value": { "value": 200, "unit": "ms" }
      },
      "fade": {
        "$type": "transition",
        "$value": {
          "duration": "{fast}",
          "delay": { "value": 0, "unit": "ms" },
          "timingFunction": "ease-in-out"
        }
      }
    }

    time/seconds now uses the minimum amount of decimals that keeps the precision of the input, instead of a fixed two. A 1ms duration resolves to 0.001s instead of being rounded away to 0.00s, and a value that needs no decimals is no longer padded with them. A value that is already in seconds, e.g. "0.36s", is also no longer divided a second time into "0.00s".

    Note that dropping the fixed two decimals changes existing output: a time token of 500 now transforms to 0.5s rather than 0.50s, and 1000 to 1s rather than 1.00s. The values are equivalent on every platform this transform targets.

Patch Changes

  • 871dbfb: Ignore a trailing DTCG v2025.10 $root path segment in the built-in name transforms, so a root token is named after its group (e.g. --color-text-warning instead of --color-text-warning-root). Also fix outputReferences not replacing references to $root tokens.

v5.6.1

Patch Changes

  • 7a80396: Fix sortByReference collecting "filtered out token references" warnings while sorting. With multiple levels of references, it reported references of tokens that are never output, and outputReferencesFilter could not clear those warnings.

v5.6.0

Minor Changes

  • 2f28731: Add "sassdoc" comment style (a triple-slash short comment)

Patch Changes

  • 76074dc: Fix outputReferences leaking a raw {group.$root} placeholder into formatted output instead of resolving it, when a reference path segment (e.g. a DTCG $root token) contains a RegExp special character.

... (truncated)

Changelog

Sourced from style-dictionary's changelog.

5.7.1

Patch Changes

  • c3c37e1: Protect convertTokenData to output 'object' from another prototype pollution vulnerability (GHSA-m4pr-rgwp). In this case, the attack vector was by placing 2 tokens and letting the 2nd descend into the 1st one, and then polluting the object prototype in that descension.

5.7.0

Minor Changes

  • 2f0b0ff: Add support for DTCG v2025.10 duration token values, while remaining backwards compatible for Style Dictionary time tokens.

    The time/seconds transform now also matches duration tokens and handles their object values, and transition/css/shorthand stringifies the duration and delay properties of a transition, including when those properties reference duration tokens.

    {
      "fast": {
        "$type": "duration",
        "$value": { "value": 200, "unit": "ms" }
      },
      "fade": {
        "$type": "transition",
        "$value": {
          "duration": "{fast}",
          "delay": { "value": 0, "unit": "ms" },
          "timingFunction": "ease-in-out"
        }
      }
    }

    time/seconds now uses the minimum amount of decimals that keeps the precision of the input, instead of a fixed two. A 1ms duration resolves to 0.001s instead of being rounded away to 0.00s, and a value that needs no decimals is no longer padded with them. A value that is already in seconds, e.g. "0.36s", is also no longer divided a second time into "0.00s".

    Note that dropping the fixed two decimals changes existing output: a time token of 500 now transforms to 0.5s rather than 0.50s, and 1000 to 1s rather than 1.00s. The values are equivalent on every platform this transform targets.

Patch Changes

  • 871dbfb: Ignore a trailing DTCG v2025.10 $root path segment in the built-in name transforms, so a root token is named after its group (e.g. --color-text-warning instead of --color-text-warning-root). Also fix outputReferences not replacing references to $root tokens.

5.6.1

Patch Changes

  • 7a80396: Fix sortByReference collecting "filtered out token references" warnings while sorting. With multiple levels of references, it reported references of tokens that are never output, and outputReferencesFilter could not clear those warnings.

5.6.0

Minor Changes

  • 2f28731: Add "sassdoc" comment style (a triple-slash short comment)

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for style-dictionary since your current version.

Install script changes

This version modifies prepare script that runs during installation. Review the package contents before updating.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [style-dictionary](https://github.com/style-dictionary/style-dictionary) from 3.9.2 to 5.7.1.
- [Release notes](https://github.com/style-dictionary/style-dictionary/releases)
- [Changelog](https://github.com/style-dictionary/style-dictionary/blob/main/CHANGELOG.md)
- [Commits](style-dictionary/style-dictionary@v3.9.2...v5.7.1)

---
updated-dependencies:
- dependency-name: style-dictionary
  dependency-version: 5.7.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 27, 2026
@dependabot @github

dependabot Bot commented on behalf of github Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #206.

@dependabot dependabot Bot closed this Nov 10, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/style-dictionary-5.7.1 branch November 10, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants