fix(deps): update dependency graphql-request to v7
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| graphql-request (source) | 6.1.0 → 7.4.0 |
Release Notes
graffle-js/graffle (graphql-request)
v7.4.0
What's Changed
Features
-
Expose response headers and body on error responses - Added
headersandbodyproperties toGraphQLResponseandGraphQLClientResponsetypes, making it easier to access non-GraphQL response data (e.g., 401/403/503 errors that return plain JSON instead of GraphQL).
Contributors
Full Changelog: https://github.com/graffle-js/graffle/compare/7.3.5...7.4.0
v7.3.5
What's Changed
- feat: support TypedDocumentString from graphql-codegen by @jasonkuhrt in #1456
- fix: parse GraphQL errors from response body on HTTP 4xx/5xx status codes by @jasonkuhrt in #1457
- Fix: handle non-JSON error responses gracefully by @jasonkuhrt in #1459
- Revert PRs #1457 and #1459 - will reimplement properly by @jasonkuhrt in #1463
- Fix: parse GraphQL errors from 4xx/5xx responses (#1281) by @jasonkuhrt in #1465
- fix: add TypedDocumentString to accepted document types by @jasonkuhrt in #1468
Full Changelog: https://github.com/graffle-js/graffle/compare/v7.3.0...v7.3.5
v7.3.4
Bug Fixes
- Fixed #1281: GraphQL errors and data are now accessible from 4xx/5xx HTTP responses
- Fixed #1461: ClientError is properly returned for non-2xx responses with malformed bodies
- Fixed #1462: ClientError is properly returned for non-2xx responses with unsupported content types
Changes
- Non-2xx HTTP responses now parse the response body first to extract GraphQL errors/data when available
- Non-2xx responses with valid GraphQL bodies return ClientError with errors and data accessible
- Non-2xx responses with invalid bodies still return ClientError (not generic Error) for backwards compatibility
- This release reverts PRs #1457 and #1459 which introduced regressions, then reapplies a minimal fix for #1281
Breaking Changes
None - this release maintains backwards compatibility while adding support for accessing GraphQL errors from 4xx/5xx responses.
v7.3.3
Bug Fixes
-
Non-JSON Error Response Handling: Fixed regression in 7.3.2 where servers returning HTTP 4xx/5xx status codes with non-JSON response bodies (HTML, plain text) would throw an unhelpful error:
"Invalid execution result: result is not object or array"(#1459, closes #1458)- Added safe JSON parsing fallback for responses without proper Content-Type headers
- Returns descriptive error messages with response body preview for non-JSON responses
- Handles common production scenarios: load balancer errors (502/503 HTML pages), CDN errors, WAF/firewall responses, misconfigured servers
- Maintains backward compatibility for servers that omit Content-Type but return valid JSON
- Added comprehensive test coverage for HTML, plain text, and missing Content-Type scenarios
What Changed
Version 7.3.2 introduced a bug where the ELSE branch in parseResultFromResponse would pass raw strings (HTML, plain text) to a parser expecting objects/arrays. This only surfaced when:
- Server returns 4xx/5xx status code
- Content-Type header is missing or non-JSON (e.g.,
text/html,text/plain) - Response body is not valid JSON
This is now fixed with graceful error handling and clear error messages.
v7.3.2
Bug Fixes
-
HTTP Error Handling: Fixed regression from v6 to v7 where HTTP 4xx/5xx responses would not include GraphQL errors from response body in
ClientError(#1457, closes #1281)- Response body is now parsed before checking HTTP status
- Users can access GraphQL errors via
error.response.errorseven with non-2xx status codes - Common use case: authentication errors (422), server errors (500)
-
graphql-codegen Compatibility: Added support for
TypedDocumentStringfrom@graphql-codegenwhen usingdocumentMode: 'string'(#1456, closes #1453)- Handles boxed String objects created by TypedDocumentString class
- Normalizes document input to prevent crashes when passing to GraphQL operations
v7.3.1
Bug Fixes
-
Fixed broken example links on npmjs.com (#1332)
- Updated package.json repository metadata to point to correct location:
graffle-js/graffle - Updated homepage URL to include
/tree/graphql-requestpath - Updated bugs URL to point to correct issues page
- All example links on npm now correctly resolve to files in the
graphql-requestbranch
- Updated package.json repository metadata to point to correct location:
Links
v7.3.0: graphql-request v7.3.0
What's Changed
Features
- CommonJS Support: Added CommonJS module format () alongside ESM for better compatibility with Jest and other testing environments that aren't fully ESM-ready
-
Improved Type Defaults: Default type parameters to
anyfor easier migration and reduced type friction
Pull Requests
- feat(graphql-request): default types any and support common js #1396
Contributors
Thanks to @Moumouls (Antoine Cormouls) for the contribution! 🚀
Installation:
npm install [email protected]
Package: https://www.npmjs.com/package/graphql-request/v/7.3.0
v7.2.0: [email protected]
Features:
- Support GraphQL@15
849c9ab
v7.1.2: [email protected]
Fixes:
-
b732f45Remove reference totype-festwhich is not a dependency.
v7.1.1: [email protected]
Fixes
-
37445c8Support CJS and remove Graffle code. To use Graffle by now, you should be usingpnpm add graffle@next.
v7.1.0
Fixes
Improvements
-
30b39bfimprove: update all deps to latest (#936) -
92ea1b2docs: mention additional requirement for TS -
39dfb37refactor: no mock server -
db4db92docs: TS moduleResolution requirements
Graffle
Features
-
c91bbc3anyware hook retries (#904) -
6eebe6fextension system (#871) -
543ffdfstatic exec and req funcs (#851) -
eecf7b9incremental typed client (#848)
Chores
v7.0.1
Fixes
-
dc299d9no node fs module in runtime
Improvements
-
11805c8improve: remove needless deep imports into graphql
Chores
v7.0.0
BREAKING CHANGES
-
2a121c6remove inlined graphql websocket code -
99a192eadd spec compliant defaultAcceptheader (#618) -
0e53aedreplaceGraphQLClientRequestHeaderswith built-inHeadersInittype (#616) -
c3a309fremove support for CommonJS (#607) -
6efcc0dremove cross-fetch polyfill - Valid URL must be passed (no more path-only strings like
/foo) (#745)
Features
-
f906d22export request init extended type (#812) -
cc2dc55response middleware extra info (#788) -
2a121c6(breaking) remove inlined graphql websocket code -
0f1b7b5exclude operation name via a field in RequestConfig (#645) -
99a192e(breaking) add spec compliant defaultAcceptheader (#618) -
0e53aed(breaking) replaceGraphQLClientRequestHeaderswith built-inHeadersInittype (#616) -
c3a309f(breaking) remove support for CommonJS (#607) -
6efcc0d(breaking) remove cross-fetch polyfill -
e065677export GraphQLClientRequestHeader (#558)
Fixes
-
553006bawait response middleware (#810) -
54da7bdalias encoding (#809) -
190bdd2remove vitest import -
5f13401no select root types if not in schema -
ee66c10result types have no args -
fe124deargs on interfaces and unions (#781) -
893ad01no infer runtime unions -
310f10corder independent input object defs -
a71c9f8order independent input object defs -
118d1d7no infer runtime objects -
1238a1cthunk list objects -
8a9e207exact types on query and mutation (#755) -
aeb6087generated code imports -
7d828d7allow null data -
0d1e1a6imports -
2ad3e80schema module exports path -
b7c26f8schema import in generated types (#732) -
4af7cb4append search params (#673) -
a169969no GET on mutations (#663) -
8f926b8do not require index sig on vars (#659) -
0eb8a1dexportGraphQLResponsetype as part of the public API (#636) -
dbd7c7fdo not overwrite user-providedContent-Typeheader (#614) -
d6298a3refactor code so linter no longer produces warnings (#605) -
3b7b31fensure code formatting is correct (#604) -
a9fcb44add support for TypedDocumentNode to be passed to WS methods (#585) -
c124ec8Add ClientError to ResponseMiddleware param (#534)
Improvements
-
b1f18c1refactor: simplify encode tests -
f333c1erefactor: single pass encode (#807) -
dbffec8refactor: modularize selection-set (#806) -
5b13f30refactor: organize dirs by layer (#805) -
bd5dddfdocs: begin new documentation -
05308faimprove: Node 18 tsconfig and ES2023 lib (#794) -
6f07a0erefactor: client modules (#791) -
a554328tests: refactor to one default schema (#790) -
893a5e0refactor: import order -
b9888e2refactor: client dir -
1287edarefactor: schema module (#770) -
c77de38improve: upgrade to eslint 9 (#764) -
5fe1cearefactor: legacy becomes raw -
9dc4d81refactor: tidy signature -
52f4ab8improve: upgrade deps to latest -
cc86c34refactor: use dprint instead of prettier (#677) -
080346etests: case for overriding a built in header -
e040ec9tests: do not retest headers init -
4d4ac4crefactor: move existing api to legacy dir (#670) -
4cadba3refactor: modualarize api (#653) -
e5c8e7fimprove: Optimised imports from graphql to decrease bundle size (#543)
Graffle (alpha)
Features
-
be48f1erename cli to graffle -
fb715d9generated namespace and client ctor (#815) -
e2d1888select (#816) -
4ac0cd1use a global namespace (#808) -
2a39e81rawOrThrow -
80e050creturnMode successData (#804) -
7b06232mode to return all errors (#796) -
ae9ab07treat schema file location as source dir -
b45dc60use graphql return mode & named schema -
547dfe5can specify error type pattern in cli -
2a77493isError helper function -
a35be0aselect type utilities (#785) -
45412c2root type field methods (#779) -
73adae5document method (#774) -
98cb065select helper -
420a389add raw method -
5de618broot field methods -
9191249batch method -
cebd26dsupport non-null interface -
b85b50bunion non-null field (#771) -
33a0278optional custom scalars (#768) -
fdca0a7index sans dollar namespace (#767) -
5658370custom scalar runtime codecs (#746) -
0e150e4format generated code with dprint -
34c9e25string support for custom scalars (#742) -
f9ad67asupport input object in selection set (#736) -
4318cacdisable environment input, rename flag (#731) -
48e4d64introduce a CLI for generating the client (#730) -
9640d0aintroduce an experimental typescript client (#672)
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
BanManager-WebUI
Run #9030
Run Properties:
Failed #9030 •
4f3471a32d ℹ️: Merge ca21c5c3bd3ce7802fde531bff48a3114bc3c9bf into 7e8ab01cea9c8b14fc92d6a332cb...
| Project |
BanManager-WebUI
|
| Branch Review |
refs/pull/1519/merge
|
| Run status |
|
| Run duration | 01m 11s |
| Commit |
|
| Committer | renovate[bot] |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
6
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
9
|
| View all changes introduced in this branch ↗︎ | |
Tests for review
email.spec.js • 3 failed tests
| Test | Artifacts | |
|---|---|---|
| Account/Email > errors if incorrect current password |
Screenshots
Video
|
|
| Account/Email > errors email used |
Screenshots
Video
|
|
| Account/Email > successfully changes email |
Screenshots
Video
|
|