Skip to content
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

build(deps): update dependency @tokens-studio/sd-transforms to v0.12.1 #8146

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 8, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@tokens-studio/sd-transforms 0.8.2 -> 0.12.1 age adoption passing confidence

Release Notes

tokens-studio/sd-transforms (@​tokens-studio/sd-transforms)

v0.12.1

Compare Source

Patch Changes
  • e7ecf43: Fixes transform HEXRGBa format when this format is contained within a value, e.g. linear-gradient() or multi-value.

v0.12.0

Compare Source

Minor Changes
  • 6f4b5ed: BREAKING: swap expandComposites 2nd argument and 3rd argument. 2nd argument is now TransformOptions and 3rd argument the filePath (string). This used to be vice versa and was inconsistent with the other parser functions.
  • 6f4b5ed: Add and expose a parseTokens function to make it more developer friendly to add the sd-transforms parsing step to your own custom parser.
  • f7e88b6: BREAKNG: Use structuredClone instead of shallow Object.assign copy in parsers. Must use NodeJS v17 at minimum now, as opposed to v15.14.0 before this update.
  • 6f4b5ed: Add the addAttributeCTI option to registerTransforms function, to automatically add attribute/cti predefined transform to the tokens-studio transformGroup.
Patch Changes
  • 2307b9d: Refined CSS font name processing: Enhanced escapeApostrophes for accurate apostrophe handling in font names. Updated quoteWrapWhitespacedFont for smart quoting and escaping in multi-word fonts. Ensures better CSS font family compatibility.

v0.11.10

Compare Source

Patch Changes
  • 8c2e03f: Fix types for expandComposites functions, no longer trips up on key value pairs with primitive values during parsing process.

v0.11.9

Compare Source

Patch Changes
  • a3ad58b: Fix the webpackIgnore statement to use single *. For NextJS integration (webpack).

v0.11.8

Compare Source

Patch Changes
  • dd58528: Remove reliance on browser-style-dictionary. This created problems with CJS style-dictionary config files (default export).

v0.11.7

Compare Source

Patch Changes
  • 72b828d: Fix permutateThemes to order "enabled" sets below "source" sets so enabled sets overrides are prioritized in Style-Dictionary.

v0.11.6

Compare Source

Patch Changes
  • 2e8576e: resolveMath no longer unnecessarily changes the token type to number if the token value is a string without any expressions to resolve.

v0.11.5

Compare Source

Patch Changes
  • Fix resolve reference for multi-value shadow tokens when expanding shadow tokens.

v0.11.4

Compare Source

Patch Changes
  • 77b4f04: Add a webpack ignore statement to dynamic import of node builtin in node env. Should be ignored at compile-time, done at run-time.

v0.11.3

Compare Source

Patch Changes
  • 333355b: Specify import to "module" as "node:module" for build tools to better understand it as a built-in.

v0.11.2

Compare Source

Patch Changes
  • 3f37446: Fix for add-font-styles parser to deal with value props not being objects (e.g. null).

v0.11.1

Compare Source

Patch Changes
  • 8c2e03f: Fix types for expandComposites functions, no longer trips up on key value pairs with primitive values during parsing process.

v0.11.0

Compare Source

Minor Changes
  • 96a66a9: checkAndEvaluateMath to not stringify if not needed:

    • for single math expressions resolving to a floating number without unit, we can keep it as a Number
    • for expressions such as false or true (Boolean), keep as Boolean type

v0.10.5

Compare Source

Patch Changes
  • 0032d8d: Hotfix for evaluate math of values that have non-numericals wrapped in spaces.

v0.10.4

Compare Source

Patch Changes
  • 894efe4: Add option to always add font style when expanding typography objects.
  • d76b5cc: Add export for addFontStyles parser.

v0.10.3

Compare Source

Patch Changes
  • eff2f93: Fix resolve math transform multi-value splitter function to properly split more than 2 values where each value does itself not contain any spaces.

v0.10.2

Compare Source

Patch Changes
  • 1327559: Add 'ts/color/modifiers' option: format, to globally set the output format for color modifiers.
  • 29ac771: Add hairline and ultra to fontWeightsMap, reflect to 1 and 1000 respectively.
  • c59df89: Add option to easily change the casing of the output token names, without requiring to create a custom transform group.

v0.10.1

Compare Source

