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

Add support for fetchOptions/matchOptions in runtimeCachingConverter #1608

Merged
merged 1 commit into from
Aug 22, 2018

Conversation

peterjosling
Copy link
Contributor

R: @jeffposnick @philipwalton

Fixes #1607

Caching strategies support taking objects for fetchOptions and matchOptions, but runtimeCachingConverter has no support for taking them as input.

I've left both as joi.object() in the schema, as I'm not sure how to specify a DOM interface as the type/if it's possible, and I don't think it makes sense to duplicate browser specs in the schema.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 86.165% when pulling 65065cd on peterjosling:cache-query-options into ea88b68 on GoogleChrome:master.

@jeffposnick jeffposnick self-requested a review August 21, 2018 20:24
Copy link
Contributor

@jeffposnick jeffposnick left a comment

Choose a reason for hiding this comment

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

Thanks so much for this @peterjosling (and thanks in particular for writing tests)! The code looks good, and playing around with the change locally indicates that everything works as expected.

We're looking at the next minor release some time in the first half of September, and I think this change should make it into that.

@jeffposnick jeffposnick merged commit b723291 into GoogleChrome:master Aug 22, 2018
@peterjosling peterjosling deleted the cache-query-options branch August 22, 2018 14:37
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