BREAKING CHANGES
-
Types module has moved from
dist/src/types.js
todist/types.js
. If you were importing from the former before you'll need to update to be the later now. -
e757927 accept DocumentNode input (#183)
graphql-request
now requiresgraphql
version 14.x or 15.x as a peer dependency.graphql-request
uses a TypeScript type from thegraphql
package such that if you are using TypeScript to build your project and you are usinggraphql-request
but don't havegraphql
installed TypeScript build will fail. Details here. If you are a JS user then you do not technically need to installgraphql
. However if you use an IDE that picks up TS types even for JS (like VSCode) then its still in your interest to installgraphql
so that you can benefit from enhanced type safety during development.
Features
- e757927 (breaking) accept DocumentNode input (#183)
- ad5a403 Add timeout property to RequestInit interface (#173)
- 5ceb388 add type param for variables (#143)
- cf90a8e inline TypeScript fetch types
- 1610d1e use cross-fetch as ponyfill
Fixes
Improvements
- ccaa5a1 docs: touchup readme
- 7129cf5 refactor: ts strict mode
- a3dad71 refactor: make src be root dir
Chores
- 3ce22ab update dripip
- 3f51dab mention setHeader (#171)
- 3b25f6d fix ci, stop running lint script
- 2dd655e use prepublishOnly script
- f0284f4 fix readme workflow badge
- af503af stop using tslint
- 234165e fix tests
- 9a8d1a3 use dripip for making releases
- 483119e switch from ava to jest
- 0bcaa05 upgrade typescript dep
- a6ab58b improve semantic-release setup (#164)