Patch Changes
  • 6a6a5d2: ts/color/css/hexrgba to correctly apply on all color typed tokens, including those containing references.

v0.10.0

Compare Source

Minor Changes
  • 3425572: BREAKING: permutateThemes to return the same format regardless of whether multi-dimensional themes are used or not. Format: { themeName: [sets] }.
  • 2731a5e: BREAKING: change name of ts/type/fontWeight transform to -> ts/typography/fontWeight, for consistency's sake.
  • 0363efc: BREAKING: add parser that extracts fontStyle from fontWeight and adds it as a separate property on Typography tokens object values.
Patch Changes
  • 2731a5e: Add value transform ts/typography/css/fontFamily to font-families which adds quotes if it has white space. The source
    value will then match with how it's rendered in the composite typography token value. outputReferences: true will now replace
    the quoted value with the reference. Previously, the reference was wrapped in quotes.
  • acb344c: Properly take into account fontStyle inside fontWeights values, in both the fontWeights and CSS typography shorthand transforms.

v0.9.10

Compare Source

Patch Changes
  • c4bb776: Allow color modifications to format to hex when the color space is not sRGB. It will do a conversion step to sRGB space before formatting to hex.

v0.9.9

Compare Source

Patch Changes
  • 4a8a44f: Fix path to the typescript types

v0.9.8

Compare Source

Patch Changes
  • d8eabab: Fix font-families with spaces in between them for multiple comma separated font fallbacks.

v0.9.7

Compare Source

Patch Changes
  • a18c91f: Export permutateThemes utility function, allowing you to input your multi-dimensional $themes.json data, and receive the permutations (single dimensional outputs) as a result. See docs.

v0.9.6

Compare Source

Patch Changes
  • 21608ff: Patches the transformHEXRGBa function to allow for whitespaces surrounding the HEX code. The Tokens Studio plugin automatically adds these whitespaces when working with aliases so this patch removes the need for manually having to remove those whitespaces.

v0.9.5

Compare Source

Patch Changes
  • 0e493a1: Fixes comment transformer for descriptions with line breaks

v0.9.4

Compare Source

Patch Changes
  • de971fe: Fixed the return types of lineHeight, opacity and fontWeight to be number instead of string

v0.9.3

Compare Source

Patch Changes
  • bd7fe6e: Handle references and deep references for tokens that can be expanded, like typography, border, shadow and composition.
  • b69b05b: set font family name in quotes if its name has whitespaces
  • 4a3d5f9: Error handle if SD cannot resolve reference.

v0.9.2

Compare Source

Patch Changes
  • 01d45fd: Fix hex rgba regex matcher to be lazier about some character matching, warn for errors from colorjs.io hex parsing.

v0.9.1

Compare Source

Patch Changes
  • c4bb776: Allow color modifications to format to hex when the color space is not sRGB. It will do a conversion step to sRGB space before formatting to hex.

v0.9.0

Compare Source

Minor Changes
  • 24a20df: BREAKING: when missing properties inside typography, border or shadow objects, we prefill them with empty string, 0, or some default value.

v0.8.7

Compare Source

Patch Changes
  • 3f12797: Exclude parent keys can lead to duplicate property keys. Ensure they are deepmerged instead of overwritten.

v0.8.6

Compare Source

Patch Changes
  • 345e03e: Expose transforms names, so it's easy to create a custom transformGroup and adjust, add or remove transforms in it.

v0.8.5

Compare Source

Patch Changes
  • d637cec: Use Rollup output.interop for CJS output, to properly handle default exports in our CJS external dependencies.

v0.8.4

Compare Source

Patch Changes
  • d37eebc: Support values of type number for checkAndEvaluateMath utility.

v0.8.3

Compare Source

Patch Changes
  • acd3ddb: Evaluate math expressions within complex value types like border, typography, shadow.

Configuration

📅 Schedule: Branch creation - "before 5am every weekday" in timezone America/Los_Angeles, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added chore Issues with changes that don't modify src or test files. dependencies Pull requests that update a dependency file labels Nov 8, 2023
@renovate renovate bot force-pushed the renovate/tokens-studio-sd-transforms-0.x branch from 97f17b0 to ed2ecba Compare November 12, 2023 16:00
@renovate renovate bot changed the title build(deps): update dependency @tokens-studio/sd-transforms to v0.11.9 build(deps): update dependency @tokens-studio/sd-transforms to v0.11.10 Nov 12, 2023
@renovate renovate bot force-pushed the renovate/tokens-studio-sd-transforms-0.x branch 2 times, most recently from 963128f to 3c0145d Compare November 19, 2023 22:48
@renovate renovate bot changed the title build(deps): update dependency @tokens-studio/sd-transforms to v0.11.10 build(deps): update dependency @tokens-studio/sd-transforms to v0.12.0 Nov 19, 2023
Copy link
Contributor

