Skip to content

Releases: apollographql/apollo-link-rest

v0.9.0

15 Nov 02:17
5e30e2a
Compare
Choose a tag to compare
  • Feature: Pass context to typePatcher to make it possible to extract args from the URL for use when patching #260 #261
  • Feature: Allow per-request field-name normalization for symmetry with de-normalization #253
  • Improvement: Use globalThis instead of global #293
  • Fix: fieldNameNormalizer mangling ArrayBuffer/Blob types #247
  • Drop dependency on graphql-anywhere! #301

v0.9.0 - RC 1 [No known breaking changes]

05 Jan 23:10
cde5f56
Compare
Choose a tag to compare

What's Changed

No currently known breaking changes, please report any issues!

New Contributors

Full Changelog: v0.8.0...v0.9.0-rc.1

Apollo Client 3!

01 Dec 20:03
ec66b39
Compare
Choose a tag to compare

In beta for a unreasonably long time, this release has been stable (in-beta) for 2 years now!! It's about time we officially tag the stable version.

The main breaking change is that you need to be running Apollo Client >= 3.

A list of some specific relevant PRs:

Breaking Changes for Apollo Client 3

05 Mar 01:46
03b75d4
Compare
Choose a tag to compare
Pre-release

This is a beta build!

v0.7.3

23 Apr 22:32
62ca581
Compare
Choose a tag to compare

New Fixes in v0.7.3

  • Fix: Nested @rest(…) calls with nested @export(as:…) directives should keep their contexts distinct in order to work. #204

v0.7.x

  • Fix: FileList/File aren't available in react-native causing crashes. #200
  • Fix: Duplicated Content Type Header #188
  • Fix: FileList Support #183
  • Fix: Default Empty object when creating headers #178
  • Body-containing Queries #173

Breaking changes around responseTransformer!

In this PR #165, we realized that the responseTransformer feature added last release wasn't broad enough, responseTransformers now receive the raw response stream instead of just the json()-promise.

Code which relies on this feature will break, however the fix should be very simple:

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 */})`.

Other Changes

  • Remove restriction that only allows request bodies to be built for Mutation operations. #154 & #173
  • Fix code sandbox examples #177
  • Bug-fix: default to empty headers instead of undefined for IE #178
  • Various docs typo fixes

v0.7.2

26 Mar 15:28
1da9bd1
Compare
Choose a tag to compare

New Fixes in v0.7.2

  • Fix: FileList/File aren't available in react-native causing crashes. #200

v0.7.x

  • Fix: Duplicated Content Type Header #188
  • Fix: FileList Support #183
  • Fix: Default Empty object when creating headers #178
  • Body-containing Queries #173

Breaking changes around responseTransformer!

In this PR #165, we realized that the responseTransformer feature added last release wasn't broad enough, responseTransformers now receive the raw response stream instead of just the json()-promise.

Code which relies on this feature will break, however the fix should be very simple:

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 */})`.

Other Changes

  • Remove restriction that only allows request bodies to be built for Mutation operations. #154 & #173
  • Fix code sandbox examples #177
  • Bug-fix: default to empty headers instead of undefined for IE #178
  • Various docs typo fixes

v0.7.1

24 Mar 18:02
239146a
Compare
Choose a tag to compare

New Fixes in v0.7.1

  • Fix: Duplicated Content Type Header #188
  • Fix: FileList Support #183
  • Fix: Default Empty object when creating headers #178
  • Body-containing Queries #173

v0.7.x

Breaking changes around responseTransformer!

In this PR #165, we realized that the responseTransformer feature added last release wasn't broad enough, responseTransformers now receive the raw response stream instead of just the json()-promise.

Code which relies on this feature will break, however the fix should be very simple:

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 */})`.

Other Changes

  • Remove restriction that only allows request bodies to be built for Mutation operations. #154 & #173
  • Fix code sandbox examples #177
  • Bug-fix: default to empty headers instead of undefined for IE #178
  • Various docs typo fixes

Breaking News: responseTransformer becomes more powerful!

14 Dec 00:50
c704437
Compare
Choose a tag to compare

Breaking changes around responseTransformer!

In this PR #165, we realized that the responseTransformer feature added last release wasn't broad enough, responseTransformers now receive the raw response stream instead of just the json()-promise.

Code which relies on this feature will break, however the fix should be very simple:

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 */})`.

Other Changes

  • Remove restriction that only allows request bodies to be built for Mutation operations. #154 & #173
  • Fix code sandbox examples #177
  • Bug-fix: default to empty headers instead of undefined for IE #178
  • Various docs typo fixes

v0.6.0

14 Oct 22:28
461b4a3
Compare
Choose a tag to compare
  • Feature: responseTransformers allow you to restructure & erase "wrapper" objects from your responses. #146
  • Tweaks to config for prettier #153 & jest #158
  • Tests for No-Content responses #157 & #161
  • Bundle Size-Limit Increased #162
  • Restructure Code for preferring await over Promise-chains #159

v0.5.0

17 Sep 00:01
3f6a8fc
Compare
Choose a tag to compare
  • Breaking Change: 404s now no longer throw an error! It's just null data! #142
  • Default Accept header if no header configured for Accept: #143
  • Improve/enable Support for Nested Queries from different apollo-links #138
  • Remove Restriction that Mutation must not contain GET queries & vice versa #140

Tickets from this milestone: https://github.com/apollographql/apollo-link-rest/milestone/5