UNPKG

15.7 kBMarkdownView Raw
1# Change log
2
3### vNext
4
5### v2.6.0
6
7- Support TypedDocumentNode
8
9### v2.5.0
10
11- Support Angular 12
12
13### v2.4.0
14
15- Fix: Use let in Apollo constructor due to firefox bug [#1632](https://github.com/kamilkisiela/apollo-angular/pull/1632)
16- Adds `operationPrinter` option to replace operation printing logic in `HttpLink` and `HttpBatchLink` [#1637](https://github.com/kamilkisiela/apollo-angular/pull/1637)
17
18### v2.3.0
19
20- `830da182` build: Allows zone.js v11 [#1629](https://github.com/kamilkisiela/apollo-angular/pull/1629)
21- `136663f0` docs: Update queries.md [#1616](https://github.com/kamilkisiela/apollo-angular/pull/1616)
22
23### v2.2.0
24
25- `b152d53` Added Angular 11 peer dependency [#1615](https://github.com/kamilkisiela/apollo-angular/pull/1615)
26- `d179a66` docs: Integrated documentation changes [#1590](https://github.com/kamilkisiela/apollo-angular/pull/1590)
27- `5d938a3` Update README.md [#1598](https://github.com/kamilkisiela/apollo-angular/pull/1598)
28- `60b8445` fix: test data modification [#1596](https://github.com/kamilkisiela/apollo-angular/pull/1596)
29
30### v2.1.0
31
32- Move `apollo-angular-link-persisted` to `apollo-angular/persisted-queries` (support Apollo Client 3.0)
33- Support `clientAwareness` (`apollographql-client-name` and `apollographql-client-version` headers) in `HttpLink` and `HttpBatchLink`
34
35### v2.0.4
36
37- Fix v2 migration: default export (`ApolloClient`) of `apollo-client`
38- Use TypeScript to parse JSON files (supports comments in JSON)
39
40### v2.0.3
41
42- Use JSON.parse to parse `package.json` file in v2 migration
43
44### v2.0.2
45
46- Fix duplicated imports in v2 migration
47
48### v2.0.1
49
50- Fix missing migration code
51
52### v2.0.0
53
54Migration from v1.0 to v2.0:
55
56 ng update apollo-angular
57
58List of breaking changes and a migration strategy available on our ["Migration Guide"](https://apollo-angular.com/docs/migration).
59
60Changes:
61
62- Support Apollo Client 3.0 (use `@apollo/client/core`)
63- `Http`, `HttpBatch` and `Headers` links are now part of apollo-angular: `apollo-angular/http` and `apollo-angular/headers`
64- Re-export `gql` of `graphql-tag` (`import { gql } from 'apollo-angular'`)
65- Add `flushData` method to `TestingOperation` ([PR #1474](https://github.com/kamilkisiela/apollo-angular/pull/1474) by [@fetis](https://github.com/fetis))
66- Remove `apollo-angular-boost` and `apollo-angular-cache-ngrx`
67
68### v1.10.0
69
70- Support Angular 10
71
72### v1.9.1
73
74- Fix an issue with TypeScript prior v3.5 - private get accessor [#1491](https://github.com/kamilkisiela/apollo-angular/issues/1491)
75
76### v1.9.0
77
78- Bump version ranges for GraphQL and Apollo Link
79
80### v1.8.0
81
82- Introduces `APOLLO_NAMED_OPTIONS` token. Allows to create named Apollo clients using Dependency Injection ([PR #1365](https://github.com/kamilkisiela/apollo-angular/pull/1365))
83- Allow to test named Apollo client ([PR #1365](https://github.com/kamilkisiela/apollo-angular/pull/1365))
84
85### v1.7.0
86
87- Fixed type definition for subscribe [PR #1290](https://github.com/kamilkisiela/apollo-angular/pull/1290)
88- Fix global scope naming for UMD build [PR #1305](https://github.com/kamilkisiela/apollo-angular/pull/1305)
89- Introduce useInitialLoading in watch [PR #1306](https://github.com/kamilkisiela/apollo-angular/pull/1306)
90
91### v1.6.0
92
93- Angular 8 [PR #1206](https://github.com/kamilkisiela/apollo-angular/pull/1206)
94- Bumps packages in schematics
95
96### v1.5.0
97
98- Use more generic types and make everything more strict [PR #885](https://github.com/kamilkisiela/apollo-angular/pull/885)
99- Angular 7 [PR #913](https://github.com/kamilkisiela/apollo-angular/pull/913)
100
101### v1.4.1
102
103- schematics: bump dependencies
104
105### v1.4.0
106
107- Support named clients in Query, Mutatio and Subscription classes [PR #799](https://github.com/kamilkisiela/apollo-angular/pull/799)
108
109### v1.3.0
110
111- Make `Subscription` generic [PR #778](https://github.com/kamilkisiela/apollo-angular/pull/778)
112- Schematics (`ng add apollo-angular`) [PR #779](https://github.com/kamilkisiela/apollo-angular/pull/779), [PR #780](https://github.com/kamilkisiela/apollo-angular/pull/780)
113- Allow to use a custom ApolloCache while testing [PR #786](https://github.com/kamilkisiela/apollo-angular/pull/786)
114
115### v1.2.0
116
117- Expose `queryId` in `QueryRef` [PR #733](https://github.com/kamilkisiela/apollo-angular/pull/733)
118- Introduce `Query`, `Mutation`, `Subscription` services [PR #622](https://github.com/kamilkisiela/apollo-angular/pull/622)
119- Angular 6.1 is now required (because of TypeScript 2.8)
120- TypeScript 2.8 is now required (because of Omit type)
121- Apollo Client ^2.3.4 is now required (versions before are not compatible because of the change in apollo-client)
122
123### v1.1.2
124
125### v1.1.1
126
127- Fix typescript compilation errors caused by recent Apollo Client
128 interface changes. [Issue #659](https://github.com/kamilkisiela/apollo-angular/issues/659) [PR #660](https://github.com/kamilkisiela/apollo-angular/pull/660)
129
130### v1.1.0
131
132- Introduces `ExtraSubscriptionOptions`. Allows to run `Apollo.subscribe` outside
133 the Zone ([PR #488](https://github.com/kamilkisiela/apollo-angular/pull/488))
134- Introduces `apollo-angular/testing` tools ([PR #592](https://github.com/kamilkisiela/apollo-angular/pull/592))
135- Introduces `APOLLO_OPTIONS` token. Allows to create Apollo using Dependency Injection ([PR #607](https://github.com/kamilkisiela/apollo-angular/pull/607))
136- Adds `sideEffects: false` (webpack) ([PR #580](https://github.com/kamilkisiela/apollo-angular/pull/580))
137- Supports Angular 6 and RxJS 6 ([PR #580](https://github.com/kamilkisiela/apollo-angular/pull/580))
138
139### v1.0.1
140
141- Brings typed variables to `QueryRef`
142
143### v1.0.0
144
145- Supports **ApolloClient 2.0**
146- Supports ApolloLinks and ApolloCache
147- Supports **Angular v5**
148- Possible to combine Apollo with anything from Angular's Dependency Injection
149- Supports **NativeScript**
150- Simpler and less error prone API for watching queries thanks to `QueryRef`
151- More AoT friendly
152- Brings back Server-Side Rendering
153- Allows to type the operation variables
154
155**BREAKING CHANGES:** - [see Migration](https://apollo-angular.com/docs/1.0/migration)
156
157- Drops `apollo-client-rxjs` (thanks to `QueryRef`)
158- Replaces`ApolloQueryObservable` with `QueryRef`
159- Introduces new API for defining multiple clients (`Apollo.create`,
160 `Apollo.createDefault`, `Apollo.createNamed`)
161- No longer exposes `ClientMap`, `ClientMapWrapper`, `ClientWrapper`
162- Removes 'variables as Observables' feature
163
164### v0.13.3
165
166- Don't reuse options object for mutate and query
167 ([PR #356](https://github.com/kamilkisiela/apollo-angular/pull/356))
168
169### v0.13.2
170
171- Use `InjectionToken`, instead of deprecated `OpaqueToken`
172 ([PR #358](https://github.com/kamilkisiela/apollo-angular/pull/358))
173- Expose `ClientMap`, `ClientMapWrapper`, `ClientWrapper`
174 ([PR #360](https://github.com/kamilkisiela/apollo-angular/pull/360))
175- Allow to install the library directly from git (NPM v5+ required)
176 ([PR #362](https://github.com/kamilkisiela/apollo-angular/pull/362))
177- Fix AoT issue in Angular 5 **(added InjectDecorator on ClientMap in Apollo)**
178 ([PR #365](https://github.com/kamilkisiela/apollo-angular/pull/365))
179
180### v0.13.1
181
182- Update dependencies
183 ([PR #347](https://github.com/kamilkisiela/apollo-angular/pull/304))
184- **Potential breaking change:** Run a GraphQL Operation on subscribe, applies
185 to `mutate()` and `query()`
186 ([PR #304](https://github.com/kamilkisiela/apollo-angular/pull/304))
187
188### v0.13.0
189
190- Run `subscribe`, `mutate` and `query` within a Zone
191 ([PR #297](https://github.com/kamilkisiela/apollo-angular/pull/297))
192
193### v0.12.0
194
195- Support `apollo-client@1.0.0-rc.2`
196 ([PR #290](https://github.com/kamilkisiela/apollo-angular/pull/290))
197- Support `jsnext:main`
198 ([PR #277](https://github.com/kamilkisiela/apollo-angular/pull/277))
199
200### v0.11.0
201
202- Remove `DeprecatedWatchQueryOptions` and use `WatchQueryOptions`
203 ([PR #274](https://github.com/kamilkisiela/apollo-angular/pull/274))
204
205**After updating to**
206([`apollo-client-rxjs@0.5.0`](https://github.com/kamilkisiela/apollo-client-rxjs/blob/master/CHANGELOG.md#v050))
207
208- Add `result()`, `currentResult()`, `variables`, `setOptions`, `setVariables`
209 to `ApolloQueryObservable`
210- **BREAKING CHANGE:** `ApolloQueryObservable` shares now a generic type with
211 `ApolloQueryResult`
212
213**Before:**
214
215```ts
216class AppComponent {
217 users: ApolloQueryObservable<ApolloQueryResult<{}>>;
218}
219```
220
221**Now:**
222
223```ts
224class AppComponent {
225 users: ApolloQueryObservable<{}>;
226}
227```
228
229Behaves the same as the `ObservableQuery` of `apollo-client`.
230
231### v0.10.0
232
233- **BRAKING CHANGE** Change name of the service to `Apollo`, instead of
234 `Angular2Apollo`
235 ([PR #262](https://github.com/kamilkisiela/apollo-angular/pull/262))
236- Introduce multiple clients
237 ([PR #263](https://github.com/kamilkisiela/apollo-angular/pull/263))
238
239### v0.9.0
240
241- Support `apollo-client@0.8.0`
242 ([PR #206](https://github.com/kamilkisiela/apollo-angular/pull/206))
243- Support `es6` modules and `tree-shaking`
244 ([PR #151](https://github.com/kamilkisiela/apollo-angular/pull/151),
245 [PR #206](https://github.com/kamilkisiela/apollo-angular/pull/206))
246- Make our `Ahead-of-Time` compilation compatible with Angular 2.3+
247 ([PR #189](https://github.com/kamilkisiela/apollo-angular/pull/189),
248 [PR #195](https://github.com/kamilkisiela/apollo-angular/pull/195))
249- Added `getClient()` that exposes an instance of ApolloClient
250 ([PR #203](https://github.com/kamilkisiela/apollo-angular/pull/203))
251- **BREAKING CHANGE** The way to provide an instance of ApolloClient has
252 changed, [see how](https://github.com/apollographql/angular2-docs/pull/23)
253- **BREAKING CHANGE** Change the name of the package. Use `apollo-angular`
254 instead of `angular2-apollo`, which is now deprecated
255
256### v0.8.0
257
258- Made `mutate()` and `query()` methods to return `Observable` instead of
259 `Promise`
260 ([PR #140](https://github.com/kamilkisiela/apollo-angular/pull/140))
261- Use types of options (for `watchQuery`, `query`, `mutate`) (
262 [PR #145](https://github.com/kamilkisiela/apollo-angular/pull/145),
263 [PR #146](https://github.com/kamilkisiela/apollo-angular/pull/146),
264 [PR #148](https://github.com/kamilkisiela/apollo-angular/pull/148) )
265
266### v0.7.0
267
268- Added support for **Ahead of Time** compilation
269 ([PR #124](https://github.com/kamilkisiela/apollo-angular/pull/124))
270
271### v0.6.0
272
273- Added support for ApolloClient `v0.5.X` ([PR #])
274- Added `subscribeToMore` function
275 ([PR](https://github.com/kamilkisiela/apollo-client-rxjs/pull/5))
276- **BREAKING CHANGE** No no longer support ApolloClient `v0.4.X`
277- **BREAKING CHANGE** Removed `Apollo` decorator (use `Angular2Apollo` service)
278- **BREAKING CHANGE** Removed `ApolloQueryPipe` (use `SelectPipe` instead)
279
280### v0.5.0
281
282- Added `subscribe` method to `Angular2Apollo` service
283 ([PR #113](https://github.com/kamilkisiela/apollo-angular/pull/113))
284- Added `updateQuery` to `ApolloQueryObservable`
285 ([PR #113](https://github.com/kamilkisiela/apollo-angular/pull/113))
286- **Deprecated** `ApolloQueryPipe` (use `SelectPipe` instead)
287- **Deprecated** `Apollo` decorator (use `Angular2Apollo` service)
288- **BREAKING CHANGE** No longer support for ApolloClient v0.3.X
289
290### v0.4.6
291
292- Moved to Angular 2 final and updated RxJS to the latest version
293 ([PR #96](https://github.com/kamilkisiela/apollo-angular/pull/96))
294
295### v0.4.5
296
297- Moved to Angular2 RC6
298 ([PR #81](https://github.com/kamilkisiela/apollo-angular/pull/81))
299- Added `fetchMore` to the `ApolloQuery` interface
300 ([PR #82](https://github.com/kamilkisiela/apollo-angular/pull/82))
301 ([Issue #80](https://github.com/kamilkisiela/apollo-angular/issues/80))
302
303### v0.4.4
304
305- Fixed format of arguments in backward compatible methods
306 ([PR #74](https://github.com/kamilkisiela/apollo-angular/pull/74))
307- Made queries reusable (use refetch on new variables)
308 ([PR #74](https://github.com/kamilkisiela/apollo-angular/pull/74))
309- Used
310 [`apollo-client-rxjs`](https://github.com/kamilkisiela/apollo-client-rxjs)
311 ([PR #72](https://github.com/kamilkisiela/apollo-angular/pull/72))
312- Fixed an issue that prevents from subscribing to `ApolloQueryObservable`
313 ([PR #71](https://github.com/kamilkisiela/apollo-angular/pull/71))
314- Added `SelectPipe` and deprecated `ApolloQueryPipe`
315 ([PR #78](https://github.com/kamilkisiela/apollo-angular/pull/78))
316
317### v0.4.3
318
319- Added `ApolloModule` (with RC5 of Angular2 comes NgModules)
320 ([PR #63](https://github.com/kamilkisiela/apollo-angular/pull/63))
321- Added ability to use query variables as observables. With this, the query can
322 be automatically re-run when those obserables emit new values.
323 ([PR #64](https://github.com/kamilkisiela/apollo-angular/pull/64))
324
325### v0.4.2
326
327- Added `fetchMore` support
328 ([PR #58](https://github.com/kamilkisiela/apollo-angular/pull/58))
329- Exposed `ApolloQueryObservable` in the index module
330 ([PR #54](https://github.com/kamilkisiela/apollo-angular/pull/54))
331- Added support for getting `loading` state from ApolloQueryResult
332 [Issue #36](https://github.com/kamilkisiela/apollo-angular/issues/36)
333 ([PR #43](https://github.com/kamilkisiela/apollo-angular/pull/43))
334- Fixed `ApolloQueryObservable` incompatibility with `Rx.Observable`
335 ([PR #59](https://github.com/kamilkisiela/apollo-angular/pull/59))
336
337### v0.4.1
338
339- Added `ApolloQueryObservable` to support `Rx.Observable` in
340 `Angular2Apollo.watchQuery` method
341 ([PR #52](https://github.com/kamilkisiela/apollo-angular/pull/52))
342- Added `query` method to `Angular2Apollo` service
343 ([PR #51](https://github.com/kamilkisiela/apollo-angular/pull/51))
344
345### v0.4.0
346
347- Passing all the options of mutation in `Apollo` decorator
348 [PR #39](https://github.com/kamilkisiela/apollo-angular/pull/39)
349- Added support for `apollo-client` breaking change that moves methods to
350 query's observable
351 ([PR #40](https://github.com/kamilkisiela/apollo-angular/pull/40))
352- Replaced `lodash` with subpackages, removed `graphql-tag` from dependencies,
353 moved `apollo-client` and `@angular/core` to peerDependecies
354 ([PR #44](https://github.com/kamilkisiela/apollo-angular/pull/44))
355- Added `ApolloQuery` interface
356 ([PR #45](https://github.com/kamilkisiela/apollo-angular/pull/45))
357
358### v0.3.0
359
360- Added SSR support
361- Left `lodash` as the only one dependency and `@angular/core` with
362 `apollo-client` as peerDependecies
363 ([PR #29](https://github.com/kamilkisiela/apollo-angular/pull/29))
364- Fixed missing data in reused component
365 ([PR #30](https://github.com/kamilkisiela/apollo-angular/pull/30))
366- Fixed overwriting query data with the same value on every poll interval
367 ([PR #34](https://github.com/kamilkisiela/apollo-angular/pull/34))
368
369### v0.2.0
370
371- Added polling, refetching and access to unsubscribe method
372 ([PR #19](https://github.com/kamilkisiela/apollo-angular/pull/19))
373- Added `forceFetch`, `returnPartialData` and `pollInterval` support
374 ([PR #19](https://github.com/kamilkisiela/apollo-angular/pull/19))
375- Added `errors` and `loading` to the query's result object
376 ([PR #19](https://github.com/kamilkisiela/apollo-angular/pull/19))
377- Added both results from decorator and service support for `ApolloQueryPipe`
378 ([PR #27](https://github.com/kamilkisiela/apollo-angular/pull/27))
379- Fixed issue with not setting a query with not defined variables
380 ([PR #19](https://github.com/kamilkisiela/apollo-angular/pull/19))
381
382### v0.1.0
383
384- Added Angular2 RC1 and ApolloClient 0.3.X support
385 ([PR #16](https://github.com/kamilkisiela/apollo-angular/pull/16),
386 [PR #17](https://github.com/kamilkisiela/apollo-angular/pull/17))
387
388### v0.0.2
389
390- Added `@Apollo` decorator
391 ([99fed6e](https://github.com/kamilkisiela/apollo-angular/commit/99fed6e),
392 [9f0107e](https://github.com/kamilkisiela/apollo-angular/commit/9f0107e))
393
394### v0.0.1
395
396Initial release. We didn't track changes before this version.