Closed renovate[bot] closed 1 month ago
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
Package | New capabilities | Transitives | Size | Publisher |
---|---|---|---|---|
npm/commander@7.2.0 | filesystem, shell | 0 |
145 kB | abetomo |
npm/semver@7.6.2 | None | 0 |
95.4 kB | npm-cli-ops |
This PR contains the following updates:
^3.9.2
->^4.0.0
Release Notes
amzn/style-dictionary (style-dictionary)
### [`v4.0.0`](https://togithub.com/amzn/style-dictionary/blob/HEAD/CHANGELOG.md#400) [Compare Source](https://togithub.com/amzn/style-dictionary/compare/v3.9.2...v4.0.0) > For a more comprehensive migration guide from version 3.x.x to version 4.0.0, > [visit the migration guide page](https://v4.styledictionary.com/version-4/migration/) ##### Major Changes - [`6cc7f31`](https://togithub.com/amzn/style-dictionary/commit/6cc7f31): BREAKING: - `usesReference` util function is now `usesReferences` to be consistent plural form like the other reference util functions. - `getReferences` first and second parameters have been swapped to be consistent with `resolveReferences`, so value first, then the full token object (instead of the entire dictionary instance). - `getReferences` accepts a third options parameter which can be used to set reference Regex options as well as an unfilteredTokens object which can be used as a fallback when references are made to tokens that have been filtered out. There will be warnings logged for this. - `format.formatter` removed old function signature of `(dictionary, platform, file)` in favor of `({ dictionary, platform, options, file })`. - Types changes: - Style Dictionary is entirely strictly typed now, and there will be `.d.ts` files published next to every file, this means that if you import from one of Style Dictionary's entrypoints, you automatically get the types implicitly with it. This is a big win for people using TypeScript, as the majority of the codebase now has much better types, with much fewer `any`s. - There is no more hand-written Style Dictionary module `index.d.ts` anymore that exposes all type interfaces on itself. This means that you can no longer grab types that aren't members of the Style Dictionary class directly from the default export of the main entrypoint. External types such as `Parser`, `Transform`, `DesignTokens`, etc. can be imported from the newly added types entrypoint: ```ts import type { DesignTokens, Transform, Parser } from 'style-dictionary/types'; ``` Please raise an issue if you find anything missing or suddenly broken. - `Matcher`, `Transformer`, `Formatter`, etc. are still available, although no longer directly but rather as properties on their parents, so `Filter['matcher']`, `Transform['transformer']`, `Format['formatter']` - [`dcbe2fb`](https://togithub.com/amzn/style-dictionary/commit/dcbe2fb): - The project has been fully converted to [ESM format](https://nodejs.org/api/esm.html), which is also the format that the browser uses. For users, this means you'll have to either use Style Dictionary in ESM JavaScript code, or dynamically import it into your CommonJS code. - `StyleDictionary.extend()` method is now asynchronous, which means it returns `PromiseConfiguration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), 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.
This PR has been generated by Mend Renovate. View repository job log here.