-
Notifications
You must be signed in to change notification settings - Fork 15
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
feat: rename MockProvider to CustomProvider and expose it #8
Conversation
I think I prefer |
Definitely prefer this over #7 though, nice! |
Prodiver 🤣 |
I think I prefer |
There's some TS syntax (I think?) that's problematic for the code style:
Everything passes, it just fails to format this one file. |
Renamed to |
Yeah that's TS syntax. I had to do something a tiny bit nasty to test the should-be-impossible case (otherwise TS prevents passing invalid data). Will take a look quickly today. |
So that case is impossible if one uses TS to consume the library, but for a consumer built in JS it might trigger the impossible case? |
Believe so. I'll look into making the test file .js instead |
@amcgee OK, good to know. Either way it's like this on master too, so up to you if you want to do it on this branch or a new one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@varl so the issue was actually that the test file was .js
, not .ts
so the formatting failed when it saw typescript syntax. I changed it to .ts and everything works. I also made a tiny update to the helper function name (resolveCustom
=> resolveCustomResource
).
LGTM, thanks for putting it together, merging!
@amcgee oh, nice! |
# [1.1.0](v1.0.0...v1.1.0) (2019-04-15) ### Features * rename MockProvider to CustomProvider and expose it ([#8](#8)) ([2411fbc](2411fbc))
🎉 This PR is included in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Alternative to #7.
Not sure if I prefer
StaticDataProvider
orOfflineDataProvider
. Looking at the code I thinkStatic
makes more sense, as I was doing the changeOffline
made me think that it insinuates to be used with e.g. local storage.