Bumps apollo-server from 2.10.1 to 2.25.3.
Changelog
Sourced from apollo-server's changelog.
v2.25.3
- ⚠️ SECURITY apollo-server-core: Update default version of the GraphQL Playground React app loaded from the CDN to be@apollographql/graphql-playground-react@1.7.42. This patches an XSS vulnerability. Note that if you are pinning the Playground React app version in your app withnew ApolloServer({playground: {version: 'some version'}}), you will need to update the specified version to 1.7.42 or later to avoid this vulnerability. If you disable GraphQL Playground withnew ApolloServer({playground: false}), this vulnerability does not affect you. See advisory GHSA-qm7x-rc44-rrqw for more details.
v2.25.2
v2.25.1
- apollo-server-core,- apollo-server-express: Upgrade- subscriptions-transport-wsdependency and remove unneeded runtime dependency on- ws. This should enable you to install Apollo Server without depending on versions of- wsvulnerable to CVE-2021-32640. Note that the superficial integration of the unmaintained- subscriptions-transport-wspackage will be removed in Apollo Server 3; you can also avoid this vulnerability by disabling the built-in subscription support with- new ApolloServer({subscriptions: false})and using a maintained package such as- graphql-wsinstead. (Instead of taking this upgrade, you can also upgrade- wsto- 5.2.3, which was just released.)
v2.25.0
- apollo-server-core: You may now specify your Studio graph as a graph ref (- id@variant) via the- APOLLO_GRAPH_REFenvironment variable or- new ApolloServer({apollo: {graphRef}})instead of specifying graph ID and graph variant separately. The- apolloobject passed to plugin- serverWillStartand to gateway- loadnow contains a- graphReffield.
- apollo-server-core: Fix a race condition where schema reporting could lead to a delay at process shutdown. [PR #5222](apollographql/apollo-server#5222)
- apollo-server-core: Allow the Fetch API implementation to be overridden for the schema reporting and usage reporting plugins via a new- fetcheroption. [PR #5179](apollographql/apollo-server#5179)
- apollo-server-core: The- server.executeOperationmethod (designed for testing) can now take its- queryas a- DocumentNode(eg, a- gql-tagged string) in addition to as a string. (This matches the behavior of the- apollo-server-testing- createTestClientfunction which is now deprecated.) We now recommend this method instead of- apollo-server-testingin our docs. [Issue #4952](apollographql/apollo-server#4952)
- apollo-server-testing: Replace README with a deprecation notice explaining how to use- server.executeOperationinstead. [Issue #4952](apollographql/apollo-server#4952)
v2.24.1
- apollo-server-core: Fix a typo that could lead to TypeScript compilation when combined with a recent version of- @types/node. (This bug had no runtime effect.) [PR #5149](apollographql/apollo-server#5149)
v2.24.0
- apollo-server-core: Apollo Studio usage reporting uses a more efficient format which sends fewer detailed traces to Apollo's server. This change should not have a major effect on the experience of using Apollo Studio. This also fixes a bug in all prior versions where all operations were reported to Studio as "uncached". [PR #4142](apollographql/apollo-server#4142)
v2.23.0
- apollo-server-core: Add optional argument to- ApolloServer.executeOperationallowing the caller to manually specify an argument to the- configfunction analogous to that provided by integration packages. [PR #4166](apollographql/apollo-server#4166) [Issue #2886](apollographql/apollo-server#2886)
- apollo-server-cache-redis@1.4.0: New- BaseRedisCacheclass which takes an- ioredis-compatible Redis client as an argument. The existing classes- RedisCacheand- RedisClusterCache(which pass their arguments to- ioredisconstructors) are now implemented in terms of this class. This allows you to use any of the- ioredisconstructor forms rather than just the ones recognized by our classes. This also fixes a long-standing bug where the Redis cache implementations returned a number from- delete(); it now returns a number, matching what the- KeyValueCacheinterface and the TypeScript types expect. [PR #5034](apollographql/apollo-server#5034) [PR #5088](apollographql/apollo-server#5088) [Issue #4870](apollographql/apollo-server#4870) [Issue #5006](apollographql/apollo-server#5006)
- apollo-server-core: Fix type for- formatResponsefunction. It never is called with a- nullargument, and is allowed to return- null. [Issue #5009](apollographql/apollo-server#5009) [PR #5089](apollographql/apollo-server#5089)
- apollo-server-lambda: Fix regression in v2.21.2 where thrown errors were replaced by throwing the JS Error class itself. [PR #5085](apollographql/apollo-server#5085)
- apollo-server-core: If a client sends a variable of the wrong type, this is now reported as an error with an- extensions.codeof- BAD_USER_INPUTrather than- INTERNAL_SERVER_ERROR. [PR #5091](apollographql/apollo-server#5091) [Issue #3498](apollographql/apollo-server#3498)
- apollo-server-lambda: Explicitly support API Gateway- payloadFormatVersion2.0. Previously some codepaths did appropriate checks to partially support 2.0 and other codepaths could lead to errors like- event.path.endsWith is not a function(especially since v2.21.1). Note that this changes the TypeScript typing of the- onHealthCheckcallback passed to- createHandlerto indicate that it can receive either type of event. If you are using TypeScript and care about having a precise typing for the argument to your- onHealthCheckcallback, you should determine which payload format you want to support and write- new ApolloServer<APIGatewayProxyEvent>(...)or- new ApolloServer<APIGatewayProxyEventV2>(...)(importing these types from- aws-lambda), or differentiate between the two formats by checking to see if- 'path' in event. [Issue #5084](apollographql/apollo-server#5084) [Issue #5016](apollographql/apollo-server#5016)
v2.22.2
v2.22.1
- apollo-server-core: Fix a regression in v2.22.0 where startup errors could be thrown as part of the GraphQL response instead of redacted in one edge case. [PR #5064](apollographql/apollo-server#5064)
v2.22.0
- Improve startup error handling by ensuring that your server has loaded its schema and executed its serverWillStarthandlers successfully before starting an HTTP server. If you're using theapollo-serverpackage, no code changes are necessary. If you're using an integration such asapollo-server-expressthat is not a "serverless framework", you can insertawait server.start()betweenserver = new ApolloServer()andserver.applyMiddleware. (If you don't callserver.start()yourself, your server will still work, but the previous behavior of starting a web server that may fail to load its schema still applies.) The serverless framework integrations (Lambda, Azure Functions, and Cloud Functions) do not support this functionality. While the protected methodwillStartstill exists for backwards compatibility, you should replace calls to it withstartor the new protected methodensureStarting. [PR #4981](apollographql/apollo-server#4981)
v2.21.2
... (truncated)
 
Commits
 
Dependabot compatibility score 
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- @dependabot rebasewill rebase this PR
- @dependabot recreatewill recreate this PR, overwriting any edits that have been made to it
- @dependabot mergewill merge this PR after your CI passes on it
- @dependabot squash and mergewill squash and merge this PR after your CI passes on it
- @dependabot cancel mergewill cancel a previously requested merge and block automerging
- @dependabot reopenwill reopen this PR if it is closed
- @dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- @dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- @dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- @dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- @dependabot use these labelswill set the current labels as the default for future PRs for this repo and language
- @dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language
- @dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language
- @dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.
 
  
 
Bumps apollo-server from 2.10.1 to 2.25.3.
Changelog
Sourced from apollo-server's changelog.
... (truncated)
Commits
a725306Release70a4312Releasef47c11dRelease42983b0Release19572d7Releasec8c0748Releasedf92f39docs: replace spectrum with community forum (#5228)9e1bf7dReleasef2349d0Release4e5f03eReleaseDependabot compatibility score
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and languageYou can disable automated security fix PRs for this repo from the Security Alerts page.