fix(deps): update dependency style-dictionary to v5
This MR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| style-dictionary (source) | ^4.4.0 → ^5.0.0 |
Release Notes
style-dictionary/style-dictionary (style-dictionary)
v5.2.0
Minor Changes
-
752a50c: Add (wip) sort option to formattedVariables and formats css, scss, less, stylus. See format docs on how to use it.
Patch Changes
-
6e9164e: Small bugfix where formatting.commentStyle was not taken into account for fileHeader comments when possible.
v5.1.4
Patch Changes
-
a9c11a2: Fix of a regression bug caused by sizeRem transform throwing an error for NaN values. Because a string was thrown instead of an Error, this wasn't handled correctly by the transforms wrapper utility. Now we handle this scenario, and we also changed it to throw an actual Error.
v5.1.3
Patch Changes
-
6e306bc: Upgrade glob@11.1.0 forked package to fix vulnerability in origin package.
v5.1.1
Patch Changes
-
65745da: Fix outputReferences for tokens with 'value' in their name. Previously, references to tokens likeobject_type.value_chainwere incorrectly resolved because the code removed the first occurrence of.valueinstead of only the trailing suffix.
v5.1.0
Minor Changes
-
97a209a: Add new size/compose/{sp,dp} transforms
Patch Changes
-
dbcdae3: Fix fontName parsing to handle double quotes -
c47600d: Export expand DTCGTypesMap for extension use cases.
v5.0.4
Patch Changes
-
7a238af: Fix an issue with token collisions being way to eager about complaining when values that are identical are "colliding". This cuts collision warnings by 75% or more.
v5.0.3
Patch Changes
-
3d070f5: Move patch-package to devDependencies and run in prepare instead of postinstall, so it only runs when npm installing locally and not for consumers. -
71614da: Wrap structuredClone in loadFile in a try catch, in case we have a JS/TS config file with dynamic content.
v5.0.2
Patch Changes
-
8e413a2: Fix vulnerable dependencies, patch-package and its transitivetmpdependency in particular. -
9f84a81: Remove node-sass from create-react-app example, dart-sass is used now usually. -
da19c8f: Small patch to allow no-destination "files" to not cause errors when using clean methods.
v5.0.1
Patch Changes
-
463b456: Simplify internalcleanFile(s)utils, fix a bug that would still attempt to unlink non-existent files in verbosity"silent"mode. -
8f7c522: FixloadFileto deep clone ES module exports to avoid unintended mutations
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 totokenMapandtokenArray. Remove allowing references with.valuesuffix. -
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.unionwhich 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 togetReferencesandresolveReferencesutils. -
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:fsto 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
- If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by uis-devops-renovatebot