diff --git a/.changeset/smart-tools-occur.md b/.changeset/smart-tools-occur.md deleted file mode 100644 index c67b368..0000000 --- a/.changeset/smart-tools-occur.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@apollo/datasource-rest': patch ---- - -Fix bug in Cloudflare Worker usage where we try to call the `.raw()` method on its response headers object when it doesn't exist. - -For some reason, the Cloudflare Worker's global `fetch` `HeadersList` object is passing the instanceof check against `node-fetch`'s `Headers` class, but it doesn't have the `.raw()` method we expect on it. To be sure, we can just make sure it's there before we call it. diff --git a/CHANGELOG.md b/CHANGELOG.md index cd4a249..fef324c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # @apollo/datasource-rest +## 6.0.1 + +### Patch Changes + +- [#214](https://github.com/apollographql/datasource-rest/pull/214) [`c7b190a`](https://github.com/apollographql/datasource-rest/commit/c7b190a03d7c768e9db598755ce94ae2fa4581b8) Thanks [@trevor-scheer](https://github.com/trevor-scheer)! - Fix bug in Cloudflare Worker usage where we try to call the `.raw()` method on its response headers object when it doesn't exist. + + For some reason, the Cloudflare Worker's global `fetch` `HeadersList` object is passing the instanceof check against `node-fetch`'s `Headers` class, but it doesn't have the `.raw()` method we expect on it. To be sure, we can just make sure it's there before we call it. + ## 6.0.0 ### Major Changes diff --git a/package.json b/package.json index 0ed9644..e1b2a84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@apollo/datasource-rest", "description": "REST DataSource for Apollo Server v4", - "version": "6.0.0", + "version": "6.0.1", "author": "Apollo ", "license": "MIT", "repository": {