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

Respect refiner in dynamic and lazy #966

Merged
merged 2 commits into from
Mar 2, 2022
Merged

Respect refiner in dynamic and lazy #966

merged 2 commits into from
Mar 2, 2022

Conversation

Gelio
Copy link
Contributor

@Gelio Gelio commented Oct 21, 2021

This PR fixes the refiners being previously ignored in the structs returned by lazy and dynamic utilities.

I have added 2 new test cases that prove the refiners work now.

Fixes #830

Provide a refiner in the result of the `dynamic` utility that is a proxy to the
results of the dynamically returned struct.

Fixes #830
Provide a refiner in the struct returned from the `lazy` utility. It proxies the
call to the lazily resolved struct.

Related to #830
@kokjinsam
Copy link

Is there anything that I can help to get this PR in?

@Gelio
Copy link
Contributor Author

Gelio commented Mar 1, 2022

@sammkj Unfortunately, I don't think so. @ianstormtaylor hasn't been active in this repo (or at all, looking at his GitHub profile) since a few days before I opened this PR. At work, we are using a patched version of superstruct with this PR applied. You could do the same.

@ianstormtaylor
Copy link
Owner

Sorry for the delay, thanks @Gelio!

@ianstormtaylor ianstormtaylor merged commit e2775d9 into ianstormtaylor:main Mar 2, 2022
@Gelio
Copy link
Contributor Author

Gelio commented Mar 2, 2022

No worries, thanks for taking a look and merging it!

@Gelio Gelio deleted the respect-refiner-in-dynamic-and-lazy branch March 2, 2022 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refinements are not working within dynamic util
3 participants