graffle

Simple GraphQL Client for JavaScript. Minimal. Extensible. Type Safe. Runs everywhere.

MIT License

Downloads
3K
Stars
5.8K
Committers
90

Bot releases are hidden (Show)

graffle -

Published by jasonkuhrt 5 months 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)
graffle -

Published by jasonkuhrt 5 months 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)
graffle - 5.0.0

Published by jasonkuhrt about 2 years 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)
graffle - v4.0.0

Published by jasonkuhrt over 2 years ago

BREAKING CHANGES:

  • Official support for Node 12 is dropped

Features:

graffle - 3.7.0

Published by jasonkuhrt almost 3 years ago

Features

  • b693d27 allow graphql@16 as peer dependency (#305)
  • 88ce220 export more client types (#306
graffle - https://github.com/jasonkuhrt/graffle/releases/tag/v3.6.1

Published by jasonkuhrt about 3 years ago

Improvements

  • 699d9b7 docs: add Readme section for batching (#294)

Chores

  • b9db70a fix run yarn install with node@14 (#293)
graffle - https://github.com/jasonkuhrt/graffle/releases/tag/v3.6.0

Published by jasonkuhrt about 3 years ago

Features

  • 87ec21b set endpoint after the GraphQLClient has been initialized (#291)
  • 2d92782 add batching support with batchRequests (#285)

Fixes

  • 04716a4 remove wrong parameters (#251)

Chores

  • a6d1365 bump tmpl from 1.0.4 to 1.0.5 (#288)
  • 03f04a8 bump object-path from 0.11.7 to 0.11.8 (#287)
  • bd78b0b fix TypeScript spelling (#286)
  • c23ffb3 bump object-path from 0.11.5 to 0.11.7 (#284)
graffle - https://github.com/jasonkuhrt/graffle/releases/tag/v3.5.0

Published by jasonkuhrt about 3 years ago

Features

  • 20f18d3 add operationName to payload if defined in gql (#280)
  • 0b2d960 add support for get request (#277)
  • 32cae25 enable passing requestHeaders (#272)
  • 8587e4d passthrough headers on exported request function (#265)

Fixes

  • 58a6d36 types on GraphQLError (#278)
  • 563609f remove errors from rawRequest return type (#174) (#249)
  • a8d99f5 include headers in ClientError response (#245) (#246)

Improvements

  • c544c5f refactor: remove duplicate code (#271)

Chores

  • 0315018 update dev deps
  • 9f98370 refresh node version matrix (#273)
  • 2c60842 bump ws from 5.2.2 to 5.2.3 (#268)
  • 6d790ef bump glob-parent from 5.1.1 to 5.1.2 (#267)
  • 27d44fb bump lodash from 4.17.20 to 4.17.21 (#263)
  • 2940c49 bump hosted-git-info from 2.8.8 to 2.8.9 (#264)
  • 41a5a58 bump y18n from 4.0.0 to 4.0.1 (#258)
  • 5b233c5 bump ini from 1.3.5 to 1.3.7 (#236)
  • de59d7d bump node-notifier from 8.0.0 to 8.0.1 (#241)
graffle - https://github.com/jasonkuhrt/graffle/releases/tag/v3.4.0

Published by jasonkuhrt almost 4 years ago

Features

  • 952e972 Support per-request headers (#33) (#228)

Chores

  • e4b3932 fix typo in README.md (#231)
graffle -

Published by jasonkuhrt almost 4 years ago

Features

  • 37b51e1 do not enforce node version (#226)

Docs

  • 4f9bf6c fix broken example source links
  • c75a29a add readme table of contents
  • e5f453a add community section and collapsable examples (#227)
graffle - https://github.com/jasonkuhrt/graffle/releases/tag/v3.2.0

Published by jasonkuhrt about 4 years ago

Features

  • 0290616 support custom fetch with GraphQLClient constructor (#212)

Fixes

  • c2253f2 update cross-fetch for vulnerability
  • e805be9 global Headers class reference (#218)

Chores

  • d371b54 update dev deps to latest
  • 094fd5e missing comma in readme (#217)
graffle - https://github.com/jasonkuhrt/graffle/releases/tag/v3.1.0

Published by jasonkuhrt about 4 years ago

Features

  • 777cc55 support GraphQL Upload Spec (#175)

Fixes

  • e666f69 send headers from .setHeaders to server (#202)
  • f13fbb9 remove npm lock file
  • 9324747 add missing headers type import / export (#198)
  • 8bdb803 remove TS 3.8+ import type syntax (#191)

Improvements

  • 2b7ecbd deps: update cross-fetch to latest
  • b17fd71 test: add test coverage for headers
  • 10c23fa test: refactor test modularity
  • 9c36d68 test: refactor upload tests
  • 762735b docs: Add example for Mutations to README (#197)
graffle -

Published by jasonkuhrt about 4 years ago

BREAKING CHANGES

  • 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.

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

  • 49187dd bump lodash from 4.17.15 to 4.17.19 (#179)
  • 4b02516 add missing DOM types

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)
graffle - v2.0.0

Published by schickling over 4 years ago

PLEASE NOTE:

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.

2.0.0 (2020-05-28)

Bug Fixes

Features

BREAKING CHANGES

  • You are responsible for polyfilling your environment with cross-fetch if needed now.
graffle - v1.8.2

Published by schickling about 6 years ago

1.8.2 (2018-08-10)

Bug Fixes

  • deps: update dependency cross-fetch to v2.2.2 (36c968f)
graffle - v1.8.1

Published by schickling about 6 years ago

1.8.1 (2018-08-07)

Bug Fixes

  • add esnext.asynciterable to tsconfig.json (0248511)

  • revert support parsed query (#97) (ddfd0a8)

graffle - v1.8.0

Published by schickling about 6 years ago

1.8.0 (2018-08-01)

Features

  • add bundle size check to CI (ebe8741)
graffle - v1.7.0

Published by schickling about 6 years ago

1.7.0 (2018-07-24)

Bug Fixes

  • build by installing peer dep in ci (c146fba)

Features

graffle - v1.6.0

Published by schickling over 6 years ago

1.6.0 (2018-05-04)

Features

  • Add response status code to rawRequest's result (ec601d9)
graffle - v1.5.2

Published by schickling over 6 years ago

1.5.2 (2018-04-27)

Bug Fixes

  • Add the headers object to the rawRequest's result (d365229)