Skip to content

Commit

Permalink
chore(release): 3.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanksdesign committed Apr 25, 2023
1 parent aba09b5 commit 2cf72f3
Show file tree
Hide file tree
Showing 27 changed files with 49 additions and 34 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.8.0](https://github.com/amzn/style-dictionary/compare/v3.7.2...v3.8.0) (2023-04-25)


### Features

* **formats:** add options.outputStringLiterals to typescript/es6-declarations ([#857](https://github.com/amzn/style-dictionary/issues/857)) ([0c31718](https://github.com/amzn/style-dictionary/commit/0c31718eb09e89216fb2446a94d9b505635b9f18)), closes [#905](https://github.com/amzn/style-dictionary/issues/905)
* **formats:** compose object imports ([#874](https://github.com/amzn/style-dictionary/issues/874)) ([8373721](https://github.com/amzn/style-dictionary/commit/83737211d2da2e004ddfb09ede912175f5b4b1bd))
* **types:** loosening the Platform type to allow for extension ([#926](https://github.com/amzn/style-dictionary/issues/926)) ([c43263b](https://github.com/amzn/style-dictionary/commit/c43263bfd5223a7f24525f20aa87958aeedab812))


### Bug Fixes

* **formats:** added missing EOL before EOF for some formats ([#963](https://github.com/amzn/style-dictionary/issues/963)) ([dd60479](https://github.com/amzn/style-dictionary/commit/dd60479d9a5dbc707476259b03f27c719f17e17d))
* **types:** add correct return types for sortByReference ([#919](https://github.com/amzn/style-dictionary/issues/919)) ([2eff17d](https://github.com/amzn/style-dictionary/commit/2eff17d50c518cd86d68970f904413908e848fa7)), closes [#918](https://github.com/amzn/style-dictionary/issues/918)

### [3.7.2](https://github.com/amzn/style-dictionary/compare/v3.7.0...v3.7.2) (2023-01-03)


Expand Down
10 changes: 5 additions & 5 deletions docs/formats.md
Original file line number Diff line number Diff line change
Expand Up @@ -1398,9 +1398,9 @@ Creates a Kotlin file for Compose containing an object with a `val` for each pro
<td>packageName</td><td><code>String</code></td><td></td><td><p>The package for the generated Kotlin object</p>
</td>
</tr><tr>
<td>options</td><td><code>Object</code></td><td></td><td><ul>
<li>@param {String[]} [options.import=androidx.compose.ui.unit.*] - Modules to import. Can be a string or array of string</li>
</ul>
<td>options</td><td><code>Object</code></td><td></td><td></td>
</tr><tr>
<td>[options.import]</td><td><code>Array.&lt;String&gt;</code></td><td><code>[&#x27;androidx.compose.ui.graphics.Color&#x27;, &#x27;androidx.compose.ui.unit.*&#x27;]</code></td><td><p>Modules to import. Can be a string or array of strings</p>
</td>
</tr><tr>
<td>[options.showFileHeader]</td><td><code>Boolean</code></td><td><code>true</code></td><td><p>Whether or not to include a comment that has the build date</p>
Expand Down Expand Up @@ -1566,7 +1566,7 @@ Creates a Swift implementation file of a class with values. It adds default `cla
<td>[options.accessControl]</td><td><code>String</code></td><td><code>public</code></td><td><p>Level of <a href="https://docs.swift.org/swift-book/LanguageGuide/AccessControl.html">access</a> of the generated swift object</p>
</td>
</tr><tr>
<td>[options.import]</td><td><code>Array.&lt;String&gt;</code></td><td><code>UIKit</code></td><td><p>Modules to import. Can be a string or array of string</p>
<td>[options.import]</td><td><code>Array.&lt;String&gt;</code></td><td><code>UIKit</code></td><td><p>Modules to import. Can be a string or array of strings</p>
</td>
</tr><tr>
<td>[options.className]</td><td><code>String</code></td><td></td><td><p>The name of the generated Swift class</p>
Expand Down Expand Up @@ -1607,7 +1607,7 @@ Creates a Swift implementation file of an enum with values. It adds default `enu
<td>[options.accessControl]</td><td><code>String</code></td><td><code>public</code></td><td><p>Level of <a href="https://docs.swift.org/swift-book/LanguageGuide/AccessControl.html">access</a> of the generated swift object</p>
</td>
</tr><tr>
<td>[options.import]</td><td><code>Array.&lt;String&gt;</code></td><td><code>UIKit</code></td><td><p>Modules to import. Can be a string or array of string</p>
<td>[options.import]</td><td><code>Array.&lt;String&gt;</code></td><td><code>UIKit</code></td><td><p>Modules to import. Can be a string or array of strings</p>
</td>
</tr><tr>
<td>[options.showFileHeader]</td><td><code>Boolean</code></td><td><code>true</code></td><td><p>Whether or not to include a comment that has the build date</p>
Expand Down
8 changes: 4 additions & 4 deletions docs/transforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ Transforms the value into an 8-digit hex string for Android because they put the
Transforms the value into a Color class for Compose

```kotlin
// Matches: prop.attributes.category === 'color'
// Matches: token.attributes.category === 'color'
// Returns:
Color(0xFF009688)
```
Expand Down Expand Up @@ -555,7 +555,7 @@ Scales the number by 16 (or the value of 'basePxFontSize' on the platform in you
Transforms the value from a REM size on web into a scale-independent pixel (sp) value for font sizes in Compose. It WILL scale the number by a factor of 16 (or the value of 'basePxFontSize' on the platform in your config).

```kotlin
// Matches: prop.attributes.category === 'size' && prop.attributes.type === 'font'
// Matches: token.attributes.category === 'size' && token.attributes.type === 'font'
// Returns:
"16.0.sp"
```
Expand All @@ -569,7 +569,7 @@ Transforms the value from a REM size on web into a scale-independent pixel (sp)
Transforms the value from a REM size on web into a density-independent pixel (dp) value for font sizes in Compose. It WILL scale the number by a factor of 16 (or the value of 'basePxFontSize' on the platform in your config).

```kotlin
// Matches: prop.attributes.category === 'size' && prop.attributes.type !== 'font'
// Matches: token.attributes.category === 'size' && token.attributes.type !== 'font'
// Returns:
"16.0.dp"
```
Expand All @@ -583,7 +583,7 @@ Transforms the value from a REM size on web into a density-independent pixel (dp
Adds the .em Compose extension to the end of a number. Does not scale the value

```kotlin
// Matches: prop.attributes.category === 'size' && prop.attributes.type === 'font'
// Matches: token.attributes.category === 'size' && token.attributes.type === 'font'
// Returns:
"16.0em"
```
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
},
"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.2"
"style-dictionary": "3.8.0"
},
"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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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 <[email protected]>",
"license": "Apache-2.0",
"devDependencies": {
"style-dictionary": "3.7.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2",
"style-dictionary": "3.8.0",
"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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2"
"style-dictionary": "3.8.0"
}
}
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.2",
"style-dictionary": "3.8.0",
"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.2",
"version": "3.8.0",
"description": "Style once, use everywhere. A build system for creating cross-platform styles.",
"keywords": [
"style dictionary",
Expand Down

0 comments on commit 2cf72f3

Please sign in to comment.