Skip to content

Commit

Permalink
chore(release): 3.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanksdesign committed Jun 7, 2022
1 parent f5b7bb5 commit a12a31f
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 29 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
12 changes: 8 additions & 4 deletions docs/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
});
}
});
```
Expand All @@ -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**: <code>String</code> - A valid name for a TypeScript type.
```
**Returns**: <code>String</code> - A valid name for a TypeScript type.
<table>
<thead>
<tr>
Expand All @@ -527,6 +530,7 @@ StyleDictionary.registerFormat({
}).join('\n');
}
});
```

* * *

Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/assets-base64-embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/auto-rebuild-watcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"license": "Apache-2.0",
"devDependencies": {
"chokidar-cli": "^1.2.0",
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/component-cti/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/create-react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/create-react-native-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/custom-file-header/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "ISC",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/custom-filters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/custom-parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/custom-transforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/font-face-rules/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
},
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/format-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/matching-build-files/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"author": "Kelly Harrop <kn.harrop@gmail.com>",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/multi-brand-multi-platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/npm-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/referencing_aliasing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/s3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/tokens-deprecation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
"license": "Apache-2.0",
"devDependencies": {
"lodash": "^4.17.11",
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/transitive-transforms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"license": "ISC",
"devDependencies": {
"chroma-js": "^2.1.0",
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/variables-in-outputs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"style-dictionary": "3.7.0"
"style-dictionary": "3.7.1"
}
}
2 changes: 1 addition & 1 deletion examples/advanced/yaml-tokens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.0",
"style-dictionary": "3.7.1",
"yaml": "^1.10.0"
}
}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit a12a31f

Please sign in to comment.