Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

softwareventures/fetch-ponyfill-preconfigured

Repository files navigation

Not Recommended

This library used to incorporate a Promise ponyfill to support the implementation of fetch, but every reasonably-modern platform now includes a high-quality native implementation of Promise.

Therefore, this library is now just a trivial wrapper around fetch-ponyfill that uses the native Promise implementation.

This library is no longer maintained, and is not recommended for new projects.

For new projects, use fetch-ponyfill directly, or consider cross-fetch instead.

fetch-ponyfill-preconfigured

Preconfigured fetch ponyfill based on fetch-ponyfill.

A ponyfill is like a polyfill, but it does not alter the global namespace.

Why?

This library used to incorporate a Promise ponyfill and would preconfigure fetch-ponyfill to use the bundled Promise, so that developers could just import fetch and use it without having to worry about how to configure it.

However, every reasonably-modern platform now provides a high-quality native implementation of Promise, so this library no longer incorporates a Promise ponyfill, but instead configures fetch-ponyfill to use the native Promise implementation. This library is no longer maintained and is not recommended for new projects.

Use fetch-ponyfill directly, or consider cross-fetch instead.

Install

npm install --save @softwareventures/fetch-ponyfill-preconfigured

or for yarn users:

yarn add @softwareventures/fetch-ponyfill-preconfigured

Alternatives

Copyright

See LICENSE.md for copyright and licensing information pertaining to this module.

fetch-ponyfill has its own separate copyright and licensing terms. See the documentation for that module.