All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
3.9.0 (2023-10-23)
- allow overriding formatting, add commentStyle long-above, short-above (b627ff1)
- account for multi-line comments in tokens, improve comment style (b5d4cc2)
- allow outputReferences to work on non-string values (8021ec0)
- outputReferences to use original.value when possible (#1002) (bd73b62)
3.8.0 (2023-04-25)
- formats: add options.outputStringLiterals to typescript/es6-declarations (#857) (0c31718), closes #905
- formats: compose object imports (#874) (8373721)
- types: loosening the Platform type to allow for extension (#926) (c43263b)
- formats: added missing EOL before EOF for some formats (#963) (dd60479)
- types: add correct return types for sortByReference (#919) (2eff17d), closes #918
3.7.2 (2023-01-03)
- docs: Correct custom-file-header example link (#869) (4e156b1)
- docs: removed the duplicate wording (#870) (dbb89e5)
- formats: scss/map-deep type error when values are strings or null (#838) (d338633), closes #837
- references: getReferences now searches the entire object (#812) (884b1b8)
- references: tokens with a number value should be interpolated correctly (#825) (a2f7784)
- transforms: transitive transforms now work without .value in refs (#808) (41bc893)
- types: add matcher type to export (#878) (2617a0d), closes #875
- types: added packageName as optional property on interface File (#829) (0996cc4)
- types: adding missing format helpers (#834) (a6f4b34)
- types: fix filter config key expected matcher value (#883) (c77c3db)
- types: fixing transform group property type of Config (#833) (0f0ad10)
3.7.1 (2022-06-07)
- references: getReferences now searches the entire object (#812) (884b1b8)
- references: tokens with a number value should be interpolated correctly (#825) (a2f7784)
- transforms: transitive transforms now work without .value in refs (#808) (41bc893)
3.7.0 (2022-02-22)
- filter: Added new filter
removePrivate
(#770) (3217ba3), closes #704 - formats: any swift format (#734) (9859a8d)
- examples: complete example style dictionary version to latest (#755) (c3aae93)
- types: Correct type of
Core.format
(#780) (9868b7e), closes #779
3.1.1 (2021-12-17)
3.1.0 (2021-12-16)
- formats: Add
outputReferences
support toscss/map-deep
(#720) (65453e0), closes #712 - formats: add support for Microsoft's JSONC format (#732) (cfa83cb), closes #698
- formats: object handling for typescript/es6-declarations (#718) (4e3905a)
- references: ability to reference other tokens without 'value' (#746) (c6f482e)
- transforms: add transformer for Color class from SwiftUI (#733) (439e474)
- cli: fixing unknown commands message (#747) (8a5f047)
- examples: Watch correct directory (#739) (56574a4), closes #705
- types: adding registerFileHeader type (#722) (54332b3), closes #665
- types: fixing transform group types (#729) (ad7f6ea)
- types: make FileHeaderArgs.commentStyle optional (#743) (401d93b)
3.0.3 (2021-10-15)
- types:
className
optional parameter (#683) (639d7da), closes /github.com/amzn/style-dictionary/blob/main/examples/basic/config.json#L100 - types: added
name
to format, and exportNamed
(#714) (9ca0f6f)
3.0.2 (2021-08-19)
- format: 'typescript/es6-declarations' return type (#681) (0cf6c52)
- lib: fix
createFormatArgs
positional args (#655) (29e511d), closes #652 - references: check if object value is a string before replacement (#682) (bfc204c)
- types: format config expects formatter function (#650) (b12c4b1)
3.0.1 (2021-06-07)
- swift: add missing space after UIColor's alpha property (#648) (7c65733)
- types: directly export Named type to avoid ambiguity with TS --isolatedModules option (8295b0d)
- types: directly export Named type to avoid ambiguity with TS --isolatedModules option (3ed31be)
3.0.0 (2021-05-25)
3.0.0-rc.10 (2021-05-24)
- formats: add typescript declarations formats (#557) (f517bcf), closes #425
- types: cleaning up our type definitions (#632) (db6269b)
- references: value object references now work (#623) (23de306), closes #615
- template: remove blank lines in scss/map-deep and scss/map-flat templates (#588) (a88e622)
2.10.3 (2021-03-09)
3.0.0-rc.9 (2021-05-04)
- formats: bringing mapName back to scss formats (#611) (7a28f40)
- formats: fixing formatting options in fileHeader (#614) (3f7fe96), closes #612
- references: fixing circular reference errors (#607) (9af17f4), closes #608
- references: flushing the filtered reference warnings (#598) (d3b5135)
3.0.0-rc.8 (2021-04-05)
- formats: add an optional selector to css/variables format (#582) (34922a8)
- formats: output references handles interpoloated references (#590) (cc595ca), closes #589
- combine: filePath was missing for falsey values (#583) (8c405e6)
- formats: update output references in formats to handle nested references (#587) (9ce0311)
3.0.0-rc.7 (2021-03-24)
3.0.0-rc.6 (2021-03-09)
3.0.0-rc.5 (2021-02-27)
3.0.0-rc.4 (2021-02-16)
3.0.0-rc.3 (2021-02-06)
- build-file: do not generate file if properties is empty (#494) (8945c46)
- format: output references (#504) (7e7889a)
- format: use named parameters in formatter functions (#533) (32bd40d)
- react-native support (#512) (bd61cd2)
- examples: little typo (#518) (33271b6)
- export platform: fixing infinite loop when there are reference errors (#531) (6078c80)
- property setup: original property being mutated if the value is an object (#534) (0b13ae2)
- types: add transitive to value transform type (#536) (695eed6)
- types: Change transforms to transform in Core (#530) (40a2601)
3.0.0-rc.2 (2021-01-12)
- format: adding android/resources format (e43aafd)
- transforms: add 'px to rem' transform (#491) (75f0ba3)
- extend: use given file path for token data (#499) (0b23c9d)
- parsers: fixed an error where parsers weren't running (#511) (b0077c3)
- types: fix transform options type #502 (32787f8)
3.0.0-rc.1 (2020-12-04)
3.0.0-rc.0 (2020-12-03)
- examples: add custom filters example (c9bfcbc)
- examples: add custom filters example (f95c420)
- examples: add matching build files example (#481) (5a80ef6), closes #251
- add support for !default in SCSS variables format (#359) (fa82002), closes #307
- add TypeScript typings (#410) (a8bb832)
- core: add new entries on property object (#356) (fd254a5)
- formats: add file object to formatter method (#439) (1481c46)
- formats: javascript/module-flat format (#457) (37b06e8)
- parser: adding custom parser support (#429) (887a837)
- transforms: Make transitive transforms & resolves possible (#371) (3edbb17), closes #208
- cli: update clean config path logic (#454) (dc3cfa5)
- formats: fix max call stack issue on json/nested format (#465) (67fb361)
- transforms: fix transitive transforms (#476) (ac0c515)
2.10.3 (2021-03-09)
2.10.2 (2020-10-08)
- cli: update clean config path logic (#454) (3cc3d4e)
- formats: fix max call stack issue on json/nested format (#465) (4064e6a)
2.10.1 (2020-07-09)
- filter: fix conditional to ensure we catch properties with a falsy value (#423) (1ec4e74), closes #406
- formats: align scss/map-* with scss/variables on asset category (9d867ef)
2.10.0 (2020-05-05)
- adding color/hsl and color/hsl-4 transforms (#383) (b777cfb)
- flutter support (#320) (8a5f645), closes #255 #288
2.9.0 (2020-04-21)
- transforms: add NaN check to all size transforms (#413) (d353795)
- transforms: add specificity so color for hex values is correct (#412) (01cc11c), closes #407
- clean require cache before loading file content (#405) (18a50d0), closes #404
- parseFloat() has only one argument (#417) (16c3040), closes #416
2.8.3 (2019-10-30)
- format: minor css format output fix (#323) (adb94e1), closes #322
- utils: handle 0 values (#325) (189d61b), closes #324
2.8.2 (2019-09-04)
- format: issue #295 (c654648)
- format: issue #295 (#316) (030175e)
- formats: change less and scss comments to short version (#306) (4f13f57), closes #305
- transform: increase uicolor to 3 decimals to retain 8bit precision (#314) (a3bde96)
2.8.1 (2019-07-02)
- format: adding configurable name to sass map name (#291) (cfa2422), closes #290
- sketch: fix sketch palette format to use new filters (#287) (374012c), closes #285
2.8.0 (2019-05-28)
- cleanfile: add file check and log for non-existent file (#277) (6375133)
- docs/examples: 404 errors and typos (#269) (da369da)
- error-messaging: add better error messaging when a transform or transformGroup does not exist (#264) (d5c0583)
- extend: multiple extensions properly deep merge (#276) (f1d6bb0), closes #274
- accidentally generating test output in root directory (4994553)
- config: use config.js if config.json is not found (#249) (09fc43f), closes #238 #238 #247
- add automatic changelog generation (#225) (b062008)
- docs: adding PR and download badges; fixing code coverage badge (#270) (2307a44), closes #265
- ios-swift: adding common transforms for Swift in iOS (#255) (749db69), closes #161
- transforms: Add UIColor transform for swift (#250) (a62d880), closes #161
- warning: catch property name collisions during file output (#273) (9a40407)