ember-fetch
Version:
HTML5 Fetch polyfill (as an ember-addon)
428 lines (271 loc) • 15.3 kB
Markdown
## v8.1.2 (2022-08-23)
## v8.1.1 (2021-08-05)
#### :rocket: Enhancement
* [#636](https://github.com/ember-cli/ember-fetch/pull/636) Replace console.warn with Ember.debug ([@nlfurniss](https://github.com/nlfurniss))
#### :house: Internal
* [#637](https://github.com/ember-cli/ember-fetch/pull/637) Move CI testing to Github ([@nlfurniss](https://github.com/nlfurniss))
#### Committers: 2
- Nathaniel Furniss ([@nlfurniss](https://github.com/nlfurniss))
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
## v8.1.0 (2021-06-15)
#### :rocket: Enhancement
* [#623](https://github.com/ember-cli/ember-fetch/pull/623) Allow to use native promises instead of RSVP ([@mydea](https://github.com/mydea))
#### Committers: 1
- Francesco Novy ([@mydea](https://github.com/mydea))
## v8.0.5 (2021-06-02)
#### :bug: Bug Fix
* [#620](https://github.com/ember-cli/ember-fetch/pull/620) Fix ember global ([@chancancode](https://github.com/chancancode))
#### Committers: 1
- Godfrey Chan ([@chancancode](https://github.com/chancancode))
## v8.0.4 (2021-01-18)
#### :house: Internal
* [#586](https://github.com/ember-cli/ember-fetch/pull/586) Update `.npmignore` file ([@Turbo87](https://github.com/Turbo87))
#### Committers: 1
- Tobias Bieniek ([@Turbo87](https://github.com/Turbo87))
## v8.0.3 (2021-01-18)
#### :bug: Bug Fix
* [#568](https://github.com/ember-cli/ember-fetch/pull/568) Updates the type for data property to be less restrictive. ([@LuisAverhoff](https://github.com/LuisAverhoff))
#### Committers: 3
- Luis Manuel Averhoff ([@LuisAverhoff](https://github.com/LuisAverhoff))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
## v8.0.2 (2020-08-10)
#### :bug: Bug Fix
* [#552](https://github.com/ember-cli/ember-fetch/pull/552) Fix whatwg-fetch 3.4 global object name change compatibility ([@xg-wang](https://github.com/xg-wang))
#### :memo: Documentation
* [#517](https://github.com/ember-cli/ember-fetch/pull/517) Remove mentioning ajax from readme ([@xg-wang](https://github.com/xg-wang))
#### :house: Internal
* [#548](https://github.com/ember-cli/ember-fetch/pull/548) Re-roll yarn.lock file. ([@rwjblue](https://github.com/rwjblue))
#### Committers: 3
- Logan Rosen ([@loganrosen](https://github.com/loganrosen))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
## v8.0.1 (2020-03-30)
#### :bug: Bug Fix
* [#478](https://github.com/ember-cli/ember-fetch/pull/478) Bump broccoli-concat to pick up transitive dependency fix ([@stefanpenner](https://github.com/stefanpenner))
#### :house: Internal
* [#479](https://github.com/ember-cli/ember-fetch/pull/479) Bump broccoli-merge-trees ([@xg-wang](https://github.com/xg-wang))
#### Committers: 3
- Stefan Penner ([@stefanpenner](https://github.com/stefanpenner))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
## v8.0.0 (2020-03-29)
#### :boom: Breaking Change
* [#447](https://github.com/ember-cli/ember-fetch/pull/447) Remove ember-fetch/mixins/adapter-fetch ember-fetch/ajax, drop node 8 ([@stefanpenner](https://github.com/stefanpenner))
#### :memo: Documentation
* [#447](https://github.com/ember-cli/ember-fetch/pull/447) Remove ember-fetch/mixins/adapter-fetch ember-fetch/ajax, drop node 8 ([@stefanpenner](https://github.com/stefanpenner))
#### Committers: 2
- Stefan Penner ([@stefanpenner](https://github.com/stefanpenner))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
## v7.1.0 (2020-03-28)
#### :rocket: Enhancement
* [#468](https://github.com/ember-cli/ember-fetch/pull/468) Ignore fastboot build output file if app unused/disable fastboot ([@houfeng0923](https://github.com/houfeng0923))
#### Committers: 2
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- houfeng ([@houfeng0923](https://github.com/houfeng0923))
## v7.0.1 (2020-02-13)
#### :house: Internal
* update dependencies
- Bump @ember/optional-features from 1.1.0 to 1.3.0 (9 days ago) <dependabot-preview[bot]>
- Bump ember-source from 3.16.0 to 3.16.1 (9 days ago) <dependabot-preview[bot]>
- Replace ember-cli-qunit with ember-qunit (#436) (11 days ago) <Thomas Wang>
- Replace ember-cli-qunit with ember-qunit (11 days ago) <Thomas Wang>
- Bump eslint-plugin-ember from 6.10.1 to 7.7.2 (#420) (11 days ago) <Thomas Wang>
- Bump eslint-plugin-ember from 6.10.1 to 7.7.2 (6 weeks ago) <dependabot-preview[bot]>
- Bump ember-resolver from 5.3.0 to 7.0.0 (#426) (12 days ago) <Thomas Wang>
- Bump ember-resolver from 5.3.0 to 7.0.0 (12 days ago) <dependabot-preview[bot]>
- Bump ember-cli-typescript-blueprints from 2.0.0 to 3.0.0 (#396) (12 days ago) <Thomas Wang>
- Bump ember-cli-typescript-blueprints from 2.0.0 to 3.0.0 (3 months ago) <dependabot-preview[bot]>
- Bump ember-source from 3.14.3 to 3.16.0 (3 weeks ago) <dependabot-preview[bot]>
- Bump ember-cli-typescript from 2.0.2 to 3.1.3 (2 weeks ago) <dependabot-preview[bot]>
- Bump eslint from 6.7.2 to 6.8.0 (6 weeks ago) <dependabot-preview[bot]>
- Bump @typescript-eslint/eslint-plugin from 2.10.0 to 2.13.0 (7 weeks ago) <dependabot-preview[bot]>
- Bump ember-cli-htmlbars from 4.1.0 to 4.2.0 (7 weeks ago) <dependabot-preview[bot]>
- Bump ember-try from 1.3.0 to 1.4.0 (8 weeks ago) <dependabot-preview[bot]>
- Bump ember-cli-babel from 7.13.0 to 7.13.2 (8 weeks ago) <dependabot-preview[bot]>
- Bump ember-cli-htmlbars from 4.0.8 to 4.1.0 (9 weeks ago) <dependabot-preview[bot]>
- Bump @typescript-eslint/parser from 2.10.0 to 2.11.0 (9 weeks ago) <dependabot-preview[bot]>
- Bump eslint from 6.6.0 to 6.7.2 (2 months ago) <dependabot-preview[bot]>
- Bump @typescript-eslint/eslint-plugin from 2.9.0 to 2.10.0 (2 months ago) <dependabot-preview[bot]>
- Bump ember-source from 3.14.2 to 3.14.3 (2 months ago) <dependabot-preview[bot]>
- Bump @typescript-eslint/parser from 2.9.0 to 2.10.0 (2 months ago) <dependabot-preview[bot]>
* Add code highlighting to readme code (3 months ago) <Thomas Wang>
* disable ember/no-new-mixins (12 days ago) <Thomas Wang>
## v7.0.0 (2019-11-28)
#### :boom: Breaking Change
* [#292](https://github.com/ember-cli/ember-fetch/pull/292) Added a check to enforce top-level dependency #290. ([@dnalagatla](https://github.com/dnalagatla))
* [#348](https://github.com/ember-cli/ember-fetch/pull/348) Bump deps, drop node 6 ([@xg-wang](https://github.com/xg-wang))
#### :memo: Documentation
* [#405](https://github.com/ember-cli/ember-fetch/pull/405) Add release-it ([@xg-wang](https://github.com/xg-wang))
* [#399](https://github.com/ember-cli/ember-fetch/pull/399) Add section to the README for deprecations ([@locks](https://github.com/locks))
#### :house: Internal
* [#405](https://github.com/ember-cli/ember-fetch/pull/405) Add release-it ([@xg-wang](https://github.com/xg-wang))
#### Committers: 4
- Dinesh Nalagatla ([@dnalagatla](https://github.com/dnalagatla))
- Ricardo Mendes ([@locks](https://github.com/locks))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
## v6.7.2 (2019-11-03)
#### :bug: Bug Fix
* [#372](https://github.com/ember-cli/ember-fetch/pull/372) fix: throwing w/ fresh ember-cli-fastboot serve ([@xg-wang]
g-wang))
#### Committers: 1
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
## v6.7.1 (2019-09-12)
#### :bug: Bug Fix
* [#358](https://github.com/ember-cli/ember-fetch/pull/358) Enable absolute url transform for Request in FastBoot ([@xg-wang](https://github.com/xg-wang))
#### Committers: 2
- Jan Bobisud ([@bobisjan](https://github.com/bobisjan))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
## v6.7.0 (2019-07-08)
#### :rocket: Enhancement
- [#303](https://github.com/ember-cli/ember-fetch/pull/303) Add fetch response and error utils ([@BarryThePenguin](https://github.com/BarryThePenguin))
#### Committers: 3
- Jonathan Haines ([@BarryThePenguin](https://github.com/BarryThePenguin))
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
## v6.6.0 (2019-06-28)
#### :memo: Documentation
- [#308](https://github.com/ember-cli/ember-fetch/pull/308) Deprecate ember-data adapter mixin ([@xg-wang](https://github.com/xg-wang))
#### Committers: 2
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- [@dependabot-preview[bot]](https://github.com/apps/dependabot-preview)
## v6.5.1 (2019-04-18)
#### :bug: Bug Fix
- [#279](https://github.com/ember-cli/ember-fetch/pull/279) Update cacheKeyForTree to cache the treeForVendor ([@2hu12](https://github.com/2hu12))
#### Committers: 1
- 2hu ([@2hu12](https://github.com/2hu12))
## v6.5.0 (2019-03-11)
#### :rocket: Enhancement
- [#136](https://github.com/ember-cli/ember-fetch/pull/136) TypeScript support ([@xg-wang](https://github.com/xg-wang))
#### Committers: 1
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
## v6.4.0 (2018-12-19)
#### :rocket: Enhancement
- [#173](https://github.com/ember-cli/ember-fetch/pull/173) Do not include polyfill if browser targets don't need it ([@mydea](https://github.com/mydea))
#### Committers: 1
- Francesco Novy ([@mydea](https://github.com/mydea))
## v6.3.1 (2018-12-13)
#### :rocket: Enhancement
- [#186](https://github.com/ember-cli/ember-fetch/pull/186) handle stringifying data that was created with Object.create(null) ([@meirish](https://github.com/meirish))
#### Committers: 1
- Matthew Irish ([@meirish](https://github.com/meirish))
## v6.3.0 (2018-12-07)
- Support POST body of all valid types
- Only set default Content-Type header in adapter mixin
## v6.2.3 (2018-12-07)
#### :bug: Bug Fix
- [#167](https://github.com/ember-cli/ember-fetch/pull/167) Fix fetch public/fastboot-fetch.js module definition for Fastboot ([@xg-wang](https://github.com/xg-wang))
#### :house: Internal
- [#171](https://github.com/ember-cli/ember-fetch/pull/171) Setup addon tests ([@xg-wang](https://github.com/xg-wang))
- [#183](https://github.com/ember-cli/ember-fetch/pull/183) Remove mistakenly committed release tarball ([@Turbo87](https://github.com/Turbo87))
- [#182](https://github.com/ember-cli/ember-fetch/pull/182) TravisCI: Remove deprecated `sudo: false` option ([@Turbo87](https://github.com/Turbo87))
#### Committers: 2
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
- Tobias Bieniek ([@Turbo87](https://github.com/Turbo87))
## v6.2.2 (2018-11-28)
#### :bug: Bug Fix
- [#172](https://github.com/ember-cli/ember-fetch/pull/172) Make configuration work in engines ([@mydea](https://github.com/mydea))
#### Committers: 1
- Francesco Novy ([@mydea](https://github.com/mydea))
## v6.2.1 (2018-11-27)
#### :rocket: Bug Fix
- [#137](https://github.com/ember-cli/ember-fetch/pull/137) Use package name of AbortController polyfill in whitelisted dependencies ([@bobisjan](https://github.com/bobisjan))
#### Committers: 1
- Jan Bobisud ([@bobisjan](https://github.com/bobisjan))
## v6.2.0 (2018-11-16)
#### :rocket: Enhancement
- [#143](https://github.com/ember-cli/ember-fetch/pull/143) Enable Fastboot relative URL ([@xg-wang](https://github.com/xg-wang))
#### Committers: 1
- Thomas Wang ([@xg-wang](https://github.com/xg-wang))
## v6.1.1 (2018-11-16)
#### :bug: Bug Fix
- [#165](https://github.com/ember-cli/ember-fetch/pull/165) Use `ember-cli-babel` to transpile vendor tree ([@Turbo87](https://github.com/Turbo87))
#### :house: Internal
- [#164](https://github.com/ember-cli/ember-fetch/pull/164) Improve ESLint setup ([@Turbo87](https://github.com/Turbo87))
- [#162](https://github.com/ember-cli/ember-fetch/pull/162) refactor(test/prefer-native): use co instead of async fn & run in CI ([@buschtoens](https://github.com/buschtoens))
#### Committers: 2
- Jan Buschtöns ([@buschtoens](https://github.com/buschtoens))
- Tobias Bieniek ([@Turbo87](https://github.com/Turbo87))
## v6.1.0 (2018-11-02)
- Export mixin helper functions separately
- Fix typo/bug in parseFetchResponseForError
- If POST body is a string, don't stringify it
## v6.0.0 (2018-10-30)
- Set body to undefined for 204/205/HEAD responses
- Deprecate Logger and remove Ember.merge
- Move serializeQueryParams to its own file so that consuming applications and addons can import it directly
## v5.1.3 (2018-08-25)
- Add babel-core 6 to dependency to avoid babel-core 5 being resolved
## v5.1.2 (2018-08-23)
- Rollup `abortcontroller` and `fetch` as iife.
## v5.1.1 (2018-07-20)
- added supports latest Pretender!
- added support for opt-in native fetch (see readme for details)
- added support for AbortController (see readme for details)
## v5.0.0 (2018-06-05)
- Drop Node 4, 5, 7, and 9 support.
- Update dependencies to prevent warnings RE: legacy broccoli APIs.
## v4.0.2 (2018-05-23)
- Use `yetch` and add support for `AbortController`.
## v3.4.4 (2017-12-20)
- Ensure `fetch` can be used with `ArrayBuffer`s.
- Switch typings to newer style.
## v3.4.3 (2017-10-16)
- Fix non GET/HEAD requests not having body set
## v3.4.2 (2017-10-16)
- Remove `app` tree re-export of `ember-fetch/mixins/ember-fetch.js`
- Drop requirement of host apps having ember-cli-shims
- Upgrade ember-cli and other dependencies
## v3.4.1 (2017-10-13)
- Restore POST body being stringified
- fix 'serializeQueryParams' typo
- add more badges
- add chrome and firefox to travis
- fix tests by using yarn in ember-try
## v3.4.0 (2017-09-15)
- Override Ember Data's RESTAdapter#ajaxOptions
- Add `globals` to eslint config
- Add CHANGELOG through 3.0.1
- fix minor typo around DS
## v3.3.1 (2017-08-23)
- Don't process empty options.data, don't filter out 'null' query param values
- Bump Ember-CLI, ember-cli-babel
## v3.3.0 (2017-08-16)
- Make dealing with response body more robust, bring ajaxError and ajaxSuccess methods more inline with standard ember data methods
## v3.2.9 (2017-07-14)
- fix: use this for import if this.import present
- fix: remove include options
- fix: support nested addons/engines
## v3.2.8 (2017-07-10)
- Stringify data for a POST request
## v3.2.7 (2017-07-02)
- Filter out query params with undefined values, as \$.ajax does
## v3.2.4 - v3.2.6 (2017-07-29)
- Mimic \$.ajax behavior, improve robustness
- another stefanpenner remnant
- update travis location
## v3.2.3 (2017-07-25)
- update repo link
## v3.2.2 (2017-07-24)
- [FIXES #35] ensure rejections remain rejections in tests
- Rejections must be forwarded
- Fix logic to automatically add a Content-Type header
## v3.1.0 (2017-07-21)
- Add hook into fetch behavior
## v3.0.2 (2017-07-19)
- Better handle empty body responses
## v3.0.1 (2017-07-19)
- Make sure Content-Length is greater than zero
- Use Number over parseInt, return promise over done
- Add bodyPromise helper function and test
- Empty response should yield Promise not empty object
## v3.0.1 (2017-07-19)
- remove redundant try/catch
- tidy-up
- Support Ember.merge
- Handle empty response
- Cleanup jquery query param serialization
- [TYPESCRIPT]: added early index.d.ts for type defs
- Respect adapter headers if present
- Add adapter mixin which enables Ember Data to use fetch instead of jQuery.ajax