-
Notifications
You must be signed in to change notification settings - Fork 557
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
844892c
commit 97236c0
Showing
35 changed files
with
1,022 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
'style-dictionary': major | ||
--- | ||
|
||
BREAKING: Logging has been redesigned a fair bit and is more configurable now. | ||
|
||
Before: | ||
|
||
```json | ||
{ | ||
"log": "error" // 'error' | 'warn' -> 'warn' is the default value | ||
} | ||
``` | ||
|
||
After: | ||
|
||
```json | ||
{ | ||
"log": { | ||
"warnings": "error", // 'error' | 'warn' -> 'warn' is the default value | ||
"verbosity": "verbose" // 'default' | 'verbose' | 'silent' -> 'default' is the default value | ||
} | ||
} | ||
``` | ||
|
||
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: | ||
|
||
- Token value collisions (in the source) | ||
- Token name collisions (when exporting) | ||
- Missing "undo" function for Actions | ||
- File not created because no tokens found, or all of them filtered out | ||
- Broken references in file when using outputReferences, but referring to a token that's been filtered out | ||
|
||
Verbosity configures whether the following warnings/errors should display in a verbose manner: | ||
|
||
- Token collisions of both types (value & name) | ||
- Broken references due to outputReferences & filters | ||
- Token reference errors | ||
|
||
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.