diff --git a/CHANGELOG.md b/CHANGELOG.md index 21798b8f2..638049613 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,21 @@ 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.0.0-rc.2](https://github.com/amzn/style-dictionary/compare/v3.0.0-rc.1...v3.0.0-rc.2) (2021-01-12) + + +### Features + +* **format:** adding android/resources format ([e43aafd](https://github.com/amzn/style-dictionary/commit/e43aafd0e4c5f34158ea0cdc222833b79b35ab16)) +* **transforms:** add 'px to rem' transform ([#491](https://github.com/amzn/style-dictionary/issues/491)) ([75f0ba3](https://github.com/amzn/style-dictionary/commit/75f0ba36e1211edf955c7b6bd6c58cbd9fc6524c)) + + +### Bug Fixes + +* **extend:** use given file path for token data ([#499](https://github.com/amzn/style-dictionary/issues/499)) ([0b23c9d](https://github.com/amzn/style-dictionary/commit/0b23c9d77e367b2080e4b624fcb294773b2aefcb)) +* **parsers:** fixed an error where parsers weren't running ([#511](https://github.com/amzn/style-dictionary/issues/511)) ([b0077c3](https://github.com/amzn/style-dictionary/commit/b0077c3d06caf5b7fcacd7378aab7827cdaa3961)) +* **types:** fix transform options type [#502](https://github.com/amzn/style-dictionary/issues/502) ([32787f8](https://github.com/amzn/style-dictionary/commit/32787f8a133a61f6132cef4bb88922f72951b804)) + ## [3.0.0-rc.1](https://github.com/amzn/style-dictionary/compare/v3.0.0-rc.0...v3.0.0-rc.1) (2020-12-04) ## [3.0.0-rc.0](https://github.com/amzn/style-dictionary/compare/v2.10.2...v3.0.0-rc.0) (2020-12-03) diff --git a/docs/transforms.md b/docs/transforms.md index 6052d371e..0802ac514 100644 --- a/docs/transforms.md +++ b/docs/transforms.md @@ -381,7 +381,7 @@ Transforms the value into a density-independent pixel (dp) value for non-font si ### size/remToSp -Transforms the value from a REM size on web into a scale-independent pixel (sp) value for font sizes on Android. It WILL scale the number by a factor of 16 (common base font size on web). +Transforms the value from a REM size on web into a scale-independent pixel (sp) value for font sizes on Android. It WILL scale the number by a factor of 16 (or the value of 'basePxFontSize' on the platform in your config). ```js // Matches: prop.attributes.category === 'size' && prop.attributes.type === 'font' @@ -395,7 +395,7 @@ Transforms the value from a REM size on web into a scale-independent pixel (sp) ### size/remToDp -Transforms the value from a REM size on web into a density-independent pixel (dp) value for font sizes on Android. It WILL scale the number by a factor of 16 (common base font size on web). +Transforms the value from a REM size on web into a density-independent pixel (dp) value for font sizes on Android. It WILL scale the number by a factor of 16 (or the value of 'basePxFontSize' on the platform in your config). ```js // Matches: prop.attributes.category === 'size' && prop.attributes.type !== 'font' @@ -437,7 +437,7 @@ Adds 'rem' to the end of the number. Does not scale the number ### size/remToPt -Scales the number by 16 (default web font size) and adds 'pt' to the end. +Scales the number by 16 (or the value of 'basePxFontSize' on the platform in your config) and adds 'pt' to the end. ```js // Matches: prop.attributes.category === 'size' @@ -451,7 +451,7 @@ Scales the number by 16 (default web font size) and adds 'pt' to the end. ### size/swift/remToCGFloat -Scales the number by 16 to get to points for Swift and initializes a CGFloat +Scales the number by 16 (or the value of 'basePxFontSize' on the platform in your config) to get to points for Swift and initializes a CGFloat ```js // Matches: prop.attributes.category === 'size' @@ -464,7 +464,7 @@ Scales the number by 16 to get to points for Swift and initializes a CGFloat ### size/remToPx -Scales the number by 16 (default web font size) and adds 'px' to the end. +Scales the number by 16 (or the value of 'basePxFontSize' on the platform in your config) and adds 'px' to the end. ```js // Matches: prop.attributes.category === 'size' @@ -679,7 +679,7 @@ Wraps the value in a double-quoted string to make a string literal. ### size/flutter/remToDouble -Scales the number by 16 to get to points for Flutter +Scales the number by 16 (or the value of 'basePxFontSize' on the platform in your config) to get to points for Flutter ```dart // Matches: prop.attributes.category === 'size' diff --git a/examples/advanced/assets-base64-embed/package.json b/examples/advanced/assets-base64-embed/package.json index 1fca3e06f..c09d5563a 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.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 e4efdfe8e..71848db38 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/component-cti/package.json b/examples/advanced/component-cti/package.json index 9d3a8953c..d392b9acf 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.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 38d97d5f4..b85344a3a 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": "3.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" }, "scripts": { "build-dictionary": "style-dictionary build --config ./style-dictionary/config.json", diff --git a/examples/advanced/custom-formats-with-templates/package.json b/examples/advanced/custom-formats-with-templates/package.json index ab5fa83c8..d3380f86f 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": "3.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/custom-parser/package.json b/examples/advanced/custom-parser/package.json index 866abe86b..798637bc1 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/custom-transforms/package.json b/examples/advanced/custom-transforms/package.json index 2527e3390..85e3ff4a0 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.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 db92cb356..d72eff032 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.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 7c0eb8948..49d0d4927 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.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 3cc06ec70..b381cc65f 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.0.0-rc.1", + "style-dictionary": "3.0.0-rc.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 16a111d1f..0c50522d4 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/referencing_aliasing/package.json b/examples/advanced/referencing_aliasing/package.json index 110ec6cab..fa9a8a1a1 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/s3/package.json b/examples/advanced/s3/package.json index 63a175873..a5523c59f 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/tokens-deprecation/package.json b/examples/advanced/tokens-deprecation/package.json index ac3988643..9f985877b 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/transitive-transforms/package.json b/examples/advanced/transitive-transforms/package.json index 526041680..74545a9cd 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.0.0-rc.1" + "style-dictionary": "3.0.0-rc.2" } } \ No newline at end of file diff --git a/examples/advanced/yaml-tokens/package.json b/examples/advanced/yaml-tokens/package.json index 26ead7a86..48c3f6d9a 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.0.0-rc.1", + "style-dictionary": "3.0.0-rc.2", "yaml": "^1.10.0" } } \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 450e676da..e9c94b0e8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "style-dictionary", - "version": "3.0.0-rc.1", + "version": "3.0.0-rc.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 17c335527..e732fd129 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "style-dictionary", - "version": "3.0.0-rc.1", + "version": "3.0.0-rc.2", "description": "Style once, use everywhere. A build system for creating cross-platform styles.", "keywords": [ "style dictionary",