@graphql-tools/executor 4.1.0 → 4.1.1-alpha-20261020145849-20902ff7ec3c65eafe707be10e42b5346dd166ea
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/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/executor",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1-alpha-20261020145849-20902ff7ec3c65eafe707be10e42b5346dd166ea",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^16.0.0 || ^17.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@graphql-tools/utils": "
|
|
9
|
+
"@graphql-tools/utils": "13.1.1-alpha-20261020145849-20902ff7ec3c65eafe707be10e42b5346dd166ea",
|
|
10
10
|
"@graphql-typed-document-node/core": "^3.2.0",
|
|
11
11
|
"@repeaterjs/repeater": "^3.1.0",
|
|
12
12
|
"@whatwg-node/disposablestack": "^0.1.0",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLError, GraphQLField, GraphQLFieldResolver, GraphQLFormattedError, GraphQLObjectType, GraphQLSchema, GraphQLTypeResolver, OperationDefinitionNode } from 'graphql';
|
|
2
|
-
import { GraphQLResolveInfo, Maybe, Path, VariableValues } from '@graphql-tools/utils';
|
|
2
|
+
import { GraphQLResolveInfo, Maybe, Path, VariableValues, type IncrementalSpec } from '@graphql-tools/utils';
|
|
3
3
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
4
4
|
import { type MaybePromise } from '@whatwg-node/promise-helpers';
|
|
5
|
-
import { type AsyncPayloadRecord, type CompletedResult, type IncrementalPublisherState, type
|
|
6
|
-
export type { CompletedResult,
|
|
5
|
+
import { type AsyncPayloadRecord, type CompletedResult, type IncrementalPublisherState, type PendingResult } from './incremental.cjs';
|
|
6
|
+
export type { CompletedResult, PendingResult } from './incremental.cjs';
|
|
7
7
|
export interface SingularExecutionResult<TData = any, TExtensions = any> {
|
|
8
8
|
errors?: ReadonlyArray<GraphQLError>;
|
|
9
9
|
data?: TData | null;
|
|
@@ -148,8 +148,8 @@ export interface ExecutionArgs<TData = any, TVariables = any, TContext = any> {
|
|
|
148
148
|
/**
|
|
149
149
|
* Incremental delivery payload format.
|
|
150
150
|
*
|
|
151
|
-
* `
|
|
152
|
-
* `'v0.
|
|
151
|
+
* HTTP mapping lives in `INCREMENTAL_DELIVERY_SPECS` from `@graphql-tools/utils`.
|
|
152
|
+
* `'v0.1'` is the default.
|
|
153
153
|
*/
|
|
154
154
|
incrementalSpec?: IncrementalSpec;
|
|
155
155
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLError, GraphQLField, GraphQLFieldResolver, GraphQLFormattedError, GraphQLObjectType, GraphQLSchema, GraphQLTypeResolver, OperationDefinitionNode } from 'graphql';
|
|
2
|
-
import { GraphQLResolveInfo, Maybe, Path, VariableValues } from '@graphql-tools/utils';
|
|
2
|
+
import { GraphQLResolveInfo, Maybe, Path, VariableValues, type IncrementalSpec } from '@graphql-tools/utils';
|
|
3
3
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
4
4
|
import { type MaybePromise } from '@whatwg-node/promise-helpers';
|
|
5
|
-
import { type AsyncPayloadRecord, type CompletedResult, type IncrementalPublisherState, type
|
|
6
|
-
export type { CompletedResult,
|
|
5
|
+
import { type AsyncPayloadRecord, type CompletedResult, type IncrementalPublisherState, type PendingResult } from './incremental.js';
|
|
6
|
+
export type { CompletedResult, PendingResult } from './incremental.js';
|
|
7
7
|
export interface SingularExecutionResult<TData = any, TExtensions = any> {
|
|
8
8
|
errors?: ReadonlyArray<GraphQLError>;
|
|
9
9
|
data?: TData | null;
|
|
@@ -148,8 +148,8 @@ export interface ExecutionArgs<TData = any, TVariables = any, TContext = any> {
|
|
|
148
148
|
/**
|
|
149
149
|
* Incremental delivery payload format.
|
|
150
150
|
*
|
|
151
|
-
* `
|
|
152
|
-
* `'v0.
|
|
151
|
+
* HTTP mapping lives in `INCREMENTAL_DELIVERY_SPECS` from `@graphql-tools/utils`.
|
|
152
|
+
* `'v0.1'` is the default.
|
|
153
153
|
*/
|
|
154
154
|
incrementalSpec?: IncrementalSpec;
|
|
155
155
|
}
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { GraphQLError } from 'graphql';
|
|
2
|
-
import { Path } from '@graphql-tools/utils';
|
|
2
|
+
import { Path, type IncrementalSpec } from '@graphql-tools/utils';
|
|
3
3
|
import { type MaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
4
|
import type { SubsequentIncrementalExecutionResult } from './execute.cjs';
|
|
5
|
-
/**
|
|
6
|
-
* Incremental delivery payload format.
|
|
7
|
-
*
|
|
8
|
-
* - `'v0.1'` — Apollo incremental v0.1 / `multipart/mixed;deferSpec=20220824`
|
|
9
|
-
* (`path` + optional `label` on each incremental payload).
|
|
10
|
-
* - `'v0.2'` — Apollo incremental v0.2 / `multipart/mixed;incrementalSpec=v0.2`
|
|
11
|
-
* (`pending` + `id` + optional `subPath` + `completed`).
|
|
12
|
-
*/
|
|
13
|
-
export type IncrementalSpec = 'v0.1' | 'v0.2';
|
|
14
5
|
export interface PendingResult {
|
|
15
6
|
id: string;
|
|
16
7
|
path: ReadonlyArray<string | number>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { GraphQLError } from 'graphql';
|
|
2
|
-
import { Path } from '@graphql-tools/utils';
|
|
2
|
+
import { Path, type IncrementalSpec } from '@graphql-tools/utils';
|
|
3
3
|
import { type MaybePromise } from '@whatwg-node/promise-helpers';
|
|
4
4
|
import type { SubsequentIncrementalExecutionResult } from './execute.js';
|
|
5
|
-
/**
|
|
6
|
-
* Incremental delivery payload format.
|
|
7
|
-
*
|
|
8
|
-
* - `'v0.1'` — Apollo incremental v0.1 / `multipart/mixed;deferSpec=20220824`
|
|
9
|
-
* (`path` + optional `label` on each incremental payload).
|
|
10
|
-
* - `'v0.2'` — Apollo incremental v0.2 / `multipart/mixed;incrementalSpec=v0.2`
|
|
11
|
-
* (`pending` + `id` + optional `subPath` + `completed`).
|
|
12
|
-
*/
|
|
13
|
-
export type IncrementalSpec = 'v0.1' | 'v0.2';
|
|
14
5
|
export interface PendingResult {
|
|
15
6
|
id: string;
|
|
16
7
|
path: ReadonlyArray<string | number>;
|