fusionjs / fusion-plugin-apollo-server

DEPRECATED. Please use fusion-plugin-apollo instead
MIT License
8 stars 13 forks source link

Update dependency apollo-server-koa to v2 - autoclosed #48

Closed renovate[bot] closed 5 years ago

renovate[bot] commented 6 years ago

This PR contains the following updates:

Package Type Update Change References
apollo-server-koa dependencies major ^1.3.6 -> ^2.0.0 source

Release Notes

apollographql/apollo-server ### [`v2.4.8`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v248) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.7...apollo-server-koa@2.4.8) - No functional changes in this version. The patch version has been bumped to fix the `README.md` displayed on the [npm package for `apollo-server`](https://npm.im/apollo-server) as a result of a broken publish. Apologies for the additional noise! ### [`v2.4.7`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v247) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.6...apollo-server-koa@2.4.7) - Fix typings which incorrectly included `cors` as part of the constructor options for `apollo-server-express` (it should be defined via `applyMiddleware`) but, conversely, inadvertently omitted the perfectly valid `cors` option from the `apollo-server` constructor (where `applyMiddleware` is not used/available). [PR #​2373](https://togithub.com/apollographql/apollo-server/pull/2373) [Issue #​1882](https://togithub.com/apollographql/apollo-server/issues/1882) ### [`v2.4.6`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v246) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.4...apollo-server-koa@2.4.6) - Allow Node.js-like runtimes to identify as Node.js as well. [PR #​2357](https://togithub.com/apollographql/apollo-server/pull/2357) [Issue #​2356](https://togithub.com/apollographql/apollo-server/issue/2356) ### [`v2.4.4`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v244) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.3...apollo-server-koa@2.4.4) - Fix typing for ContextFunction incorrectly requiring the context object the function produces to match the parameters of the function [PR #​2350](https://togithub.com/apollographql/apollo-server/pull/2350) ### [`v2.4.3`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v243) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.2...apollo-server-koa@2.4.3) - `apollo-server-lambda`: Fix typings which triggered "Module has no default export" errors. [PR #​2230](https://togithub.com/apollographql/apollo-server/pull/2230) - `apollo-server-koa`: Support OPTIONS requests [PR #​2288](https://togithub.com/apollographql/apollo-server/pull/2288) - Add `req` and `res` typings to the `ContextFunction` argument for apollo-server and apollo-server-express. Update `ContextFunction` return type to allow returning a value syncronously. [PR #​2330](https://togithub.com/apollographql/apollo-server/pull/2330) - Type the `formatError` function to accept an GraphQLError as an argument and return a GraphQLFormattedError [PR #​2343](https://togithub.com/apollographql/apollo-server/pull/2343) ### [`v2.4.2`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v242) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.1...apollo-server-koa@2.4.2) - `apollo-server-fastify` is now on Apollo Server and lives within the `apollo-server` repository. This is being introduced in a _patch_ version, however it's a _major_ version bump from the last time `apollo-server-fastify` was published under `1.0.2`. [PR #​1971](https://togithub.com/apollostack/apollo-server/pull/1971) - Move `apollo-graphql` package to the `apollo-tooling` repository [PR #​2316](https://togithub.com/apollographql/apollo-server/pull/2316) ### [`v2.4.1`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v241) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.4.0...apollo-server-koa@2.4.1) - Fix inaccurate total duration in apollo-tracing [PR #​2298](https://togithub.com/apollographql/apollo-server/pull/2298) - Avoid importing entire `crypto` dependency tree if not in Node.js. [PR #​2304](https://togithub.com/apollographql/apollo-server/pull/2304) - Allow passing `parseOptions` to `ApolloServerBase` constructor. [PR #​2289](https://togithub.com/apollographql/apollo-server/pull/2289) - Rename `azureFunctions.d.ts` to `azureFunctions.ts`. [PR #​2287](https://togithub.com/apollographql/apollo-server/pull/2287) - Require `apollo-engine-reporting` only if `EngineReportingAgent` used. [PR #​2305](https://togithub.com/apollographql/apollo-server/pull/2305) ### [`v2.4.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v240) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.3.3...apollo-server-koa@2.4.0) - Implement an in-memory cache store to save parsed and validated documents and provide performance benefits for repeat executions of the same document. [PR #​2111](https://togithub.com/apollographql/apollo-server/pull/2111) (`>=2.4.0-alpha.0`) - Fix: Serialize arrays as JSON on fetch in `RESTDataSource`. [PR #​2219](https://togithub.com/apollographql/apollo-server/pull/2219) - Fix: The `privateHeaders` configuration for `apollo-engine-reporting` now allows headers to be specified using any case and lower-cases them prior to comparison. [PR #​2276](https://togithub.com/apollographql/apollo-server/pull/2276) - Fix broken `apollo-server-azure-functions` TypeScript definitions. [PR #​2287](https://togithub.com/apollographql/apollo-server/pull/2287) ### [`v2.3.3`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v233) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.3.2...apollo-server-koa@2.3.3) - `apollo-server` (only): Stop double-invocation of `serverWillStart` life-cycle event. (More specific integrations - e.g. Express, Koa, Hapi, etc. - were unaffected.) [PR #​2239](https://togithub.com/apollographql/apollo-server/pull/2239) - Avoid traversing `graphql-upload` module tree in run-time environments which aren't Node.js. [PR #​2235](https://togithub.com/apollographql/apollo-server/pull/2235) ### [`v2.3.2`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v232) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.3.1...apollo-server-koa@2.3.2) - Switch from `json-stable-stringify` to `fast-json-stable-stringify`. [PR #​2065](https://togithub.com/apollographql/apollo-server/pull/2065) - Fix cache hints of `maxAge: 0` to mean "uncachable". [#​2197](https://togithub.com/apollographql/apollo-server/pull/2197) - Apply `defaultMaxAge` to scalar fields on the root object. [#​2210](https://togithub.com/apollographql/apollo-server/pull/2210) - Don't write to the persisted query cache until execution will begin. [PR #​2227](https://togithub.com/apollographql/apollo-server/pull/2227) ### [`v2.3.1`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v231) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.3.0...apollo-server-koa@2.3.1) - Provide types for `graphql-upload` in a location where they can be accessed by TypeScript consumers of `apollo-server` packages. [ccf935f9](https://togithub.com/apollographql/apollo-server/commit/ccf935f9) [Issue #​2092](https://togithub.com/apollographql/apollo-server/issues/2092) ### [`v2.3.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v230) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.7...apollo-server-koa@2.3.0) - **BREAKING FOR NODE.JS <= 8.5.0 ONLY**: To continue using Apollo Server 2.x in versions of Node.js prior to v8.5.0, file uploads must be disabled by setting `uploads: false` on the `ApolloServer` constructor options. Without explicitly disabling file-uploads, the server will `throw` at launch (with instructions and a link to our documentation). This early deprecation is due to changes in the third-party `graphql-upload` package which Apollo Server utilizes to implement out-of-the-box file upload functionality. While, in general, Apollo Server 2.x aims to support all Node.js versions which were under an LTS policy at the time of its release, we felt this required an exception. By `throw`-ing when `uploads` is not explicitly set to `false`, we aim to make it clear immediately (rather than surprisingly) that this deprecation has taken effect. While Node.js 6.x is covered by a [Long Term Support agreement by the Node.js Foundation](https://togithub.com/nodejs/Release#release-schedule) until April 2019, there are substantial performance (e.g. [V8](https://v8.dev/) improvements) and language changes (e.g. "modern" ECMAScript support) offered by newer Node.js engines (e.g. 8.x, 10.x). We encourage _all users_ of Apollo Server to update to newer LTS versions of Node.js prior to the "end-of-life" dates for their current server version. **We intend to drop support for Node.js 6.x in the next major version of Apollo Server.** For more information, see [PR #​2054](https://togithub.com/apollographql/apollo-server/pull/2054) and [our documentation](https://www.apollographql.com/docs/apollo-server/v2/migration-file-uploads.html). ### [`v2.2.7`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v227) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.6...apollo-server-koa@2.2.7) - `apollo-engine-reporting`: When multiple instances of `apollo-engine-reporting` are loaded (an uncommon edge case), ensure that `encodedTraces` are handled only once rather than once per loaded instance. [PR #​2040](https://togithub.com/apollographql/apollo-server/pull/2040) ### [`v2.2.6`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v226) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.5...apollo-server-koa@2.2.6) - `apollo-server-micro`: Set the `Content-type` to `text/html` for GraphQL Playground. [PR #​2026](https://togithub.com/apollographql/apollo-server/pull/2026) ### [`v2.2.5`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v225) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.4...apollo-server-koa@2.2.5) - Follow-up on the update to `graphql-playground-html` in previous release by also bumping the minor version of the `graphql-playground-react` dependency to `1.7.10` — which is the version requested from the from the CDN bundle by `graphql-playground-html`. [PR #​2037](https://togithub.com/apollographql/apollo-server/pull/2037) ### [`v2.2.4`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v224) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.3...apollo-server-koa@2.2.4) - Fix GraphQL Playground documentation scrolling bug in Safari by updating to latest (rebased) fork of `graphql-playground-html`. [PR #​2037](https://togithub.com/apollographql/apollo-server/pull/2037) ### [`v2.2.3`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v223) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.2...apollo-server-koa@2.2.3) - When `generateClientInfo` is not used to define the client name, client version and client reference ID, Apollo Server will now default to the values present in the HTTP headers of the request (`apollographql-client-name`, `apollographql-client-reference-id` and `apollographql-client-version` respectively). As a last resort, when those headers are not set, the query extensions' `clientInfo` values will be used. [PR #​1960](https://togithub.com/apollographql/apollo-server/pull/1960) ### [`v2.2.2`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v222) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.1...apollo-server-koa@2.2.2) - Fixed TypeScript 2.2 compatibility via updated `apollo-tooling` dependency. [Issue #​1951](https://togithub.com/apollographql/apollo-server/issues/1951) [`26d6c739`](https://togithub.com/apollographql/apollo-server/commit/26d6c739505b3112694e641c272c748ce38ba86b) - Throw a more specific error when asynchronous introspection query behavior is detected. [PR #​1955](https://togithub.com/apollographql/apollo-server/pull/1955) ### [`v2.2.1`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v221) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.2.0...apollo-server-koa@2.2.1) - Added support for an array of `modules` on the `ApolloServer` constructor options. Each element of the `modules` can point to a module which exports `typeDefs` and `resolvers`. These modules can be used in lieu of, or in combination with, directly specifying `schema` or `typeDefs`/`resolvers` on the constructor options. This provides greater modularity and improved organization for logic which might be limited to a specific service. [`8f6481e6`](https://togithub.com/apollographql/apollo-server/commit/8f6481e60f8418738f9ebbe9d5ab5e7e2ce4d319). - Added `resolveObject` support to query execution. [`bb67584`](https://togithub.com/apollographql/apollo-server/commit/bb67584a224843a5b2509c2ebdd94e616fe6227c). - Fix broken `apollo-server-cloud-functions` in 2.2.0 caused by missing TypeScript project references which resulted in the package not being published to npm in compiled form. [PR #​1948](https://togithub.com/apollographql/apollo-server/pull/1948) ### [`v2.2.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v220) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.1.0...apollo-server-koa@2.2.0) - New request pipeline, including support for plugins which can implement lifecycle hooks at various stages of a request. [PR #​1795](https://togithub.com/apollographql/apollo-server/pull/1795). - Introduce new `apollo-server-testing` utilities. [PR #​1909](https://togithub.com/apollographql/apollo-server/pull/1909) - Fix mocks configuration to allow disabling of mocks by using `mocks: false`, even if `mockEntireSchema` is `true`. [PR #​1835](https://togithub.com/apollographql/apollo-server/pull/1835) - Update `graphql-playground-html` to 1.7.8. [PR #​1855](https://togithub.com/apollographql/apollo-server/pull/1855) - Bring back Azure functions support [Issue #​1752](https://togithub.com/apollographql/apollo-server/issue/1752) [PR #​1753](https://togithub.com/apollographql/apollo-server/pull/1753) - Allow an optional function to resolve the `rootValue`, passing the `DocumentNode` AST to determine the value. [PR #​1555](https://togithub.com/apollographql/apollo-server/pull/1555) - Follow-up on the work in [PR #​1516](https://togithub.com/apollographql/apollo-server/pull/1516) to also fix missing insertion cursor/caret when a custom GraphQL configuration is specified which doesn't specify its own `cursorShape` property. [PR #​1607](https://togithub.com/apollographql/apollo-server/pull/1607) - Azure functions support [Issue #​1752](https://togithub.com/apollographql/apollo-server/issue/1752) [PR #​1753](https://togithub.com/apollographql/apollo-server/pull/1753) [PR #​1948](https://togithub.com/apollographql/apollo-server/pull/1948) - Allow JSON parsing in `RESTDataSource` of Content Type `application/hal+json`. [PR #​185](https://togithub.com/apollographql/apollo-server/pull/1853) - Add support for a `requestAgent` configuration parameter within the `engine` configuration. This can be utilized when a proxy is necessary to transmit tracing and metrics data to Apollo Engine. It accepts either an [`http.Agent`](https://nodejs.org/docs/latest-v8.x/api/http.html#http_class_http_agent) or [`https.Agent`](https://nodejs.org/docs/latest-v8.x/api/https.html#https_class_https_agent) and behaves the same as the `agent` parameter to Node.js' [`http.request`](https://nodejs.org/docs/latest-v8.x/api/http.html#http_http_request_options_callback). [PR #​1879](https://togithub.com/apollographql/apollo-server/pull/1879) ### [`v2.1.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v210) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.7...apollo-server-koa@2.1.0) - Updated the google-cloud-functions package to handle null paths [PR #​1674](https://togithub.com/apollographql/apollo-server/pull/1674) - Update link inside Authentication Docs [PR #​1682](https://togithub.com/apollographql/apollo-server/pull/1682) - Fix making sure all headers are getting reported to Engine properly when using `privateHeaders` [PR #​1689](https://togithub.com/apollographql/apollo-server/pull/1689) - _(experimental, subject to change/removal)_ Provide ability to specify client info in traces [#​1631](https://togithub.com/apollographql/apollo-server/pull/1631) ### [`v2.0.7`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v207) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.6...apollo-server-koa@2.0.7) - Fix [#​1581](https://togithub.com/apollographql/apollo-server/issues/1581) `apollo-server-micro` top level error response [#​1619](https://togithub.com/apollographql/apollo-server/pull/1619) - Switch `ApolloServerBase.schema` from private access to protected access. [#​1610](https://togithub.com/apollographql/apollo-server/pull/1610) - Add toggle for including error messages in reports [#​1615](https://togithub.com/apollographql/apollo-server/pull/1615) - Fix `apollo-server-cloud-functions` tests [#​1611](https://togithub.com/apollographql/apollo-server/pull/1611/) ### [`v2.0.6`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v206) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.5...apollo-server-koa@2.0.6) - Update `graphql-playground-html` to 1.7.4 [#​1586](https://togithub.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://togithub.com/apollographql/apollo-server/pull/1595) - Add `node-fetch` extensions typing to `RequestInit` [#​1602](https://togithub.com/apollographql/apollo-server/pull/1602) ### [`v2.0.5`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v205) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.4...apollo-server-koa@2.0.5) - Google Cloud Function support [#​1402](https://togithub.com/apollographql/apollo-server/issues/1402) [#​1446](https://togithub.com/apollographql/apollo-server/pull/1446) - Switch to a fork of `apollo-upload-server` to fix missing `core-js` dependency. [#​1556](https://togithub.com/apollographql/apollo-server/pull/1556) ### [`v2.0.4`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v204) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.3...apollo-server-koa@2.0.4) - apollo-server: Release due to failed build and install ### [`v2.0.3`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v203) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.2...apollo-server-koa@2.0.3) - apollo-server: failed publish - pass payload into context function for subscriptions [#​1513](https://togithub.com/apollographql/apollo-server/pull/1513) - Add option to mock the entire schema(i.e. sets preserveResolvers) [PR #​1546](https://togithub.com/apollographql/apollo-server/pull/1546) ### [`v2.0.2`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v202) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.1...apollo-server-koa@2.0.2) - Release with Lerna 3 due - Hapi: Allow additional route options to be passed to Hapi.js plugin. [PR #​1384](https://togithub.com/apollographql/apollo-server/pull/1384) - express, koa: remove next after playground [#​1436](https://togithub.com/apollographql/apollo-server/pull/1436) - Hapi: Pass the response toolkit to the context function. [#​1407](https://togithub.com/apollographql/apollo-server/pull/1407) - update apollo-engine-reporting-protobuf to non-beta [#​1429](https://togithub.com/apollographql/apollo-server/pull/1429) - playground would use its own settings as default [#​1516](https://togithub.com/apollographql/apollo-server/pull/1516) - Lambda: Look in event.path first when picking endpoint for GraphQL Playground [#​1527](https://togithub.com/apollographql/apollo-server/pull/1527) - Fix to allow enabling GraphQL Playground in production with custom config [#​1495](https://togithub.com/apollographql/apollo-server/pull/1495) ### [`v2.0.1`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v201) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/apollo-server-koa@2.0.0...apollo-server-koa@2.0.1) - This version failed to publish fully/correctly and should not be used. ### [`v2.0.0`](https://togithub.com/apollographql/apollo-server/blob/master/CHANGELOG.md#v200-rc10) [Compare Source](https://togithub.com/apollographql/apollo-server/compare/v1.4.0...apollo-server-koa@2.0.0) - Fix and Export Extension and Playground Types [#​1360](https://togithub.com/apollographql/apollo-server/pull/1360) - Pin internal dependencies [#​1361](https://togithub.com/apollographql/apollo-server/pull/1361)

Renovate configuration

:date: Schedule: At any time (no schedule defined).

:vertical_traffic_light: Automerge: Enabled.

:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Renovate Bot. View repository job log here.

CLAassistant commented 6 years ago

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

codecov[bot] commented 5 years ago

Codecov Report

Merging #48 into master will increase coverage by 9.09%. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #48      +/-   ##
========================================
+ Coverage    90.9%   100%   +9.09%     
========================================
  Files           3      1       -2     
  Lines          11      1      -10     
  Branches        7      1       -6     
========================================
- Hits           10      1       -9     
+ Misses          1      0       -1
Impacted Files Coverage Δ
src/tokens.js
src/server.js

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aa575a8...26c32c8. Read the comment docs.