|
1 | 1 | # Change log |
2 | 2 |
|
| 3 | +## 12.0.0 |
| 4 | + |
| 5 | +### Major Changes |
| 6 | + |
| 7 | +- [#2372](https://github.com/the-guild-org/apollo-angular/pull/2372) |
| 8 | + [`44ed9a5`](https://github.com/the-guild-org/apollo-angular/commit/44ed9a53ae686ec758b70ae08b0002dd8f5d919b) |
| 9 | + Thanks [@jerelmiller](https://github.com/jerelmiller)! - Namespaced types |
| 10 | + |
| 11 | + Before: |
| 12 | + |
| 13 | + ```ts |
| 14 | + import type { |
| 15 | + MutationOptionsAlone, |
| 16 | + QueryOptionsAlone, |
| 17 | + SubscriptionOptionsAlone, |
| 18 | + WatchQueryOptions, |
| 19 | + WatchQueryOptionsAlone, |
| 20 | + } from 'apollo-angular'; |
| 21 | + import type { BatchOptions, Options } from 'apollo-angular/http'; |
| 22 | + |
| 23 | + type AllTypes = |
| 24 | + | Options |
| 25 | + | BatchOptions |
| 26 | + | MutationOptionsAlone |
| 27 | + | QueryOptionsAlone |
| 28 | + | SubscriptionOptionsAlone |
| 29 | + | WatchQueryOptions |
| 30 | + | WatchQueryOptionsAlone; |
| 31 | + ``` |
| 32 | + |
| 33 | + After: |
| 34 | + |
| 35 | + ```ts |
| 36 | + import type { Apollo, Mutation, Query, Subscription } from 'apollo-angular'; |
| 37 | + import type { HttpBatchLink, HttpLink } from 'apollo-angular/http'; |
| 38 | + |
| 39 | + type AllTypes = |
| 40 | + | HttpLink.Options |
| 41 | + | HttpBatchLink.Options |
| 42 | + | Mutation.MutateOptions |
| 43 | + | Query.FetchOptions |
| 44 | + | Subscription.SubscribeOptions |
| 45 | + | Apollo.WatchQueryOptions |
| 46 | + | Query.WatchOptions; |
| 47 | + ``` |
| 48 | + |
| 49 | +- [#2372](https://github.com/the-guild-org/apollo-angular/pull/2372) |
| 50 | + [`bdc93df`](https://github.com/the-guild-org/apollo-angular/commit/bdc93dfca9c1d408f5bbce45713d63affede0f5c) |
| 51 | + Thanks [@jerelmiller](https://github.com/jerelmiller)! - `httpHeaders` is a class |
| 52 | + |
| 53 | + Migrate your code like so: |
| 54 | + |
| 55 | + ```diff |
| 56 | + - const link = httpHeaders(); |
| 57 | + + const link = new HttpHeadersLink(); |
| 58 | + ``` |
| 59 | + |
| 60 | +- [#2372](https://github.com/the-guild-org/apollo-angular/pull/2372) |
| 61 | + [`8c0b7f0`](https://github.com/the-guild-org/apollo-angular/commit/8c0b7f0b47f4b45ee668a4805edd384f66bf30a2) |
| 62 | + Thanks [@jerelmiller](https://github.com/jerelmiller)! - Move `useZone` option into subscription |
| 63 | + options |
| 64 | + |
| 65 | + ```diff |
| 66 | + - const obs = apollo.subscribe(options, { useZone: false }); |
| 67 | + + const obs = apollo.subscribe({ ...options, useZone: false }); |
| 68 | + ``` |
| 69 | + |
| 70 | +- [#2372](https://github.com/the-guild-org/apollo-angular/pull/2372) |
| 71 | + [`b9c62a5`](https://github.com/the-guild-org/apollo-angular/commit/b9c62a5b4b3b10c408bfb8386286013051bce71d) |
| 72 | + Thanks [@jerelmiller](https://github.com/jerelmiller)! - Combined parameters of `Query`, |
| 73 | + `Mutation` and `Subscription` classes generated via codegen |
| 74 | + |
| 75 | + Migrate your code like so: |
| 76 | + |
| 77 | + ```diff |
| 78 | + class MyComponent { |
| 79 | + myQuery = inject(MyQuery); |
| 80 | + myMutation = inject(MyMutation); |
| 81 | + mySubscription = inject(MySubscription); |
| 82 | + |
| 83 | + constructor() { |
| 84 | + - myQuery.watch({ myVariable: 'foo' }, { fetchPolicy: 'cache-and-network' }); |
| 85 | + + myQuery.watch({ variables: { myVariable: 'foo' }, fetchPolicy: 'cache-and-network' }) |
| 86 | + |
| 87 | + - myMutation.mutate({ myVariable: 'foo' }, { errorPolicy: 'ignore' }); |
| 88 | + + myMutation.mutate({ variables: { myVariable: 'foo' }, errorPolicy: 'ignore' }); |
| 89 | + |
| 90 | + - mySubscription.subscribe({ myVariable: 'foo' }, { fetchPolicy: 'network-only' }); |
| 91 | + + mySubscription.subscribe({ variables: { myVariable: 'foo' }, fetchPolicy: 'network-only' }); |
| 92 | + } |
| 93 | + } |
| 94 | + ``` |
| 95 | + |
| 96 | +### Patch Changes |
| 97 | + |
| 98 | +- [#2355](https://github.com/the-guild-org/apollo-angular/pull/2355) |
| 99 | + [`226a963`](https://github.com/the-guild-org/apollo-angular/commit/226a96337f73be26496a9cfd6682230fd61e7304) |
| 100 | + Thanks [@PowerKiKi](https://github.com/PowerKiKi)! - dependencies updates: |
| 101 | + |
| 102 | + - Updated dependency |
| 103 | + [`@apollo/client@^4.0.1` ↗︎](https://www.npmjs.com/package/@apollo/client/v/4.0.1) (from |
| 104 | + `^3.13.1`, in `peerDependencies`) |
| 105 | + - Updated dependency [`rxjs@^7.3.0` ↗︎](https://www.npmjs.com/package/rxjs/v/7.3.0) (from |
| 106 | + `^6.0.0 || ^7.0.0`, in `peerDependencies`) |
| 107 | + |
| 108 | +- [#2373](https://github.com/the-guild-org/apollo-angular/pull/2373) |
| 109 | + [`e65bcce`](https://github.com/the-guild-org/apollo-angular/commit/e65bcce125ac9cfca25ea707f904610afac90906) |
| 110 | + Thanks [@PowerKiKi](https://github.com/PowerKiKi)! - Drop support for node 18 |
| 111 | + |
| 112 | +- [#2366](https://github.com/the-guild-org/apollo-angular/pull/2366) |
| 113 | + [`bdff9d9`](https://github.com/the-guild-org/apollo-angular/commit/bdff9d9c7f8b4c9758126326bed8e1459fb5a533) |
| 114 | + Thanks [@PowerKiKi](https://github.com/PowerKiKi)! - Drop ESM2022 in favor of FESM2022 |
| 115 | + |
| 116 | +- [#2368](https://github.com/the-guild-org/apollo-angular/pull/2368) |
| 117 | + [`0f10355`](https://github.com/the-guild-org/apollo-angular/commit/0f103552a78c9031efb4ec732454f6ce17f02f04) |
| 118 | + Thanks [@PowerKiKi](https://github.com/PowerKiKi)! - New repository owners |
| 119 | + |
| 120 | + [@kamilkisiela](https://github.com/kamilkisiela), the creator of this library, has found new |
| 121 | + interests and is not able to contribute like in the past. He gracefully transferred ownership of |
| 122 | + the repository to me. I have been maintaining this library since 2022, and will continue doing so |
| 123 | + in the foreseeable future. |
| 124 | + |
| 125 | + For the package consumers, pretty much nothing will change. The package name, the code, the |
| 126 | + relation with [The Guild](https://github.com/the-guild-org), and the maintenance style will all |
| 127 | + remain the same. The only difference is the new repository URL: |
| 128 | + https://github.com/the-guild-org/apollo-angular. |
| 129 | + |
3 | 130 | ## 11.0.0 |
4 | 131 |
|
5 | 132 | ### Major Changes |
|
364 | 491 | [`9a8ea5f`](https://github.com/the-guild-org/apollo-angular/commit/9a8ea5f229cf7937d74332092cb3eba40828b7b1) |
365 | 492 | - Add `useMutationLoading` flag |
366 | 493 | [`bc223fe`](https://github.com/the-guild-org/apollo-angular/commit/bc223fe6487edd35c56ad908e4739580ce69f056) |
367 | | -- Fix type inference for Mutations [#1659](https://github.com/the-guild-org/apollo-angular/pull/1659) |
| 494 | +- Fix type inference for Mutations |
| 495 | + [#1659](https://github.com/the-guild-org/apollo-angular/pull/1659) |
368 | 496 | - Declare support for Angular 13 |
369 | 497 | - Remove `extract-files` library from dependencies (you need to pass `extractFiles` function to |
370 | 498 | HttpLink's options) |
@@ -540,7 +668,8 @@ Changes: |
540 | 668 | ([PR #607](https://github.com/the-guild-org/apollo-angular/pull/607)) |
541 | 669 | - Adds `sideEffects: false` (webpack) |
542 | 670 | ([PR #580](https://github.com/the-guild-org/apollo-angular/pull/580)) |
543 | | -- Supports Angular 6 and RxJS 6 ([PR #580](https://github.com/the-guild-org/apollo-angular/pull/580)) |
| 671 | +- Supports Angular 6 and RxJS 6 |
| 672 | + ([PR #580](https://github.com/the-guild-org/apollo-angular/pull/580)) |
544 | 673 |
|
545 | 674 | ## v1.0.1 |
546 | 675 |
|
@@ -638,7 +767,8 @@ Behaves the same as the `ObservableQuery` of `apollo-client`. |
638 | 767 |
|
639 | 768 | ## v0.9.0 |
640 | 769 |
|
641 | | -- Support `apollo-client@0.8.0` ([PR #206](https://github.com/the-guild-org/apollo-angular/pull/206)) |
| 770 | +- Support `apollo-client@0.8.0` |
| 771 | + ([PR #206](https://github.com/the-guild-org/apollo-angular/pull/206)) |
642 | 772 | - Support `es6` modules and `tree-shaking` |
643 | 773 | ([PR #151](https://github.com/the-guild-org/apollo-angular/pull/151), |
644 | 774 | [PR #206](https://github.com/the-guild-org/apollo-angular/pull/206)) |
@@ -669,7 +799,8 @@ Behaves the same as the `ObservableQuery` of `apollo-client`. |
669 | 799 | ## v0.6.0 |
670 | 800 |
|
671 | 801 | - Added support for ApolloClient `v0.5.X` ([PR #]) |
672 | | -- Added `subscribeToMore` function ([PR](https://github.com/the-guild-org/apollo-client-rxjs/pull/5)) |
| 802 | +- Added `subscribeToMore` function |
| 803 | + ([PR](https://github.com/the-guild-org/apollo-client-rxjs/pull/5)) |
673 | 804 | - **BREAKING CHANGE** No no longer support ApolloClient `v0.4.X` |
674 | 805 | - **BREAKING CHANGE** Removed `Apollo` decorator (use `Angular2Apollo` service) |
675 | 806 | - **BREAKING CHANGE** Removed `ApolloQueryPipe` (use `SelectPipe` instead) |
|
0 commit comments