@whatwg-node/fetch
Advanced tools
Comparing version 0.10.2-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054 to 0.11.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0
# @whatwg-node/fetch | ||
## 0.10.2-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054 | ||
## 0.11.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0 | ||
### Minor Changes | ||
- [#1884](https://github.com/ardatan/whatwg-node/pull/1884) | ||
[`d9e94e4`](https://github.com/ardatan/whatwg-node/commit/d9e94e4b29e70122191f632bd20a892ae3701abd) | ||
Thanks [@ardatan](https://github.com/ardatan)! - New ponyfills \`AbortSignal\` and | ||
\`AbortController\` | ||
### Patch Changes | ||
- [#1814](https://github.com/ardatan/whatwg-node/pull/1814) | ||
[`d4e9457`](https://github.com/ardatan/whatwg-node/commit/d4e945783576f1ba92f37b1bbb8b41e23b8dd5bb) | ||
Thanks [@ardatan](https://github.com/ardatan)! - Small improvements for Bun support | ||
- Updated dependencies | ||
[[`d4e9457`](https://github.com/ardatan/whatwg-node/commit/d4e945783576f1ba92f37b1bbb8b41e23b8dd5bb)]: | ||
- @whatwg-node/node-fetch@0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054 | ||
[[`d9e94e4`](https://github.com/ardatan/whatwg-node/commit/d9e94e4b29e70122191f632bd20a892ae3701abd)]: | ||
- @whatwg-node/node-fetch@0.8.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0 | ||
@@ -15,0 +18,0 @@ ## 0.10.1 |
@@ -15,6 +15,3 @@ const shouldSkipPonyfill = require('./shouldSkipPonyfill'); | ||
if ( | ||
(opts.skipPonyfill || shouldSkipPonyfill()) | ||
&& opts.skipPonyfill !== false | ||
) { | ||
if (opts.skipPonyfill || shouldSkipPonyfill()) { | ||
return { | ||
@@ -41,3 +38,5 @@ fetch: globalThis.fetch, | ||
URL: globalThis.URL, | ||
URLSearchParams: globalThis.URLSearchParams | ||
URLSearchParams: globalThis.URLSearchParams, | ||
AbortController: globalThis.AbortController, | ||
AbortSignal: globalThis.AbortSignal, | ||
}; | ||
@@ -71,2 +70,4 @@ } | ||
ponyfills.TextDecoder = newNodeFetch.TextDecoder; | ||
ponyfills.AbortController = newNodeFetch.AbortController; | ||
ponyfills.AbortSignal = newNodeFetch.AbortSignal; | ||
@@ -73,0 +74,0 @@ if (opts.formDataLimits) { |
@@ -22,2 +22,4 @@ const fetch = globalThis.fetch; | ||
const URLSearchParams = globalThis.URLSearchParams; | ||
const AbortController = globalThis.AbortController; | ||
const AbortSignal = globalThis.AbortSignal; | ||
@@ -45,3 +47,5 @@ export { | ||
URL, | ||
URLSearchParams | ||
URLSearchParams, | ||
AbortController, | ||
AbortSignal, | ||
} | ||
@@ -69,4 +73,6 @@ | ||
URL, | ||
URLSearchParams | ||
URLSearchParams, | ||
AbortController, | ||
AbortSignal, | ||
}; | ||
} |
@@ -22,2 +22,4 @@ module.exports.fetch = globalThis.fetch; | ||
module.exports.URLSearchParams = globalThis.URLSearchParams; | ||
module.exports.AbortController = globalThis.AbortController; | ||
module.exports.AbortSignal = globalThis.AbortSignal; | ||
module.exports.createFetch = () => globalThis; |
@@ -31,2 +31,4 @@ /// <reference lib="dom" /> | ||
export const URLPattern: _URLPattern; | ||
export const AbortController: typeof globalThis.AbortController; | ||
export const AbortSignal: typeof globalThis.AbortSignal; | ||
export interface FormDataLimits { | ||
@@ -74,3 +76,5 @@ /* Max field name size (in bytes). Default: 100. */ | ||
URLSearchParams: typeof URLSearchParams; | ||
AbortController: typeof AbortController; | ||
AbortSignal: typeof AbortSignal; | ||
}; | ||
} |
@@ -34,3 +34,5 @@ | ||
module.exports.URLSearchParams = ponyfills.URLSearchParams; | ||
module.exports.AbortController = ponyfills.AbortController; | ||
module.exports.AbortSignal = ponyfills.AbortSignal; | ||
exports.createFetch = createNodePonyfill; |
{ | ||
"name": "@whatwg-node/fetch", | ||
"version": "0.10.2-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054", | ||
"version": "0.11.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0", | ||
"description": "Cross Platform Smart Fetch Ponyfill", | ||
@@ -19,3 +19,3 @@ "repository": { | ||
"dependencies": { | ||
"@whatwg-node/node-fetch": "0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054", | ||
"@whatwg-node/node-fetch": "0.8.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0", | ||
"urlpattern-polyfill": "^10.0.0" | ||
@@ -22,0 +22,0 @@ }, |
45941
310
+ Added@whatwg-node/disposablestack@0.0.5(transitive)
+ Added@whatwg-node/node-fetch@0.8.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0(transitive)
- Removed@whatwg-node/node-fetch@0.7.3-alpha-20241118225909-f824d8ba44ac5656a08e47e3deb8aa9840bd1054(transitive)
Updated@whatwg-node/node-fetch@0.8.0-alpha-20241212150911-36df5929a304522e501744daf167032d4b7994c0