Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
844356d
Change credentials value to 'include' based on Fetch specs
camsong Aug 10, 2015
6d93aaa
add CommonJS support
camsong Aug 11, 2015
743def7
release 1.0.0
camsong Aug 11, 2015
9320e68
add window.__disableNativeFetch configuration
camsong Aug 13, 2015
c9a4799
release 1.1.0
camsong Aug 13, 2015
408edd6
stop using ActiveXObject in IE, since IE8 works with XMLHttpRequest well
camsong Aug 14, 2015
6144fac
fix invalidStateError in IE10 when setting withCredentials
camsong Aug 24, 2015
21506b1
release 1.3.0
camsong Aug 24, 2015
9dd8c2a
use console.warn to replace console.error
camsong Sep 8, 2015
74742b2
release 1.3.1
camsong Sep 8, 2015
0567552
sync with github/fetch
camsong Dec 9, 2015
3a04845
fix resolve twice bug
camsong Dec 9, 2015
c629e93
release 1.4.0
camsong Dec 9, 2015
fb33d8f
update installation guide
camsong Dec 30, 2015
85e39b2
Update README.md
camsong Dec 30, 2015
8ff8534
fixed blob charset for different encoding
IskenHuang Jan 20, 2016
afc28ec
Merge pull request #1 from IskenHuang/master
camsong Jan 20, 2016
1460852
bumb 1.4.1, fixed #1
camsong Jan 20, 2016
8a5da1a
fixed request encode is utf8 but response different. When encodeing d…
IskenHuang Mar 13, 2016
462a663
Merge pull request #4 from IskenHuang/master
camsong Mar 13, 2016
582588f
release 1.4.2, fix #4
camsong Mar 13, 2016
59b9e83
Compatibility when defining the global object
Jun 21, 2016
804ecf9
Merge pull request #5 from msuperina/NonBrowserCompatibility
camsong Jun 22, 2016
63d1f42
release 1.4.3
camsong Jun 22, 2016
90816c3
add es6-promise
camsong Sep 27, 2016
e19e685
update browser icons
camsong Feb 7, 2017
5312af4
update self
camsong Feb 28, 2017
44ce416
release 1.5.0
camsong Feb 28, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
1.5.0 / 2017-02-28
==================
* Fix self

1.4.3 / 2016-06-22
==================
* Compatibility when defining the global object, merged #5

1.4.2 / 2016-03-13
==================
* Fix request and response content-type different bug

1.4.1 / 2016-01-20
==================
* Make blob supporting different encoding, fixed #1

1.4.0 / 2015-12-09
==================
* Sync with github/fetch
* Fix promise resolve twice bug

1.3.1 / 2015-09-08
==================
* Use console.warn to log messages
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
# window.fetch polyfill

**This fork supports IE8 with es5-shim, es5-sham and es6-promise**
**This fork supports IE8 with es5-shim, es5-sham and es6-promise.**

**If you also use JSONP, checkout [fetch-jsonp](https://github.com/camsong/fetch-jsonp).**

**Fetch API is still very new and not fully supported in some browsers, so you may
need to check browser verson as well as if `window.fetch` exists. In this case,
you can set `window.__disableNativeFetch = true` to use AJAX polyfill always.**

The global `fetch` function is an easier way to make web requests and handle
responses than using an XMLHttpRequest. This polyfill is written as closely as
possible to the standard Fetch specification at https://fetch.spec.whatwg.org.

## Installation

Available on [Bower](http://bower.io) as **fetch-polyfill**.

```sh
$ bower install fetch-polyfill
$ npm install fetch-ie8 --save
```

You'll also need a Promise polyfill for older browsers.

```sh
$ bower install es6-promise
$ npm install es6-promise
```

This can also be installed with `npm`.

```sh
$ npm install fetch-polyfill --save
Run this to polyfill the global environment at the beginning of your application.
```js
require('es6-promise').polyfill();
```

(For a node.js implementation, try [node-fetch](https://github.com/bitinn/node-fetch))
Expand Down Expand Up @@ -157,6 +160,6 @@ header hack.

## Browser Support

![Chrome](https://raw.github.com/alrra/browser-logos/master/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/internet-explorer/internet-explorer_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/safari/safari_48x48.png)
![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_7-8/internet-explorer_7-8_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png)
--- | --- | --- | --- | --- |
Latest ✔ | Latest ✔ | 8+ ✔ | Latest ✔ | 6.1+ ✔ |
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fetch-polyfill",
"version": "0.8.1",
"name": "fetch-ie8",
"version": "1.3.1",
"main": "fetch.js",
"devDependencies": {
"es6-promise": "2.1.0"
Expand Down
Loading