Skip to content

chore(deps): update dependency style-dictionary to v5 #492

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 3, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
style-dictionary ^4.4.0 -> ^5.0.0 age adoption passing confidence

Release Notes

amzn/style-dictionary (style-dictionary)

v5.0.0

Compare Source

Major Changes
  • 02300b1: No longer allow references to non-token leaf nodes. References only work when referencing a Design Token (its value).
    Non-token nodes will also not make it to the output, because they are filtered out during the flattening process to tokenMap and tokenArray.
    Remove allowing references with .value suffix.
  • f19a0cb: BREAKING: no longer possible to pass options to change the reference syntax {ref.foo}. The opening, closing and separator characters are now set to be aligned with the DTCG spec.
  • 02300b1: BREAKING: minimum NodeJS version required is now v22.0.0 (LTS, at time of writing this). This is to support Set.prototype.union which we utilize in our token reference resolution utility, and it's important to use the cheaper built-in versus doing a union manually.
Minor Changes
  • 02300b1: Support passing Token Map structure to getReferences and resolveReferences utils.
  • b80e75b: When transform hooks throw errors, they will now be caught and error-handled by Style Dictionary.
    Instead of causing a fatal failure, the error is collected and logged as a warning at the end.
    With verbosity turned to "verbose", information about which tokens in which files are causing an error in which transform, to help debugging the problem.
    Sensible fallbacks are used when a transform cannot complete.
Patch Changes
  • a23f353: SD will use posix style paths ('/') as much as possible and rely on node:fs to translate to win32 paths whenever a call to the filesystem is done. The exception is for dynamic imports of JS files (SD config, token files).
  • a23f353: Allow buildPaths without a trailing slash, by making use of path.join() utility.
  • 9bbbc8a: Dynamically import prettier and plugins so that they can be chunked separately by bundlers, and only imported on demand. This will significantly improve bundle size for users of Style Dictionary.

Configuration

📅 Schedule: Branch creation - "before 5am every weekday" in timezone America/New_York, Automerge - "every weekday" in timezone America/New_York.

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies Pull requests that update a dependency file renovate-bot labels Jun 3, 2025
@renovate renovate bot added dependencies Pull requests that update a dependency file renovate-bot labels Jun 3, 2025
@renovate renovate bot force-pushed the renovate/style-dictionary-5.x branch 2 times, most recently from 84ad33f to b29b4ce Compare June 16, 2025 04:00
@renovate renovate bot force-pushed the renovate/style-dictionary-5.x branch from b29b4ce to 8fe4f74 Compare July 1, 2025 04:51
@renovate renovate bot force-pushed the renovate/style-dictionary-5.x branch from 8fe4f74 to 8111409 Compare July 2, 2025 04:51
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 renovate-bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants