From 2743a6a39600807be03509f3162ba533d62480f1 Mon Sep 17 00:00:00 2001 From: Ivan Goncharov Date: Sun, 25 Aug 2019 16:22:07 +0300 Subject: [PATCH] Remove deprecated 'introspectionQuery' constant (#2124) --- src/index.js | 2 -- src/utilities/index.js | 2 -- src/utilities/introspectionQuery.js | 7 ------- tstypes/index.d.ts | 2 -- tstypes/utilities/index.d.ts | 6 +----- tstypes/utilities/introspectionQuery.d.ts | 7 ------- 6 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/index.js b/src/index.js index 614a048cef..33fcdd202b 100644 --- a/src/index.js +++ b/src/index.js @@ -345,8 +345,6 @@ export { // Produce the GraphQL query recommended for a full schema introspection. // Accepts optional IntrospectionOptions. getIntrospectionQuery, - // @deprecated: use getIntrospectionQuery - will be removed in v15. - introspectionQuery, // Gets the target Operation from a Document. getOperationAST, // Gets the Type for the target Operation AST. diff --git a/src/utilities/index.js b/src/utilities/index.js index 50e7f94172..50561a9ce9 100644 --- a/src/utilities/index.js +++ b/src/utilities/index.js @@ -5,8 +5,6 @@ export { // Produce the GraphQL query recommended for a full schema introspection. // Accepts optional IntrospectionOptions. getIntrospectionQuery, - // @deprecated, use getIntrospectionQuery() - will be removed in v15. - introspectionQuery, } from './introspectionQuery'; export type { diff --git a/src/utilities/introspectionQuery.js b/src/utilities/introspectionQuery.js index ca55e8a1f1..5044afa743 100644 --- a/src/utilities/introspectionQuery.js +++ b/src/utilities/introspectionQuery.js @@ -105,13 +105,6 @@ export function getIntrospectionQuery(options?: IntrospectionOptions): string { `; } -/** - * Deprecated, call getIntrospectionQuery directly. - * - * This function will be removed in v15 - */ -export const introspectionQuery = getIntrospectionQuery(); - export type IntrospectionQuery = {| +__schema: IntrospectionSchema, |}; diff --git a/tstypes/index.d.ts b/tstypes/index.d.ts index 942cc2e918..aa1692ee2f 100644 --- a/tstypes/index.d.ts +++ b/tstypes/index.d.ts @@ -345,8 +345,6 @@ export { // Produce the GraphQL query recommended for a full schema introspection. // Accepts optional IntrospectionOptions. getIntrospectionQuery, - // @deprecated: use getIntrospectionQuery - will be removed in v15. - introspectionQuery, // Gets the target Operation from a Document. getOperationAST, // Gets the Type for the target Operation AST. diff --git a/tstypes/utilities/index.d.ts b/tstypes/utilities/index.d.ts index f3d82f01ec..2946c2286a 100644 --- a/tstypes/utilities/index.d.ts +++ b/tstypes/utilities/index.d.ts @@ -1,9 +1,5 @@ // The GraphQL query recommended for a full schema introspection. -export { - getIntrospectionQuery, - // @deprecated, use getIntrospectionQuery() - will be removed in v15 - introspectionQuery, -} from './introspectionQuery'; +export { getIntrospectionQuery } from './introspectionQuery'; export { IntrospectionOptions, diff --git a/tstypes/utilities/introspectionQuery.d.ts b/tstypes/utilities/introspectionQuery.d.ts index 714beacfed..2e5a601c9c 100644 --- a/tstypes/utilities/introspectionQuery.d.ts +++ b/tstypes/utilities/introspectionQuery.d.ts @@ -9,13 +9,6 @@ export interface IntrospectionOptions { export function getIntrospectionQuery(options?: IntrospectionOptions): string; -/** - * Deprecated, call getIntrospectionQuery directly. - * - * This function will be removed in v15 - */ -export const introspectionQuery: string; - export interface IntrospectionQuery { readonly __schema: IntrospectionSchema; }