graphql 15.7.2 → 15.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -138,6 +138,8 @@ export {
138
138
  GraphQLNullableType,
139
139
  GraphQLNamedType,
140
140
  Thunk,
141
+ GraphQLNamedInputType,
142
+ GraphQLNamedOutputType,
141
143
  GraphQLSchemaConfig,
142
144
  GraphQLSchemaExtensions,
143
145
  GraphQLDirectiveConfig,
package/index.js.flow CHANGED
@@ -138,6 +138,8 @@ export type {
138
138
  GraphQLNullableType,
139
139
  GraphQLNamedType,
140
140
  Thunk,
141
+ GraphQLNamedInputType,
142
+ GraphQLNamedOutputType,
141
143
  GraphQLSchemaConfig,
142
144
  GraphQLDirectiveConfig,
143
145
  GraphQLArgument,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql",
3
- "version": "15.7.2",
3
+ "version": "15.8.0",
4
4
  "description": "A Query Language and Runtime which can target any service.",
5
5
  "license": "MIT",
6
6
  "main": "index",
@@ -21,5 +21,8 @@
21
21
  ],
22
22
  "engines": {
23
23
  "node": ">= 10.x"
24
+ },
25
+ "publishConfig": {
26
+ "tag": "15.x.x"
24
27
  }
25
28
  }
@@ -254,19 +254,27 @@ export function getNullableType<T extends GraphQLNullableType>(
254
254
  /**
255
255
  * These named types do not include modifiers like List or NonNull.
256
256
  */
257
- export type GraphQLNamedType =
257
+ export type GraphQLNamedType = GraphQLNamedInputType | GraphQLNamedOutputType;
258
+
259
+ export type GraphQLNamedInputType =
260
+ | GraphQLScalarType
261
+ | GraphQLEnumType
262
+ | GraphQLInputObjectType;
263
+
264
+ export type GraphQLNamedOutputType =
258
265
  | GraphQLScalarType
259
266
  | GraphQLObjectType
260
267
  | GraphQLInterfaceType
261
268
  | GraphQLUnionType
262
- | GraphQLEnumType
263
- | GraphQLInputObjectType;
269
+ | GraphQLEnumType;
264
270
 
265
271
  export function isNamedType(type: any): type is GraphQLNamedType;
266
272
 
267
273
  export function assertNamedType(type: any): GraphQLNamedType;
268
274
 
269
275
  export function getNamedType(type: undefined): undefined;
276
+ export function getNamedType(type: GraphQLInputType): GraphQLNamedInputType;
277
+ export function getNamedType(type: GraphQLOutputType): GraphQLNamedOutputType;
270
278
  export function getNamedType(type: GraphQLType): GraphQLNamedType;
271
279
 
272
280
  /**
@@ -494,13 +494,19 @@ export function getNullableType(type) {
494
494
  /**
495
495
  * These named types do not include modifiers like List or NonNull.
496
496
  */
497
- export type GraphQLNamedType =
497
+ export type GraphQLNamedType = GraphQLNamedInputType | GraphQLNamedOutputType;
498
+
499
+ export type GraphQLNamedInputType =
500
+ | GraphQLScalarType
501
+ | GraphQLEnumType
502
+ | GraphQLInputObjectType;
503
+
504
+ export type GraphQLNamedOutputType =
498
505
  | GraphQLScalarType
499
506
  | GraphQLObjectType
500
507
  | GraphQLInterfaceType
501
508
  | GraphQLUnionType
502
- | GraphQLEnumType
503
- | GraphQLInputObjectType;
509
+ | GraphQLEnumType;
504
510
 
505
511
  export function isNamedType(type: mixed): boolean %checks {
506
512
  return (
@@ -522,6 +528,8 @@ export function assertNamedType(type: mixed): GraphQLNamedType {
522
528
 
523
529
  /* eslint-disable no-redeclare */
524
530
  declare function getNamedType(type: void | null): void;
531
+ declare function getNamedType(type: GraphQLInputType): GraphQLNamedInputType;
532
+ declare function getNamedType(type: GraphQLOutputType): GraphQLNamedOutputType;
525
533
  declare function getNamedType(type: GraphQLType): GraphQLNamedType;
526
534
  export function getNamedType(type) {
527
535
  /* eslint-enable no-redeclare */
package/type/index.d.ts CHANGED
@@ -74,6 +74,8 @@ export {
74
74
  GraphQLNullableType,
75
75
  GraphQLNamedType,
76
76
  Thunk,
77
+ GraphQLNamedInputType,
78
+ GraphQLNamedOutputType,
77
79
  GraphQLArgument,
78
80
  GraphQLArgumentConfig,
79
81
  GraphQLArgumentExtensions,
@@ -130,6 +130,8 @@ export type {
130
130
  GraphQLNullableType,
131
131
  GraphQLNamedType,
132
132
  Thunk,
133
+ GraphQLNamedInputType,
134
+ GraphQLNamedOutputType,
133
135
  GraphQLArgument,
134
136
  GraphQLArgumentConfig,
135
137
  GraphQLEnumTypeConfig,
package/version.js CHANGED
@@ -13,7 +13,7 @@ exports.versionInfo = exports.version = void 0;
13
13
  /**
14
14
  * A string containing the version of the GraphQL.js library
15
15
  */
16
- var version = '15.7.2';
16
+ var version = '15.8.0';
17
17
  /**
18
18
  * An object containing the components of the GraphQL.js version string
19
19
  */
@@ -21,8 +21,8 @@ var version = '15.7.2';
21
21
  exports.version = version;
22
22
  var versionInfo = Object.freeze({
23
23
  major: 15,
24
- minor: 7,
25
- patch: 2,
24
+ minor: 8,
25
+ patch: 0,
26
26
  preReleaseTag: null
27
27
  });
28
28
  exports.versionInfo = versionInfo;
package/version.js.flow CHANGED
@@ -7,14 +7,14 @@
7
7
  /**
8
8
  * A string containing the version of the GraphQL.js library
9
9
  */
10
- export const version = '15.7.2';
10
+ export const version = '15.8.0';
11
11
 
12
12
  /**
13
13
  * An object containing the components of the GraphQL.js version string
14
14
  */
15
15
  export const versionInfo = Object.freeze({
16
16
  major: 15,
17
- minor: 7,
18
- patch: 2,
17
+ minor: 8,
18
+ patch: 0,
19
19
  preReleaseTag: null,
20
20
  });
package/version.mjs CHANGED
@@ -6,14 +6,14 @@
6
6
  /**
7
7
  * A string containing the version of the GraphQL.js library
8
8
  */
9
- export var version = '15.7.2';
9
+ export var version = '15.8.0';
10
10
  /**
11
11
  * An object containing the components of the GraphQL.js version string
12
12
  */
13
13
 
14
14
  export var versionInfo = Object.freeze({
15
15
  major: 15,
16
- minor: 7,
17
- patch: 2,
16
+ minor: 8,
17
+ patch: 0,
18
18
  preReleaseTag: null
19
19
  });