1 | # CHANGELOG
|
2 |
|
3 | ----
|
4 |
|
5 | **NOTE:** This changelog is no longer maintained. Changes are now tracked in
|
6 | the top level [`CHANGELOG.md`](https://github.com/apollographql/apollo-client/blob/master/CHANGELOG.md).
|
7 |
|
8 | ----
|
9 |
|
10 | ### 1.3.0
|
11 |
|
12 | - Optimize repeated `apollo-cache-inmemory` reads by caching partial query
|
13 | results. As a consequence, watched queries will not be rebroadcast unless the
|
14 | data have changed.
|
15 | [PR #3394](https://github.com/apollographql/apollo-client/pull/3394)
|
16 |
|
17 | ### 1.2.5
|
18 |
|
19 | - No changes.
|
20 |
|
21 | ### 1.2.4
|
22 |
|
23 | - No changes.
|
24 |
|
25 | ### 1.2.3
|
26 |
|
27 | - Added optional generics to cache manipulation methods (typescript).
|
28 | [PR #3541](https://github.com/apollographql/apollo-client/pull/3541)
|
29 | - Restore non-enumerability of `resultFields[ID_KEY]`.
|
30 | [PR #3544](https://github.com/apollographql/apollo-client/pull/3544)
|
31 | - Cache query documents transformed by InMemoryCache.
|
32 | [PR #3553](https://github.com/apollographql/apollo-client/pull/3553)
|
33 |
|
34 | ### 1.2.2
|
35 |
|
36 | - Fixed an issue that caused fragment only queries to sometimes fail.
|
37 | [Issue #3402](https://github.com/apollographql/apollo-client/issues/3402)
|
38 | [PR #3507](https://github.com/apollographql/apollo-client/pull/3507)
|
39 | - Fixed cache invalidation for inlined mixed types in union fields within
|
40 | arrays.
|
41 | [PR #3422](https://github.com/apollographql/apollo-client/pull/3422)
|
42 |
|
43 | ### 1.2.1
|
44 |
|
45 | - Not documented
|
46 |
|
47 | ### vNEXT
|
48 | - Optimize repeated `apollo-cache-inmemory` reads by caching partial query results
|
49 | [#3394](https://github.com/apollographql/apollo-client/pull/3394)
|
50 |
|
51 | ### 1.2.0
|
52 |
|
53 | - Various optimizations for cache read performance
|
54 | [PR #3300](https://github.com/apollographql/apollo-client/pull/3300)
|
55 | - Fix typo in documentation
|
56 |
|
57 | ### 1.1.12
|
58 |
|
59 | - Fix an edge case where fields that were unions of two types, one with an
|
60 | `id`, one without an `id`, would cause the cache to throw while saving the
|
61 | result
|
62 | [PR #3159](https://github.com/apollographql/apollo-client/pull/3159)
|
63 | - Map coverage to original source
|
64 | - Fixed bug with cacheRedirects not getting attached
|
65 | [PR #3016](https://github.com/apollographql/apollo-client/pull/3016)
|
66 |
|
67 | ### 1.1.9
|
68 |
|
69 | - Added `getCacheKey` function to cacheResolver context
|
70 | [PR #2998](https://github.com/apollographql/apollo-client/pull/2998)
|
71 | - Changed `cacheResolvers` to `cacheRedirects`, added deprecation warning
|
72 | [PR #3001](https://github.com/apollographql/apollo-client/pull/3001)
|
73 |
|
74 | ### 1.1.8
|
75 |
|
76 | - Dependency updates
|
77 | - Fix IntrospectionResultData type definition
|
78 | [Issue #2959](https://github.com/apollographql/apollo-client/issues/2959)
|
79 |
|
80 | ### 1.1.7
|
81 |
|
82 | - Update to latest apollo-utilities to support directives in cache
|
83 |
|
84 | ### 1.1.6 (unpublished)
|
85 |
|
86 | - Update to latest apollo-utilities
|
87 |
|
88 | ### 1.1.5
|
89 |
|
90 | - Update to latest apollo-cache base
|
91 | [PR #2818](https://github.com/apollographql/apollo-client/pull/2818)
|
92 |
|
93 | ### 1.1.4
|
94 |
|
95 | - Change access modifier for data from "private" to "protected", to allow
|
96 | InMemoryCache subclasses to access it.
|
97 |
|
98 | ### 1.1.3
|
99 |
|
100 | - Improves performance of in memory cache
|
101 |
|
102 | ### 1.1.2
|
103 |
|
104 | - Ensure that heuristics warnings do not fire in production
|
105 | [PR #2611](https://github.com/apollographql/apollo-client/pull/2611)
|
106 |
|
107 | ### 1.1.1
|
108 |
|
109 | - Change some access modifiers "private" to "protected" to allow code reuse by
|
110 | InMemoryCache subclasses.
|
111 | - Improved rollup builds
|
112 |
|
113 | ### 1.1.0
|
114 |
|
115 | - Improve errors for id mismatch when writing to the store
|
116 | - Make it possible to swap the cache implementation. For example, you might
|
117 | want to use a `Map` to store the normalized objects, which can be faster
|
118 | than writing by keys to an `Object`. This also allows for custom use cases,
|
119 | such as emitting events on `.set()` or `.delete()` (think Observables),
|
120 | which was otherwise impossible without the use of Proxies, that are only
|
121 | available in some browsers. Unless you passed in the `store` to one of the
|
122 | `apollo-cache-inmemory` functions, such as: `writeQueryToStore` or
|
123 | `writeResultToStore`, no changes to your code are necessary. If you did
|
124 | access the cache's functions directly, all you need to do is add a
|
125 | `.toObject()` call on the cache — review the changes to the tests for [an example](https://github.com/apollographql/apollo-client/blob/cd563bcd1c2c15b973d0cdfd63332f5ee82da309/packages/apollo-cache-inmemory/src/__tests__/writeToStore.ts#L258).
|
126 | For reasoning behind this change and more information, see
|
127 | [Issue #2293](https://github.com/apollographql/apollo-client/issues/2293).
|
128 |
|
129 | ### 1.0.0
|
130 |
|
131 | - Don't broadcast query watchers during a transaction (for example, while
|
132 | mutation results are being processed)
|
133 | [Issue #2221](https://github.com/apollographql/apollo-client/issues/2221)
|
134 | [PR #2358](https://github.com/apollographql/apollo-client/pull/2358)
|
135 | - `readQuery` and `readFragment` return now the result instead of
|
136 | `Cache.DiffResult`
|
137 | [PR #2320](https://github.com/apollographql/apollo-client/pull/2320)
|
138 |
|
139 | ### 0.2.0-rc.1
|
140 |
|
141 | - Move to named export to be consistent with rest of apollo ecosystem
|
142 |
|
143 | ### 0.2.0-beta.6
|
144 |
|
145 | - Rename customResolvers to cacheResolvers with backwards compat
|
146 |
|
147 | ### 0.2.0-beta.5 and lower
|
148 |
|
149 | - Fix error when missing __typename field in result
|
150 | [PR #2225](https://github.com/apollographql/apollo-client/pull/2225)
|
151 | - Refactored type usage
|
152 | - Prevented logging on defered queries
|
153 | - Refactored internal store from apollo-client into own package
|