Skip to content
This repository was archived by the owner on Dec 14, 2025. It is now read-only.

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented May 9, 2024

This PR contains the following updates:

Package Change Age Confidence
graphql-request (source) 4.3.0 -> 7.3.5 age confidence

Release Notes

graffle-js/graffle (graphql-request)

v7.3.5

Compare Source

What's Changed

Full Changelog: graffle-js/graffle@v7.3.0...v7.3.5

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 [email protected]

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

v7.2.0: [email protected]

Compare Source

Features:

v7.1.2: [email protected]

Compare Source

Fixes:

  • b732f45 Remove reference to type-fest which is not a dependency.

v7.1.1: [email protected]

Compare Source

Fixes
  • 37445c8 Support CJS and remove Graffle code. To use Graffle by now, you should be using pnpm add graffle@next.

v7.1.0

Compare Source

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
Chores

v7.0.1

Compare Source

Fixes
  • dc299d9 no node fs module in runtime
Improvements
  • 11805c8 improve: remove needless deep imports into graphql
Chores

v7.0.0

Compare Source

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
Fixes
Improvements

Graffle (alpha)

Features

v6.1.0

Compare Source

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

v6.0.0

Compare Source

BREAKING CHANGES
Features
Fixes
Improvements
Chores

v5.2.0

Compare Source

Features
Fixes
Improvements
Chores

v5.1.0

Compare Source

v5.0.0

Compare Source

BREAKING CHANGES
Features
Fixes
Chores

Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, 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.

@renovate renovate bot added the renovate label May 9, 2024
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch from 32eefed to 7e2c613 Compare May 11, 2024 06:19
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch from 7e2c613 to 95c9211 Compare June 22, 2024 05:05
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch 2 times, most recently from 690229b to b3703b2 Compare November 2, 2024 03:55
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch from b3703b2 to ceb9362 Compare May 26, 2025 04:40
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch 2 times, most recently from c27fae7 to 806507f Compare October 18, 2025 21:12
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch from 806507f to 9e48679 Compare November 20, 2025 00:13
@renovate renovate bot force-pushed the renovate/graphql-request-7.x branch from 9e48679 to 2e13454 Compare November 30, 2025 16:06

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [eslint] <package-json/order-properties> reported by reviewdog 🐶
Package top-level properties are not ordered in the NPM standard way:

