Граф коммитов

  • 027afa528e
    Merge pull request #1 from plisy/plisy-remove-exported-const-enum Peter Lisy 2018-02-21 13:29:24 +0100
  • b93f98df7e
    Removed exported const enum Peter Lisy 2018-02-21 13:29:02 +0100
  • 4e98b51924
    Merge pull request #20 from berickson1/alreadyAbortedCrash David de Regt 2017-12-22 21:47:24 -0800
  • b23126266c Fix 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
  • b7f96806eb
    Merge pull request #19 from Microsoft/markda/WebTransportResponse David de Regt 2017-11-21 17:19:13 -0800
  • 512e061157 0.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
  • 841736a463 Merge 6f59ed0359 into ef5c8d3341 Mark Davis 2017-11-18 00:42:06 +0000
  • 6f59ed0359 0.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
  • ef5c8d3341
    Merge pull request #17 from Microsoft/markda/ResponseHasRequest David de Regt 2017-11-16 19:26:27 -0800
  • adfb72dbff 0.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
  • a68bd4d2cb Bumping to 0.1.2 to pick up the readyState === 4 fix. David de Regt 2017-11-14 09:18:46 -0800
  • 4fd62b5dd0
    Merge pull request #16 from isnotgood/master David de Regt 2017-11-14 09:17:37 -0800
  • f2b85860d7 Resolve succesfully only when XHR.readState is done. Lukas Weber 2017-11-14 01:15:24 +0100
  • d4385343b8 0.1.1: Bumping synctasks to ^0.3.0 David de Regt 2017-11-08 20:34:39 -0800
  • a975886d21
    Update Readme to include code sample (taken from reactxp docs) Rafael Bravo 2017-11-02 01:16:22 -0200
  • f6ef6c4a8c 0.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
  • 378a1948d6 Cleaned up SRC for strict null checks, newer Typescript/Tslint, and other compile flags. David de Regt 2017-10-25 16:13:30 -0700
  • f3594da143 Fix an issue with double-aborting in RN due to recent behavioural change (#12) Brent Erickson 2017-10-11 11:20:41 -0700
  • a0c66a788f Bump version for publish Brent Erickson 2017-10-11 11:11:50 -0700
  • 693c8b494e Don't double count retries if the abort call comes back synchronously Brent Erickson 2017-10-11 11:09:44 -0700
  • 78b94929c6 Revert 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
  • a4cf1fcca3 0.0.20 bump David de Regt 2017-10-11 00:05:11 -0700
  • f911c2c6a8 Merge pull request #11 from SeriousJul/master David de Regt 2017-10-11 00:04:11 -0700
  • f6ba178869 Default policy don't retry on canceled call Julien Antony 2017-10-11 08:50:18 +0200
  • 37e4b49352 Default policy don't retry on aborted call Julien Antony 2017-10-11 08:47:57 +0200
  • db0313f459 Allow aborted requested to be handled by custom policy Julien Antony 2017-10-10 10:32:42 +0200
  • 218e9f179b Bumping version to 0.0.19 for release David de Regt 2017-09-07 09:22:10 -0700
  • 4486b3d727 Merge pull request #9 from msdevweb/master David de Regt 2017-09-06 10:06:47 -0700
  • bcfb08b7b7 Allowing text/xml & application/xml endpoints response handling Mario Santos 2017-09-06 10:06:30 +0200
  • 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
  • a240997a87 0.0.17: Fixing SimpleWebRequest.setHeader() to work with strictnullchecks David de Regt 2017-07-13 21:34:02 -0700
  • 570209207e Bump to 0.0.16 for Taavi's responseURL change David de Regt 2017-07-06 13:36:26 -0700
  • 6c26a34efe Merge pull request #6 from taavikuusik/use-response-url David de Regt 2017-07-06 13:35:27 -0700
  • 90703104ff Added fallback Taavi Kuusik 2017-07-03 13:32:13 -0700
  • 29b0f364b2 Changed WebResponse.url to use XHR.responseURL instead of initial request url Taavi Kuusik 2017-06-30 16:22:46 -0700
  • ffec8ebb46 Tweaking build scripts and fixing a small issue with Shir's commit David de Regt 2017-06-26 13:14:44 -0700
  • dbc98e780c bumping to 0.0.15 for Shir's change David de Regt 2017-06-26 13:09:23 -0700
  • e5e437312d Merge pull request #5 from lshir/formdata David de Regt 2017-06-26 13:08:41 -0700
  • 87408a3d9c Add formdata Shir Levkowitz 2017-05-03 22:59:29 -0400
  • 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
  • 399d3c773e Update check around empty headers to drop the header instead of asserting berickson1-emptyHeaders Brent Erickson 2017-06-22 08:45:19 -0700
  • 8da3fcc2a2 Moving from lodash lib dependency to it's subset (#3) Jakub Janovič 2017-05-17 23:46:28 +0200
  • 624104461e removed forgotten parens Jakub Janovic 2017-05-17 23:42:44 +0200
  • a400a1fa8c Adding @types/lodash Jakub Janovic 2017-05-17 23:36:19 +0200
  • 9c972ef62b Using lodash/submodule paths adding tslinting Jakub Janovic 2017-05-17 21:24:33 +0200
  • a3944739ea changing lodashMin to lodash (bug) Jakub Janovic 2017-05-17 14:10:34 +0200
  • fe788ec63c Creating lodashMin as a source of lodash required subset Jakub Janovic 2017-05-17 09:46:41 +0200
  • dca7e18d7b Moving everything to typings Jakub Janovic 2017-05-16 17:52:18 +0200
  • b07e2e7e6b replace 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
  • 4fcb87dadc When 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
  • 20733871ea Add Method and Url to multi-aborted request message Brent Erickson 2017-04-05 14:22:37 -0700
  • 0e4f3a843a 0.0.10: Added ApiCallOptions to the getHeaders call. David de Regt 2016-12-19 17:29:24 -0800
  • 81a9232960 0.0.9: Add typing to PUT/DELETE calls on GenericRestClient David de Regt 2016-12-19 13:10:57 -0800
  • 3e1cbbc6fb 0.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
  • 0ec2a3071e Fixing edge case Mark noticed David de Regt 2016-12-15 19:07:51 -0800
  • 2d3dbf0932 0.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
  • b6c67ef344 0.0.6: Fixing bug in retry logic for DoNotRetry options David de Regt 2016-11-18 17:47:07 -0800
  • 7f65075fd9 Move timeout handler to after calling xhr.open. IE11 doesn't like having this handler first Brent Erickson 2016-11-18 12:22:04 -0800
  • 0ff792117c Trying 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
  • 3adbad70e0 Bump package version to 0.0.3 Brent Erickson 2016-11-16 00:24:19 -0800
  • e9b6f5a1b1 Simplify 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
  • 46e898651b Add 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
  • 44b1603bb1 Add 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
  • 8dc92c04ac Use 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
  • c422b00e42 Bump package version to 0.0.3 Brent Erickson 2016-11-16 00:24:19 -0800
  • dbe6a7ba21 Simplify 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
  • bc1c24b28e Add 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
  • 5be16f57bd Add 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
  • 74474814e1 Use 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
  • 4e72bfe688 More cleanup for release David de Regt 2016-11-02 17:24:37 -0700
  • 290bcc665b Misc cleanup David de Regt 2016-11-02 15:57:33 -0700
  • 7aadf897dc Initial commit: Extracting out GenericRestClient, SimpleWebRequest, and ExponentialTime into a new SimpleRestClients reusable NPM module. David de Regt 2016-11-02 15:52:44 -0700