react-native-macos/Libraries/Core
Janic Duplessis 5e36b0c6eb Add support for cancelling fetch requests with AbortController (#24419)
Summary:
This adds https://github.com/mysticatea/abort-controller to polyfill [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). This is used to cancel requests when using `fetch`.

This also updates `event-target-shim` to 5.0 to make sure we only have one version of this dependency. This updates required adding a polyfill for `console.assert` which is used by the new version. I made one based on https://github.com/gskinner/console-polyfill/blob/master/console.js#L74.

The polyfill is very small, especially since we already use `event-target-shim` so I think it makes sense to include in core.

Depends on #24418 so that the fetch polyfill supports the `signal` parameter.

Fixes #18115

[General] [Added] - Add support for cancelling fetch requests with AbortController
Pull Request resolved: https://github.com/facebook/react-native/pull/24419

Differential Revision: D14912858

Pulled By: cpojer

fbshipit-source-id: 8a6402910398db51e2f3e3262f07aabdf68fcf72
2019-04-15 12:02:36 -07:00
..
Devtools Remove MissingNativeRCTNetworkingShim; revert MissingNativeAppStateShim (#24380) 2019-04-15 10:47:53 -07:00
SegmentFetcher Created spec for SegmentFetcher native module 2019-02-21 20:10:30 -08:00
Timers Deploy 0.94 to xplat 2019-03-06 14:57:30 -08:00
__mocks__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
__tests__ Do not overwrite Object.freeze 2019-04-04 10:53:34 -07:00
ExceptionsManager.js Add js engine information in React Native error reporting 2018-09-12 14:01:50 -07:00
InitializeCore.js Remove navigator.geolocation, use Geolocation 2019-04-01 09:09:54 -07:00
ReactNativeVersion.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ReactNativeVersionCheck.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
checkNativeVersion.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
polyfillES6Collections.js Do not overwrite Object.freeze 2019-04-04 10:53:34 -07:00
polyfillPromise.js Remove flow-strict from polyfillPromise (#22048) 2018-11-04 01:56:39 -07:00
setUpAlert.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpBatchedBridge.js Use GlobalPerformanceLogger explicitly during bundle load 2019-03-14 06:49:46 -07:00
setUpDeveloperTools.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpErrorHandling.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpGlobals.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpNavigator.js Remove navigator.geolocation, use Geolocation 2019-04-01 09:09:54 -07:00
setUpRegeneratorRuntime.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpSegmentFetcher.js Created spec for SegmentFetcher native module 2019-02-21 20:10:30 -08:00
setUpSystrace.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpTimers.js Modularize InitializeCore 2018-10-28 15:45:14 -07:00
setUpXHR.js Add support for cancelling fetch requests with AbortController (#24419) 2019-04-15 12:02:36 -07:00