web-std-io
web-std-io copied to clipboard
Web standard IO APIs implemented for nodejs
This is a direct copy of https://github.com/node-fetch/node-fetch/pull/1474. We're having memory leak issues as we're using a http agent with `keepAlive` options with the fetch used on the remix server.
## Motivation I'm adopting this polyfill as a part of a large API change in Mock Service Worker to adhere better to the Fetch API specification (https://github.com/mswjs/interceptors/pull/292, part of https://github.com/mswjs/msw/issues/1404)....
https://github.com/remix-run/remix/discussions/3308 ====================================================================================== confirmed working with `npm link` and importing Response from `@remix-run/web-fetch` 
Prefer require, import and types exports over browser. Exports are resolved in order, i.e. the first match is used. I'm not sure why the browser export is using the raw...
This is a fresh attempt at #42. From what I can ascertain, the blob package is no longer required and doesn't need importing in other packages as it should be...
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically....
PR is related to: https://github.com/remix-run/remix/issues/3971 The original issue can reproduce by the following examples: - https://github.com/kayac-chang/remix-abort-test/tree/main - https://gitpod.io/start/#kayacchang-remixabortte-0ohsnxppt54 Currently, in unit test, the controller abort the request before it actually...
POC to see if we could replace our `Headers` polyfill with [`headers-polyfill`](https://github.com/mswjs/headers-polyfill) which is more spec-compliant. Our current polyfill (inherited when we forked this repo) implements the polyfill as `class...