Skip to content

Commit

Permalink
Remove deprecated 'introspectionQuery' constant (#2124)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored Aug 25, 2019
1 parent cdba18a commit 2743a6a
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 25 deletions.
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions src/utilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 0 additions & 7 deletions src/utilities/introspectionQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
|};
Expand Down
2 changes: 0 additions & 2 deletions tstypes/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 1 addition & 5 deletions tstypes/utilities/index.d.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
7 changes: 0 additions & 7 deletions tstypes/utilities/introspectionQuery.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2743a6a

Please sign in to comment.