{
"name": "annict2spotify",
"version": "0.1.0",
�[32m+ "license": "MIT",�[39m
"repository": "https://github.com/SlashNephy/annict2spotify",
�[31m- "license": "MIT",�[39m
"scripts": {
�[31m- "build": "next build",�[39m
�[32m+ "start": "next start",�[39m
"dev": "concurrently -n dev: 'yarn:dev:'",
�[32m+ "dev:next": "next dev",�[39m
"dev:migrate": "prisma migrate dev",
�[31m- "dev:next": "next dev",�[39m
�[32m+ "build": "next build",�[39m
�[32m+ "lint": "concurrently -n lint: 'yarn:lint:
'",�[39m
�[32m+ "lint:eslint": "next lint",�[39m
�[32m+ "lint:prettier": "prettier --check .",�[39m
"format": "concurrently -n format: 'yarn:format:'",
"format:eslint": "yarn lint:eslint --fix",
"format:prettier": "yarn lint:prettier --write",
"format:prisma": "prisma format",
�[32m+ "introspect": "curl -o graphql/schema.graphql https://raw.githubusercontent.com/kiraka/annict-web/main/app/graphql/beta/schema.graphql",�[39m
"generate": "concurrently -n generate: 'yarn:generate:
'",
"generate:graphql": "graphql-codegen --config codegen.yml",
�[31m- "generate:prisma": "prisma generate",�[39m
�[31m- "introspect": "curl -o graphql/schema.graphql https://raw.githubusercontent.com/kiraka/annict-web/main/app/graphql/beta/schema.graphql",�[39m
�[31m- "lint": "concurrently -n lint: 'yarn:lint:*'",�[39m
�[31m- "lint:eslint": "next lint",�[39m
�[31m- "lint:prettier": "prettier --check .",�[39m
�[31m- "start": "next start"�[39m
�[32m+ "generate:prisma": "prisma generate"�[39m
},
�[31m- "eslintConfig": {�[39m
�[31m- "extends": [�[39m
�[31m- "@slashnephy/eslint-config"�[39m
�[31m- ]�[39m
�[31m- },�[39m
"dependencies": {
"@mantine/core": "4.2.12",
"@mantine/hooks": "4.2.12",
"@mantine/next": "4.2.12",
�[35m@@ -66,6 +61,11 @@�[39m
"prettier": "2.8.8",
"prisma": "4.7.1",
"typescript": "5.0.4"
},
�[31m- "packageManager": "[email protected]"�[39m
�[32m+ "packageManager": "[email protected]",�[39m
�[32m+ "eslintConfig": {�[39m
�[32m+ "extends": [�[39m
�[32m+ "@slashnephy/eslint-config"�[39m
�[32m+ ]�[39m
�[32m+ }�[39m
}
\ No newline at end of file

{
"name": "annict2spotify",
"version": "0.1.0",
"license": "MIT",
"repository": "https://github.com/SlashNephy/annict2spotify",
"scripts": {
"start": "next start",
"dev": "concurrently -n dev: 'yarn:dev:*'",
"dev:next": "next dev",
"dev:migrate": "prisma migrate dev",
"build": "next build",
"lint": "concurrently -n lint: 'yarn:lint:*'",
"lint:eslint": "next lint",
"lint:prettier": "prettier --check .",
"format": "concurrently -n format: 'yarn:format:*'",
"format:eslint": "yarn lint:eslint --fix",
"format:prettier": "yarn lint:prettier --write",
"format:prisma": "prisma format",
"introspect": "curl -o graphql/schema.graphql https://raw.githubusercontent.com/kiraka/annict-web/main/app/graphql/beta/schema.graphql",
"generate": "concurrently -n generate: 'yarn:generate:*'",
"generate:graphql": "graphql-codegen --config codegen.yml",
"generate:prisma": "prisma generate"
},
"dependencies": {
"@mantine/core": "4.2.12",
"@mantine/hooks": "4.2.12",
"@mantine/next": "4.2.12",
"@mantine/notifications": "4.2.12",
"@prisma/client": "4.6.1",
"cancelable-promise": "4.3.1",
"date-fns": "2.29.3",
"graphql-request": "7.3.5",
"jsdom": "20.0.3",
"levenshtein-edit-distance": "3.0.1",
"next": "12.3.4",
"next-auth": "4.24.5",
"node-fetch": "3.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-query": "3.39.2",
"react-render-if-visible": "2.1.1",
"spotify-web-api-node": "5.0.2",
"tabler-icons-react": "1.55.0"
},
"devDependencies": {
"@graphql-codegen/cli": "3.3.1",
"@graphql-codegen/import-types-preset": "2.2.6",
"@graphql-codegen/typescript": "3.0.4",
"@graphql-codegen/typescript-graphql-request": "4.5.9",
"@graphql-codegen/typescript-operations": "3.0.4",
"@slashnephy/eslint-config": "2.1.3",
"@slashnephy/prettier-config": "1.0.73",
"@types/jsdom": "20.0.1",
"@types/node": "18.16.7",
"@types/react": "18.2.6",
"@types/react-dom": "18.2.4",
"@types/spotify-web-api-node": "5.0.7",
"concurrently": "8.0.1",
"eslint": "8.40.0",
"graphql": "16.8.1",
"prettier": "2.8.8",
"prisma": "4.7.1",
"typescript": "5.0.4"
},
"packageManager": "[email protected]",
"eslintConfig": {
"extends": [
"@slashnephy/eslint-config"
]
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants