Download Latest Version apollo-angular@14.0.0 source code.tar.gz (2.7 MB)
Email in envelope

Get an email when there's a new version of Apollo Angular

Home / apollo-angular@14.0.0
Name Modified Size InfoDownloads / 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 4e9f107 Thanks @JesseZomer! - BREAKING CHANGE: HTTP errors now return Apollo Client's ServerError instead of Angular's HttpErrorResponse

    When Apollo Server returns non-2xx HTTP status codes (status >= 300), apollo-angular's HTTP links now return ServerError from @apollo/client/errors instead of Angular's HttpErrorResponse. This enables proper error detection in errorLinks using ServerError.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.statuserr.statusCode
    • err.errorerr.bodyText (always string, JSON stringified for objects)
    • err.headers (Angular HttpHeaders) → err.response.headers (native Headers)
    • Access response via err.response which 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

Patch Changes

  • #2392 8d2be64 Thanks @vz-tl! - Allow headers type in DefaultContext to be Record or HttpHeaders
Source: README.md, updated 2026-05-13