Merge pull request #20 from berickson1/alreadyAbortedCrash
David de Regt
2017-12-22 21:47:24 -0800
b23126266cFix a bug that cuased an assert if a request was canceled (via promise chaining) before it was fired
Brent Erickson
2017-12-22 19:33:27 -0700
Merge pull request #19 from Microsoft/markda/WebTransportResponse
David de Regt
2017-11-21 17:19:13 -0800
512e0611570.1.4: Exposing WebTransportResopnse for the original interfaces (without request bits) to allow transport-agnostic usage of the interfaces. For example, WebSockets do not have the same type of request options or use headers the same way.
Mark Davis
2017-11-21 14:48:29 -0800
6f59ed03590.1.4: Made WebResponse's request bits optional to allow transport-agnostic usage of the interfaces. For example, WebSockets do not have the same type of request options or use headers the same way.
Mark Davis
2017-11-17 16:37:10 -0800
Merge pull request #17 from Microsoft/markda/ResponseHasRequest
David de Regt
2017-11-16 19:26:27 -0800
adfb72dbff0.1.3: Expose request bits from WebResponse. The exact headers are not known until the request is sent, so the caller does not have them (except in simple cases). Also, the request options are useful to return in case the 'caller' is a helper function that creates the request and thus the original caller does not necessarily have that information.
Mark Davis
2017-11-16 17:50:46 -0800
a68bd4d2cbBumping to 0.1.2 to pick up the readyState === 4 fix.
David de Regt
2017-11-14 09:18:46 -0800
Update Readme to include code sample (taken from reactxp docs)
Rafael Bravo
2017-11-02 01:16:22 -0200
f6ef6c4a8c0.1.0: Stopping abusing casting things around as <any> and using an explicit non-templated base class for SimpleWebRequest. Cleaning up usages of null and replacing with undefined/optional parameters where necessary. Stopped using lodashMini since babel plugins exist now to do that for us. Lots of other misc cleanup along the way to bring it up to date with newer coding styles on the team.
David de Regt
2017-10-25 22:18:20 -0700
378a1948d6Cleaned up SRC for strict null checks, newer Typescript/Tslint, and other compile flags.
David de Regt
2017-10-25 16:13:30 -0700
f3594da143Fix an issue with double-aborting in RN due to recent behavioural change (#12)
Brent Erickson
2017-10-11 11:20:41 -0700
a0c66a788fBump version for publish
Brent Erickson
2017-10-11 11:11:50 -0700
693c8b494eDon't double count retries if the abort call comes back synchronously
Brent Erickson
2017-10-11 11:09:44 -0700
78b94929c6Revert recent behavioural change to request aborting On React Native, abort requires a call across the bridge making it more async than a typical browser. Since promise resolution is used to determine when a network request is completed (including the abort/cancel case), it's possible for abort() to be called twice OR for a network request success to arrive before the abort is fully processed.
Brent Erickson
2017-10-11 09:23:49 -0700
a4cf1fcca30.0.20 bump
David de Regt
2017-10-11 00:05:11 -0700
f911c2c6a8Merge pull request #11 from SeriousJul/master
David de Regt
2017-10-11 00:04:11 -0700
47ce2aa803[0.0.18] Better headers flow. Headers are now updated right before firing each attempt instead of using a static set of headers on construction. Use options.overrideGetHeaders for a static set of headers (replacing the deprecated options.headers). (#7)
Mark Davis
2017-07-20 18:52:45 -0700
c367a1c514[0.0.18] Better headers flow. Headers are now updated right before firing each attempt instead of using a static set of headers on construction. Use options.overrideGetHeaders for a static set of headers (replacing the deprecated options.headers).
Mark Davis
2017-07-20 15:10:58 -0700
a240997a870.0.17: Fixing SimpleWebRequest.setHeader() to work with strictnullchecks
David de Regt
2017-07-13 21:34:02 -0700
570209207eBump to 0.0.16 for Taavi's responseURL change
David de Regt
2017-07-06 13:36:26 -0700
6c26a34efeMerge pull request #6 from taavikuusik/use-response-url
David de Regt
2017-07-06 13:35:27 -0700
90703104ffAdded fallback
Taavi Kuusik
2017-07-03 13:32:13 -0700
29b0f364b2Changed WebResponse.url to use XHR.responseURL instead of initial request url
Taavi Kuusik
2017-06-30 16:22:46 -0700
ffec8ebb46Tweaking build scripts and fixing a small issue with Shir's commit
David de Regt
2017-06-26 13:14:44 -0700
dbc98e780cbumping to 0.0.15 for Shir's change
David de Regt
2017-06-26 13:09:23 -0700
e5e437312dMerge pull request #5 from lshir/formdata
David de Regt
2017-06-26 13:08:41 -0700
6889e8b931[0.0.14] Update check around empty headers to drop the header instead of asserting (#4)
Brent Erickson
2017-06-22 10:12:30 -0700
399d3c773eUpdate check around empty headers to drop the header instead of asserting
berickson1-emptyHeaders
Brent Erickson
2017-06-22 08:45:19 -0700
8da3fcc2a2Moving from lodash lib dependency to it's subset (#3)
Jakub Janovič
2017-05-17 23:46:28 +0200
624104461eremoved forgotten parens
Jakub Janovic
2017-05-17 23:42:44 +0200
a400a1fa8cAdding @types/lodash
Jakub Janovic
2017-05-17 23:36:19 +0200
9c972ef62bUsing lodash/submodule paths adding tslinting
Jakub Janovic
2017-05-17 21:24:33 +0200
a3944739eachanging lodashMin to lodash (bug)
Jakub Janovic
2017-05-17 14:10:34 +0200
fe788ec63cCreating lodashMin as a source of lodash required subset
Jakub Janovic
2017-05-17 09:46:41 +0200
dca7e18d7bMoving everything to typings
Jakub Janovic
2017-05-16 17:52:18 +0200
b07e2e7e6breplace lodash dependency with sub-dependencies
Jakub Janovic
2017-05-15 14:41:16 +0200
52850ae166[0.0.13] Fixing an issue where xhr.open() explodes (i.e. CSP violations), blocking all future simple web requests.
David de Regt
2017-05-05 13:43:12 -0700
f92927c7cd[0.0.12] Bump package.json for release
Brent Erickson
2017-05-01 13:43:41 -0700
4fcb87dadcWhen canceling a promise for a request, respond synchonously, don't rely on the xhr onCancel callback
Brent Erickson
2017-05-01 13:32:31 -0700
20733871eaAdd Method and Url to multi-aborted request message
Brent Erickson
2017-04-05 14:22:37 -0700
0e4f3a843a0.0.10: Added ApiCallOptions to the getHeaders call.
David de Regt
2016-12-19 17:29:24 -0800
81a92329600.0.9: Add typing to PUT/DELETE calls on GenericRestClient
David de Regt
2016-12-19 13:10:57 -0800
3e1cbbc6fb0.0.8: Preventing double-aborts in weird edge cases with paused/resumed requests getting timed out later. Added some more assertions to help catch cases like this in the future.
David de Regt
2016-12-16 17:42:25 -0800
0ec2a3071eFixing edge case Mark noticed
David de Regt
2016-12-15 19:07:51 -0800
2d3dbf09320.0.7: Added setHeader call for handling retries with updated headers. Fixed bug with RetryUncountedImmediately not actually retrying immediately. Added ability to pause/resume requests after errors.
David de Regt
2016-12-15 18:51:24 -0800
b6c67ef3440.0.6: Fixing bug in retry logic for DoNotRetry options
David de Regt
2016-11-18 17:47:07 -0800
7f65075fd9Move timeout handler to after calling xhr.open. IE11 doesn't like having this handler first
Brent Erickson
2016-11-18 12:22:04 -0800
0ff792117cTrying to force d.ts files to not reference lodash as a type, since they are not importing it correctly as a module.
Mark Davis
2016-11-17 15:33:17 -0800
3adbad70e0Bump package version to 0.0.3
Brent Erickson
2016-11-16 00:24:19 -0800
e9b6f5a1b1Simplify some of the detection logic, only rely on the advanced methods when they were detected before the request started
Brent Erickson
2016-11-15 20:13:49 -0800
46e898651bAdd more logic to reduce number of potential double-fires of repsonse handler after aborting a request
Brent Erickson
2016-11-14 22:52:23 -0800
44b1603bb1Add feature detection for timeout If native timeout is supported on xmlhttprequest, use that instead of using setTimeout
Brent Erickson
2016-11-14 16:09:05 -0800
8dc92c04acUse onLoad/onError callbacks from XMLHttpRequest if possible Add detection logic so everything should continue to work on older browsers
Brent Erickson
2016-11-14 14:23:04 -0800
c422b00e42Bump package version to 0.0.3
Brent Erickson
2016-11-16 00:24:19 -0800
dbe6a7ba21Simplify some of the detection logic, only rely on the advanced methods when they were detected before the request started
Brent Erickson
2016-11-15 20:13:49 -0800
bc1c24b28eAdd more logic to reduce number of potential double-fires of repsonse handler after aborting a request
Brent Erickson
2016-11-14 22:52:23 -0800
5be16f57bdAdd feature detection for timeout If native timeout is supported on xmlhttprequest, use that instead of using setTimeout
Brent Erickson
2016-11-14 16:09:05 -0800
74474814e1Use onLoad/onError callbacks from XMLHttpRequest if possible Add detection logic so everything should continue to work on older browsers
Brent Erickson
2016-11-14 14:23:04 -0800
4e72bfe688More cleanup for release
David de Regt
2016-11-02 17:24:37 -0700
290bcc665bMisc cleanup
David de Regt
2016-11-02 15:57:33 -0700
7aadf897dcInitial commit: Extracting out GenericRestClient, SimpleWebRequest, and ExponentialTime into a new SimpleRestClients reusable NPM module.
David de Regt
2016-11-02 15:52:44 -0700