Skip to content

Commit 6b55019

Browse files
committed
Remove deprecated 'introspectionQuery' constant (#2124)
1 parent aa514e4 commit 6b55019

File tree

6 files changed

+1
-25
lines changed

6 files changed

+1
-25
lines changed

src/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ export {
345345
// Produce the GraphQL query recommended for a full schema introspection.
346346
// Accepts optional IntrospectionOptions.
347347
getIntrospectionQuery,
348-
// @deprecated: use getIntrospectionQuery - will be removed in v15.
349-
introspectionQuery,
350348
// Gets the target Operation from a Document.
351349
getOperationAST,
352350
// Gets the Type for the target Operation AST.

src/utilities/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ export {
55
// Produce the GraphQL query recommended for a full schema introspection.
66
// Accepts optional IntrospectionOptions.
77
getIntrospectionQuery,
8-
// @deprecated, use getIntrospectionQuery() - will be removed in v15.
9-
introspectionQuery,
108
} from './introspectionQuery';
119

1210
export type {

src/utilities/introspectionQuery.js

-7
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,6 @@ export function getIntrospectionQuery(options?: IntrospectionOptions): string {
105105
`;
106106
}
107107

108-
/**
109-
* Deprecated, call getIntrospectionQuery directly.
110-
*
111-
* This function will be removed in v15
112-
*/
113-
export const introspectionQuery = getIntrospectionQuery();
114-
115108
export type IntrospectionQuery = {|
116109
+__schema: IntrospectionSchema,
117110
|};

tstypes/index.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,6 @@ export {
345345
// Produce the GraphQL query recommended for a full schema introspection.
346346
// Accepts optional IntrospectionOptions.
347347
getIntrospectionQuery,
348-
// @deprecated: use getIntrospectionQuery - will be removed in v15.
349-
introspectionQuery,
350348
// Gets the target Operation from a Document.
351349
getOperationAST,
352350
// Gets the Type for the target Operation AST.

tstypes/utilities/index.d.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
// The GraphQL query recommended for a full schema introspection.
2-
export {
3-
getIntrospectionQuery,
4-
// @deprecated, use getIntrospectionQuery() - will be removed in v15
5-
introspectionQuery,
6-
} from './introspectionQuery';
2+
export { getIntrospectionQuery } from './introspectionQuery';
73

84
export {
95
IntrospectionOptions,

tstypes/utilities/introspectionQuery.d.ts

-7
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,6 @@ export interface IntrospectionOptions {
99

1010
export function getIntrospectionQuery(options?: IntrospectionOptions): string;
1111

12-
/**
13-
* Deprecated, call getIntrospectionQuery directly.
14-
*
15-
* This function will be removed in v15
16-
*/
17-
export const introspectionQuery: string;
18-
1912
export interface IntrospectionQuery {
2013
readonly __schema: IntrospectionSchema;
2114
}

0 commit comments

Comments
 (0)