apollographql/apollo-server
### [`v3.4.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v340)
[Compare Source](https://togithub.com/apollographql/apollo-server/compare/8524df3d3fe98b7ad625c48cb393cd4a59ec1476...7861ba22c9e4caf037e7a1cec71191b9b0deb71b)
- `apollo-server-core`: You can now specify your own `DocumentStore` (a `KeyValueStore`) for Apollo Server's cache of parsed and validated GraphQL operation abstract syntax trees via the new `documentStore` constructor option. **This replaces the `experimental_approximateDocumentStoreMiB` option.** You can replace `new ApolloServer({experimental_approximateDocumentStoreMiB: approximateDocumentStoreMiB, ...moreOptions})` with:
```typescript
import { InMemoryLRUCache } from 'apollo-server-caching';
import type { DocumentNode } from 'graphql';
new ApolloServer({
documentStore: new InMemoryLRUCache({
maxSize: Math.pow(2, 20) * approximateDocumentStoreMiB,
sizeCalculator: InMemoryLRUCache.jsonBytesSizeCalculator,
}),
...moreOptions,
})
```
[PR #5644](https://togithub.com/apollographql/apollo-server/pull/5644) [Issue #5634](https://togithub.com/apollographql/apollo-server/issues/5634)
- `apollo-server-core`: For ease of testing, you can specify the node environment via `new ApolloServer({nodeEnv})` in addition to via the `NODE_ENV` environment variable. The environment variable is now only read during server startup (and in some error cases) rather than on every request. [PR #5657](https://togithub.com/apollographql/apollo-server/pull/5657)
- `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://togithub.com/apollographql/apollo-server/pull/5759)
- `apollo-server-fastify`: Export `ApolloServerFastifyConfig` and `FastifyContext` TypeScript types. [PR #5743](https://togithub.com/apollographql/apollo-server/pull/5743)
- `apollo-server-core`: Only generate the schema hash once on startup rather than twice. [PR #5757](https://togithub.com/apollographql/apollo-server/pull/5757)
- `apollo-datasource-rest@3.3.0`: When choosing whether or not to parse a response as JSON, treat any `content-type` ending in `+json` as JSON rather than just `application/hal+json` (in addition to `application/json`). [PR #5737](https://togithub.com/apollographql/apollo-server/pull/5737)
- `apollo-server`: You can now configure the health check URL path with the `healthCheckPath` constructor option, or disable serving health checks by passing `null` for this option. (This option is specific to the batteries-included `apollo-server` package; if you're using a framework integration package and want to serve a health check at a different path, just use your web framework directly.) [PR #5270](https://togithub.com/apollographql/apollo-server/pull/5270) [Issue #3577](https://togithub.com/apollographql/apollo-server/issues/3577)
- `apollo-server-azure-functions`: This package now supports health checks like all of the other supported Apollo Server packages; they are on by default and can be customized with `disableHealthCheck` and `onHealthCheck`. \[PR [#5003](https://togithub.com/apollographql/apollo-server/issues/5003)]\(https://[github.com/apollographql/apollo-server/pull/5003](togithub.com/apollographql/apollo-server/pull/5003)3) [Issue #4925](https://togithub.com/apollographql/apollo-server/issues/4925)
- Tests are no longer distributed inside published npm modules. [PR #5799](https://togithub.com/apollographql/apollo-server/pull/5799) [Issue #5781](https://togithub.com/apollographql/apollo-server/issues/5781)
Configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
[ ] If you want to rebase/retry this PR, click this checkbox.
This PR contains the following updates:
3.3.0
->3.4.0
3.3.0
->3.4.0
Release Notes
apollographql/apollo-server
### [`v3.4.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v340) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/8524df3d3fe98b7ad625c48cb393cd4a59ec1476...7861ba22c9e4caf037e7a1cec71191b9b0deb71b) - `apollo-server-core`: You can now specify your own `DocumentStore` (a `KeyValueStoreConfiguration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by WhiteSource Renovate. View repository job log here.