Simple GraphQL Client for JavaScript. Minimal. Extensible. Type Safe. Runs everywhere.
MIT License
Bot releases are hidden (Show)
Accept
header (#618)GraphQLClientRequestHeaders
with built-in HeadersInit
type (#616)/foo
) (#745)Accept
header (#618)GraphQLClientRequestHeaders
with built-in HeadersInit
type (#616)GraphQLResponse
type as part of the public API (#636)Content-Type
header (#614)Published by jasonkuhrt about 2 years ago
graphql
module (#365)Published by jasonkuhrt over 2 years ago
BREAKING CHANGES:
Features:
Published by jasonkuhrt almost 3 years ago
Published by jasonkuhrt about 3 years ago
Published by jasonkuhrt about 3 years ago
Published by jasonkuhrt about 3 years ago
Published by jasonkuhrt almost 4 years ago
Published by jasonkuhrt about 4 years ago
Published by jasonkuhrt about 4 years ago
Types module has moved from dist/src/types.js
to dist/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 requires graphql
version 14.x or 15.x as a peer dependency.
graphql-request
uses a TypeScript type from the graphql
package such that if you are using TypeScript to build your project and you are using graphql-request
but don't have graphql
installed TypeScript build will fail. Details here. If you are a JS user then you do not technically need to install graphql
. However if you use an IDE that picks up TS types even for JS (like VSCode) then its still in your interest to install graphql
so that you can benefit from enhanced type safety during development.
Published by schickling over 4 years ago
This release was accidental. The breaking change will actually be undone in 2.1. However since this project was dormant for a long time, the 2.x
version is still a safeguard against possible regressions/instability that new development will cause.
Options
type (#155) (b69791c)cross-fetch
if needed now.