window.fetch polyfill v3.0.0 Release Notes

Release Date: 2018-09-07 // over 5 years ago

    ๐Ÿ“ฆ The whatwg-fetch package is now a module with exports. The following methods/classes are available:

    • fetch
    • Headers
    • Request
    • Response
    • DOMException

    All exports except for DOMException represent the polyfill implementations, not the native variants if they are available.

    This library still automatically acts like a polyfill if native window.fetch is unavailable; there is currently no way to use it as a ponyfill.

    โšก๏ธ Change credentials default value omit โ†’ same-origin to match the updated spec.

    ๐Ÿšฆ fetch() and new Request() now accept the signal parameter to accept an AbortSignal.

    ๐Ÿ’ป Join multiple header values with ,<space> instead of , to match other browsers.

    ๐Ÿ‘ Convert any Request/Response unsupported body type to a string to match the spec.

    ๐Ÿ“ฆ Flow type definitions are now included in the package.