From c9ae1b8a592e7cf7b9ce5218403fed5406fec2ec Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Wed, 8 Jul 2020 19:24:42 -0700 Subject: [PATCH] chore(release): 2.10.1 --- CHANGELOG.md | 8 ++++++++ docs/api.md | 5 ++--- docs/formats.md | 4 ++-- examples/advanced/assets-base64-embed/package.json | 2 +- examples/advanced/auto-rebuild-watcher/package.json | 2 +- examples/advanced/component-cti/package.json | 2 +- examples/advanced/create-react-app/package.json | 4 ++-- .../advanced/custom-formats-with-templates/package.json | 2 +- examples/advanced/custom-transforms/package.json | 2 +- examples/advanced/multi-brand-multi-platform/package.json | 2 +- .../node-modules-as-config-and-properties/package.json | 2 +- examples/advanced/npm-module/package.json | 2 +- examples/advanced/referencing_aliasing/package.json | 2 +- examples/advanced/s3/package.json | 2 +- examples/advanced/tokens-deprecation/package.json | 2 +- package-lock.json | 2 +- package.json | 2 +- 17 files changed, 27 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd27f4698..fe1c3f556 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [2.10.1](https://github.com/amzn/style-dictionary/compare/v2.10.0...v2.10.1) (2020-07-09) + + +### Bug Fixes + +* **filter:** fix conditional to ensure we catch properties with a falsy value ([#423](https://github.com/amzn/style-dictionary/issues/423)) ([1ec4e74](https://github.com/amzn/style-dictionary/commit/1ec4e74b9b717208f7d64aa33d43774ae8023a23)), closes [#406](https://github.com/amzn/style-dictionary/issues/406) +* **formats:** align scss/map-* with scss/variables on asset category ([9d867ef](https://github.com/amzn/style-dictionary/commit/9d867ef3ad72cf68557434ce1a28ba996a5ac467)) + ## [2.10.0](https://github.com/amzn/style-dictionary/compare/v2.9.0...v2.10.0) (2020-05-05) diff --git a/docs/api.md b/docs/api.md index 1560dd900..61c1800a2 100644 --- a/docs/api.md +++ b/docs/api.md @@ -148,9 +148,8 @@ base64'ing files, running other build scripts, etc. After you register a custom action, you then use that action in a platform your config.json - -Actions run after the files in a platform are generated, which allows you -to perform operations on files generated by the style dictionary. +You can perform operations on files generated by the style dictionary +as actions run after these files are generated. Actions are run sequentially, if you write synchronous code then it will block other actions, or if you use asynchronous code like Promises it will not block. diff --git a/docs/formats.md b/docs/formats.md index 985baa934..19cb7d3b5 100644 --- a/docs/formats.md +++ b/docs/formats.md @@ -33,7 +33,7 @@ There is an extensive (but not exhaustive) list of [included formats](#pre-defin ### Format configuration -Formats are flexible and may accept configuration options. This allows you to re-use the same format multiple times with different configurations or to allow the format to use data not defined in the tokens themselves. To configure a format, add extra attributes on the file object in your configuration as written below: +Formats can take configuration to make them more flexible. This allows you to re-use the same format multiple times with different configurations or to allow the format to use data not defined in the tokens themselves. To configure a format, add extra attributes on the file object in your configuration like the following: ```json { @@ -73,7 +73,7 @@ A special file configuration is `filter`, which will filter the tokens before th ### Creating formats -You can create custom formats using the [`registerFormat`](api.md#registerformat) function. If you want to add configuration to your custom format, `this` is bound to the file object allowing you access to the attributes on the file object with `this.myCustomAttribute` if the file object looks like: +You can create custom formats using the [`registerFormat`](api.md#registerformat) function. If you want to add configuration to your custom format, `this` is bound to the file object. Using this, you can access attributes on the file object with `this.myCustomAttribute` if the file object looks like: ```json { diff --git a/examples/advanced/assets-base64-embed/package.json b/examples/advanced/assets-base64-embed/package.json index 6d7367cc6..ffaa6ad72 100644 --- a/examples/advanced/assets-base64-embed/package.json +++ b/examples/advanced/assets-base64-embed/package.json @@ -11,6 +11,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/auto-rebuild-watcher/package.json b/examples/advanced/auto-rebuild-watcher/package.json index 2379d6781..a3d4fc559 100644 --- a/examples/advanced/auto-rebuild-watcher/package.json +++ b/examples/advanced/auto-rebuild-watcher/package.json @@ -17,6 +17,6 @@ "license": "Apache-2.0", "devDependencies": { "chokidar-cli": "^1.2.0", - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/component-cti/package.json b/examples/advanced/component-cti/package.json index ff863abb9..c3aa5bad5 100644 --- a/examples/advanced/component-cti/package.json +++ b/examples/advanced/component-cti/package.json @@ -15,6 +15,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/create-react-app/package.json b/examples/advanced/create-react-app/package.json index 3bc7f2d8f..c2f964e90 100644 --- a/examples/advanced/create-react-app/package.json +++ b/examples/advanced/create-react-app/package.json @@ -10,7 +10,7 @@ "styled-components": "^5.1.1" }, "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" }, "scripts": { "build-dictionary": "style-dictionary build --config ./style-dictionary/config.json", @@ -29,4 +29,4 @@ "not op_mini all" ], "license": "Apache-2.0" -} +} \ No newline at end of file diff --git a/examples/advanced/custom-formats-with-templates/package.json b/examples/advanced/custom-formats-with-templates/package.json index 42b1ac37e..68404fc83 100644 --- a/examples/advanced/custom-formats-with-templates/package.json +++ b/examples/advanced/custom-formats-with-templates/package.json @@ -19,6 +19,6 @@ "handlebars": "^4.0.12", "lodash": "^4.17.11", "pug": "^2.0.3", - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/custom-transforms/package.json b/examples/advanced/custom-transforms/package.json index 352689ce5..76112d527 100644 --- a/examples/advanced/custom-transforms/package.json +++ b/examples/advanced/custom-transforms/package.json @@ -15,6 +15,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/multi-brand-multi-platform/package.json b/examples/advanced/multi-brand-multi-platform/package.json index 64581bb0d..7f502577c 100644 --- a/examples/advanced/multi-brand-multi-platform/package.json +++ b/examples/advanced/multi-brand-multi-platform/package.json @@ -15,6 +15,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/node-modules-as-config-and-properties/package.json b/examples/advanced/node-modules-as-config-and-properties/package.json index de168cdae..5931dee10 100644 --- a/examples/advanced/node-modules-as-config-and-properties/package.json +++ b/examples/advanced/node-modules-as-config-and-properties/package.json @@ -19,7 +19,7 @@ }, "homepage": "https://github.com/dbanksdesign/style-dictionary-node#readme", "devDependencies": { - "style-dictionary": "2.10.0", + "style-dictionary": "2.10.1", "tinycolor2": "^1.4.1" } } \ No newline at end of file diff --git a/examples/advanced/npm-module/package.json b/examples/advanced/npm-module/package.json index 0433a1f34..b342050fd 100644 --- a/examples/advanced/npm-module/package.json +++ b/examples/advanced/npm-module/package.json @@ -16,6 +16,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/referencing_aliasing/package.json b/examples/advanced/referencing_aliasing/package.json index 65c47a255..f271c7967 100644 --- a/examples/advanced/referencing_aliasing/package.json +++ b/examples/advanced/referencing_aliasing/package.json @@ -15,6 +15,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/s3/package.json b/examples/advanced/s3/package.json index ff33feddf..f0dd80c13 100644 --- a/examples/advanced/s3/package.json +++ b/examples/advanced/s3/package.json @@ -15,6 +15,6 @@ "devDependencies": { "aws-sdk": "^2.7.21", "fs-extra": "^1.0.0", - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/examples/advanced/tokens-deprecation/package.json b/examples/advanced/tokens-deprecation/package.json index 2ad0cccdc..7704b733e 100644 --- a/examples/advanced/tokens-deprecation/package.json +++ b/examples/advanced/tokens-deprecation/package.json @@ -16,6 +16,6 @@ "license": "Apache-2.0", "devDependencies": { "lodash": "^4.17.11", - "style-dictionary": "2.10.0" + "style-dictionary": "2.10.1" } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 21c9f65d3..e4676f672 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "style-dictionary", - "version": "2.10.0", + "version": "2.10.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 297da393a..4fb3c3fe0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "style-dictionary", - "version": "2.10.0", + "version": "2.10.1", "description": "Style once, use everywhere. A build system for creating cross-platform styles.", "keywords": [ "style dictionary",