Skip to content

chore(deps-dev): bump style-dictionary from 3.9.2 to 5.0.0 #700

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

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 19, 2025

Bumps style-dictionary from 3.9.2 to 5.0.0.

Release notes

Sourced from style-dictionary's releases.

v5.0.0

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.

v5.0.0-rc.2

Patch Changes

  • a9c0461: 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).
  • a9c0461: Allow buildPaths without a trailing slash, by making use of path.join() utility.
  • 3a91a3f: 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.

v5.0.0-rc.1

Major Changes

  • 7909466: 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.

Minor Changes

  • d4a6fe8: 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.

v5.0.0-rc.0

Major Changes

  • 2b2c154: 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.
  • 2b2c154: 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.

... (truncated)

Changelog

Sourced from style-dictionary's changelog.

5.0.0

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.

4.4.0

Minor Changes

  • f2395f3: Add a 'flat' option to the javascriptEsm format
  • 2f13dcb: Added support for using the selector option as a string or string array in the css/variables formatter. When an array is provided, the CSS variables will be nested within the specified selectors in order

Patch Changes

  • ee85609: fix misaligned comments in typescript/es6-declarations
  • 6ff17ec: If several preprocessors are defined in the SD configuration, the execution of the preprocessors is now guaranteed in the exact order in which they were configured in the SD configuration.

4.3.3

Patch Changes

  • ea0ec73: Fix convertToDTCG for sets that are already (partially) DTCG.
  • 1d4389a: - 'color/hex' (colorHex enum) built-in transform can now handle alpha channels properly by outputting hex8 format if needed. This also affects the transformGroups less and js which apply this transform.
    • 'color/hex8' (colorHex8 enum) built-in transform is now deprecated, use 'color/hex' (colorHex enum) instead.
  • e77feb4: Move the tinycolor2 patch from a patch file to a 3-liner fix in our source code, so it gets correctly published and usable by consumers.
  • 177c25e: Account for multiline comments in javascript/es6 format

4.3.2

Patch Changes

... (truncated)

Commits

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code major labels May 19, 2025
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code major labels May 19, 2025
Copy link
Contributor

@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from ee0e5d8 to 4125e7a Compare May 19, 2025 01:33
github-actions[bot]
github-actions bot previously approved these changes May 19, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 4125e7a to bba4651 Compare May 19, 2025 06:09
github-actions[bot]
github-actions bot previously approved these changes May 19, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from bba4651 to afad4be Compare May 21, 2025 01:49
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from afad4be to 5c81eca Compare May 26, 2025 01:31
github-actions[bot]
github-actions bot previously approved these changes May 26, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 5c81eca to 00e3720 Compare May 28, 2025 05:47
github-actions[bot]
github-actions bot previously approved these changes May 28, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 00e3720 to 615d4ef Compare May 28, 2025 09:18
github-actions[bot]
github-actions bot previously approved these changes May 28, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 615d4ef to a60b66f Compare May 28, 2025 17:05
github-actions[bot]
github-actions bot previously approved these changes May 28, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from a60b66f to eb0275b Compare May 29, 2025 08:38
github-actions[bot]
github-actions bot previously approved these changes May 29, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from eb0275b to 6d07078 Compare May 30, 2025 01:16
github-actions[bot]
github-actions bot previously approved these changes May 30, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 6d07078 to 872efc6 Compare May 30, 2025 05:18
github-actions[bot]
github-actions bot previously approved these changes May 30, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 872efc6 to bcda2cf Compare June 2, 2025 01:24
github-actions[bot]
github-actions bot previously approved these changes Jun 2, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from bcda2cf to 72eaaff Compare June 10, 2025 02:04
github-actions[bot]
github-actions bot previously approved these changes Jun 10, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 72eaaff to 186b6a3 Compare June 11, 2025 04:31
github-actions[bot]
github-actions bot previously approved these changes Jun 11, 2025
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from 186b6a3 to efa2611 Compare June 12, 2025 01:31
Bumps [style-dictionary](https://github.com/amzn/style-dictionary) from 3.9.2 to 5.0.0.
- [Release notes](https://github.com/amzn/style-dictionary/releases)
- [Changelog](https://github.com/amzn/style-dictionary/blob/main/CHANGELOG.md)
- [Commits](style-dictionary/style-dictionary@v3.9.2...v5.0.0)

---
updated-dependencies:
- dependency-name: style-dictionary
  dependency-version: 5.0.0
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot-npm_and_yarn-style-dictionary-5.0.0 branch from efa2611 to 2763c1f Compare June 16, 2025 01:42
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 major
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants