| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| apollo-angular@14.0.0 source code.tar.gz | 2026-05-13 | 2.7 MB | |
| apollo-angular@14.0.0 source code.zip | 2026-05-13 | 2.8 MB | |
| README.md | 2026-05-13 | 2.4 kB | |
| Totals: 3 Items | 5.5 MB | 1 | |
Major Changes
-
#2395
4e9f107Thanks @JesseZomer! - BREAKING CHANGE: HTTP errors now return Apollo Client'sServerErrorinstead of Angular'sHttpErrorResponseWhen Apollo Server returns non-2xx HTTP status codes (status >= 300), apollo-angular's HTTP links now return
ServerErrorfrom@apollo/client/errorsinstead of Angular'sHttpErrorResponse. This enables proper error detection in errorLinks usingServerError.is(error)and provides consistent error handling with Apollo Client's ecosystem.Migration Guide:
Before:
```typescript import { HttpErrorResponse } from '@angular/common/http';
link.request(operation).subscribe({ error: err => { if (err instanceof HttpErrorResponse) { console.log(err.status); console.log(err.error); } }, }); ```
After:
```typescript import { ServerError } from '@apollo/client/errors';
link.request(operation).subscribe({ error: err => { if (ServerError.is(err)) { console.log(err.statusCode); console.log(err.bodyText); console.log(err.response.headers); } }, }); ```
Properties Changed:
err.status→err.statusCodeerr.error→err.bodyText(always string, JSON stringified for objects)err.headers(Angular HttpHeaders) →err.response.headers(native Headers)- Access response via
err.responsewhich includes:status,statusText,ok,url,type,redirected
Note: This only affects HTTP-level errors (status >= 300). Network errors and other error types remain unchanged. GraphQL errors in the response body are still processed normally through Apollo Client's error handling.
Fixes #2394