Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 16, 2025

This PR contains the following updates:

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

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


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 - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 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 force-pushed the renovate/style-dictionary-5.x branch from f128cf4 to 74df4bc Compare May 19, 2025 13:30
@JammingBen JammingBen merged commit 921c6d9 into main Jul 1, 2025
18 checks passed
@JammingBen JammingBen deleted the renovate/style-dictionary-5.x branch July 1, 2025 09:14
@openclouders openclouders mentioned this pull request Jul 1, 2025
1 task
openclouders pushed a commit that referenced this pull request Jul 1, 2025
chore(deps): update dependency style-dictionary to v5
@openclouders openclouders mentioned this pull request Jul 21, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants