cross-fetch

Universal WHATWG Fetch API for Node, Browsers and React Native.

MIT License

Downloads
67.2M
Stars
1.7K
Committers
20

Bot releases are hidden (Show)

cross-fetch - v4.0.0 Latest Release

Published by lquixada over 1 year ago

What's Changed

BREAKING CHANGES

  • Dropped support for Node 10 and 12. (Note: cross-fetch will likely continue working on those versions, but specs tests are not running on those Node versions and no support will be provided if issues come up.)
  • Please check implementation conflicts in the Fetch API tests.

FEATURES

  • Added support for Node 18 and 20.
  • Added support for Service and Cloudflare Workers (Fixes #69, #78, #148) by prioritizing native code over third-party implementation. Fetch API test suite now running against node-fetch, whatwg-fetch, native browser and native node fetch.
  • Upgraded whatwg-fetch to 3.6.2. Please refer to whatwg-fetch release notes between 3.0.0 and 3.6.2 for features and bug fixes.
  • fetch.ponyfill is set to true when custom implementation is used. This improves debuggability.
cross-fetch - v3.1.8

Published by lquixada over 1 year ago

What's Changed

  • Restored caret range to node-fetch version for automatic feature and fix updates.

Full Changelog: https://github.com/lquixada/cross-fetch/compare/v3.1.7...v3.1.8

cross-fetch - v3.1.7

Published by lquixada over 1 year ago

What's Changed

  • Updated node-fetch version to 2.6.12

Full Changelog: https://github.com/lquixada/cross-fetch/compare/v3.1.6...v3.1.7

cross-fetch - v3.1.6

Published by lquixada over 1 year ago

What's Changed

  • Updated node-fetch version to 2.6.11
  • Added caret range to node-fetch version for automatic feature and fix updates.

Full Changelog: https://github.com/lquixada/cross-fetch/compare/v3.1.5...v3.1.6

cross-fetch - v3.1.5

Published by lquixada over 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/lquixada/cross-fetch/compare/v3.1.4...v3.1.5

cross-fetch - v3.1.4

Published by lquixada over 3 years ago

🐞 fixed typescript errors.

cross-fetch - v3.1.3

Published by lquixada over 3 years ago

🐞 fixed typescript compilation error causing #95, #101, #102.

cross-fetch - v3.1.2

Published by lquixada over 3 years ago

🐞 added missing Headers interface augmentation from lib.dom.iterable.d.ts (#97)

cross-fetch - v3.1.1

Published by lquixada over 3 years ago

🐞 fixed missing fetch api types from constructor signatures #96 (thanks @jstewmon)

cross-fetch - v3.1.0

Published by lquixada over 3 years ago

⚡️ improved TypeScript support with own fetch API type definitions (thanks @jstewmon)
⚡️ set fetch.ponyfill to true when custom ponyfill implementation is used.
💡 set the same fetch API test suite to run against node-fetch, whatwg-fetch and native fetch.

cross-fetch - v3.0.6

Published by lquixada about 4 years ago

⚡️ updated node-fetch to 2.6.1

cross-fetch - v3.0.5

Published by lquixada over 4 years ago

⚡️ whatwg-fetch is not a prod dependency anymore (#63)
⚡️ updated all dev dependencies.

cross-fetch -

Published by lquixada over 5 years ago

⚡️ upgraded node-fetch to 2.6.0.

cross-fetch -

Published by lquixada over 5 years ago

🐞 fixed bug that crashed Safari 9 (#49).
⚡️ added VaporJS code to the project.

cross-fetch - v3.0.2

Published by lquixada over 5 years ago

🐞 bugfix #35: fixed TypeScript failing on types when dom lib is not present.

cross-fetch - v3.0.1

Published by lquixada over 5 years ago

🐞 bugfix #38: fixed the browser ponyfill stomping the global fetch function on React Native (thanks @msluther)

cross-fetch -

Published by lquixada almost 6 years ago

  • major upgrade of whatwg-fetch to 3.0.0 (see breaking changes)
  • minor upgrade of node-fetch to 2.3.0 (see changelog)
  • comprehensive test coverage (from 16 specs to 72)
  • dropped yarn in favor of npm for package management
  • dropped npm in favor of make for tasks runner
  • Now you can do import {fetch} from 'cross-fetch' on a browser bundle.
  • For ponyfills, fetch.polyfill is now set to undefined instead of false.
cross-fetch - v2.2.3

Published by lquixada almost 6 years ago

🐞 bugfix #26: fixed TypeScript usage without esModuleInterop. (thanks @mattmccutchen)

cross-fetch - v2.2.2

Published by lquixada over 6 years ago

🐞 bugfix #19: fixed typescript definitions (thanks @evert)

cross-fetch - v2.2.1

Published by lquixada over 6 years ago

🐞 bugfix: fixed 'realFetch.call is not a function' when cross-fetch is bundled with webpack set to target node (@jamespedid, @alexvetter in #15)

Package Rankings
Top 14.15% on Repo1.maven.org
Top 0.85% on Npmjs.org
Top 12.62% on Bower.io
Top 6.74% on Proxy.golang.org
Badges
Extracted from project README
NPM Version Downloads Per Week License: MIT CI codecov The New York Times Apollo GraphQL Facebook Swagger VulcanJS graphql-request @lquixada
Related Projects