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

502 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 7d8326bd97 Try testing with a newer Node version 2018-05-17 16:30:15 +02:00
Mislav Marohnić 9595e3e357 Merge remote-tracking branch 'origin/master' into umd 2018-05-17 16:26:00 +02:00
Mislav Marohnić f6d8b4d513 Use new exports to clean up test suite preparation
Prior to this change, `test.js` had to be loaded before `fetch.js` so it
can nulify the native implementation of `window.fetch` to force testing
of the polyfill. Now that we have exports from the UMD file, we can
abandon this hack and simply access the exports to juggle between native
and polyfilled versions of the implementation.
2018-05-17 16:22:26 +02:00
Mislav Marohnić 114e2bc770 Quit testing CJS exports directly
First of all, loading our UMD dist file in Node doesn't work due to
usage of `self` within `fetch.js`. Second, we don't need to test
exports, since we trust Rollup doing its job.
2018-05-17 16:21:57 +02:00
Mislav Marohnić 432bf07785 Build UMD dist file with Rollup 2018-05-17 16:21:57 +02:00
Mislav Marohnić 0a5748775d Run test files through prettier 2018-05-17 16:21:57 +02:00
Mislav Marohnić 5d803684fd Have tests pass eslint 2018-05-17 16:21:57 +02:00
Mislav Marohnić 3ccb1ce2d8 Switch from jshint to eslint 2018-05-17 00:12:40 +02:00
Mislav Marohnić 24c353871e Make `fetch.js` compatible with eslint 2018-05-16 17:08:34 +02:00
Mislav Marohnić 03d01c5b70 Run prettier on source file 2018-05-16 17:07:07 +02:00
Mislav Marohnić 972819300b Add exports to `fetch.js` 2018-05-16 16:56:58 +02:00
Mislav Marohnić 8aec47cb6c Unwrap `fetch.js` to be a clean module file 2018-05-16 16:56:10 +02:00
Jay Phelps da6e028466 Distribute as UMD 2018-04-09 13:37:46 -04:00
Mislav Marohnić cbb313bf09 Fetch 2.0.4 2018-03-29 17:16:37 +02:00
Mike McQuaid fcc4e1b48c
Merge pull request #604 from MikeMcQuaid/patch-1
Create CONTRIBUTING.md
2018-02-16 09:40:06 +00:00
Mike McQuaid a2fbf83477
Create CONTRIBUTING.md
Provide information on how to contribute to this project.
2018-02-16 09:26:31 +00:00
Mislav Marohnić 3abc04b281 Ignore `package-lock` file 2017-12-13 15:31:58 +01:00
Mislav Marohnić 7831671b17 Fix cookie test with newer versions of Node
An HTTP header must not be set to an `undefined` value.
2017-12-13 15:29:29 +01:00
Mislav Marohnić 7a692dc519 Merge pull request #553 from silverlyra/readme-tweaks
Tweak the wording of the “Read this first” section
2017-08-04 01:13:14 +02:00
Lyra Naeseth 54dc3f823f Tweak the wording of "Read this first" 2017-08-02 23:32:10 -07:00
Mislav Marohnić 27473e937c Merge pull request #534 from remcohaszing/response-undefined-status
Allow undefined Response status
2017-06-19 15:38:23 +02:00
Remco Haszing 0ecdd40c50 Add test for undefined Response status 2017-06-19 08:55:18 +02:00
Remco Haszing c3e1019567 Allow undefined Response status
This allows the Response constructor to accept a status code that's
explicitly set to undefined. Native fetch implementations in Chrome and
Firefox behave this way.

The following now works, but would previously throw an error:

    new Response('', { status: undefined })
