diff --git a/CHANGELOG.md b/CHANGELOG.md index 5af5f112d13..9c5268b3724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ The version headers in this history reflect the versions of Apollo Server itself ## vNEXT +- `apollo-server-koa`: The peer dependency on `koa` (added in v3.0.0) should be a `^` range dependency rather than depending on exactly one version, and it should not be automatically increased when new versions of `koa` are released. [PR #5759](https://github.com/apollographql/apollo-server/pull/5759) + ## v3.3.0 - `apollo-server-core`: Error handling when a `serverWillStop` callback invoked by `server.stop()` (or `gateway.stop()`) throws is now consistent: the original call to `server.stop()` throws the error, and any concurrent and subsequent calls to `server.stop()` throw the same error. Prior to Apollo Server v2.22.0, the original call threw the error and the behavior of concurrent and subsequent calls was undefined (in practice, it would call shutdown handlers a second time). Apollo Server v2.22.0 intended to put these semantics into place where all three kinds of calls would throw, but due to bugs, the original call would return without error and concurrent calls would hang. (Subsequent calls would correctly throw the error.) In addition, errors thrown by the `drainServer` hook introduced in Apollo Server v3.2.0 are now handled in the same way. [Issue #5649](https://github.com/apollographql/apollo-server/issues/5649) [PR #5653](https://github.com/apollographql/apollo-server/pull/5653) diff --git a/package-lock.json b/package-lock.json index 83dafebeb6f..7185d25c93b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20342,7 +20342,7 @@ }, "peerDependencies": { "graphql": "^15.3.0", - "koa": "2.13.3" + "koa": "^2.13.1" } }, "packages/apollo-server-koa/node_modules/@koa/cors": { diff --git a/packages/apollo-server-koa/package.json b/packages/apollo-server-koa/package.json index 62cef644199..d752f8e605e 100644 --- a/packages/apollo-server-koa/package.json +++ b/packages/apollo-server-koa/package.json @@ -43,6 +43,6 @@ }, "peerDependencies": { "graphql": "^15.3.0", - "koa": "2.13.3" + "koa": "^2.13.1" } }