chore(deps): update dependency style-dictionary to v5 (main) #3757
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.3.3
->^5.0.0
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
andtokenArray
.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 supportSet.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 togetReferences
andresolveReferences
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 onnode: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 ofpath.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 is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.