@graphql-tools/executor-http 3.0.7-alpha-5b67375ca958b3783f916540e762f1b25ba53856 → 3.0.7-alpha-ccdef9928c70349b04adb2e1eb3121bea214d8f7
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/CHANGELOG.md +2 -6
- package/dist/index.cjs +4 -9
- package/dist/index.js +4 -9
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @graphql-tools/executor-http
|
|
2
2
|
|
|
3
|
-
## 3.0.7-alpha-
|
|
3
|
+
## 3.0.7-alpha-ccdef9928c70349b04adb2e1eb3121bea214d8f7
|
|
4
4
|
### Patch Changes
|
|
5
5
|
|
|
6
6
|
|
|
@@ -13,12 +13,8 @@
|
|
|
13
13
|
- [#1691](https://github.com/graphql-hive/gateway/pull/1691) [`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
|
14
14
|
|
|
15
15
|
- Updated dependency [`@graphql-tools/utils@^10.10.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.10.3) (from `^10.10.1`, in `dependencies`)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
- [#1347](https://github.com/graphql-hive/gateway/pull/1347) [`fbb7c72`](https://github.com/graphql-hive/gateway/commit/fbb7c72585ac15b980c7fed5869b98a97a74b3f3) Thanks [@ardatan](https://github.com/ardatan)! - Avoid shared AbortController instance on CloudflareWorkers because it gives `Cannot perform I/O on behalf of a different request.` error.
|
|
19
|
-
This change ensures that the AbortController is only created when not running in a Cloudflare Workers environment.
|
|
20
16
|
- Updated dependencies [[`7ecaf7e`](https://github.com/graphql-hive/gateway/commit/7ecaf7e8f658c4e4c1a91d1e8db3c1a8ceca51cb)]:
|
|
21
|
-
- @graphql-tools/executor-common@1.0.5-alpha-
|
|
17
|
+
- @graphql-tools/executor-common@1.0.5-alpha-ccdef9928c70349b04adb2e1eb3121bea214d8f7
|
|
22
18
|
|
|
23
19
|
## 3.0.6
|
|
24
20
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -543,10 +543,8 @@ function buildHTTPExecutor(options) {
|
|
|
543
543
|
const printFn = options?.print ?? executorCommon.defaultPrintFn;
|
|
544
544
|
let disposeCtrl;
|
|
545
545
|
const baseExecutor = (request, excludeQuery) => {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
}
|
|
549
|
-
if (disposeCtrl?.signal.aborted) {
|
|
546
|
+
disposeCtrl ||= new AbortController();
|
|
547
|
+
if (disposeCtrl.signal.aborted) {
|
|
550
548
|
return createResultForAbort(disposeCtrl.signal.reason);
|
|
551
549
|
}
|
|
552
550
|
const fetchFn = request.extensions?.fetch ?? options?.fetch ?? fetch.fetch;
|
|
@@ -600,10 +598,7 @@ function buildHTTPExecutor(options) {
|
|
|
600
598
|
Object.assign(headers, headersFromExtensions);
|
|
601
599
|
request.extensions = restExtensions;
|
|
602
600
|
}
|
|
603
|
-
const signals = [];
|
|
604
|
-
if (disposeCtrl?.signal) {
|
|
605
|
-
signals.push(disposeCtrl.signal);
|
|
606
|
-
}
|
|
601
|
+
const signals = [disposeCtrl.signal];
|
|
607
602
|
const signalFromRequest = request.signal || request.info?.signal;
|
|
608
603
|
if (signalFromRequest) {
|
|
609
604
|
if (signalFromRequest.aborted) {
|
|
@@ -617,7 +612,7 @@ function buildHTTPExecutor(options) {
|
|
|
617
612
|
if (subscriptionCtrl) {
|
|
618
613
|
signals.push(subscriptionCtrl.signal);
|
|
619
614
|
}
|
|
620
|
-
const signal$1 =
|
|
615
|
+
const signal$1 = signal.abortSignalAny(signals);
|
|
621
616
|
const upstreamErrorExtensions = {
|
|
622
617
|
request: {
|
|
623
618
|
method
|
package/dist/index.js
CHANGED
|
@@ -541,10 +541,8 @@ function buildHTTPExecutor(options) {
|
|
|
541
541
|
const printFn = options?.print ?? defaultPrintFn;
|
|
542
542
|
let disposeCtrl;
|
|
543
543
|
const baseExecutor = (request, excludeQuery) => {
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
547
|
-
if (disposeCtrl?.signal.aborted) {
|
|
544
|
+
disposeCtrl ||= new AbortController();
|
|
545
|
+
if (disposeCtrl.signal.aborted) {
|
|
548
546
|
return createResultForAbort(disposeCtrl.signal.reason);
|
|
549
547
|
}
|
|
550
548
|
const fetchFn = request.extensions?.fetch ?? options?.fetch ?? fetch;
|
|
@@ -598,10 +596,7 @@ function buildHTTPExecutor(options) {
|
|
|
598
596
|
Object.assign(headers, headersFromExtensions);
|
|
599
597
|
request.extensions = restExtensions;
|
|
600
598
|
}
|
|
601
|
-
const signals = [];
|
|
602
|
-
if (disposeCtrl?.signal) {
|
|
603
|
-
signals.push(disposeCtrl.signal);
|
|
604
|
-
}
|
|
599
|
+
const signals = [disposeCtrl.signal];
|
|
605
600
|
const signalFromRequest = request.signal || request.info?.signal;
|
|
606
601
|
if (signalFromRequest) {
|
|
607
602
|
if (signalFromRequest.aborted) {
|
|
@@ -615,7 +610,7 @@ function buildHTTPExecutor(options) {
|
|
|
615
610
|
if (subscriptionCtrl) {
|
|
616
611
|
signals.push(subscriptionCtrl.signal);
|
|
617
612
|
}
|
|
618
|
-
const signal =
|
|
613
|
+
const signal = abortSignalAny(signals);
|
|
619
614
|
const upstreamErrorExtensions = {
|
|
620
615
|
request: {
|
|
621
616
|
method
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/executor-http",
|
|
3
|
-
"version": "3.0.7-alpha-
|
|
3
|
+
"version": "3.0.7-alpha-ccdef9928c70349b04adb2e1eb3121bea214d8f7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
6
6
|
"repository": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@graphql-hive/signal": "^2.0.0",
|
|
43
|
-
"@graphql-tools/executor-common": "1.0.5-alpha-
|
|
43
|
+
"@graphql-tools/executor-common": "1.0.5-alpha-ccdef9928c70349b04adb2e1eb3121bea214d8f7",
|
|
44
44
|
"@graphql-tools/utils": "^10.10.3",
|
|
45
45
|
"@repeaterjs/repeater": "^3.0.4",
|
|
46
46
|
"@whatwg-node/disposablestack": "^0.0.6",
|