- add: new TypeScript declaration file(.tsd). #9
- fix: eslint issues
- update deps: npm-run-all, to prevent security problems caused by event-stream(detail: dominictarr/event-stream#116)
Now FetchQL distribute an ES module(./lib/fetchql.es.js
) by default and you can simplely import FetchQL by import fetchql from 'fetchql'
.
For details, please refer to PR: Added support for ES modules by default.
- feature: 'requestOptions' to set default fetch request options and change it in query method
- fix: omitEmptyVariables haven’t remove properties correctly.
- update: now reject errors will have a default error message, if server-side doesn’t throw any errors.
- breaking changes: Source code has been moved into
./src
and distributed file goes to./lib
; - breaking changes: Distributed file(
./lib/fetchql.js
) is unminified now. - feature: remove empty string(
''
) ornull
values in query variables.
- fix: spelling of property name in typescript declaration file.
- add: code coverage reports
- fix: missing update of production file
- breaking change: replace Set with Array in the implement of interceptors
- update: add polyfills of Array.from and Object.assign for improving compatibility
- feature: callbacks of request queue changed