@graphql-tools/executor 2.0.0-alpha-20240811040435-82be0a615fbdc82383ed8d2a17532448630c1660 → 2.0.0-alpha-20240811043905-9b9bd6ed6a4c79bbbf9e37d6731e4aade367b292

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.
@@ -249,17 +249,13 @@ class IncrementalGraph {
249
249
  }
250
250
  }
251
251
  }
252
- *_yieldCurrentCompletedIncrementalData(first) {
253
- yield first;
254
- yield* this.currentCompletedBatch();
255
- }
256
252
  _enqueue(completed) {
253
+ this._completedQueue.push(completed);
257
254
  const next = this._nextQueue.shift();
258
- if (next !== undefined) {
259
- next(this._yieldCurrentCompletedIncrementalData(completed));
255
+ if (next === undefined) {
260
256
  return;
261
257
  }
262
- this._completedQueue.push(completed);
258
+ next(this.currentCompletedBatch());
263
259
  }
264
260
  }
265
261
  exports.IncrementalGraph = IncrementalGraph;
@@ -246,16 +246,12 @@ export class IncrementalGraph {
246
246
  }
247
247
  }
248
248
  }
249
- *_yieldCurrentCompletedIncrementalData(first) {
250
- yield first;
251
- yield* this.currentCompletedBatch();
252
- }
253
249
  _enqueue(completed) {
250
+ this._completedQueue.push(completed);
254
251
  const next = this._nextQueue.shift();
255
- if (next !== undefined) {
256
- next(this._yieldCurrentCompletedIncrementalData(completed));
252
+ if (next === undefined) {
257
253
  return;
258
254
  }
259
- this._completedQueue.push(completed);
255
+ next(this.currentCompletedBatch());
260
256
  }
261
257
  }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphql-tools/executor",
3
- "version": "2.0.0-alpha-20240811040435-82be0a615fbdc82383ed8d2a17532448630c1660",
3
+ "version": "2.0.0-alpha-20240811043905-9b9bd6ed6a4c79bbbf9e37d6731e4aade367b292",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-tools/utils": "10.4.0-alpha-20240811040435-82be0a615fbdc82383ed8d2a17532448630c1660",
9
+ "@graphql-tools/utils": "10.4.0-alpha-20240811043905-9b9bd6ed6a4c79bbbf9e37d6731e4aade367b292",
10
10
  "@graphql-typed-document-node/core": "3.2.0",
11
11
  "@repeaterjs/repeater": "^3.0.4",
12
12
  "tslib": "^2.4.0",
@@ -32,6 +32,5 @@ export declare class IncrementalGraph {
32
32
  private _addDeferredFragment;
33
33
  private _onExecutionGroup;
34
34
  private _onStreamItems;
35
- private _yieldCurrentCompletedIncrementalData;
36
35
  private _enqueue;
37
36
  }
@@ -32,6 +32,5 @@ export declare class IncrementalGraph {
32
32
  private _addDeferredFragment;
33
33
  private _onExecutionGroup;
34
34
  private _onStreamItems;
35
- private _yieldCurrentCompletedIncrementalData;
36
35
  private _enqueue;
37
36
  }