From 2046c110c2cba1c1bf68b56b0b8ed8b193acf6cb Mon Sep 17 00:00:00 2001 From: Jesse Rosenberger Date: Tue, 12 Feb 2019 17:11:53 +0200 Subject: [PATCH] Switch to `apollo-graphql` for providing the signature transformations. As of https://github.com/apollographql/apollo-server/pull/2259, the signature normalization transformations no longer live in `apollo-engine-reporting`. They now live in `apollo-graphql` which allows us to drop a large portion of the dependency tree since `apollo-engine-reporting` currently depends on `apollo-server-core` for its type definitions. We'll use path-based imports at the moment because not everything is exported from the main module of `apollo-graphql` (intentionally). --- .../apollo-server-plugin-operation-registry/package.json | 2 +- .../apollo-server-plugin-operation-registry/src/common.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/apollo-server-plugin-operation-registry/package.json b/packages/apollo-server-plugin-operation-registry/package.json index 5a143dd96b0..611318ed066 100644 --- a/packages/apollo-server-plugin-operation-registry/package.json +++ b/packages/apollo-server-plugin-operation-registry/package.json @@ -11,7 +11,7 @@ "node": ">=6" }, "dependencies": { - "apollo-engine-reporting": "0.2.2", + "apollo-graphql": "0.1.0", "apollo-server-caching": "0.3.0", "apollo-server-errors": "2.2.0", "apollo-server-plugin-base": "0.3.0", diff --git a/packages/apollo-server-plugin-operation-registry/src/common.ts b/packages/apollo-server-plugin-operation-registry/src/common.ts index 870c2dd68fc..b97d7cbeab8 100644 --- a/packages/apollo-server-plugin-operation-registry/src/common.ts +++ b/packages/apollo-server-plugin-operation-registry/src/common.ts @@ -7,7 +7,10 @@ import { FloatValueNode, StringValueNode, } from 'graphql/language/ast'; -import { printWithReducedWhitespace, sortAST } from 'apollo-engine-reporting'; +import { + printWithReducedWhitespace, + sortAST, +} from 'apollo-graphql/dist/transforms'; export const envOverrideOperationManifest = 'APOLLO_OPERATION_MANIFEST_BASE_URL';