graphql 16.1.0 → 16.2.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/execution/collectFields.d.ts +6 -6
- package/execution/collectFields.js +6 -6
- package/execution/collectFields.mjs +6 -6
- package/index.d.ts +2 -0
- package/index.js +12 -0
- package/index.mjs +2 -0
- package/package.json +1 -1
- package/type/definition.d.ts +4 -0
- package/type/definition.js +2 -0
- package/type/definition.mjs +2 -3
- package/type/index.d.ts +2 -0
- package/type/index.js +12 -0
- package/type/index.mjs +2 -0
- package/version.js +2 -2
- package/version.mjs +2 -2
|
@@ -7,11 +7,11 @@ import type {
|
|
|
7
7
|
import type { GraphQLSchema } from '../type/schema';
|
|
8
8
|
import type { GraphQLObjectType } from '../type/definition';
|
|
9
9
|
/**
|
|
10
|
-
* Given a selectionSet,
|
|
10
|
+
* Given a selectionSet, collects all of the fields and returns them.
|
|
11
11
|
*
|
|
12
|
-
* CollectFields requires the "runtime type" of an object. For a field
|
|
12
|
+
* CollectFields requires the "runtime type" of an object. For a field that
|
|
13
13
|
* returns an Interface or Union type, the "runtime type" will be the actual
|
|
14
|
-
*
|
|
14
|
+
* object type returned by that field.
|
|
15
15
|
*
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
@@ -26,11 +26,11 @@ export declare function collectFields(
|
|
|
26
26
|
): Map<string, ReadonlyArray<FieldNode>>;
|
|
27
27
|
/**
|
|
28
28
|
* Given an array of field nodes, collects all of the subfields of the passed
|
|
29
|
-
* in fields, and returns
|
|
29
|
+
* in fields, and returns them at the end.
|
|
30
30
|
*
|
|
31
|
-
*
|
|
31
|
+
* CollectSubFields requires the "return type" of an object. For a field that
|
|
32
32
|
* returns an Interface or Union type, the "return type" will be the actual
|
|
33
|
-
*
|
|
33
|
+
* object type returned by that field.
|
|
34
34
|
*
|
|
35
35
|
* @internal
|
|
36
36
|
*/
|
|
@@ -17,11 +17,11 @@ var _typeFromAST = require('../utilities/typeFromAST.js');
|
|
|
17
17
|
var _values = require('./values.js');
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Given a selectionSet,
|
|
20
|
+
* Given a selectionSet, collects all of the fields and returns them.
|
|
21
21
|
*
|
|
22
|
-
* CollectFields requires the "runtime type" of an object. For a field
|
|
22
|
+
* CollectFields requires the "runtime type" of an object. For a field that
|
|
23
23
|
* returns an Interface or Union type, the "runtime type" will be the actual
|
|
24
|
-
*
|
|
24
|
+
* object type returned by that field.
|
|
25
25
|
*
|
|
26
26
|
* @internal
|
|
27
27
|
*/
|
|
@@ -46,11 +46,11 @@ function collectFields(
|
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
48
|
* Given an array of field nodes, collects all of the subfields of the passed
|
|
49
|
-
* in fields, and returns
|
|
49
|
+
* in fields, and returns them at the end.
|
|
50
50
|
*
|
|
51
|
-
*
|
|
51
|
+
* CollectSubFields requires the "return type" of an object. For a field that
|
|
52
52
|
* returns an Interface or Union type, the "return type" will be the actual
|
|
53
|
-
*
|
|
53
|
+
* object type returned by that field.
|
|
54
54
|
*
|
|
55
55
|
* @internal
|
|
56
56
|
*/
|
|
@@ -7,11 +7,11 @@ import { isAbstractType } from '../type/definition.mjs';
|
|
|
7
7
|
import { typeFromAST } from '../utilities/typeFromAST.mjs';
|
|
8
8
|
import { getDirectiveValues } from './values.mjs';
|
|
9
9
|
/**
|
|
10
|
-
* Given a selectionSet,
|
|
10
|
+
* Given a selectionSet, collects all of the fields and returns them.
|
|
11
11
|
*
|
|
12
|
-
* CollectFields requires the "runtime type" of an object. For a field
|
|
12
|
+
* CollectFields requires the "runtime type" of an object. For a field that
|
|
13
13
|
* returns an Interface or Union type, the "runtime type" will be the actual
|
|
14
|
-
*
|
|
14
|
+
* object type returned by that field.
|
|
15
15
|
*
|
|
16
16
|
* @internal
|
|
17
17
|
*/
|
|
@@ -37,11 +37,11 @@ export function collectFields(
|
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Given an array of field nodes, collects all of the subfields of the passed
|
|
40
|
-
* in fields, and returns
|
|
40
|
+
* in fields, and returns them at the end.
|
|
41
41
|
*
|
|
42
|
-
*
|
|
42
|
+
* CollectSubFields requires the "return type" of an object. For a field that
|
|
43
43
|
* returns an Interface or Union type, the "return type" will be the actual
|
|
44
|
-
*
|
|
44
|
+
* object type returned by that field.
|
|
45
45
|
*
|
|
46
46
|
* @internal
|
|
47
47
|
*/
|
package/index.d.ts
CHANGED
|
@@ -30,6 +30,8 @@ export type { GraphQLArgs } from './graphql';
|
|
|
30
30
|
export { graphql, graphqlSync } from './graphql';
|
|
31
31
|
/** Create and operate on GraphQL type definitions and schema. */
|
|
32
32
|
export {
|
|
33
|
+
resolveObjMapThunk,
|
|
34
|
+
resolveReadonlyArrayThunk,
|
|
33
35
|
/** Definitions */
|
|
34
36
|
GraphQLSchema,
|
|
35
37
|
GraphQLDirective,
|
package/index.js
CHANGED
|
@@ -1119,6 +1119,18 @@ Object.defineProperty(exports, 'printType', {
|
|
|
1119
1119
|
return _index6.printType;
|
|
1120
1120
|
},
|
|
1121
1121
|
});
|
|
1122
|
+
Object.defineProperty(exports, 'resolveObjMapThunk', {
|
|
1123
|
+
enumerable: true,
|
|
1124
|
+
get: function () {
|
|
1125
|
+
return _index.resolveObjMapThunk;
|
|
1126
|
+
},
|
|
1127
|
+
});
|
|
1128
|
+
Object.defineProperty(exports, 'resolveReadonlyArrayThunk', {
|
|
1129
|
+
enumerable: true,
|
|
1130
|
+
get: function () {
|
|
1131
|
+
return _index.resolveReadonlyArrayThunk;
|
|
1132
|
+
},
|
|
1133
|
+
});
|
|
1122
1134
|
Object.defineProperty(exports, 'responsePathAsArray', {
|
|
1123
1135
|
enumerable: true,
|
|
1124
1136
|
get: function () {
|
package/index.mjs
CHANGED
package/package.json
CHANGED
package/type/definition.d.ts
CHANGED
|
@@ -279,6 +279,10 @@ export declare type ThunkReadonlyArray<T> =
|
|
|
279
279
|
| (() => ReadonlyArray<T>)
|
|
280
280
|
| ReadonlyArray<T>;
|
|
281
281
|
export declare type ThunkObjMap<T> = (() => ObjMap<T>) | ObjMap<T>;
|
|
282
|
+
export declare function resolveReadonlyArrayThunk<T>(
|
|
283
|
+
thunk: ThunkReadonlyArray<T>,
|
|
284
|
+
): ReadonlyArray<T>;
|
|
285
|
+
export declare function resolveObjMapThunk<T>(thunk: ThunkObjMap<T>): ObjMap<T>;
|
|
282
286
|
/**
|
|
283
287
|
* Custom extensions
|
|
284
288
|
*
|
package/type/definition.js
CHANGED
|
@@ -52,6 +52,8 @@ exports.isScalarType = isScalarType;
|
|
|
52
52
|
exports.isType = isType;
|
|
53
53
|
exports.isUnionType = isUnionType;
|
|
54
54
|
exports.isWrappingType = isWrappingType;
|
|
55
|
+
exports.resolveObjMapThunk = resolveObjMapThunk;
|
|
56
|
+
exports.resolveReadonlyArrayThunk = resolveReadonlyArrayThunk;
|
|
55
57
|
|
|
56
58
|
var _inspect = require('../jsutils/inspect.js');
|
|
57
59
|
|
package/type/definition.mjs
CHANGED
|
@@ -363,11 +363,10 @@ export function getNamedType(type) {
|
|
|
363
363
|
* otherwise immutable type definitions.
|
|
364
364
|
*/
|
|
365
365
|
|
|
366
|
-
function resolveReadonlyArrayThunk(thunk) {
|
|
366
|
+
export function resolveReadonlyArrayThunk(thunk) {
|
|
367
367
|
return typeof thunk === 'function' ? thunk() : thunk;
|
|
368
368
|
}
|
|
369
|
-
|
|
370
|
-
function resolveObjMapThunk(thunk) {
|
|
369
|
+
export function resolveObjMapThunk(thunk) {
|
|
371
370
|
return typeof thunk === 'function' ? thunk() : thunk;
|
|
372
371
|
}
|
|
373
372
|
/**
|
package/type/index.d.ts
CHANGED
package/type/index.js
CHANGED
|
@@ -501,6 +501,18 @@ Object.defineProperty(exports, 'isWrappingType', {
|
|
|
501
501
|
return _definition.isWrappingType;
|
|
502
502
|
},
|
|
503
503
|
});
|
|
504
|
+
Object.defineProperty(exports, 'resolveObjMapThunk', {
|
|
505
|
+
enumerable: true,
|
|
506
|
+
get: function () {
|
|
507
|
+
return _definition.resolveObjMapThunk;
|
|
508
|
+
},
|
|
509
|
+
});
|
|
510
|
+
Object.defineProperty(exports, 'resolveReadonlyArrayThunk', {
|
|
511
|
+
enumerable: true,
|
|
512
|
+
get: function () {
|
|
513
|
+
return _definition.resolveReadonlyArrayThunk;
|
|
514
|
+
},
|
|
515
|
+
});
|
|
504
516
|
Object.defineProperty(exports, 'specifiedDirectives', {
|
|
505
517
|
enumerable: true,
|
|
506
518
|
get: function () {
|
package/type/index.mjs
CHANGED
package/version.js
CHANGED
|
@@ -10,7 +10,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
10
10
|
/**
|
|
11
11
|
* A string containing the version of the GraphQL.js library
|
|
12
12
|
*/
|
|
13
|
-
const version = '16.
|
|
13
|
+
const version = '16.2.0';
|
|
14
14
|
/**
|
|
15
15
|
* An object containing the components of the GraphQL.js version string
|
|
16
16
|
*/
|
|
@@ -18,7 +18,7 @@ const version = '16.1.0';
|
|
|
18
18
|
exports.version = version;
|
|
19
19
|
const versionInfo = Object.freeze({
|
|
20
20
|
major: 16,
|
|
21
|
-
minor:
|
|
21
|
+
minor: 2,
|
|
22
22
|
patch: 0,
|
|
23
23
|
preReleaseTag: null,
|
|
24
24
|
});
|
package/version.mjs
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* A string containing the version of the GraphQL.js library
|
|
6
6
|
*/
|
|
7
|
-
export const version = '16.
|
|
7
|
+
export const version = '16.2.0';
|
|
8
8
|
/**
|
|
9
9
|
* An object containing the components of the GraphQL.js version string
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
export const versionInfo = Object.freeze({
|
|
13
13
|
major: 16,
|
|
14
|
-
minor:
|
|
14
|
+
minor: 2,
|
|
15
15
|
patch: 0,
|
|
16
16
|
preReleaseTag: null,
|
|
17
17
|
});
|