diff --git a/CHANGELOG.md b/CHANGELOG.md index 9df061f1e..d8500fbe6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ 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. +### [3.7.1](https://github.com/amzn/style-dictionary/compare/v3.7.0...v3.7.1) (2022-06-07) + + +### Bug Fixes + +* **references:** getReferences now searches the entire object ([#812](https://github.com/amzn/style-dictionary/issues/812)) ([884b1b8](https://github.com/amzn/style-dictionary/commit/884b1b896852d9e0b75066207d06619d500d1d3f)) +* **references:** tokens with a number value should be interpolated correctly ([#825](https://github.com/amzn/style-dictionary/issues/825)) ([a2f7784](https://github.com/amzn/style-dictionary/commit/a2f7784d719f3f416f32a8346cb33f83266f288a)) +* **transforms:** transitive transforms now work without .value in refs ([#808](https://github.com/amzn/style-dictionary/issues/808)) ([41bc893](https://github.com/amzn/style-dictionary/commit/41bc893ffb49ed241c8affe9098672d558966472)) + ## [3.7.0](https://github.com/amzn/style-dictionary/compare/v3.1.1...v3.7.0) (2022-02-22) diff --git a/docs/formats.md b/docs/formats.md index e489defa5..7a19b9ce9 100644 --- a/docs/formats.md +++ b/docs/formats.md @@ -51,7 +51,7 @@ Formats can take configuration to make them more flexible. This allows you to re } ``` -In this example we are adding the `mapName` configuration to the `scss/map-deep` format. This will change the name of the SCSS map in the output. Not all formats have the configuration options; format configuration is defined by the format itself. To see the configurtion options of a format, take a look at the documentation of the [specific format](#pre-defined-formats) +In this example we are adding the `mapName` configuration to the `scss/map-deep` format. This will change the name of the SCSS map in the output. Not all formats have the configuration options; format configuration is defined by the format itself. To see the configuration options of a format, take a look at the documentation of the [specific format](#pre-defined-formats) ## Filtering tokens @@ -486,7 +486,11 @@ This is used to create lists of variables like Sass variables or CSS custom prop StyleDictionary.registerFormat({ name: 'myCustomFormat', formatter: function({ dictionary, options }) { - return formattedVariables('less', dictionary, options.outputReferences); + return formattedVariables({ + format: 'less', + dictionary, + outputReferences: options.outputReferences + }); } }); ``` @@ -499,8 +503,7 @@ StyleDictionary.registerFormat({ Given some value, returns a basic valid TypeScript type for that value. Supports numbers, strings, booleans, arrays and objects of any of those types. -**Returns**: String - A valid name for a TypeScript type. -``` +**Returns**: String - A valid name for a TypeScript type. @@ -527,6 +530,7 @@ StyleDictionary.registerFormat({ }).join('\n'); } }); +``` * * * diff --git a/examples/advanced/assets-base64-embed/package.json b/examples/advanced/assets-base64-embed/package.json index d2bc57f6c..5a50808eb 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": "3.7.0" + "style-dictionary": "3.7.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 72059bf8a..c4020631a 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": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/component-cti/package.json b/examples/advanced/component-cti/package.json index 7dc341168..b60f5a478 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": "3.7.0" + "style-dictionary": "3.7.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 49e376b85..60180b240 100644 --- a/examples/advanced/create-react-app/package.json +++ b/examples/advanced/create-react-app/package.json @@ -10,7 +10,7 @@ "styled-components": "^5.3.0" }, "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" }, "resolutions": { "immer": "8.0.1", diff --git a/examples/advanced/create-react-native-app/package.json b/examples/advanced/create-react-native-app/package.json index 538b2984a..7186acc9a 100644 --- a/examples/advanced/create-react-native-app/package.json +++ b/examples/advanced/create-react-native-app/package.json @@ -27,7 +27,7 @@ "babel-jest": "~25.2.6", "jest": "~25.2.6", "react-test-renderer": "~16.13.1", - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" }, "jest": { "preset": "react-native" diff --git a/examples/advanced/custom-file-header/package.json b/examples/advanced/custom-file-header/package.json index a55a3b183..de2ec2921 100644 --- a/examples/advanced/custom-file-header/package.json +++ b/examples/advanced/custom-file-header/package.json @@ -10,6 +10,6 @@ "author": "", "license": "ISC", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/custom-filters/package.json b/examples/advanced/custom-filters/package.json index 3851bb50f..54cbf55e1 100644 --- a/examples/advanced/custom-filters/package.json +++ b/examples/advanced/custom-filters/package.json @@ -15,6 +15,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ 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 ff273924c..4482b678a 100644 --- a/examples/advanced/custom-formats-with-templates/package.json +++ b/examples/advanced/custom-formats-with-templates/package.json @@ -18,6 +18,6 @@ "handlebars": "^4.7.7", "lodash": "^4.17.21", "pug": "^3.0.2", - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/custom-parser/package.json b/examples/advanced/custom-parser/package.json index a89b87a92..4346d87a3 100644 --- a/examples/advanced/custom-parser/package.json +++ b/examples/advanced/custom-parser/package.json @@ -9,6 +9,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/custom-transforms/package.json b/examples/advanced/custom-transforms/package.json index a5720770c..ba29ed31f 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": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/font-face-rules/package.json b/examples/advanced/font-face-rules/package.json index 9d206687b..87b591f65 100644 --- a/examples/advanced/font-face-rules/package.json +++ b/examples/advanced/font-face-rules/package.json @@ -8,6 +8,6 @@ }, "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/format-helpers/package.json b/examples/advanced/format-helpers/package.json index 22ab48598..05020cb1c 100644 --- a/examples/advanced/format-helpers/package.json +++ b/examples/advanced/format-helpers/package.json @@ -10,6 +10,6 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/matching-build-files/package.json b/examples/advanced/matching-build-files/package.json index 8075c5ea4..3b6e68767 100644 --- a/examples/advanced/matching-build-files/package.json +++ b/examples/advanced/matching-build-files/package.json @@ -16,6 +16,6 @@ "author": "Kelly Harrop ", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.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 d177f9006..2d08f30c3 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": "3.7.0" + "style-dictionary": "3.7.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 bdf22fb1c..9d20c59dc 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": "3.7.0", + "style-dictionary": "3.7.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 5755c4f0d..860d3654d 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": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/referencing_aliasing/package.json b/examples/advanced/referencing_aliasing/package.json index 42c537fc0..c75893fbc 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": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/s3/package.json b/examples/advanced/s3/package.json index 9fe7d44ac..c1aa62329 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": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/tokens-deprecation/package.json b/examples/advanced/tokens-deprecation/package.json index 25756419c..954a653e5 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": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/transitive-transforms/package.json b/examples/advanced/transitive-transforms/package.json index d6682db5d..7b5836f43 100644 --- a/examples/advanced/transitive-transforms/package.json +++ b/examples/advanced/transitive-transforms/package.json @@ -11,6 +11,6 @@ "license": "ISC", "devDependencies": { "chroma-js": "^2.1.0", - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/variables-in-outputs/package.json b/examples/advanced/variables-in-outputs/package.json index 976e6497f..1dd2826cc 100644 --- a/examples/advanced/variables-in-outputs/package.json +++ b/examples/advanced/variables-in-outputs/package.json @@ -10,6 +10,6 @@ "author": "", "license": "MIT", "devDependencies": { - "style-dictionary": "3.7.0" + "style-dictionary": "3.7.1" } } \ No newline at end of file diff --git a/examples/advanced/yaml-tokens/package.json b/examples/advanced/yaml-tokens/package.json index 3f61bf6c3..f197fa2bd 100644 --- a/examples/advanced/yaml-tokens/package.json +++ b/examples/advanced/yaml-tokens/package.json @@ -9,7 +9,7 @@ "author": "", "license": "Apache-2.0", "devDependencies": { - "style-dictionary": "3.7.0", + "style-dictionary": "3.7.1", "yaml": "^1.10.0" } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index e901a6a57..0b171965f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "style-dictionary", - "version": "3.7.0", + "version": "3.7.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "style-dictionary", - "version": "3.7.0", + "version": "3.7.1", "license": "Apache-2.0", "dependencies": { "chalk": "^4.0.0", diff --git a/package.json b/package.json index f79a027bd..f27b64548 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "style-dictionary", - "version": "3.7.0", + "version": "3.7.1", "description": "Style once, use everywhere. A build system for creating cross-platform styles.", "keywords": [ "style dictionary",