kamilkisiela / apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
https://apollo-angular.com
MIT License
1.5k stars 312 forks source link

Adding customization for "events" processing to Http client #2320

Open quinnjr opened 1 month ago

quinnjr commented 1 month ago

Checklist:

About

Creating the ability to define in each request on the context input the different kinds of underlying Angular HttpClient options.

It is primarily suited to adding support for watching and 'event' of the HttpClient to determine events being emitted by the HttpClient as it processes the request/response.

Had to add the coercion of the FetchResult type to the SubscriptionResult type in subscription.ts or else Typescript was throwing errors for it.

Also includes bumping the versioning for the dev container as the current version doesn't work correctly with the engine version in package.json or the requirements of Angular itself.

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: e48b25c81efa90507b2e5d2d6cdbd5efcf8a8881

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | -------------- | ----- | | apollo-angular | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

quinnjr commented 2 weeks ago

@kamilkisiela ready for your review when you have a chance