@graphql-tools/executor 4.1.0 → 4.1.1-alpha-20261020145141-5d888f11bdbd1a5cf81f867c98be331ea5dda527

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.0",
3
+ "version": "4.1.1-alpha-20261020145141-5d888f11bdbd1a5cf81f867c98be331ea5dda527",
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": "^13.1.0",
9
+ "@graphql-tools/utils": "13.1.1-alpha-20261020145141-5d888f11bdbd1a5cf81f867c98be331ea5dda527",
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",
@@ -148,8 +148,8 @@ export interface ExecutionArgs<TData = any, TVariables = any, TContext = any> {
148
148
  /**
149
149
  * Incremental delivery payload format.
150
150
  *
151
- * `'v0.1'` (default) matches `multipart/mixed;deferSpec=20220824`.
152
- * `'v0.2'` matches `multipart/mixed;incrementalSpec=v0.2`.
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
  }
@@ -148,8 +148,8 @@ export interface ExecutionArgs<TData = any, TVariables = any, TContext = any> {
148
148
  /**
149
149
  * Incremental delivery payload format.
150
150
  *
151
- * `'v0.1'` (default) matches `multipart/mixed;deferSpec=20220824`.
152
- * `'v0.2'` matches `multipart/mixed;incrementalSpec=v0.2`.
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,8 @@
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';
5
+ export type { IncrementalSpec } from '@graphql-tools/utils';
14
6
  export interface PendingResult {
15
7
  id: string;
16
8
  path: ReadonlyArray<string | number>;
@@ -1,16 +1,8 @@
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';
5
+ export type { IncrementalSpec } from '@graphql-tools/utils';
14
6
  export interface PendingResult {
15
7
  id: string;
16
8
  path: ReadonlyArray<string | number>;