diff --git a/CHANGELOG.md b/CHANGELOG.md index 2df4b767add..0e535a7c0e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,10 @@ All of the packages in the `apollo-server` repo are released with the same version numbers, so a new version of a particular package might not represent an actual change to that package. We generally try to mark changes that affect only one web server integration package with that package name, and don't specify package names for changes that affect most of the packages or which affect shared core packages. ### vNEXT -- Update graphql-playground-html to 1.7.4 [#1586](https://github.com/apollographql/apollo-server/pull/1586) + +- Update `graphql-playground-html` to 1.7.4 [#1586](https://github.com/apollographql/apollo-server/pull/1586) - Add support for `graphql-js` v14 by augmenting typeDefs with the `@cacheControl` directive so SDL validation doesn't fail [#1595](https://github.com/apollographql/apollo-server/pull/1595) +- Add `node-fetch` extensions typing to `RequestInit` [#1602](https://github.com/apollographql/apollo-server/pull/1602) ### v2.0.5 diff --git a/packages/apollo-server-env/src/fetch.d.ts b/packages/apollo-server-env/src/fetch.d.ts index adb513d6978..c729a192238 100644 --- a/packages/apollo-server-env/src/fetch.d.ts +++ b/packages/apollo-server-env/src/fetch.d.ts @@ -1,3 +1,5 @@ +import { Agent } from 'http'; + export declare function fetch( input?: RequestInfo, init?: RequestInit, @@ -55,6 +57,13 @@ export interface RequestInit { cf?: { [key: string]: any; }; + + // The following properties are node-fetch extensions + follow: number; + timeout: number; + compress: boolean; + size: number; + agent?: Agent; } export type RequestMode = 'navigate' | 'same-origin' | 'no-cors' | 'cors';