From fcfe7f97b0eea7c8f48585bee0956158454d6eb8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 7 Jun 2023 13:19:58 -0700 Subject: [PATCH] Version Packages (#215) Co-authored-by: github-actions[bot] --- .changeset/smart-tools-occur.md | 7 ------- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 .changeset/smart-tools-occur.md 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": {