Skip to content

Commit c704437

Browse files
committed
v0.7.0 & Changelog
1 parent b971bc7 commit c704437

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

CHANGELOG.md

+16
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,23 @@
44

55
### v0.next
66

7+
### v0.7.0 - Breaking!
8+
9+
#### Breaking changes around `responseTransformer!`
10+
11+
In this [PR #165](https://github.com/apollographql/apollo-link-rest/pull/165), we realized that the `responseTransformer` feature added last release wasn't broad enough, `responseTransformer`s now receive the raw response stream instead of just the `json()`-promise.
12+
13+
Code which relies on this feature will break, however the fix should be very simple:
14+
15+
Either the responseTransformer function is made `async` and to `await response.json()`, *or* if this syntax is not available, the existing code needs to be wrapped in `response.json().then(data => {/* existing implementation */})`.
16+
17+
#### Other Changes
18+
719
* Remove restriction that only allows request bodies to be built for Mutation operations. [#154](https://github.com/apollographql/apollo-link-rest/issues/154) & [#173](https://github.com/apollographql/apollo-link-rest/pull/173)
20+
* Fix code sandbox examples [#177](https://github.com/apollographql/apollo-link-rest/pull/177)
21+
* Bug-fix: default to empty headers instead of undefined for IE [#178](https://github.com/apollographql/apollo-link-rest/pull/178)
22+
* Various docs typo fixes
23+
824

925
### v0.6.0
1026

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "apollo-link-rest",
3-
"version": "0.6.0",
3+
"version": "0.7.0",
44
"description": "Query existing REST services with GraphQL",
55
"license": "MIT",
66
"main": "./lib/bundle.umd.js",

0 commit comments

Comments
 (0)