You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: release-notes.md
+36-9Lines changed: 36 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ Apollo Client v4 completely reimagines error handling with a new, more granular
11
11
**Key Changes:**
12
12
-**Specialized Error Classes**: Errors are now categorized into distinct types:
13
13
-`CombinedGraphQLErrors` for GraphQL errors (replacing `graphqlErrors`)
14
-
- Network errors are passed through directly without wrapping
14
+
- Network errors are passed through directly as-is (no wrapper class)
15
15
-`CombinedProtocolErrors` for transport-level errors
16
16
-**Type-Safe Error Handling**: Use `instanceof` checks to handle specific error types
17
-
-**Improved Error Wrapping**: String errors are automatically wrapped in `Error` instances, and non-error objects are wrapped in `UnknownError` with a `cause` property
17
+
-**Improved Error Wrapping**: String errors are automatically wrapped in `Error` instances, and non-error objects are wrapped in `UnconventionalError` with a `cause` property
18
18
-**GraphQL over HTTP Spec Compliance**: Full support for `application/graphql-response+json` media type with stricter adherence to the GraphQL over HTTP specification
19
19
20
20
**Migration Example:**
@@ -28,7 +28,10 @@ if (error instanceof ApolloError) {
0 commit comments