amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.93k stars 557 forks source link

feat: refactor reference utils and expose as standalone functions #1056

Closed jorenbroekema closed 11 months ago

jorenbroekema commented 11 months ago

Description of changes:

Makes reference utility functions not bound to the dictionary instance. This makes it easier to expose them as publicly usable utilities, makes them more straightforward to use by users (no need to do const boundGetReferences = getReferences.bind({ properties: ... }); in order to use)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.