Releases: jasonkuhrt/graphql-request
Releases · jasonkuhrt/graphql-request
next
Features
- ba48bf9 raw typed (#1021)
- c1f08d0 prefill schema URL (#1016)
- 8e12e0b generate from introspection (#1014)
- fe50d58 granular output config (#991)
- c3a1718 raw overload (#968)
- 9827bc9 scalar constructor with inference (#954)
- 31e586e file upload extension (#937)
Fixes
- df6954a constructor headers sent through to exchange
- f4b01d7 verbatimModuleSyntax (#953)
- 833d172 use json content-type header (#949)
Improvements
- e5fc3f2 refactor: extract prefilled to own module
- c3593ae refactor: use verbatimModuleSyntax
- 40d51c5 docs: change spreading request headers to using new Headers (#1001)
- 14bb543 improve: test against node 20 and 22 (#976)
- 8efd3b2 refactor: move client layer above core (#967)
- ee3781d improve: prefix data term in return mode (#966)
Chores
- 9a4be38 update pnpm to v9.7.0 (#1022)
- 3866f11 remove dead script
- 4964979 update dependency graphql-yoga to v5.6.3 (#996)
- e268c00 eslint disable
- e3dff38 better client name
- ddf27ed config headers
- ab58c07 custom fetch example
- 9df587c update dependency @types/node to v22.1.0 (#1005)
- a9bc07d update all dev deps
- 8175da4 update dependency typescript to v5.5.4 (#995)
- 86eba2f update dependency vitest to v2.0.4 (#983)
- 40b13d4 update dependency jsdom to v24.1.1 (#993)
- d07740b update pnpm to v9.6.0 (#994)
- 2c48ecd update all dev deps
- f8e3fbc update dependency graphql-yoga to v5.6.1 (#988)
- 16fbbb7 update dependency eslint to v9.7.0 (#981)
- b2c9d03 remove legacy tests (#975)
- 1260834 update all dev deps (#974)
- 20a0caf update dependency typescript-eslint to v7.16.0 (#960)
- b1afe20 update pnpm to v9.5.0 (#970)
- 5a658b1 update dependency @types/node to v20.14.10 (#969)
- f72ceb0 update dependency tsx to v4.16.2 (#964)
- 43bc8a0 update dependency @arethetypeswrong/cli to ^0.16.0 (#962)
- a1b5bcf update dependency graphql-yoga to v5.6.0 (#956)
- 06dcbcd update dependency dprint to ^0.46.2 || ^0.47.0 (#955)
- c14e5b2 update dependency @dprint/formatter to ^0.3.0 || ^0.4.0 (#952)
- b675624 update dependency eslint to v9.6.0 (#943)
- a34c4e4 update dependency tsx to v4.15.8 (#934)
- 017c583 update dependency @typescript-eslint/parser to v7.14.1 (#918)
- 4f986cd update dependency @typescript-eslint/eslint-plugin to v7.14.1 (#917)
- d3b62aa update dependency typescript-eslint to v7.14.1 (#931)
- 8179381 update dependency @pothos/core to v3.41.2 (#938)
- da12140 update dependency @pothos/plugin-simple-objects to v3.7.1 (#939)
7.1.0
Fixes
Improvements
- 30b39bf improve: update all deps to latest (#936)
- 92ea1b2 docs: mention additional requirement for TS
- 39dfb37 refactor: no mock server
- db4db92 docs: TS moduleResolution requirements
Graffle
Features
- c91bbc3 anyware hook retries (#904)
- 6eebe6f extension system (#871)
- 543ffdf static exec and req funcs (#851)
- eecf7b9 incremental typed client (#848)
Chores
7.0.1
7.0.0
BREAKING CHANGES
- 2a121c6 remove inlined graphql websocket code
- 99a192e add spec compliant default
Accept
header (#618) - 0e53aed replace
GraphQLClientRequestHeaders
with built-inHeadersInit
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-inHeadersInit
type (#616) - c3a309f (breaking) remove support for CommonJS (#607)
- 6efcc0d (breaking) remove cross-fetch polyfill
- e065677 export GraphQLClientRequestHeader (#558)
Fixes
- 553006b await response middleware (#810)
- 54da7bd alias encoding (#809)
- 190bdd2 remove vitest import
- 5f13401 no select root types if not in schema
- ee66c10 result types have no args
- fe124de args on interfaces and unions (#781)
- 893ad01 no infer runtime unions
- 310f10c order independent input object defs
- a71c9f8 order independent input object defs
- 118d1d7 no infer runtime objects
- 1238a1c thunk list objects
- 8a9e207 exact types on query and mutation (#755)
- aeb6087 generated code imports
- 7d828d7 allow null data
- 0d1e1a6 imports
- 2ad3e80 schema module exports path
- b7c26f8 schema import in generated types (#732)
- 4af7cb4 append search params (#673)
- a169969 no GET on mutations (#663)
- 8f926b8 do not require index sig on vars (#659)
- 0eb8a1d export
GraphQLResponse
type as part of the public API (#636) - dbd7c7f do not overwrite user-provided
Content-Type
header (#614) - d6298a3 refactor code so linter no longer produces warnings (#605)
- 3b7b31f ensure code formatting is correct (#604)
- a9fcb44 add support for TypedDocumentNode to be passed to WS methods (#585)
- c124ec8 Add ClientError to ResponseMiddleware param (#534)
Improvements
- b1f18c1 refactor: simplify encode tests
- f333c1e refactor: single pass encode (#807)
- dbffec8 refactor: modularize selection-set (#806)
- 5b13f30 refactor: organize dirs by layer (#805)
- bd5dddf docs: begin new documentation
- 05308fa improve: Node 18 tsconfig and ES2023 lib (#794)
- 6f07a0e refactor: client modules (#791)
- a554328 tests: refactor to one default schema (#790)
- 893a5e0 refactor: import order
- b9888e2 refactor: client dir
- 1287eda refactor: schema module (#770)
- c77de38 improve: upgrade to eslint 9 (#764)
- 5fe1cea refactor: legacy becomes raw
- 9dc4d81 refactor: tidy signature
- 52f4ab8 improve: upgrade deps to latest
- cc86c34 refactor: use dprint instead of prettier (#677)
- 080346e tests: case for overriding a built in header
- e040ec9 tests: do not retest headers init
- 4d4ac4c refactor: move existing api to legacy dir (#670)
- 4cadba3 refactor: modualarize api (#653)
- e5c8e7f improve: Optimised imports from graphql to decrease bundle size (#543)
Graffle (alpha)
Features
- be48f1e rename cli to graffle
- fb715d9 generated namespace and client ctor (#815)
- e2d1888 select (#816)
- 4ac0cd1 use a global namespace (#808)
- 2a39e81 rawOrThrow
- 80e050c returnMode successData (#804)
- 7b06232 mode to return all errors (#796)
- ae9ab07 treat schema file location as source dir
- b45dc60 use graphql return mode & named schema
- 547dfe5 can specify error type pattern in cli
- 2a77493 isError helper function
- a35be0a select type utilities (#785)
- 45412c2 root type field methods (#779)
- 73adae5 document method (#774)
- 98cb065 select helper
- 420a389 add raw method
- 5de618b root field methods
- 9191249 batch method
- cebd26d support non-null interface
- b85b50b union non-null field (#771)
- 33a0278 optional custom scalars (#768)
- fdca0a7 index sans dollar namespace (#767)
- 5658370 custom scalar runtime codecs (#746)
- 0e150e4 format generated code with dprint
- 34c9e25 string support for custom scalars (#742)
- f9ad67a support input object in selection set (#736)
- 4318cac disable environment input, rename flag (#731)
- 48e4d64 introduce a CLI for generating the client (#730)
- 9640d0a introduce an experimental typescript client (#672)
6.1.0
Features
- 71af6ab restore
main
field of package.json for environments that do not supportexports
field (#526) - 81c8bb2 export middleware function types
Improvements
Chores
- 6500e69 regenerate TOC (#531)
- ae1d8af update pnpm to v8.5.1 (#527)
- da47f4e update pnpm to v8.5.0 (#524)
- ed72463 update dependency @types/node to v20 (#523)
- efed6be update dependency @vitest/coverage-c8 to ^0.31.0 (#521)
- a91b69d update pnpm to v8.4.0 (#520)
- 01d0793 update dependency vitest to ^0.31.0 (#522)
- 250e78c Update README.md (#516)
- a9bee0e update pnpm to v8.3.1 (#513)
- cee8629 update pnpm to v8.3.0 (#511)
- dd2d3b6 test that custom config is passed to fetch
- b7025c8 do not use t-prefix type names
- 6b3396b normalize docs (dedupe) (#507)
- 3a38f48 upgrade dev deps to latest
6.0.0
BREAKING CHANGES
Features
Fixes
Improvements
- 5ce990a refactor: remove default syntax
- fee4476 refactor: ref passthrough
- 8467a26 refactor: rename internal type
- b563ad5 refactor: lint
Chores
- 277bad5 update dependency @vitest/coverage-c8 to ^0.30.0 (#503)
- 4a4e85b update pnpm to v8.2.0 (#505)
- c201325 update dependency vitest to ^0.30.0 (#504)
- 37c5cc2 check docs build on pr ci (#502)
- 82e0050 lint PRs (#498)
- e596527 make use of gql tag
- a446365 update dev deps to latest
- 3ed6436 use prisma eslint config
- c697c5a format
- 8814eb8 enable stale bot
- 43a2601 consolidate content under knowledge base section
- b15e948 update pnpm to v8.1.1 (#494)
- bdebdc7 update dependency happy-dom to v9 (#492)
- 38fda1d update pnpm to v8.1.0 (#490)
- 6c49ead update pnpm to v8 (#488)
- c7f8212 update pnpm to v7.30.5 (#487)
- b520745 update pnpm to v7.30.3 (#486)
- 413bdff update pnpm to v7.30.1 (#485)
- 9866249 update pnpm to v7.30.0 (#483)
- b712346 update pnpm to v7.29.3 (#479)
- be7e6b2 make runs faster (#478)
- 6ba1648 update pnpm to v7.29.1 (#476)
- b18227e troubleshooting for React Native + Metro projects (#475)
- 2d35a7b update pnpm to v7.29.0 (#470)
5.2.0
Features
Fixes
- d5a4012 batchRequests type constraint (#462)
- 4302ba1 check if property errors from response is an empty array (#454)
Improvements
Chores
- 7bf2d10 fix githubToken passing
- ff372f5 update pnpm to v7.28.0 (#463)
- 181ca5c update dependency @vitest/coverage-c8 to ^0.29.0 (#461)
- 9dc1b7e vscode settings for project
- 074fb06 add isuee templates
- 29d09e5 mention esm
- 7abfa6d update pnpm to v7.27.1 (#456)
- 3618169 update pnpm to v7.27.0 (#452)
- 6487093 update pnpm to v7.26.3 (#450)
- 0a65e91 update pnpm to v7.26.2 (#447)
- a23b294 update pnpm to v7.26.1 (#445)
- 0962dd2 switch to pnpm (#444)
- 99f6763 update dev deps (#443)
- 7a644e7 remove security policy
- 9a097f2 attribute owner and author to Jason Kuhrt
5.0.0
BREAKING CHANGES
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
4.1.0
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