diff --git a/packages/forms/src/FormError.tsx b/packages/forms/src/FormError.tsx index 84393273fb8a..b36a445ddb46 100644 --- a/packages/forms/src/FormError.tsx +++ b/packages/forms/src/FormError.tsx @@ -1,6 +1,6 @@ import React from 'react' -import type { GraphQLError } from 'graphql' +import type { GraphQLFormattedError } from 'graphql' export interface ServerParseError extends Error { response: Response @@ -16,7 +16,7 @@ export interface ServerError extends Error { export interface RWGqlError { message: string - graphQLErrors: ReadonlyArray + graphQLErrors: ReadonlyArray networkError: Error | ServerParseError | ServerError | null } diff --git a/packages/web/package.json b/packages/web/package.json index 2a252132e058..f463a9e7cd23 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -141,7 +141,7 @@ "test:watch": "vitest watch" }, "dependencies": { - "@apollo/client": "3.9.9", + "@apollo/client": "3.11.1", "@babel/runtime-corejs3": "7.24.8", "@redwoodjs/auth": "workspace:*", "@redwoodjs/server-store": "workspace:*", diff --git a/yarn.lock b/yarn.lock index 8f0fa76b53fc..5c1efa5b2c35 100644 --- a/yarn.lock +++ b/yarn.lock @@ -130,9 +130,9 @@ __metadata: languageName: node linkType: hard -"@apollo/client@npm:3.9.9": - version: 3.9.9 - resolution: "@apollo/client@npm:3.9.9" +"@apollo/client@npm:3.11.1": + version: 3.11.1 + resolution: "@apollo/client@npm:3.11.1" dependencies: "@graphql-typed-document-node/core": "npm:^3.1.1" "@wry/caches": "npm:^1.0.0" @@ -142,7 +142,7 @@ __metadata: hoist-non-react-statics: "npm:^3.3.2" optimism: "npm:^0.18.0" prop-types: "npm:^15.7.2" - rehackt: "npm:0.0.6" + rehackt: "npm:^0.1.0" response-iterator: "npm:^0.2.6" symbol-observable: "npm:^4.0.0" ts-invariant: "npm:^0.10.3" @@ -151,8 +151,8 @@ __metadata: peerDependencies: graphql: ^15.0.0 || ^16.0.0 graphql-ws: ^5.5.5 - react: ^16.8.0 || ^17.0.0 || ^18.0.0 - react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || >=19.0.0-rc <19.0.0 subscriptions-transport-ws: ^0.9.0 || ^0.11.0 peerDependenciesMeta: graphql-ws: @@ -163,7 +163,7 @@ __metadata: optional: true subscriptions-transport-ws: optional: true - checksum: 10c0/133e866eeebaceeb8f059d9bde3884f6c362f78d0aa9f4c1c51034af39259b0db154ec77c96fdad28fd7bc3b82ba920586d29aed1920933fabd2c5188b51a2b9 + checksum: 10c0/d3a1f30d44d5a84e01538772396e93db4921fcdf99919785688464d487ea00dabfb6ae63ca7e2ebd373eed5d24c134dec6eb4f4d13920044b2ea1f105fa044c4 languageName: node linkType: hard @@ -8750,7 +8750,7 @@ __metadata: version: 0.0.0-use.local resolution: "@redwoodjs/web@workspace:packages/web" dependencies: - "@apollo/client": "npm:3.9.9" + "@apollo/client": "npm:3.11.1" "@apollo/client-react-streaming": "npm:0.10.0" "@arethetypeswrong/cli": "npm:0.15.3" "@babel/cli": "npm:7.24.8" @@ -25996,9 +25996,9 @@ __metadata: languageName: node linkType: hard -"rehackt@npm:0.0.6": - version: 0.0.6 - resolution: "rehackt@npm:0.0.6" +"rehackt@npm:^0.1.0": + version: 0.1.0 + resolution: "rehackt@npm:0.1.0" peerDependencies: "@types/react": "*" react: "*" @@ -26007,7 +26007,7 @@ __metadata: optional: true react: optional: true - checksum: 10c0/814c9b80b2680dc0572639ecad1ed1961b23b606e53a00976ee4c4876f6ed736ea702381235ac40ed2a5c826fb55641b46ae23343e4ddd6378ced1da3d51ada7 + checksum: 10c0/3d838bfee84ec06c976f21027936f3b0fdb7660ab8a2d4d3f19c65e0daa78a268aa81352311352b8576b89a074714b36ae6cd5bdadb6e975eca079f2b342de73 languageName: node linkType: hard