Releases: tokens-studio/sd-transforms
Releases · tokens-studio/sd-transforms
v0.5.3
Patch Changes
- a75c420: Add engines property to pkg.json, NodeJS 15.14.0 and higher supported.
v0.5.2
Patch Changes
- a94d137: Transform typography to make use of transform fontweights map for the fontWeight property.
- 81362be: Account for token values being of type number in certain transformers.
v0.5.1
Patch Changes
- 48846b3: Fix checkAndEvaluateMath to deal with regular values with spaces in them like linear-gradient(a, b1 b2, c1 c2).
- 4f6da6c: Return original value if mapped fontweight is undefined.
v0.5.0
Minor Changes
- 2ad1630: BREAKING: remove attribute/cti transform from tokens-studio transform group, this is redundant. However, users might rely on it, therefore it is a breaking change.
v0.4.6
Patch Changes
- 71d12d2: Improve checkAndEvaluateMath for expressions with more than one unit.
v0.4.5
Patch Changes
- a2b2a22: Account for undefined as a token value in transformers. This may happen if a token value is a reference, but the reference is broken. A fatal error in the transform makes it more difficult for the user to find out that they have broken references and to debug it, therefore we guard against it in our transformers.
v0.4.4
Patch Changes
- e366ac0: Export transformColorModifiers function inside the main entrypoint.
- b9f179a: Allow passing an output format to the color modify props of Tokens Studio.
v0.4.3
Patch Changes
- 31c81b4: Fix property name modifier -> modify.
v0.4.2
Patch Changes
- 2cff78f: Fix check and evaluate math, don't run it on non-string token values, no longer fails on simple expressions.
v0.4.1
Patch Changes
- 5718a7b: Fix small bug in transform typography for compose, passes token value instead of full token.
- 2d4ce90: Change regex for HEXRGBa detection space character from lazy to greedy, to more tightly match the "alpha" number without leading spaces.
- 22f9859: Add color modifiers transform, see more info.
- 2d4ce90: Add multi-value support for evaluating math expressions in token values.