diff --git a/src/index.js b/src/index.js index 697734cf47..d5e6b5fe5a 100644 --- a/src/index.js +++ b/src/index.js @@ -316,7 +316,7 @@ export { // Produce the GraphQL query recommended for a full schema introspection. // Accepts optional IntrospectionOptions. getIntrospectionQuery, - // Deprecated: use getIntrospectionQuery + // @deprecated: use getIntrospectionQuery - will be removed in v15 introspectionQuery, // Gets the target Operation from a Document getOperationAST, @@ -357,9 +357,9 @@ export { TypeInfo, // Coerces a JavaScript value to a GraphQL type, or produces errors. coerceValue, - // @deprecated use coerceValue + // @deprecated use coerceValue - will be removed in v15 isValidJSValue, - // Determine if AST values adhere to a GraphQL type. + // @deprecated use validation - will be removed in v15 isValidLiteralValue, // Concatenates multiple AST together. concatAST, diff --git a/src/language/parser.js b/src/language/parser.js index 2876a7e639..fdbfce0812 100644 --- a/src/language/parser.js +++ b/src/language/parser.js @@ -84,7 +84,7 @@ export type ParseOptions = { * specification. * * This option is provided to ease adoption of the final SDL specification - * and will be removed in a future major release. + * and will be removed in v16. */ allowLegacySDLEmptyFields?: boolean, @@ -94,7 +94,7 @@ export type ParseOptions = { * current specification. * * This option is provided to ease adoption of the final SDL specification - * and will be removed in a future major release. + * and will be removed in v16. */ allowLegacySDLImplementsInterfaces?: boolean, diff --git a/src/utilities/index.js b/src/utilities/index.js index 3fa3529342..39f956803c 100644 --- a/src/utilities/index.js +++ b/src/utilities/index.js @@ -10,7 +10,7 @@ // The GraphQL query recommended for a full schema introspection. export { getIntrospectionQuery, - // Deprecated, use getIntrospectionQuery() + // @deprecated, use getIntrospectionQuery() - will be removed in v15 introspectionQuery, } from './introspectionQuery'; export type { @@ -86,10 +86,10 @@ export { TypeInfo } from './TypeInfo'; // Coerces a JavaScript value to a GraphQL type, or produces errors. export { coerceValue } from './coerceValue'; -// @deprecated use coerceValue +// @deprecated use coerceValue - will be removed in v15 export { isValidJSValue } from './isValidJSValue'; -// Determine if AST values adhere to a GraphQL type. +// @deprecated use validation - will be removed in v15 export { isValidLiteralValue } from './isValidLiteralValue'; // Concatenates multiple AST together. diff --git a/src/utilities/introspectionQuery.js b/src/utilities/introspectionQuery.js index 9c67dbd0e4..b6ebe58485 100644 --- a/src/utilities/introspectionQuery.js +++ b/src/utilities/introspectionQuery.js @@ -112,6 +112,11 @@ export function getIntrospectionQuery(options?: IntrospectionOptions): string { `; } +/** + * Deprecated, call getIntrospectionQuery directly. + * + * This function will be removed in v15 + */ export const introspectionQuery = getIntrospectionQuery(); export type IntrospectionQuery = {| diff --git a/src/utilities/isValidJSValue.js b/src/utilities/isValidJSValue.js index c68eeb056f..815476be8a 100644 --- a/src/utilities/isValidJSValue.js +++ b/src/utilities/isValidJSValue.js @@ -12,6 +12,8 @@ import type { GraphQLInputType } from '../type/definition'; /** * Deprecated. Use coerceValue() directly for richer information. + * + * This function will be removed in v15 */ export function isValidJSValue( value: mixed, diff --git a/src/utilities/isValidLiteralValue.js b/src/utilities/isValidLiteralValue.js index 719a2c24aa..2ecb60f9d9 100644 --- a/src/utilities/isValidLiteralValue.js +++ b/src/utilities/isValidLiteralValue.js @@ -21,6 +21,8 @@ import ValidationContext from '../validation/ValidationContext'; * Utility which determines if a value literal node is valid for an input type. * * Deprecated. Rely on validation for documents containing literal values. + * + * This function will be removed in v15 */ export function isValidLiteralValue( type: GraphQLInputType,