Graphql Request Versions Save

Minimal GraphQL client

7.0.1

6 days ago

Fixes

  • dc299d9 no node fs module in runtime

Improvements

  • 11805c8 improve: remove needless deep imports into graphql

Chores

  • ecf5032 update dependency tsx to v4.9.4 (#843)
  • 12cb8cf update dependency zod to v3.23.8 (#836)

7.0.0

1 week ago

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

  • 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

11 months ago

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

  • 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

1 year ago

BREAKING CHANGES

  • 02a5522 remove file uploads feature (#501)
  • 702ef92 bring TS 5 support (#480)

Features

  • 02a5522 (breaking) remove file uploads feature (#501)
  • 702ef92 (breaking) bring TS 5 support (#480)

Fixes

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

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

1 year ago

Features

  • cb79d67 make package hybrid ESM/CJS closes #192 (#455)

Fixes

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

Improvements

  • 0fb7062 refactor: introduce eslint
  • d7d0a8d refactor: typo bathching -> batching (#425)

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

1 year ago

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

  • d04de20 bump apollo-server-core from 3.5.0 to 3.10.1 (#377)
  • 3662f38 Replacing the quickstart gql query example (#374)
  • fec536b add Readme section for GET requests (#370)
  • dec0296 add errorPolicy 'all' confition (#360)

4.0.0

2 years ago

BREAKING CHANGES:

  • Official support for Node 12 is dropped

Features:

4.2.0

2 years ago

Features

  • b01d753 custom JSON serializer support (#324)

Improvements

  • ac40083 upgrade cross-fetch to fix https: //github.com/advisories/GHSA-r683-j2x4-v87g (#333)

4.1.0

2 years ago

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)

3.7.0

2 years ago

Features

  • b693d27 allow graphql@16 as peer dependency (#305)
  • 88ce220 export more client types (#306