From ebf02c1892bff2087118b6190c05f64e1a0b8ab9 Mon Sep 17 00:00:00 2001 From: Danny Banks Date: Tue, 3 Jan 2023 13:47:29 -0800 Subject: [PATCH] chore(release): 3.7.2 --- CHANGELOG.md | 17 +++++++++++++++++ docs/formats.md | 2 +- docs/transforms.md | 15 +++++++++++++++ .../advanced/assets-base64-embed/package.json | 2 +- .../advanced/auto-rebuild-watcher/package.json | 2 +- examples/advanced/component-cti/package.json | 2 +- examples/advanced/create-react-app/package.json | 2 +- .../create-react-native-app/package.json | 2 +- .../advanced/custom-file-header/package.json | 2 +- examples/advanced/custom-filters/package.json | 2 +- .../custom-formats-with-templates/package.json | 2 +- examples/advanced/custom-parser/package.json | 2 +- .../advanced/custom-transforms/package.json | 2 +- examples/advanced/font-face-rules/package.json | 2 +- examples/advanced/format-helpers/package.json | 2 +- .../advanced/matching-build-files/package.json | 2 +- .../multi-brand-multi-platform/package.json | 2 +- .../package.json | 2 +- examples/advanced/npm-module/package.json | 2 +- .../advanced/referencing_aliasing/package.json | 2 +- examples/advanced/s3/package.json | 2 +- .../advanced/tokens-deprecation/package.json | 2 +- .../advanced/transitive-transforms/package.json | 2 +- .../advanced/variables-in-outputs/package.json | 2 +- examples/advanced/yaml-tokens/package.json | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 27 files changed, 58 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8500fbe..deb78b8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ 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.2](https://github.com/amzn/style-dictionary/compare/v3.7.0...v3.7.2) (2023-01-03) + + +### Bug Fixes + +* **docs:** Correct custom-file-header example link ([#869](https://github.com/amzn/style-dictionary/issues/869)) ([4e156b1](https://github.com/amzn/style-dictionary/commit/4e156b103a35dfb6e70d48db4d04892cc6fb2d43)) +* **docs:** removed the duplicate wording ([#870](https://github.com/amzn/style-dictionary/issues/870)) ([dbb89e5](https://github.com/amzn/style-dictionary/commit/dbb89e59c656c2951ee36ed11ab65edb4d60ee05)) +* **formats:** scss/map-deep type error when values are strings or null ([#838](https://github.com/amzn/style-dictionary/issues/838)) ([d338633](https://github.com/amzn/style-dictionary/commit/d338633fd8c864470e44ff902ed0ed45dc4a3958)), closes [#837](https://github.com/amzn/style-dictionary/issues/837) +* **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)) +* **types:** add matcher type to export ([#878](https://github.com/amzn/style-dictionary/issues/878)) ([2617a0d](https://github.com/amzn/style-dictionary/commit/2617a0d42d9c0c017e2a54ad9ea5e8667ece9c92)), closes [#875](https://github.com/amzn/style-dictionary/issues/875) +* **types:** added packageName as optional property on interface File ([#829](https://github.com/amzn/style-dictionary/issues/829)) ([0996cc4](https://github.com/amzn/style-dictionary/commit/0996cc473fe97aaff3298cdfeb20b159e8329ce1)) +* **types:** adding missing format helpers ([#834](https://github.com/amzn/style-dictionary/issues/834)) ([a6f4b34](https://github.com/amzn/style-dictionary/commit/a6f4b3487cf5ef9230417108b07ad73a74d9fa0e)) +* **types:** fix filter config key expected matcher value ([#883](https://github.com/amzn/style-dictionary/issues/883)) ([c77c3db](https://github.com/amzn/style-dictionary/commit/c77c3db2244ccb736b4752591f0494c31b9a1184)) +* **types:** fixing transform group property type of Config ([#833](https://github.com/amzn/style-dictionary/issues/833)) ([0f0ad10](https://github.com/amzn/style-dictionary/commit/0f0ad10564df93813df1261a8ddc55e70f261ad5)) + ### [3.7.1](https://github.com/amzn/style-dictionary/compare/v3.7.0...v3.7.1) (2022-06-07) diff --git a/docs/formats.md b/docs/formats.md index b02e98f7..5b00a703 100644 --- a/docs/formats.md +++ b/docs/formats.md @@ -530,7 +530,7 @@ StyleDictionary.registerFormat({ }).join('\n'); } }); -``` +``` * * * diff --git a/docs/transforms.md b/docs/transforms.md index b609eb3b..7ac58943 100644 --- a/docs/transforms.md +++ b/docs/transforms.md @@ -616,6 +616,21 @@ Scales the number by 16 (or the value of 'basePxFontSize' on the platform in you ``` +* * * + +### size/pxToRem + + +Scales non-zero numbers to rem, and adds 'rem' to the end. If you define a "basePxFontSize" on the platform in your config, it will be used to scale the value, otherwise 16 (default web font size) will be used. + +```js +// Matches: token.attributes.category === 'size' +// Returns: +"0" +"1rem" +``` + + * * * ### content/icon diff --git a/examples/advanced/assets-base64-embed/package.json b/examples/advanced/assets-base64-embed/package.json index 5a50808e..a1460583 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.1" + "style-dictionary": "3.7.2" } } \ 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 c4020631..9b368200 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/component-cti/package.json b/examples/advanced/component-cti/package.json index b60f5a47..6e70c40c 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.1" + "style-dictionary": "3.7.2" } } \ 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 2ed244d2..3e27dda8 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.1" + "style-dictionary": "3.7.2" }, "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 bf7dc333..8c849825 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.1" + "style-dictionary": "3.7.2" }, "jest": { "preset": "react-native" diff --git a/examples/advanced/custom-file-header/package.json b/examples/advanced/custom-file-header/package.json index de2ec292..c51e13ea 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/custom-filters/package.json b/examples/advanced/custom-filters/package.json index 54cbf55e..d5463a7c 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.1" + "style-dictionary": "3.7.2" } } \ 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 4482b678..34b40e68 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/custom-parser/package.json b/examples/advanced/custom-parser/package.json index 4346d87a..4c5d13fe 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/custom-transforms/package.json b/examples/advanced/custom-transforms/package.json index ba29ed31..f24ade2a 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.1" + "style-dictionary": "3.7.2" } } \ 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 87b591f6..20f55d14 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/format-helpers/package.json b/examples/advanced/format-helpers/package.json index 05020cb1..1cffd82a 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.1" + "style-dictionary": "3.7.2" } } \ 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 3b6e6876..8494d83e 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.1" + "style-dictionary": "3.7.2" } } \ 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 2d08f30c..4dcef0c2 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.1" + "style-dictionary": "3.7.2" } } \ 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 9d20c59d..9c2dcf4f 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.1", + "style-dictionary": "3.7.2", "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 860d3654..1ecda2a8 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/referencing_aliasing/package.json b/examples/advanced/referencing_aliasing/package.json index c75893fb..cf687eca 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/s3/package.json b/examples/advanced/s3/package.json index c1aa6232..c21ee5ab 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/tokens-deprecation/package.json b/examples/advanced/tokens-deprecation/package.json index 954a653e..14e883b6 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/transitive-transforms/package.json b/examples/advanced/transitive-transforms/package.json index 7b5836f4..a45c7870 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.1" + "style-dictionary": "3.7.2" } } \ 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 1dd2826c..e5cc676f 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.1" + "style-dictionary": "3.7.2" } } \ No newline at end of file diff --git a/examples/advanced/yaml-tokens/package.json b/examples/advanced/yaml-tokens/package.json index f197fa2b..8d742c19 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.1", + "style-dictionary": "3.7.2", "yaml": "^1.10.0" } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9a9f61ad..2742091a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "style-dictionary", - "version": "3.7.1", + "version": "3.7.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "style-dictionary", - "version": "3.7.1", + "version": "3.7.2", "license": "Apache-2.0", "dependencies": { "chalk": "^4.0.0", diff --git a/package.json b/package.json index f27b6454..a8ca90b9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "style-dictionary", - "version": "3.7.1", + "version": "3.7.2", "description": "Style once, use everywhere. A build system for creating cross-platform styles.", "keywords": [ "style dictionary",