This PR has been automatically marked as stale because it has not had recent activity. Please close your PR if it is no longer relevant. Thank you for your contributions.

@github-actions github-actions bot added the Stale Issues or pull requests that have not had recent activity. label Nov 27, 2023
@renovate renovate bot force-pushed the renovate/tokens-studio-sd-transforms-0.x branch 2 times, most recently from 280582a to 12df817 Compare December 4, 2023 12:24
@renovate renovate bot changed the title build(deps): update dependency @tokens-studio/sd-transforms to v0.12.0 build(deps): update dependency @tokens-studio/sd-transforms to v0.12.1 Dec 4, 2023
@renovate renovate bot force-pushed the renovate/tokens-studio-sd-transforms-0.x branch from 12df817 to 2044180 Compare December 4, 2023 20:08
@renovate renovate bot force-pushed the renovate/tokens-studio-sd-transforms-0.x branch from f2b1431 to 8588b29 Compare December 4, 2023 20:33
@benelan
Copy link
Member

benelan commented Dec 4, 2023

@alisonailea can you take a look at the failing design token tests?

…8330)

**Related Issue:** #8146

## Summary

Resolves issues with
#8146

- [x] Add StyleDictionary latest version (there was a types conflict
because sd-transforms was using a newer version.)
- [x] Update transformValueEvaluateMath to return a string even when the
value is a number. This was necessary because the sd-transformer it
relied on changed their return type.
- [x] Update Snapshot with minor changes
  - sd-transformer changed the default comment style for es6 output
  - sd-transformer added a new line at the end of es6 output tokens
Copy link
Contributor Author

renovate bot commented Dec 4, 2023

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@benelan benelan added the pr ready for visual snapshots Adding this label will run visual snapshot testing. label Dec 4, 2023
@benelan benelan merged commit 139e229 into main Dec 5, 2023
15 checks passed
@benelan benelan deleted the renovate/tokens-studio-sd-transforms-0.x branch December 5, 2023 00:43
@github-actions github-actions bot added this to the 2023 December Priorities milestone Dec 5, 2023
benelan added a commit that referenced this pull request Dec 7, 2023
…ssage

* origin/main: (22 commits)
  build(deps): update dependency @types/lodash-es to v4.17.12 (#8347)
  build(deps): update dependency @types/semver to v7.5.6 (#8348)
  ci: stop formatting components.d.ts (#8358)
  build(deps): update dependency @types/shell-quote to v1.7.5 (#8349)
  ci: remove workarounds no longer needed with Stencil v4 (#8325)
  refactor(input, input-number, input-text): avoid redundant `:host` (#8163)
  fix(color-context tokens): only apply when `.calcite-mode-auto` is applied (#8344)
  test(dropdown): fix dropdown E2E suite grouping (#8319)
  build(deps): update dependency @types/jest-axe to v3.5.9 (#8346)
  refactor(dropdown): remove obsolete logic (#8321)
  fix(action-menu):  fix closing action menu after a drag occurs (#8339)
  fix(shell, shell-panel): support resizing shell panel when there is an iframe slotted in shell content (#8317)
  chore(dropdown): update demo page to use selected vs active (removed) (#8322)
  fix(action-menu): Filter hidden or disabled actions via keyboard. (#8336)
  build(deps): update dependency @esri/calcite-ui-icons to v3.25.1 (#8331)
  build(deps): update dependency @types/color to v3.0.6 (#8332)
  build(deps): update dependency @types/dedent to v0.7.2 (#8334)
  build(deps): update dependency @types/estree to v1.0.5 (#8335)
  chore(demos): update outdated CSS variable names after token breaking changes (#8333)
  build(deps): update dependency @tokens-studio/sd-transforms to v0.12.1 (#8146)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issues with changes that don't modify src or test files. dependencies Pull requests that update a dependency file pr ready for visual snapshots Adding this label will run visual snapshot testing. Stale Issues or pull requests that have not had recent activity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants