Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(references): getReferences now searches the entire object #812

Merged
merged 2 commits into from
May 10, 2022

Conversation

dbanksdesign
Copy link
Member

Issue #, if available: #795

Description of changes:

  • getReferences searches the entire object now. Previously usesReference searches the whole object so it would return true, but then getReferences would return an empty array if the token value was an array of objects
  • Made sortByReference a bit more resilient to potential issues.

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

@VincentN
Copy link

This is great! We have an issue with nested references at the moment and this fix would be very useful for us 🙌 I'm going to patch our style-dictionary node module with these changes through patch-package for the time being. 😁

Copy link
Collaborator

@chazzmoney chazzmoney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@chazzmoney chazzmoney merged commit 884b1b8 into main May 10, 2022
@dbanksdesign dbanksdesign deleted the fix-795 branch September 14, 2023 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants