Update dependency style-dictionary to v4.0.0-prerelease.26 #533
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
4.0.0-prerelease.15
->4.0.0-prerelease.26
Release Notes
amzn/style-dictionary (style-dictionary)
v4.0.0-prerelease.26
Compare Source
Minor Changes
3485467
: Fix some inconsistencies in some of the templates, usually with regards to spaces/newlinesPatch Changes
6cfce97
: Fix logging to be ordered by platform when building or cleaning platforms. This now happens in parallel, resulting in the logs being ordered randomly which was a small regression to the logging experience.061c67e
: Hotfix to address outputReferencesTransformed util not handling object-value tokens properly.v4.0.0-prerelease.25
Compare Source
Major Changes
0b81a08
: BREAKING: no longer wraps tokens of type asset in double quotes. Rather, we added a transformasset/url
that will wrap such tokens insideurl("")
statements, this transform is applied to transformGroups scss, css and less.Minor Changes
2da5130
: AddedoutputReferencesTransformed
utility function to pass into outputReferences option, which will not output references for values that have been transitively transformed.Patch Changes
47face0
: Token merging behavior changed so that upon token collisions, metadata props aren't accidentally merged together.v4.0.0-prerelease.24
Compare Source
Major Changes
5e167de
: BREAKING: movedformatHelpers
away from the StyleDictionary class and export them in'style-dictionary/utils'
entrypoint instead.Before
After
90095a6
: BREAKING: Allow specifying afunction
foroutputReferences
, conditionally outputting a ref or not per token. Also exposesoutputReferencesFilter
utility function which will determine whether a token should be outputting refs based on whether those referenced tokens were filtered out or not.If you are maintaining a custom format that allows
outputReferences
option, you'll need to take into account that it can be a function, and pass the correct options to it.Before:
After
v4.0.0-prerelease.23
Compare Source
Patch Changes
f8c40f7
: fix(types): add missing type keyword for type export from index.d.tsv4.0.0-prerelease.22
Compare Source
Patch Changes
daa78e1
: Added missing type exportsv4.0.0-prerelease.21
Compare Source
Minor Changes
8b6fff3
: Fixes some noisy warnings still being outputted even when verbosity is set to default.We also added log.warning "disabled" option for turning off warnings altogether, meaning you only get success logs and fatal errors.
This option can be used from the CLI as well using the
--no-warn
flag.Patch Changes
77ae35f
: Fix scenario of passing absolute paths in Node env, do not remove leading slash in absolute paths.v4.0.0-prerelease.20
Compare Source
Minor Changes
aff6646
: Allow passing a custom FileSystem Volume to your Style-Dictionary instances, to ensure input/output files are read/written from/to that specific volume.Useful in case you want multiple Style-Dictionary instances that are isolated from one another in terms of inputs/outputs.
This also works when using extend:
v4.0.0-prerelease.19
Compare Source
Major Changes
79bb201
: BREAKING: Logging has been redesigned a fair bit and is more configurable now.Before:
After:
Log is now and object and the old "log" option is now "warnings".
This configures whether the following five warnings will be thrown as errors instead of being logged as warnings:
Verbosity configures whether the following warnings/errors should display in a verbose manner:
And it also configures whether success/neutral logs should be logged at all.
Using "silent" (or --silent in the CLI) means no logs are shown apart from fatal errors.
bcb5ef3
: Remove reliance on CTI token structure across transforms, actions and formats.Breaking changes:
attributes.category
as the token type indicator.name/cti/casing
to justname/casing
.name/ti/camel
andname/ti/constant
have been removed. For examplename/cti/kebab
transform is nowname/kebab
.content/icon
has been renamed tohtml/icon
since it targets HTML entity strings, not just any icon content.font/objC/literal
,font/swift/literal
andfont/flutter/literal
have been removed in favor offont/objC/literal
,font/swift/literal
andfont/flutter/literal
, as they do he exact same transformations.typescript/module-declarations
format to be updated with current DesignToken type interface.Before:
After:
Patch Changes
8e297d6
: Fix outputReferences for DTCG spec tokens, by using token.original.$value instead of token.original.value.v4.0.0-prerelease.18
Compare Source
Patch Changes
738686b
: Allow transformGroup to be combined with transforms, where standalone transforms will be added after the group's transforms.v4.0.0-prerelease.17
Compare Source
Patch Changes
63681a6
: Fix a couple of type imports issues in .d.ts filesv4.0.0-prerelease.16
Compare Source
Patch Changes
72f020d
: Pass outputReferencesFallback option to the relevant utilities, so the option actually works.d008c67
: Fix a couple of spots where DTCG option wasn't properly taken into account, more tests added.Configuration
📅 Schedule: Branch creation - "before 5am every weekday" in timezone Europe/London, 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.