Skip to content

Upcoming Release Changes - #2427

Closed
github-actions[bot] wants to merge 1 commit into
masterfrom
changeset-release/master
Closed

github-actions[bot] wants to merge 1 commit into
masterfrom
changeset-release/master

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.

Releases

apollo-angular@14.2.0

Minor Changes

  • #2426
    6f6c4e7
    Thanks @PowerKiKi! - Improve the return type of
    client.watchFragment in regard of errorPolicy

    Improves the return type of client.query to be smarter about the applied errorPolicy. The
    data and error properties now better reflect the expected runtime value for a given
    errorPolicy.

    This allows the removal of undefined checks or optional chaining for most uses of
    client.query.

    [!NOTE] The ApolloClient.QueryResult type is used in several places throughout the code base,
    most of which do not know the underlying errorPolicy applied (e.g. refetchQueries, which
    might have a mix of ObservableQuery instances with different error policies). As such, I left
    a fallback case that leaves the type as-is. You need to be explicit about an error policy in
    order to get the smarter types.

    See equivalent in Apollo Client: Improve the return type of client.query apollographql/apollo-client#13130

Patch Changes

  • #2426
    6f6c4e7
    Thanks @PowerKiKi! - client.watchFragment() might return null

    This forward the reality of Apollo Client

@github-actions

Copy link
Copy Markdown
Contributor Author

💻 Website Preview

The latest changes are available as preview in: https://pr-2427.apollo-angular.pages.dev

This branch was successfully deployed

1 active deployment
preview — f3cf423f Deployed Jul 23, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant