Use case
Framework
Owner
Styledictionary/4/Hook Api Filters
This codemod updates registered filters to be placed inside the
hooks.filters
property, instead offilter
. Note the shift from the singular to the plural form in this update.Styledictionary/4/Logging
This codemod updates the logging system to be more configurable, as detailed in the Logging docs. You can now customize the verbosity of logs and silence warnings and success logs, in addition to the previous option of setting
log: 'error'
to change the default behavior to throw warnings as errors.Styledictionary/4/Hook Api Transform Groups
This codemod updates registered transform groups to be placed inside the
hooks.transformGroups
property, instead oftransformGroup
, with a shift from the singular to the plural form.Styledictionary/4/Hook Api Transform
This codemod updates registered transforms to be placed inside the
hooks.transforms
property, instead oftransform
, with a shift from the singular to the plural form. Additionally, the name of the filter function has been changed frommatcher
tofilter
for consistency.Styledictionary/4/Hook Api Preprocessors
This codemod updates registered preprocessors to be placed inside the
hooks.preprocessors
property, instead ofpreprocessor
, with a shift from the singular to the plural form. Registered preprocessors now apply globally without requiring explicit application in the config.Styledictionary/4/Hook Api Parsers
This codemod updates registered parsers to be placed inside the
hooks.parsers
property, instead ofparser
, with a shift from the singular to the plural form. Registered parsers now apply globally without needing explicit application in the config. Additionally, theparse
function has been renamed toparser
for consistency.Styledictionary/4/Hook Api File Header
This codemod updates registered file headers to be placed inside the
hooks.fileHeaders
property, instead offileHeader
. Note the shift from the singular to the plural form in this update.Styledictionary/4/Hook Api Actions
This codemod updates registered actions to be placed inside the
hooks.actions
property, instead ofaction
. Note the shift from the singular to the plural form in this update.Styledictionary/4/Hook Api Formats
This codemod updates registered formats to be placed inside the
hooks.formats
property, instead offormat
, with a shift from the singular to the plural form. Additionally, the formatter handler function has been renamed toformat
for consistency. Some importable type interfaces have also been renamed.Styledictionary/4/Asynchronous Api
This codemod updates the following StyleDictionary class methods to be asynchronous:
extend()
,exportPlatform()
,getPlatform()
,buildAllPlatforms()
,buildPlatform()
,cleanAllPlatforms()
, andcleanPlatform()
. This ensures compatibility with the latest asynchronous workflows in Style Dictionary.Styledictionary/4/Asynchronous Api File Headers
This codemod updates the
fileHeader
format helper utility to be asynchronous, allowing support for async fileHeaders while maintaining consistency with the latest updates.Styledictionary/4/Updated And Removed Transforms
What Changed
Styledictionary/4/Type
What Changed
Styledictionary/4/Reference Utils
What Changed
Styledictionary/4/Module Common Js
What Changed
Styledictionary/4/Migration Recipe
This recipe is a set of codemods that will help migrate to Style Dictionary 4.
Styledictionary/4/Instantiating Style Dictionary
What Changed
Styledictionary/4/Formatting Options
What Changed
Styledictionary/4/Format Helpers
What Changed