From 546ffae842bd576635a9167826d397bd289820aa Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Fri, 21 Jun 2024 12:04:01 +0200 Subject: [PATCH 1/3] Add `cause` field to `ApolloError`. --- .api-reports/api-report-core.md | 1 + .api-reports/api-report-errors.md | 1 + .api-reports/api-report-react.md | 1 + .api-reports/api-report-react_components.md | 1 + .api-reports/api-report-react_context.md | 1 + .api-reports/api-report-react_hoc.md | 1 + .api-reports/api-report-react_hooks.md | 1 + .api-reports/api-report-react_internal.md | 1 + .api-reports/api-report-react_ssr.md | 1 + .api-reports/api-report-testing.md | 1 + .api-reports/api-report-testing_core.md | 1 + .api-reports/api-report-utilities.md | 1 + .api-reports/api-report.md | 1 + .changeset/flat-onions-guess.md | 5 +++++ .size-limits.json | 4 ++-- src/errors/index.ts | 10 ++++++++++ 16 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .changeset/flat-onions-guess.md diff --git a/.api-reports/api-report-core.md b/.api-reports/api-report-core.md index de1328393e7..11838b2398e 100644 --- a/.api-reports/api-report-core.md +++ b/.api-reports/api-report-core.md @@ -172,6 +172,7 @@ export interface ApolloClientOptions { export class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-errors.md b/.api-reports/api-report-errors.md index 205b170bf0f..2f58fe10695 100644 --- a/.api-reports/api-report-errors.md +++ b/.api-reports/api-report-errors.md @@ -11,6 +11,7 @@ import type { GraphQLErrorExtensions } from 'graphql'; // @public (undocumented) export class ApolloError extends Error { constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react.md b/.api-reports/api-report-react.md index dd2e4bee702..e3440679f9f 100644 --- a/.api-reports/api-report-react.md +++ b/.api-reports/api-report-react.md @@ -223,6 +223,7 @@ export interface ApolloContextValue { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_components.md b/.api-reports/api-report-react_components.md index 251839f2f28..726768def66 100644 --- a/.api-reports/api-report-react_components.md +++ b/.api-reports/api-report-react_components.md @@ -201,6 +201,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_context.md b/.api-reports/api-report-react_context.md index f632b81a187..cb7c0f944a1 100644 --- a/.api-reports/api-report-react_context.md +++ b/.api-reports/api-report-react_context.md @@ -221,6 +221,7 @@ export interface ApolloContextValue { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_hoc.md b/.api-reports/api-report-react_hoc.md index 9e7746e9d73..5d9780ac177 100644 --- a/.api-reports/api-report-react_hoc.md +++ b/.api-reports/api-report-react_hoc.md @@ -200,6 +200,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_hooks.md b/.api-reports/api-report-react_hooks.md index 22d2d73624c..e6f53f71c48 100644 --- a/.api-reports/api-report-react_hooks.md +++ b/.api-reports/api-report-react_hooks.md @@ -199,6 +199,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_internal.md b/.api-reports/api-report-react_internal.md index 8f490b544de..861799e39ab 100644 --- a/.api-reports/api-report-react_internal.md +++ b/.api-reports/api-report-react_internal.md @@ -199,6 +199,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_ssr.md b/.api-reports/api-report-react_ssr.md index e064686bc36..e2ca9857143 100644 --- a/.api-reports/api-report-react_ssr.md +++ b/.api-reports/api-report-react_ssr.md @@ -200,6 +200,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-testing.md b/.api-reports/api-report-testing.md index 770cfebaa05..ddb969ac24c 100644 --- a/.api-reports/api-report-testing.md +++ b/.api-reports/api-report-testing.md @@ -200,6 +200,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-testing_core.md b/.api-reports/api-report-testing_core.md index 22938c92435..81809466bc4 100644 --- a/.api-reports/api-report-testing_core.md +++ b/.api-reports/api-report-testing_core.md @@ -199,6 +199,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-utilities.md b/.api-reports/api-report-utilities.md index 49b55f0b20d..bb9159df3b1 100644 --- a/.api-reports/api-report-utilities.md +++ b/.api-reports/api-report-utilities.md @@ -212,6 +212,7 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report.md b/.api-reports/api-report.md index b3eb3f71625..13b87a62147 100644 --- a/.api-reports/api-report.md +++ b/.api-reports/api-report.md @@ -195,6 +195,7 @@ export interface ApolloContextValue { export class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); + cause: Error | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.changeset/flat-onions-guess.md b/.changeset/flat-onions-guess.md new file mode 100644 index 00000000000..ce7dc67887a --- /dev/null +++ b/.changeset/flat-onions-guess.md @@ -0,0 +1,5 @@ +--- +"@apollo/client": patch +--- + +Add `cause` field to `ApolloError`. diff --git a/.size-limits.json b/.size-limits.json index 5c28672b1f7..5a514ae2a64 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { - "dist/apollo-client.min.cjs": 39561, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32821 + "dist/apollo-client.min.cjs": 39589, + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32852 } diff --git a/src/errors/index.ts b/src/errors/index.ts index 69277055500..f9b8a036a12 100644 --- a/src/errors/index.ts +++ b/src/errors/index.ts @@ -81,6 +81,12 @@ export class ApolloError extends Error { }>; public clientErrors: ReadonlyArray; public networkError: Error | ServerParseError | ServerError | null; + /** + * Indicates the specific original cause of the error. + * + * This field contains the first available `networkError`, `clientError`, or `graphQLError`, or `null` if none are available. + */ + public cause: Error | null; // An object that can be used to provide some additional information // about an error, e.g. specifying the type of error this is. Used @@ -106,6 +112,10 @@ export class ApolloError extends Error { this.networkError = networkError || null; this.message = errorMessage || generateErrorMessage(this); this.extraInfo = extraInfo; + this.cause = + [networkError, ...(clientErrors || []), ...(graphQLErrors || [])].find( + (e) => !!e + ) || null; // We're not using `Object.setPrototypeOf` here as it isn't fully // supported on Android (see issue #3236). From 6e96e728b6586ffb4b832e13b9a8a6743f53ab2e Mon Sep 17 00:00:00 2001 From: Lenz Weber-Tronic Date: Tue, 2 Jul 2024 11:15:54 +0200 Subject: [PATCH 2/3] review feedback: include `protocolErrors` --- src/errors/index.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/errors/index.ts b/src/errors/index.ts index f9b8a036a12..3c07411161b 100644 --- a/src/errors/index.ts +++ b/src/errors/index.ts @@ -84,9 +84,14 @@ export class ApolloError extends Error { /** * Indicates the specific original cause of the error. * - * This field contains the first available `networkError`, `clientError`, or `graphQLError`, or `null` if none are available. + * This field contains the first available `networkError`, `graphQLError`, `protocolError`, `clientError`, or `null` if none are available. */ - public cause: Error | null; + public cause: + | ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) + | null; // An object that can be used to provide some additional information // about an error, e.g. specifying the type of error this is. Used @@ -113,9 +118,12 @@ export class ApolloError extends Error { this.message = errorMessage || generateErrorMessage(this); this.extraInfo = extraInfo; this.cause = - [networkError, ...(clientErrors || []), ...(graphQLErrors || [])].find( - (e) => !!e - ) || null; + [ + networkError, + ...(graphQLErrors || []), + ...(protocolErrors || []), + ...(clientErrors || []), + ].find((e) => !!e) || null; // We're not using `Object.setPrototypeOf` here as it isn't fully // supported on Android (see issue #3236). From 5e6a6b435dbeda3ff2dce981c5d90f620aa5fc93 Mon Sep 17 00:00:00 2001 From: phryneas Date: Mon, 8 Jul 2024 08:21:52 +0000 Subject: [PATCH 3/3] Clean up Prettier, Size-limit, and Api-Extractor --- .api-reports/api-report-core.api.md | 5 ++++- .api-reports/api-report-errors.api.md | 5 ++++- .api-reports/api-report-react.api.md | 5 ++++- .api-reports/api-report-react_components.api.md | 5 ++++- .api-reports/api-report-react_context.api.md | 5 ++++- .api-reports/api-report-react_hoc.api.md | 5 ++++- .api-reports/api-report-react_hooks.api.md | 5 ++++- .api-reports/api-report-react_internal.api.md | 5 ++++- .api-reports/api-report-react_ssr.api.md | 5 ++++- .api-reports/api-report-testing.api.md | 5 ++++- .api-reports/api-report-testing_core.api.md | 5 ++++- .api-reports/api-report-utilities.api.md | 5 ++++- .api-reports/api-report.api.md | 5 ++++- .size-limits.json | 4 ++-- 14 files changed, 54 insertions(+), 15 deletions(-) diff --git a/.api-reports/api-report-core.api.md b/.api-reports/api-report-core.api.md index f533fb113cb..35789a58440 100644 --- a/.api-reports/api-report-core.api.md +++ b/.api-reports/api-report-core.api.md @@ -172,7 +172,10 @@ export interface ApolloClientOptions { export class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-errors.api.md b/.api-reports/api-report-errors.api.md index 2f58fe10695..2b3d65a0558 100644 --- a/.api-reports/api-report-errors.api.md +++ b/.api-reports/api-report-errors.api.md @@ -11,7 +11,10 @@ import type { GraphQLErrorExtensions } from 'graphql'; // @public (undocumented) export class ApolloError extends Error { constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react.api.md b/.api-reports/api-report-react.api.md index a3d0d6e7270..c81d938a887 100644 --- a/.api-reports/api-report-react.api.md +++ b/.api-reports/api-report-react.api.md @@ -223,7 +223,10 @@ export interface ApolloContextValue { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_components.api.md b/.api-reports/api-report-react_components.api.md index c5aae10a74b..efb4ddab230 100644 --- a/.api-reports/api-report-react_components.api.md +++ b/.api-reports/api-report-react_components.api.md @@ -201,7 +201,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_context.api.md b/.api-reports/api-report-react_context.api.md index a02caaf111c..41aed0f90c4 100644 --- a/.api-reports/api-report-react_context.api.md +++ b/.api-reports/api-report-react_context.api.md @@ -221,7 +221,10 @@ export interface ApolloContextValue { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_hoc.api.md b/.api-reports/api-report-react_hoc.api.md index 392cb6f7fa8..18f094dde4c 100644 --- a/.api-reports/api-report-react_hoc.api.md +++ b/.api-reports/api-report-react_hoc.api.md @@ -200,7 +200,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_hooks.api.md b/.api-reports/api-report-react_hooks.api.md index a2e4f1eeb92..b5ee3e1c051 100644 --- a/.api-reports/api-report-react_hooks.api.md +++ b/.api-reports/api-report-react_hooks.api.md @@ -199,7 +199,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_internal.api.md b/.api-reports/api-report-react_internal.api.md index f4bc0595ba5..95a7366593c 100644 --- a/.api-reports/api-report-react_internal.api.md +++ b/.api-reports/api-report-react_internal.api.md @@ -199,7 +199,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-react_ssr.api.md b/.api-reports/api-report-react_ssr.api.md index ecaaa819bd2..ea788b305b9 100644 --- a/.api-reports/api-report-react_ssr.api.md +++ b/.api-reports/api-report-react_ssr.api.md @@ -200,7 +200,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-testing.api.md b/.api-reports/api-report-testing.api.md index c2f81b29676..01ba05ec8b1 100644 --- a/.api-reports/api-report-testing.api.md +++ b/.api-reports/api-report-testing.api.md @@ -200,7 +200,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-testing_core.api.md b/.api-reports/api-report-testing_core.api.md index feec7dfa13a..545e30231cd 100644 --- a/.api-reports/api-report-testing_core.api.md +++ b/.api-reports/api-report-testing_core.api.md @@ -199,7 +199,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report-utilities.api.md b/.api-reports/api-report-utilities.api.md index 62897514e9e..84e1668f11b 100644 --- a/.api-reports/api-report-utilities.api.md +++ b/.api-reports/api-report-utilities.api.md @@ -212,7 +212,10 @@ interface ApolloClientOptions { class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.api-reports/api-report.api.md b/.api-reports/api-report.api.md index b8172fb6745..fb2bec58947 100644 --- a/.api-reports/api-report.api.md +++ b/.api-reports/api-report.api.md @@ -195,7 +195,10 @@ export interface ApolloContextValue { export class ApolloError extends Error { // Warning: (ae-forgotten-export) The symbol "ApolloErrorOptions" needs to be exported by the entry point index.d.ts constructor({ graphQLErrors, protocolErrors, clientErrors, networkError, errorMessage, extraInfo, }: ApolloErrorOptions); - cause: Error | null; + cause: ({ + message: string; + extensions?: GraphQLErrorExtensions[]; + } & Partial) | null; // (undocumented) clientErrors: ReadonlyArray; // (undocumented) diff --git a/.size-limits.json b/.size-limits.json index 81ed0bcf995..5cca69e7256 100644 --- a/.size-limits.json +++ b/.size-limits.json @@ -1,4 +1,4 @@ { - "dist/apollo-client.min.cjs": 39873, - "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32865 + "dist/apollo-client.min.cjs": 39906, + "import { ApolloClient, InMemoryCache, HttpLink } from \"dist/index.js\" (production)": 32896 }