Skip to content

Commit 926e4d8

Browse files
IvanGoncharovleebyron
authored andcommitted
Mark more stuff as deprecated (#1396)
1 parent 4f92f55 commit 926e4d8

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ export {
330330
buildASTSchema,
331331
// Build a GraphQLSchema from a GraphQL schema language document.
332332
buildSchema,
333-
// Get the description from a schema AST node.
333+
// @deprecated: Get the description from a schema AST node and supports legacy
334+
// syntax for specifying descriptions - will be removed in v16
334335
getDescription,
335336
// Extends an existing GraphQLSchema from a parsed GraphQL Schema
336337
// language AST.

src/type/schema.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ export type GraphQLSchemaValidationOptions = {|
252252
* in this list valid, even if they do not adhere to the specification's
253253
* schema validation rules.
254254
*
255-
* This option is provided to ease adoption and may be removed in a future
256-
* major release.
255+
* This option is provided to ease adoption and will be removed in v15.
257256
*/
258257
allowedLegacyNames?: ?$ReadOnlyArray<string>,
259258
|};

src/utilities/buildASTSchema.js

+2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ export type BuildSchemaOptions = {
8585
* Descriptions are defined as preceding string literals, however an older
8686
* experimental version of the SDL supported preceding comments as
8787
* descriptions. Set to true to enable this deprecated behavior.
88+
* This option is provided to ease adoption and will be removed in v16.
8889
*
8990
* Default: false
9091
*/
@@ -471,6 +472,7 @@ function getDeprecationReason(
471472

472473
/**
473474
* Given an ast node, returns its string description.
475+
* @deprecated: provided to ease adoption and will be removed in v16.
474476
*
475477
* Accepts options as a second argument:
476478
*

src/utilities/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ export { introspectionFromSchema } from './introspectionFromSchema';
5151
export { buildClientSchema } from './buildClientSchema';
5252

5353
// Build a GraphQLSchema from GraphQL Schema language.
54-
export { buildASTSchema, buildSchema, getDescription } from './buildASTSchema';
54+
export {
55+
buildASTSchema,
56+
buildSchema,
57+
// @deprecated: Get the description from a schema AST node and supports legacy
58+
// syntax for specifying descriptions - will be removed in v16
59+
getDescription,
60+
} from './buildASTSchema';
5561
export type { BuildSchemaOptions } from './buildASTSchema';
5662

5763
// Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.

0 commit comments

Comments
 (0)