@graphql-mesh/transport-http 1.0.0-alpha-d6054fefc24ca71425e2fd4642f0ee2bdd9d27ba → 1.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7
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 +44 -5
- package/dist/index.cjs +11 -2
- package/dist/index.js +12 -3
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,57 @@
|
|
|
1
1
|
# @graphql-mesh/transport-http
|
|
2
2
|
|
|
3
|
-
## 1.0.0-alpha-
|
|
3
|
+
## 1.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
-
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`
|
|
7
|
+
- [#956](https://github.com/graphql-hive/gateway/pull/956) [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Drop Node 18 support
|
|
8
8
|
|
|
9
9
|
Least supported Node version is now v20.
|
|
10
10
|
|
|
11
11
|
### Patch Changes
|
|
12
12
|
|
|
13
|
-
- Updated dependencies [[`
|
|
14
|
-
- @graphql-mesh/transport-common@1.0.0-alpha-
|
|
15
|
-
- @graphql-tools/executor-http@3.0.0-alpha-
|
|
13
|
+
- Updated dependencies [[`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903), [`dd20c54`](https://github.com/graphql-hive/gateway/commit/dd20c5467cbab5349bb3d07e53d9ff70ca7cf12d), [`8b90a77`](https://github.com/graphql-hive/gateway/commit/8b90a77eec15be1529797af1e9d4ab4cd17b4069), [`f42746b`](https://github.com/graphql-hive/gateway/commit/f42746b1d315b901020f4e0fb6fdee27f2a1e903)]:
|
|
14
|
+
- @graphql-mesh/transport-common@1.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7
|
|
15
|
+
- @graphql-tools/executor-http@3.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7
|
|
16
|
+
|
|
17
|
+
## 0.7.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [#1383](https://github.com/graphql-hive/gateway/pull/1383) [`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
|
22
|
+
- Updated dependency [`@graphql-mesh/types@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
|
23
|
+
- Updated dependency [`@graphql-mesh/utils@^0.104.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.104.7) (from `^0.104.5`, in `dependencies`)
|
|
24
|
+
|
|
25
|
+
- [#1385](https://github.com/graphql-hive/gateway/pull/1385) [`34294ea`](https://github.com/graphql-hive/gateway/commit/34294eaa26d82da0ac7018da081b2dca46bd90f4) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Fix an infinite loop when providing options for subscriptions transport of subgraphs using HTTP transport for both queries/mutations and subscrpitions.
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`a832e7b`](https://github.com/graphql-hive/gateway/commit/a832e7bf9a8f92c48fb9df8ca1bff5a008dcf420)]:
|
|
28
|
+
- @graphql-mesh/transport-common@0.7.38
|
|
29
|
+
|
|
30
|
+
## 0.7.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [#1358](https://github.com/graphql-hive/gateway/pull/1358) [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
|
35
|
+
- Updated dependency [`@graphql-tools/utils@^10.9.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.1) (from `^10.9.0`, in `dependencies`)
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1), [`8e37851`](https://github.com/graphql-hive/gateway/commit/8e3785194d97edbe82c7fce316104b81bb0362f1)]:
|
|
38
|
+
- @graphql-mesh/transport-common@0.7.37
|
|
39
|
+
- @graphql-tools/executor-http@2.1.1
|
|
40
|
+
|
|
41
|
+
## 0.7.0
|
|
42
|
+
|
|
43
|
+
### Minor Changes
|
|
44
|
+
|
|
45
|
+
- [#1017](https://github.com/graphql-hive/gateway/pull/1017) [`b59a266`](https://github.com/graphql-hive/gateway/commit/b59a26628c368272b50380bab57553070e2edf6e) Thanks [@ardatan](https://github.com/ardatan)! - Support dynamic values in transport location. Syntax like `{env.SOME_ENDPOINT}` will interpolated and dynamically filled.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#1344](https://github.com/graphql-hive/gateway/pull/1344) [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a) Thanks [@dependabot](https://github.com/apps/dependabot)! - dependencies updates:
|
|
50
|
+
- Updated dependency [`@graphql-tools/utils@^10.9.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.9.0) (from `^10.8.1`, in `dependencies`)
|
|
51
|
+
|
|
52
|
+
- Updated dependencies [[`6215001`](https://github.com/graphql-hive/gateway/commit/6215001b1d650ad865331661532bcc4f7bad6b40), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`7287ffa`](https://github.com/graphql-hive/gateway/commit/7287ffa2ac0f08801c3058e96a7c4eba7102c1d0), [`a71236d`](https://github.com/graphql-hive/gateway/commit/a71236d6ba356741bc85fe27757bea45576dcf1a), [`b59a266`](https://github.com/graphql-hive/gateway/commit/b59a26628c368272b50380bab57553070e2edf6e)]:
|
|
53
|
+
- @graphql-mesh/transport-common@0.7.36
|
|
54
|
+
- @graphql-tools/executor-http@2.1.0
|
|
16
55
|
|
|
17
56
|
## 0.6.43
|
|
18
57
|
|
package/dist/index.cjs
CHANGED
|
@@ -16,8 +16,14 @@ var index = {
|
|
|
16
16
|
headersInConfig = Object.fromEntries(payload.transportEntry.headers);
|
|
17
17
|
}
|
|
18
18
|
const headersFactory = headersInConfig ? stringInterpolation.getInterpolatedHeadersFactory(headersInConfig) : void 0;
|
|
19
|
+
const endpointFactory = payload.transportEntry.location ? stringInterpolation.getInterpolatedStringFactory(payload.transportEntry.location) : void 0;
|
|
19
20
|
const httpExecutor = executorHttp.buildHTTPExecutor({
|
|
20
|
-
endpoint:
|
|
21
|
+
endpoint: endpointFactory ? (execReq) => endpointFactory({
|
|
22
|
+
env: crossHelpers.process.env,
|
|
23
|
+
root: execReq?.rootValue,
|
|
24
|
+
context: execReq?.context,
|
|
25
|
+
info: execReq?.info
|
|
26
|
+
}) : payload.transportEntry.location,
|
|
21
27
|
headers: headersFactory ? (execReq) => headersFactory({
|
|
22
28
|
env: crossHelpers.process.env,
|
|
23
29
|
root: execReq?.rootValue,
|
|
@@ -48,7 +54,10 @@ var index = {
|
|
|
48
54
|
location: subscriptionsLocation,
|
|
49
55
|
options: {
|
|
50
56
|
...payload.transportEntry.options,
|
|
51
|
-
...payload.transportEntry.options?.subscriptions?.options
|
|
57
|
+
...payload.transportEntry.options?.subscriptions?.options,
|
|
58
|
+
// Make sure to remove subscription option to avoid infinite loop.
|
|
59
|
+
// This option doesn't make sense here but is present in `transportEntry.options`
|
|
60
|
+
subscriptions: void 0
|
|
52
61
|
}
|
|
53
62
|
}),
|
|
54
63
|
(resolvedSubscriptionsExecutor) => {
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { process } from '@graphql-mesh/cross-helpers';
|
|
2
|
-
import { getInterpolatedHeadersFactory } from '@graphql-mesh/string-interpolation';
|
|
2
|
+
import { getInterpolatedHeadersFactory, getInterpolatedStringFactory } from '@graphql-mesh/string-interpolation';
|
|
3
3
|
import { makeAsyncDisposable, dispose, isDisposable } from '@graphql-mesh/utils';
|
|
4
4
|
import { buildHTTPExecutor } from '@graphql-tools/executor-http';
|
|
5
5
|
import { handleMaybePromise } from '@whatwg-node/promise-helpers';
|
|
@@ -14,8 +14,14 @@ var index = {
|
|
|
14
14
|
headersInConfig = Object.fromEntries(payload.transportEntry.headers);
|
|
15
15
|
}
|
|
16
16
|
const headersFactory = headersInConfig ? getInterpolatedHeadersFactory(headersInConfig) : void 0;
|
|
17
|
+
const endpointFactory = payload.transportEntry.location ? getInterpolatedStringFactory(payload.transportEntry.location) : void 0;
|
|
17
18
|
const httpExecutor = buildHTTPExecutor({
|
|
18
|
-
endpoint:
|
|
19
|
+
endpoint: endpointFactory ? (execReq) => endpointFactory({
|
|
20
|
+
env: process.env,
|
|
21
|
+
root: execReq?.rootValue,
|
|
22
|
+
context: execReq?.context,
|
|
23
|
+
info: execReq?.info
|
|
24
|
+
}) : payload.transportEntry.location,
|
|
19
25
|
headers: headersFactory ? (execReq) => headersFactory({
|
|
20
26
|
env: process.env,
|
|
21
27
|
root: execReq?.rootValue,
|
|
@@ -46,7 +52,10 @@ var index = {
|
|
|
46
52
|
location: subscriptionsLocation,
|
|
47
53
|
options: {
|
|
48
54
|
...payload.transportEntry.options,
|
|
49
|
-
...payload.transportEntry.options?.subscriptions?.options
|
|
55
|
+
...payload.transportEntry.options?.subscriptions?.options,
|
|
56
|
+
// Make sure to remove subscription option to avoid infinite loop.
|
|
57
|
+
// This option doesn't make sense here but is present in `transportEntry.options`
|
|
58
|
+
subscriptions: void 0
|
|
50
59
|
}
|
|
51
60
|
}),
|
|
52
61
|
(resolvedSubscriptionsExecutor) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/transport-http",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -44,18 +44,18 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@graphql-mesh/cross-helpers": "^0.4.10",
|
|
46
46
|
"@graphql-mesh/string-interpolation": "^0.5.6",
|
|
47
|
-
"@graphql-mesh/transport-common": "1.0.0-alpha-
|
|
48
|
-
"@graphql-mesh/types": "^0.104.
|
|
49
|
-
"@graphql-mesh/utils": "^0.104.
|
|
50
|
-
"@graphql-tools/executor-http": "3.0.0-alpha-
|
|
51
|
-
"@graphql-tools/utils": "^10.
|
|
47
|
+
"@graphql-mesh/transport-common": "1.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7",
|
|
48
|
+
"@graphql-mesh/types": "^0.104.7",
|
|
49
|
+
"@graphql-mesh/utils": "^0.104.7",
|
|
50
|
+
"@graphql-tools/executor-http": "3.0.0-alpha-86d532fca168f7b6e57de46d3cff2439cc6242b7",
|
|
51
|
+
"@graphql-tools/utils": "^10.9.1",
|
|
52
52
|
"@whatwg-node/promise-helpers": "^1.3.0",
|
|
53
53
|
"graphql": "^16.9.0",
|
|
54
54
|
"tslib": "^2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"graphql": "^16.9.0",
|
|
58
|
-
"pkgroll": "2.
|
|
58
|
+
"pkgroll": "2.15.0"
|
|
59
59
|
},
|
|
60
60
|
"sideEffects": false
|
|
61
61
|
}
|