@cobalt-ui/core
Advanced tools
Comparing version 1.7.2 to 1.7.3
# @cobalt-ui/core | ||
## 1.7.3 | ||
### Patch Changes | ||
- [#208](https://github.com/drwpow/cobalt-ui/pull/208) [`12f41273b853b98c8da665552ab342df7b0baf9e`](https://github.com/drwpow/cobalt-ui/commit/12f41273b853b98c8da665552ab342df7b0baf9e) Thanks [@james-nash](https://github.com/james-nash)! - Allows DTCG files to contain empty groups. Previously they would cause a parsing error, now only a warning will be logged. | ||
## 1.7.2 | ||
@@ -4,0 +10,0 @@ |
@@ -64,3 +64,3 @@ import { cloneDeep, FG_YELLOW, getAliasID, invalidTokenIDError, isAlias, RESET } from '@cobalt-ui/utils'; | ||
if (!Object.keys(v).length) { | ||
errors.push(`${k}: groups can’t be empty`); | ||
warnings.push(`${k}: group is empty`); | ||
} | ||
@@ -67,0 +67,0 @@ // token |
{ | ||
"name": "@cobalt-ui/core", | ||
"description": "Parser/validator for the Design Tokens Community Group (DTCG) standard.", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Drew Powers", |
@@ -92,3 +92,3 @@ import {cloneDeep, FG_YELLOW, getAliasID, invalidTokenIDError, isAlias, RESET} from '@cobalt-ui/utils'; | ||
if (!Object.keys(v).length) { | ||
errors.push(`${k}: groups can’t be empty`); | ||
warnings.push(`${k}: group is empty`); | ||
} | ||
@@ -95,0 +95,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
660400