- Fixes WHATWG URL object handling when this module is used in Node.
- Fixes to the TypeScript declaration file.
- Adjusts the way the global object is sniffed for use with Metro.
- Bumps node-fetch from ~1.7.1 to ~2.0.0. This is a potentially breaking change. Refer to the node-fetch upgrade guide for details.
- Bumps node fetch from ~1.6.0 to ~1.7.1.
- Bumps whatwg-fetch from ~2.0.1 to ~2.0.3.
This release:
- Bumps whatwg-fetch from ~1.0.0 to ~2.0.1.
- Better handling of self/this for browser fetch (more testing friendly).
Dependencies now use tilde to allow patch versions to be tracked (this was waiting for whatwg-fetch to reach version 1).
A link was added to the README to point to the ponyfill definition.
Fixes an issue with detection of features like URLSearchParams
. This is a
major version bump since apparent behaviour could change in a breaking way in
browsers which support detected features.
Now exposes associated constructors along with fetch
like:
const {fetch, Request, Response, Headers} = require('fetch-ponyfill')(options);