Skip to content

Releases: jasonkuhrt/graphql-request

next

29 May 13:00
6eebe6f
Compare
Choose a tag to compare
next Pre-release
Pre-release

Features

Fixes

  • 3ba32a3 client sends accept header

Improvements

  • 92ea1b2 docs: mention additional requirement for TS
  • 39dfb37 refactor: no mock server
  • db4db92 docs: TS moduleResolution requirements

Chores

7.0.1

11 May 04:34
Compare
Choose a tag to compare

Fixes

  • dc299d9 no node fs module in runtime

Improvements

  • 11805c8 improve: remove needless deep imports into graphql

Chores

7.0.0

09 May 02:18
Compare
Choose a tag to compare

BREAKING CHANGES

  • 2a121c6 remove inlined graphql websocket code
  • 99a192e add spec compliant default Accept header (#618)
  • 0e53aed replace GraphQLClientRequestHeaders with built-in HeadersInit type (#616)
  • c3a309f remove support for CommonJS (#607)
  • 6efcc0d remove cross-fetch polyfill
  • Valid URL must be passed (no more path-only strings like /foo) (#745)

Features

  • f906d22 export request init extended type (#812)
  • cc2dc55 response middleware extra info (#788)
  • 2a121c6 (breaking) remove inlined graphql websocket code
  • 0f1b7b5 exclude operation name via a field in RequestConfig (#645)
  • 99a192e (breaking) add spec compliant default Accept header (#618)
  • 0e53aed (breaking) replace GraphQLClientRequestHeaders with built-in HeadersInit type (#616)
  • c3a309f (breaking) remove support for CommonJS (#607)
  • 6efcc0d (breaking) remove cross-fetch polyfill
  • e065677 export GraphQLClientRequestHeader (#558)

Fixes

Improvements

Graffle (alpha)

Features

6.1.0

23 May 16:56
6500e69
Compare
Choose a tag to compare

Features

  • 71af6ab restore main field of package.json for environments that do not support exports field (#526)
  • 81c8bb2 export middleware function types

Improvements

  • 5fc0062 improve: fix autocomplete for request function
  • b98d71b refactor: group exports

Chores

6.0.0

13 Apr 03:54
277bad5
Compare
Choose a tag to compare

BREAKING CHANGES

Features

Fixes

  • 8a98925 change event handlers registration style (#474)

Improvements

Chores

5.2.0

01 Mar 16:18
Compare
Choose a tag to compare

Features

Fixes

  • d5a4012 batchRequests type constraint (#462)
  • 4302ba1 check if property errors from response is an empty array (#454)

Improvements

Chores

5.0.0

27 Aug 13:47
6246ffe
Compare
Choose a tag to compare

BREAKING CHANGES

  • 2f221a4 Invoke responseMiddleware in error cases as well (#372)

Features

  • 6246ffe Allow async requestMiddleware (#379)
  • 2f221a4 (breaking) Invoke responseMiddleware in error cases as well (#372)
  • a7ac904 TypedDocumentNode support & strict variable typings (#350)
  • dec0319 added middleware support (#170)

Fixes

  • 55b1bf5 resolve headers when cross fetch is not available in environment (#296)
  • 988b437 use GraphQLError from graphql module (#365)

Chores

4.2.0

23 Mar 12:37
ac40083
Compare
Choose a tag to compare

Features

Improvements

4.1.0

10 Mar 16:57
Compare
Choose a tag to compare

Features

  • 24ca53b include operationName to rawRequest payload if defined in gql (#328)
  • 26711e7 parse string documents to extract the operationName (#325)

Fixes

  • 0e406cc include source files in package for source maps (#317)
  • cbfa1fb case-insensitive 'Content-type' response header detection (#315)

Improvements

  • cf0aea9 improve: drop official node 12 support

Chores

  • d71028c use dripip reusable workflow
  • a99293c update workflow action versions
  • d740cdc bump simple-get from 3.1.0 to 3.1.1 (#320)

v4.0.0

23 Mar 12:49
Compare
Choose a tag to compare

BREAKING CHANGES:

  • Official support for Node 12 is dropped

Features:

  • #303 Signal (Abort Controller) support