grug / data-mocks

Library to mock local data requests using Fetch or XHR
MIT License
63 stars 12 forks source link

Ie11 support #62

Closed kieran-allen closed 4 years ago

kieran-allen commented 4 years ago

Helps resolve some bugs: #47

grug commented 4 years ago

First of all - thank you so much for contributing this!

I'm just not sure I'm alright with rolling back the version of fetch-mock that far. I'm aware of some of the changes that @wheresrhys is doing with it and it will make for better testing if we can keep the version up to date.

What's the issue here? Is it that Proxy needs polyfilling? If so, maybe the gotcha here for ie11 users is that they need it polyfilled.

What are people's thoughts?

kieran-allen commented 4 years ago

That's a fair point!

Yeah, it looks like Proxy would need polyfilling for this to work nicely with ie11.

https://github.com/GoogleChrome/proxy-polyfill is something that does exist ( although I haven't looked into it yet ).

Might be worth looking into it.

wheresrhys commented 4 years ago

The PR in whatwg-fetch to fix all this has been merged, and hopefully there will be a patch release soon. Following that fetch-mock should be compatible with the proxy polyfill

grug commented 4 years ago

Perfect - thanks for that info @wheresrhys :)

github-actions[bot] commented 4 years ago

Hi there :) This PR hasn't received any attention in a while. Can it be closed or does it require more work?