2017-06-16 14:11:19 +02:00
Mislav Marohnić 9a0c992f4c Merge pull request #526 from satya164/patch-1
Ensure cookies aren't sent if `credentials: omit`
2017-05-24 21:45:48 +02:00
Satyajit Sahoo c389ccd832 Ensure cookies aren't sent if `credentials: omit`
If the default value of `withCredentials` is `true`, as opposed to `false`, the library will send the cookies even if `credentials: omit` is specified. This affects React Native where the default value is `true` since cross-origin concerns don't apply.
2017-05-24 05:33:44 +05:30
David Graham 8560066d3d Merge pull request #492 from marceloogeda/patch-1
Added yarn command as option to installation
2017-05-09 15:22:42 -06:00
Mislav Marohnić 08602ff819 Merge pull request #496 from woudini/fix-header-delimiter
Add global replace for processing raw headers
2017-04-08 22:43:39 +02:00
David Graham fcf847601f Merge pull request #469 from RoneyThomas/patch-1
Added safari to native fetch browser support.
2017-03-27 14:12:48 -06:00
woudini f1207edc5e Add global replace for processing raw headers 2017-03-14 13:35:48 -04:00
Marcelo Ogeda 183736d830 Add yarn command as option to installation 2017-03-07 18:26:55 -03:00
Mislav Marohnić 37dcb927eb Merge pull request #491 from woudini/fix-header-delimiter
Support obs-fold as header delimiter
2017-03-07 17:27:03 +01:00
woudini 916077212c Support obs-fold as header delimiter 2017-03-06 17:57:32 -05:00
David Graham d4ed806fdc
Fetch 2.0.3 2017-03-02 10:43:02 -07:00
David Graham 5cc72dd734
Remove bower version from release instructions 2017-03-02 10:39:07 -07:00
David Graham eebaa2a1bc
Remove extra punctuation 2017-02-22 08:27:59 -07:00
David Graham 9630aaa7db Merge pull request #485 from tschaub/headers-array
Accept array in Headers constructor
2017-02-22 08:26:52 -07:00
Tim Schaub adc251ca5a Accept array in Headers constructor 2017-02-21 17:30:58 -07:00
David Graham 49e80307b8 Merge pull request #483 from aknuds1/patch-1
Improve README language
2017-02-21 10:47:33 -07:00
Arve Knudsen f4932c0945 Improve README language
Improve various aspects of the language in the README, some being typos.
2017-02-21 12:02:21 +01:00
Roney Thomas d34bde6c2a Oxford comma. 2017-01-25 12:33:21 -05:00
Roney Thomas 499a862c87 Added safari to native fetch browser support.
https://developer.apple.com/library/prerelease/content/releasenotes/General/WhatsNewInSafari/Articles/Safari_10_1.html
2017-01-24 22:11:39 -05:00
Mislav Marohnić a9066beb1c Merge pull request #468 from VagishVela/patch-1
Fix grammar mistake in README
2017-01-23 23:26:03 +01:00
Vagish Vela bcc6b6753d Fix grammar mistake in README 2017-01-23 17:04:02 -05:00
Mislav Marohnić b337f9578f fetch 2.0.2 2017-01-19 18:34:14 +01:00
Mislav Marohnić c64c8a01d7 Merge pull request #465 from github/url-to-string
Treat any non-Request arg to `new Request()` as string url
2017-01-19 18:22:21 +01:00
Mislav Marohnić b285e61fbc Detect broken URL support in PhantomJS and skip test 2017-01-16 18:09:36 +01:00
Mislav Marohnić c1df10299c Treat any non-Request arg to `new Request()` as string url
This aims to match the behavior that the IDL of the spec defines:
https://github.com/whatwg/fetch/issues/452#issuecomment-272439900
2017-01-16 16:41:54 +01:00
Joshua Peek 9240ef453a Remove secrets 2016-12-29 10:36:18 -08:00
Mislav Marohnić d7989c10f8 Merge pull request #449 from woudini/tolerance-provision
Support Tolerance Provision when parsing headers
2016-12-06 16:22:10 +01:00
woudini eac7a2b9d3 Support Tolerance Provision when parsing headers 2016-12-06 09:40:33 -05:00