Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 28, 2025

This PR contains the following updates:

Package Change Age Confidence
graphql-request (source) 7.1.2 -> 7.3.4 age confidence

Release Notes

graffle-js/graffle (graphql-request)

v7.3.4

Compare Source

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

Compare Source

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:

  1. Server returns 4xx/5xx status code
  2. Content-Type header is missing or non-JSON (e.g., text/html, text/plain)
  3. Response body is not valid JSON

This is now fixed with graceful error handling and clear error messages.

v7.3.2

Compare Source

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.errors even with non-2xx status codes
    • Common use case: authentication errors (422), server errors (500)
  • graphql-codegen Compatibility: Added support for TypedDocumentString from @graphql-codegen when using documentMode: '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

Compare Source

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-request path
    • Updated bugs URL to point to correct issues page
    • All example links on npm now correctly resolve to files in the graphql-request branch

Links

v7.3.0: graphql-request v7.3.0

Compare Source

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 any for 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 graphql-request@7.3.0

Package: https://www.npmjs.com/package/graphql-request/v/7.3.0

v7.2.0: graphql-request@7.2.0

Compare Source

Features:


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.

@vercel
Copy link

vercel bot commented Jul 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lyonjs-website Ready Ready Preview Comment Nov 19, 2025 1:16am

@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 3c44c98 to 741c683 Compare August 20, 2025 14:51
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 741c683 to 7cc164a Compare August 20, 2025 16:28
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 7cc164a to a648803 Compare September 17, 2025 21:53
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from a648803 to bf23c2d Compare September 18, 2025 05:31
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from bf23c2d to e5eaeec Compare September 20, 2025 17:25
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from e5eaeec to fbd0e8d Compare September 29, 2025 18:05
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from fbd0e8d to 36eae8b Compare September 30, 2025 07:31
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 36eae8b to b01fa05 Compare September 30, 2025 18:38
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from b01fa05 to 41e2728 Compare October 7, 2025 07:50
@renovate renovate bot changed the title chore(deps): update dependency graphql-request to v7.2.0 chore(deps): update dependency graphql-request to v7.3.0 Oct 15, 2025
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 41e2728 to 1e28a7b Compare October 15, 2025 05:07
@renovate renovate bot changed the title chore(deps): update dependency graphql-request to v7.3.0 chore(deps): update dependency graphql-request to v7.3.1 Oct 19, 2025
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 1e28a7b to 60eb652 Compare October 19, 2025 03:27
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 60eb652 to e8a7e40 Compare October 20, 2025 21:09
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from e8a7e40 to 40337ab Compare October 22, 2025 20:26
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 40337ab to 5ebd052 Compare October 23, 2025 18:08
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 5ebd052 to 77e3ff9 Compare October 28, 2025 17:55
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 77e3ff9 to b379859 Compare November 9, 2025 08:55
@renovate renovate bot changed the title chore(deps): update dependency graphql-request to v7.3.1 chore(deps): update dependency graphql-request to v7.3.2 Nov 10, 2025
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from b379859 to d7fcf68 Compare November 10, 2025 23:35
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from d7fcf68 to 4641c50 Compare November 11, 2025 04:56
@renovate renovate bot changed the title chore(deps): update dependency graphql-request to v7.3.2 chore(deps): update dependency graphql-request to v7.3.3 Nov 11, 2025
@renovate renovate bot force-pushed the renovate/graphql-request-7.x-lockfile branch from 4641c50 to c5fb222 Compare November 17, 2025 15:37
@renovate renovate bot changed the title chore(deps): update dependency graphql-request to v7.3.3 chore(deps): update dependency graphql-request to v7.3.4 Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant