Package detail

fetch-nodeshim

kitten47MIT0.3.0

A Node.js fetch shim using built-in Request, Response, and Headers (but without native fetch)

readme

fetch-nodeshim

A looser implementation of fetch that bypasses Node.js' built-in fetch. Some implementations (specifically ones that provide undici-based shims) or some versions of Node.js may ship with a built-in version of undici that's older and/or missing patches.

This implementation of fetch uses built-ins as much as possible, using global Request, Response, and Headers, whether they're provided by a polyfill or by Node.js itself. However, it's a looser and more permissive implementation that calls into node:http and node:https instead.

Think of it as @remix-run/web-fetch, but lighter.

changelog

minifetch

0.3.0

Minor Changes

  • Add Body mixin as export Submitted by @kitten (See #6)

0.2.1

Patch Changes

  • Provenance Release Submitted by @kitten (See #4)

0.2.0

Minor Changes

  • Add web standard type/globals re-exports and polyfill File from node:buffer Submitted by @kitten (See #1)

Patch Changes

  • Add missing constructor type overloads and add missing Blob re-export Submitted by @kitten (See #2)

0.1.0

Initial Release.