UNPKG

7.68 kBMarkdownView Raw
1# Change Log
2
3All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
5<a name="0.4.1"></a>
6## [0.4.1](https://github.com/trojanowski/react-apollo-hooks/compare/v0.4.0...v0.4.1) (2019-02-22)
7
8
9### Features
10
11* implement useSubscription ([#37](https://github.com/trojanowski/react-apollo-hooks/issues/37)) ([12f363b](https://github.com/trojanowski/react-apollo-hooks/commit/12f363b))
12
13
14
15<a name="0.4.0"></a>
16# [0.4.0](https://github.com/trojanowski/react-apollo-hooks/compare/v0.3.1...v0.4.0) (2019-02-13)
17
18
19### Bug Fixes
20
21* compact watchQueryOptions ([#77](https://github.com/trojanowski/react-apollo-hooks/issues/77)) ([39f59eb](https://github.com/trojanowski/react-apollo-hooks/commit/39f59eb))
22
23
24### Chores
25
26* update React peer dependency to ^16.8.0 ([#78](https://github.com/trojanowski/react-apollo-hooks/issues/78)) ([56abacc](https://github.com/trojanowski/react-apollo-hooks/commit/56abacc))
27
28
29### Features
30
31* **getMarkupFromTree:** add `onBeforeRender` handler ([#64](https://github.com/trojanowski/react-apollo-hooks/issues/64)) ([ba2af83](https://github.com/trojanowski/react-apollo-hooks/commit/ba2af83))
32* **useQuery:** change default value for the `suspend` option to `false` ([#80](https://github.com/trojanowski/react-apollo-hooks/issues/80)) ([8e34e01](https://github.com/trojanowski/react-apollo-hooks/commit/8e34e01))
33* **useQuery:** combine GraphQL errors in single ApolloError ([#58](https://github.com/trojanowski/react-apollo-hooks/issues/58)) ([18afba5](https://github.com/trojanowski/react-apollo-hooks/commit/18afba5))
34* **useQuery:** forward `networkStatus` for queries not using suspense ([fb22d06](https://github.com/trojanowski/react-apollo-hooks/commit/fb22d06))
35
36
37### BREAKING CHANGES
38
39* **useQuery:** The default for the `suspend` option of `useQuery` is changed to `false`, and that hook no longer uses suspense by default. Suspense for data fetching is not recommended yet for production code. Please look at the [issue #69](https://github.com/trojanowski/react-apollo-hooks/issues/69) for details.
40* minimum supported (and tested) version of React is now 16.8.0
41* **useQuery:** if there are GraphQL errors in the response, you'll also have `error` property in the object returned by `useQuery`. It may be breaking for you if you use the presence of it to differentiate between network and GraphQL errors.
42
43
44
45<a name="0.3.1"></a>
46## [0.3.1](https://github.com/trojanowski/react-apollo-hooks/compare/v0.3.0...v0.3.1) (2019-01-25)
47
48
49### Bug Fixes
50
51
52* notifyOnNetworkStatusChange defaults to false ([#61](https://github.com/trojanowski/react-apollo-hooks/issues/61)) ([4da7d2d](https://github.com/trojanowski/react-apollo-hooks/commit/4da7d2d)), closes [#59](https://github.com/trojanowski/react-apollo-hooks/issues/59)
53
54
55
56<a name="0.3.0"></a>
57# [0.3.0](https://github.com/trojanowski/react-apollo-hooks/compare/v0.2.1...v0.3.0) (2019-01-16)
58
59
60### Bug Fixes
61
62* update React peer dependency ([51b3435](https://github.com/trojanowski/react-apollo-hooks/commit/51b3435))
63
64
65### Code Refactoring
66
67* Rewrite in TypeScript. ([#39](https://github.com/trojanowski/react-apollo-hooks/issues/39)) ([055f0e2](https://github.com/trojanowski/react-apollo-hooks/commit/055f0e2))
68
69
70### Features
71
72* **useQuery:** implement `skip` ([#42](https://github.com/trojanowski/react-apollo-hooks/issues/42)) ([873e7de](https://github.com/trojanowski/react-apollo-hooks/commit/873e7de))
73* **useQuery:** use Apollo client state as the main source of truth ([#47](https://github.com/trojanowski/react-apollo-hooks/issues/47)) ([5ed243d](https://github.com/trojanowski/react-apollo-hooks/commit/5ed243d))
74* implement SSR ([#44](https://github.com/trojanowski/react-apollo-hooks/issues/44)) ([664edc2](https://github.com/trojanowski/react-apollo-hooks/commit/664edc2))
75
76
77### BREAKING CHANGES
78
79* minimum supported (and tested) version of React is now 16.8.0-alpha.1
80* `useApolloClient` throws if the client is not available in the context instead of returning null
81
82
83
84<a name="0.2.1"></a>
85## [0.2.1](https://github.com/trojanowski/react-apollo-hooks/compare/v0.2.0...v0.2.1) (2018-11-30)
86
87
88### Bug Fixes
89
90* add graphql to peer dependencies ([9488383](https://github.com/trojanowski/react-apollo-hooks/commit/9488383))
91
92
93
94<a name="0.2.0"></a>
95# [0.2.0](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.8...v0.2.0) (2018-11-30)
96
97
98### Bug Fixes
99
100* cache queries for not-mounted yet components. It fixes problems with infinite loops after error occurred. ([246208c](https://github.com/trojanowski/react-apollo-hooks/commit/246208c)), closes [#23](https://github.com/trojanowski/react-apollo-hooks/issues/23)
101* remove no longer needed `warning` dependency ([0c4459b](https://github.com/trojanowski/react-apollo-hooks/commit/0c4459b))
102* update React peer dependency ([768d851](https://github.com/trojanowski/react-apollo-hooks/commit/768d851))
103
104
105### Features
106
107* remove deprecated methods ([a601691](https://github.com/trojanowski/react-apollo-hooks/commit/a601691))
108
109
110### BREAKING CHANGES
111
112* minimum supported (and tested) version of React is now 16.7.0-alpha.2
113* `useApolloQuery` and `useApolloMutation` are removed. Please use `useQuery` and `useMutation` instead.
114
115
116
117<a name="0.1.8"></a>
118## [0.1.8](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.7...v0.1.8) (2018-11-29)
119
120
121### Bug Fixes
122
123* **typescript:** parametrize `update` option of `useMutation` hook ([f8d6c26](https://github.com/trojanowski/react-apollo-hooks/commit/f8d6c26))
124
125
126
127<a name="0.1.7"></a>
128## [0.1.7](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.6...v0.1.7) (2018-11-27)
129
130
131### Features
132
133* add more ObservableQuery functions to useQuery ([b0a3923](https://github.com/trojanowski/react-apollo-hooks/commit/b0a3923)), closes [#24](https://github.com/trojanowski/react-apollo-hooks/issues/24)
134
135
136
137<a name="0.1.6"></a>
138## [0.1.6](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.5...v0.1.6) (2018-11-13)
139
140
141### Features
142
143* **typescript:** add `notifyOnNetworkStatusChange` and `pollInterval` to `useQuery` options in TypeScript definitions ([f2db5b3](https://github.com/trojanowski/react-apollo-hooks/commit/f2db5b3)), closes [#18](https://github.com/trojanowski/react-apollo-hooks/issues/18)
144
145
146
147<a name="0.1.5"></a>
148## [0.1.5](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.4...v0.1.5) (2018-11-10)
149
150
151### Bug Fixes
152
153* **typescript:** make `suspend` option of `useQuery` hook optional ([7e776a6](https://github.com/trojanowski/react-apollo-hooks/commit/7e776a6))
154
155
156
157<a name="0.1.4"></a>
158## [0.1.4](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.3...v0.1.4) (2018-11-10)
159
160
161### Features
162
163* allow to use `useQuery` hook without suspense ([db119e5](https://github.com/trojanowski/react-apollo-hooks/commit/db119e5))
164
165
166
167<a name="0.1.3"></a>
168## [0.1.3](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.2...v0.1.3) (2018-11-08)
169
170
171### Features
172
173* add useQuery and useMutation hooks; deprecate useApolloQuery and useApolloMutation ([e769f94](https://github.com/trojanowski/react-apollo-hooks/commit/e769f94)), closes [#6](https://github.com/trojanowski/react-apollo-hooks/issues/6) [#9](https://github.com/trojanowski/react-apollo-hooks/issues/9)
174
175
176
177<a name="0.1.2"></a>
178## [0.1.2](https://github.com/trojanowski/react-apollo-hooks/compare/v0.1.1...v0.1.2) (2018-11-07)
179
180
181### Features
182
183* **ts:** allow to specify a TypeScript result type of mutations ([7ff3647](https://github.com/trojanowski/react-apollo-hooks/commit/7ff3647)), closes [#10](https://github.com/trojanowski/react-apollo-hooks/issues/10)