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

[Snyk] Upgrade style-dictionary from 3.8.0 to 4.1.2 #226

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

WontonSam
Copy link
Owner

Snyk has created this PR to upgrade style-dictionary from 3.8.0 to 4.1.2.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 48 versions ahead of your current version.
  • The recommended version was released a month ago, on 2024-09-18.
Release notes
Package name: style-dictionary
  • 4.1.2 - 2024-09-18

    Patch Changes

    • e9cce6a: Reuse static hooks in the constructor to set instance hooks prop, to avoid discarding built-in hooks overwrites by consumers.
    • b48d0e9: Add missing type interfaces, most notably the ExpandConfig types.
  • 4.1.1 - 2024-09-12

    Patch Changes

    • 5db3521: Add iosSwiftEnumOpts.className and iosSwiftAnyOpts.className formats property documentation
    • 23f8a25: Use cp and rmdir commands for copy_assets do and undo methods, since they affect directories, not files.
  • 4.1.0 - 2024-08-28

    Minor Changes

    • ccf27b7: Prevent duplicate redundant calls to StyleDictionary class methods by caching platform specific config & tokens results.

      Added reusable methods:

      • getPlatformTokens() -> grabs the tokens/allTokens(new! exportPlatform does not return this) for a specific platform, after running platform specific preprocessors and transforms. This replaces the old exportPlatform method which is now deprecated and will be removed in v5.
      • getPlatformConfig() -> grabs the processed/transformed PlatformConfig for a specific platform, replaces the now deprecated getPlatform method which will be removed in v5.

      The reasons for deprecating those methods and replacing them with new ones is to reduce method ambiguity and make them more pure.

      Add new options object to methods:

      • getPlatformTokens
      • getPlatformConfig
      • exportPlatform (deprecated, see above)
      • getPlatform (deprecated, see above)
      • formatPlatform
      • formatAllPlatforms
      • buildPlatform
      • buildAllPlatforms
      • cleanPlatform
      • cleanAllPlatforms

      with property cache, which if set to false, will disable this caching of generating the platform specific config / tokens, e.g.:

      await sd.exportPlatform('css', { cache: false });
      await sd.buildAllPlatforms('css', { cache: false });

      Expectation is that this is usually not useful for majority of users, unless for example you're testing multiple runs of StyleDictionary while changing tokens or platform configs in between those runs.

    Patch Changes

    • 2ec9a44: size/rem transform to leave 0 (string or number) values as is, since 0 doesn't need a unit.

    • f317430: Added link to logging documentation inside all of the warnings and errors that refer to verbosity.

    • 6275983: Respect formatting options in scss map-deep/map-flat formats, those that make sense:

      • commentPosition
      • commentStyle
      • indentation

      Also export a new type interface FormattingOverrides, which is a limited version of FormattingOptions.
      These contain the formatting options that can be overridden by users, whereas the full version is meant for the format helper utilities such as createPropertyFormatter/formattedVariables.

  • 4.0.1 - 2024-07-18

    Patch Changes

    • e6cbf73: Fix type information for Config.parser
    • e8aea2f: Fix transitive color transform advanced example, migrate chroma-js to colorjs.io
    • 7afcffd: Fix bugs with expand tokens where they would run before instead of after user-configured preprocessors, and would fatally error on broken references. Broken refs should be tolerated at the expand stage, and errors will be thrown after preprocessor lifecycle if the refs are still broken at that point.
    • 922b6aa: Update memfs esm-fork dependency to allow named import Volume.
    • 61b6984: Fix 'filePath' missing from falsy token values
    • 3ae67e3: Upgrade memfs esm fork to publish types and bumping stream to fix unclear licensing issue with transitive dependency.
  • 4.0.0 - 2024-06-28
    Read more
  • 4.0.0-prerelease.39 - 2024-06-28

    Patch Changes

    • 894f37c: Update glob esm browser fork to latest, resolve unclear licensing issue.
    • cb78c3d: Update typeDtcgDelegate utility to remove the $type on token group level between parsing/preprocessing step.
  • 4.0.0-prerelease.38 - 2024-06-24

    Patch Changes

    • 5079154: Fix deepExtend util bug with overriding behavior for tokens.
  • 4.0.0-prerelease.37 - 2024-06-17

    Minor Changes

    • 8450a45: Some fixes for Expand utility:

      • Array values such as dashArray property of strokeStyle tokens no longer get expanded unintentionally, typeof 'object' check changed to isPlainObject check.
      • Nested object-value tokens (such as style property inside border tokens) will now also be expanded.
      • When references are involved during expansion, the resolved value is used when the property is an object, if not, then we keep the reference as is.
        This is because if the reference is to an object value, the expansion might break the reference.
  • 4.0.0-prerelease.36 - 2024-06-16

    Minor Changes

    • 39f0220: Allow not throwing fatal errors on broken token references/aliases, but console.error instead.

      You can also configure this on global/platform log property:

      {
        "log": {
          "errors": {
            "brokenReferences": "console"
          }
        }
      }

      This setting defaults to "error" when not configured.

      resolveReferences and getReferences warnImmediately option is set to true which causes an error to be thrown/warned immediately by default, which can be configured to false if you know those utils are running in the transform/format hooks respectively, where the errors are collected and grouped, then thrown as 1 error/warning instead of multiple.

      Some minor grammatical improvements to some of the error logs were also done.

  • 4.0.0-prerelease.35 - 2024-06-11

    Minor Changes

    • c06661d: Re-add and update example basic, fix copySync command in CLI, fix android templates to use $type for DTCG tokens.
  • 4.0.0-prerelease.34 - 2024-06-04
  • 4.0.0-prerelease.33 - 2024-06-04
  • 4.0.0-prerelease.32 - 2024-05-30
  • 4.0.0-prerelease.31 - 2024-05-29
  • 4.0.0-prerelease.30 - 2024-05-23
  • 4.0.0-prerelease.29 - 2024-05-17
  • 4.0.0-prerelease.28 - 2024-05-14
  • 4.0.0-prerelease.27 - 2024-05-09
  • 4.0.0-prerelease.26 - 2024-04-16
  • 4.0.0-prerelease.25 - 2024-04-12
  • 4.0.0-prerelease.24 - 2024-04-05
  • 4.0.0-prerelease.23 - 2024-03-27
  • 4.0.0-prerelease.22 - 2024-03-26
  • 4.0.0-prerelease.21 - 2024-03-26
  • 4.0.0-prerelease.20 - 2024-03-25
  • 4.0.0-prerelease.19 - 2024-03-19
  • 4.0.0-prerelease.18 - 2024-03-12
  • 4.0.0-prerelease.17 - 2024-03-11
  • 4.0.0-prerelease.16 - 2024-03-11
  • 4.0.0-prerelease.15 - 2024-02-23
  • 4.0.0-prerelease.14 - 2024-02-12
  • 4.0.0-prerelease.13 - 2024-01-26
  • 4.0.0-prerelease.12 - 2024-01-26
  • 4.0.0-prerelease.11 - 2024-01-26
  • 4.0.0-prerelease.10 - 2024-01-25
  • 4.0.0-prerelease.9 - 2024-01-23
  • 4.0.0-prerelease.8 - 2024-01-15
  • 4.0.0-prerelease.7 - 2024-01-08
  • 4.0.0-prerelease.6 - 2023-12-23
  • 4.0.0-prerelease.5 - 2023-12-23
  • 4.0.0-prerelease.4 - 2023-12-05
  • 4.0.0-prerelease.3 - 2023-12-05
  • 4.0.0-prerelease.2 - 2023-11-28
  • 4.0.0-prerelease.1 - 2023-10-26
  • 4.0.0-prerelease.0 - 2023-10-23
  • 3.9.2 - 2024-01-17
  • 3.9.1 - 2023-12-07
  • 3.9.0 - 2023-10-23
  • 3.8.0 - 2023-04-25
from style-dictionary GitHub release notes
Commit messages
Package name: style-dictionary

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Copy link

google-cla bot commented Oct 14, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants