Skip to content

Releases: tokens-studio/sd-transforms

v0.5.3

19 Mar 14:59
21fecf0
Compare
Choose a tag to compare

Patch Changes

  • a75c420: Add engines property to pkg.json, NodeJS 15.14.0 and higher supported.

v0.5.2

17 Mar 18:28
0c77dde
Compare
Choose a tag to compare

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

07 Mar 15:22
ec8d0f3
Compare
Choose a tag to compare

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

06 Mar 22:09
9407e02
Compare
Choose a tag to compare

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

05 Mar 22:07
54d1537
Compare
Choose a tag to compare

Patch Changes

  • 71d12d2: Improve checkAndEvaluateMath for expressions with more than one unit.

v0.4.5

03 Mar 16:13
3ef8854
Compare
Choose a tag to compare

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

21 Feb 22:56
297d3f1
Compare
Choose a tag to compare

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

17 Feb 12:13
4d0a277
Compare
Choose a tag to compare

Patch Changes

  • 31c81b4: Fix property name modifier -> modify.

v0.4.2

17 Feb 11:31
e0b943a
Compare
Choose a tag to compare

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

17 Feb 10:54
787516b
Compare
Choose a tag to compare

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.