Releases: graffle-js/graffle
Releases · graffle-js/graffle
next
BREAKING CHANGES
Features
- 0858fde ability to control import extension (#1284)
- fa687d6 preflight check all request methods (#1278)
- c586f28 graphql.web for smaller bundle (#1277)
- d95f38a support interface chains (#1276)
- 579723f transport now extensible (#1272)
- 3e72e0a expose more utilities
- e67dab0 integrate config concept (#1247)
- f233683 support cjs (#1246)
- 27b4da7 support inline type extensions (#1243)
- 0b7439f scalar type checks name (#1242)
- 83ebaeb scalar statically validate sddm present (#1241)
- c7f7dc5 separate name and namespace name config (#1235)
- 52c0d8a prefill registry with gen-linked cs (#1230)
- 0d4534c allow controling case of generated client (#1229)
- a301075 support missing features & sdl "schema" (#1226)
- d859d37 use prettier if present (#1222)
- 54d048e remove imports that bloat bundle (#1215)
- 15d554c overload method for easy inline add (#1212)
- 371803e scalar method (#1206)
- 7d5e3c6 generator extensions (#1196)
- 1c183af introduce' (#1189)
- 61b6f50 encode custom scalars (#1178)
- d3ffdc2 custom scalar support for outputs (#1173)
- 597eb6b expose generated select sets (#1172)
- ac2da57 add new extension (#1171)
- a539a8f better raw (#1165)
- fc13916 no schema required for document object mapping (#1160)
- 3c0a60c support typename injection (#1156)
- ade5a3e lift inputs to operation variables (#1151)
- 1482a89 remove stream and defer directives (#1138)
- 5c62024 no key plural for op types (#1114)
- a3b1d75 fluent extensions, throws extension, gen static interfaces (#1107)
- 507637d adjust signature for fetch (#1100)
- 031503f allow using sdl and url at same time (#1092)
- aec075d add new extension (#1087)
- 84fe8be add new extension (#1081)
- 4545eb4 export TypedDocumentString
- aa935a6 support get method (#1066)
- 451204b use recommened accept header
- 065418a first class abort errors (#1061)
- 9be0f08 allow request configuration (#1059)
- 1cf001a (breaking) rename and remove legacy code (#1052)
- 9839538 default output to ./graffle (#1051)
- b01152b extension hooks typed with transport (#1048)
- 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
- 6cba81d non-deterministic fields
- 65dfe4e return client type
- 62a5d0d expose extensionkit entrypoint
- 93aa061 fetch slot input is Request
- 8bf1621 inline fragment always case
- 829fdc4 alias does not inject index type
- 1dd9ffa directive optional selection
- 3535e9e infer object inline fragments (#1267)
- 9119f04 infer multiple field aliases (#1266)
- 4f17a2e execute cli with TS support (#1259)
- 74e70d3 introspection respect options (#1257)
- a094a80 scalar definition name (#1244)
- 5b91cf0 use dprint if available (#1221)
- 718f7c3 extension entrypoints (#1219)
- a54e411 align exports with docs (#1218)
- 11033e9 no import es-toolkit (#1217)
- 1eb0129 decode arrays (#1210)
- 624e684 remove json-big-int dep
- 88629a7 no touch schema path
- a940c49 support any schema file name (#1143)
- baa7452 enum decoding (#1140)
- 23d6080 field groups (#1137)
- 5555c20 result-set decode aliases (#1129)
- 5f5549b types when multiple roots (#1128)
- c1861d2 generated code use given name (#1103)
- 6ed584d with merge headers (#1091)
- 16377bb raw variables inference (#1077)
- a962d5a response envelope prop for deafult url (#1073)
- f5a6476 spec compliant accept type (#1064)
- df6954a constructor headers sent through to exchange
- f4b01d7 verbatimModuleSyntax (#953)
- 833d172 use json content-type header (#949)
Improvements
- d19d399 refactor: preset entrypoints (#1280)
- a78ebbe refactor: data type oriented builders (#1274)
- 629a1fe improve: refine jsdoc and terms (#1270)
- 8f78882 improve: simplification of all output cases! (#1269)
- 7fd4449 improve: no add undefined during simplify
- 21674a5 improve: deeply simplify results (#1268)
- f73aecd improve: simplify results
- 9ad7136 improve: gql send method (#1265)
- bd55f81 improve: extensions (#1264)
- 4aea3bf improve: add concept of overloads (#1261)
- aad4cac improve: no conditional type on config (#1260)
- c92a67b improve: anyware builder (#1254)
- f33498a improve: more explicit logging
- 3ffea92 refactor: anyware pipeline namespace
- 24c38cf refactor: anyware cleanup (#1253)
- 8bfe287 refactor: test helpers
- b7e0c1b refactor: tidy request pipeline (#1252)
- c69a48d refactor: no layers and co-locate doc builder (#1251)
- e73241f improve: introduce robust client preset utility (#1250)
- 5c629fb refactor: top level extension dir
- 537a170 refactor: tidy type formatting
- 75d8963 improve: remove top-level signal config
- ec6407a refactor: lift schemaMap to ctx
- 552f346 refactor: only track name on ctx
- 8bf07bf refactor: track input on context
- 82e0090 refactor: rename dir
- 6df957c refactor: rename ext typehook
- b031e6c refactor: remove type hook property from ctx
- d7d0752 refactor: move typeHooks to ctx level
- c2d0caf refactor: consolidate to AssertExtends util
- dd08c2e refactor: fluent to chain module (#1239)
- ed696db refactor: inline custom scalars logic (#1238)
- 4dc1a78 improve: remove interface conecpt from anyware (#1237)
- 76c8994 improve: no simplify custom scalars (#1232)
- 0f10bad improve: export SDDM term aligning with input (#1231)
- debbe39 refactor: simpler decode functions
- 2705620 improve: no expand inferred result type (#1211)
- a3521fb refactor: start grouping document builder code
- 01b9979 perf: simpler schema types for infer (#1208)
- 7a322d8 refactor: kind map clean up (#1207)
- 9e5a0ad refactor: schema standard types
- c29c877 refactor: consolidate schema type
- 653210d refactor: simplify schema type
- 1ad6bfc refactor: global registry to types dir
- c94c574 refactor: sddm to root types module
- 7854943 refactor: raise to external pos (#1205)
- 734fd59 refactor: no kind namespace (#1204)
- a32ec8d refactor: global registry use client term (#1203)
- f44b086 refactor: remove schema layer funcs (#1202)
- 64dc9d5 refactor: rename index to schema (#1201)
- 1752d75 refactor: consolidate schema generator parts (#1200)
- 5dac1bd refactor: extensions top level dir (#1194)
- 0768422 improve: remove is-error utility (#1193)
- 7f7ffd3 improve: move req runtime to ext (#1184)
- c14b3d0 improve: readable result types (#1183)
- c580407 refactor: colocate custom scalars logic (#1177)
- 5e56c97 refactor: custom scalar tests
- eaeddc6 refactor: symmetrical layer names
- ef73647 refactor: rename mapper layer base name
- 77ac82b improve: use simplify for more readable result types
- 6503089 refactor: generator layer (#1142)
- 61ecd39 refactor: document data type flow (#1130)
- d5a1fda refactor: anyware error passthrough (#1127)
- 469d3a4 refactor: context types (#1125)
- f339f7b refactor: client layer property modules (#1118)
- 447a083 refactor: layers revamp (#1117)
- d87460f refactor: SelectionSet (#1115)
- 4182be3 improve: avoid conflict import paths for Twoslash (#1069)
- bb48aee refactor: rec accept value to gqlhttp lib
- 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
- 40d8961 build in ci (#1279)
- 82fba60 update getting started docs
- 8609b84 update transport config examples
- 8416ac5 build
- c974cbd update all to latest
- 5abf7a8 ignore generated example diretories
- 2299e33 tidy double function
- 6246294 pokemon type fields non-nullable
- 6e37072 update all to latest
- ce671dd bump @eslint/plugin-kit from 0.2.2 to 0.2.3 (#1263)
- 6f25a8f upgrade all dev deps to latest
- 399e16d fix broken documentation links in README.md (#1255)
- 9e35b51 update dev deps to latest
- b5af608 build
- d697ae9 clarify next dist tag install
- e0f7492 try fixing twoslash
- 62332a0 bring back twoslash (#1234)
- c5adaf6 refactor request method tests (#1233)
- 112c6d2 consolidate getting started material
- 976a57f upgrade all dev deps to latest
- 245a10a simplify example
- 0a80885 rename examples group (#1209)
- 4d0b089 improve top-line feature listing
- 9120451 extensions to home page
- 53abb1c make extensions a top level section
- 2e2444c upgrade all dev deps to latest
- e593ad5 update readme links
- 584dbbe update pnpm to v9.12.2 (#1195)
- c82d244 update dependency es-toolkit to v1.25.2 (#1192)
- d7db128 update dependency @typescript-eslint/eslint-plugin to v8.9.0 (#1186)
- 7571aa2 update dependency @typescript-eslint/parser to v8.9.0 (#1187)
- 14f37fc update dependency @ark/attest to ^0.23.0 (#1191)
- c64ab49 update dependency es-toolkit to v1.25.2 (#1190)
- fbca546 update dependency typescript-eslint to v8.9.0 (#1188)
- 17dd0b4 update dependency vitest to v2.1.3 (#1185)
- 27b696a update dependency es-toolkit to v1.25.0 (#1153)
- 44cab1e make gql examples more idiomatic
- b597ba0 update dependency @typescript-eslint/eslint-plugin to v8.8.1 (#1018)
- 70c1d73 update dependency @typescript-eslint/parser to v8.8.1 (#1074)
- 411aa3c update dependency typescript-eslint to v8.8.1 (#1020)
- e806593 update dependency @pothos/core to v4.3.0 (#1176)
- 01d6faf update dependency typescript to v5.6.3 (#1175)
- 021d26e update dependency @types/node to v22.7.5 (#1174)
- d63c6a8 update example descriptions
- a824300 update pnpm to v9.12.1 (#1169)
- 4913fe1 refactor test suite
- e5b2ca1 update dependency @ark/attest to ^0.21.0 (#1162)
- fccd6eb refactor test suite
- bfd427a update pnpm to v9.12.0 (#1158)
- d687130 update dependency vitest to v2.1.2 (#1159)
- 0f33ce9 disable twoslash attempt 2
- ee2c2f3 upgrade all dev deps to latest
- 2573f71 disable twoslash
- 4fd8829 fix http get example
- 3895cd0 for...
graphql-request@7.1.2
Fixes:
- b732f45 Remove reference to
type-fest
which is not a dependency.
graphql-request@7.1.1
Fixes
- 37445c8 Support CJS and remove Graffle code. To use Graffle by now, you should be using
pnpm add graffle@next
.
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)