@graphql-mesh/transport-ws 0.4.5-rc-373fd00918d8f4f178a54c9a39d6439a44b05cc3 → 0.4.5-rc-6e29476a1f21c468a2b0618036501702864a5764
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -3
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# @graphql-mesh/transport-ws
|
2
2
|
|
3
|
-
## 0.4.5-rc-
|
3
|
+
## 0.4.5-rc-6e29476a1f21c468a2b0618036501702864a5764
|
4
4
|
|
5
5
|
### Patch Changes
|
6
6
|
|
@@ -8,9 +8,14 @@
|
|
8
8
|
|
9
9
|
- Updated dependency [`@graphql-tools/utils@^10.6.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.0) (from `^10.5.6`, in `dependencies`)
|
10
10
|
|
11
|
+
- [#98](https://github.com/graphql-hive/gateway/pull/98) [`697308d`](https://github.com/graphql-hive/gateway/commit/697308df3b2dd96f28dc65a5f5361a911077e022) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
|
12
|
+
|
13
|
+
- Updated dependency [`@graphql-mesh/cross-helpers@^0.4.8` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.4.8) (from `^0.4.7`, in `dependencies`)
|
14
|
+
- Updated dependency [`@graphql-mesh/utils@^0.103.1` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.1) (from `^0.103.0`, in `dependencies`)
|
15
|
+
|
11
16
|
- Updated dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf), [`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf)]:
|
12
|
-
- @graphql-mesh/transport-common@0.7.16-rc-
|
13
|
-
- @graphql-tools/executor-graphql-ws@1.3.3-rc-
|
17
|
+
- @graphql-mesh/transport-common@0.7.16-rc-6e29476a1f21c468a2b0618036501702864a5764
|
18
|
+
- @graphql-tools/executor-graphql-ws@1.3.3-rc-6e29476a1f21c468a2b0618036501702864a5764
|
14
19
|
|
15
20
|
## 0.4.4
|
16
21
|
|
package/dist/index.cjs
CHANGED
@@ -16,7 +16,7 @@ function switchProtocols(url) {
|
|
16
16
|
return url;
|
17
17
|
}
|
18
18
|
var index = {
|
19
|
-
getSubgraphExecutor({ transportEntry, logger }) {
|
19
|
+
getSubgraphExecutor({ transportEntry, logger }, buildExecutor = executorGraphqlWs.buildGraphQLWSExecutor) {
|
20
20
|
const wsExecutorMap = /* @__PURE__ */ new Map();
|
21
21
|
if (!transportEntry.location) {
|
22
22
|
throw new Error(
|
@@ -45,7 +45,7 @@ var index = {
|
|
45
45
|
let wsExecutor = wsExecutorMap.get(hash);
|
46
46
|
if (!wsExecutor) {
|
47
47
|
const executorLogger = logger?.child("GraphQL WS").child(hash);
|
48
|
-
wsExecutor =
|
48
|
+
wsExecutor = buildExecutor({
|
49
49
|
url: wsUrl,
|
50
50
|
lazy: true,
|
51
51
|
lazyCloseTimeout: 3e3,
|
package/dist/index.d.cts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import * as _graphql_mesh_transport_common from '@graphql-mesh/transport-common';
|
2
2
|
import { DisposableExecutor } from '@graphql-mesh/transport-common';
|
3
|
+
import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
|
3
4
|
import { ClientOptions } from 'graphql-ws';
|
4
5
|
|
5
6
|
type WSTransportOptions = Omit<ClientOptions, 'url' | 'on' | 'connectionParams'> & {
|
6
7
|
connectionParams?: Record<string, string>;
|
7
8
|
};
|
8
9
|
declare const _default: {
|
9
|
-
getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions
|
10
|
+
getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: typeof buildGraphQLWSExecutor): DisposableExecutor & AsyncDisposable;
|
10
11
|
};
|
11
12
|
|
12
13
|
export { type WSTransportOptions, _default as default };
|
package/dist/index.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import * as _graphql_mesh_transport_common from '@graphql-mesh/transport-common';
|
2
2
|
import { DisposableExecutor } from '@graphql-mesh/transport-common';
|
3
|
+
import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
|
3
4
|
import { ClientOptions } from 'graphql-ws';
|
4
5
|
|
5
6
|
type WSTransportOptions = Omit<ClientOptions, 'url' | 'on' | 'connectionParams'> & {
|
6
7
|
connectionParams?: Record<string, string>;
|
7
8
|
};
|
8
9
|
declare const _default: {
|
9
|
-
getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions
|
10
|
+
getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: typeof buildGraphQLWSExecutor): DisposableExecutor & AsyncDisposable;
|
10
11
|
};
|
11
12
|
|
12
13
|
export { type WSTransportOptions, _default as default };
|
package/dist/index.js
CHANGED
@@ -14,7 +14,7 @@ function switchProtocols(url) {
|
|
14
14
|
return url;
|
15
15
|
}
|
16
16
|
var index = {
|
17
|
-
getSubgraphExecutor({ transportEntry, logger }) {
|
17
|
+
getSubgraphExecutor({ transportEntry, logger }, buildExecutor = buildGraphQLWSExecutor) {
|
18
18
|
const wsExecutorMap = /* @__PURE__ */ new Map();
|
19
19
|
if (!transportEntry.location) {
|
20
20
|
throw new Error(
|
@@ -43,7 +43,7 @@ var index = {
|
|
43
43
|
let wsExecutor = wsExecutorMap.get(hash);
|
44
44
|
if (!wsExecutor) {
|
45
45
|
const executorLogger = logger?.child("GraphQL WS").child(hash);
|
46
|
-
wsExecutor =
|
46
|
+
wsExecutor = buildExecutor({
|
47
47
|
url: wsUrl,
|
48
48
|
lazy: true,
|
49
49
|
lazyCloseTimeout: 3e3,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@graphql-mesh/transport-ws",
|
3
|
-
"version": "0.4.5-rc-
|
3
|
+
"version": "0.4.5-rc-6e29476a1f21c468a2b0618036501702864a5764",
|
4
4
|
"type": "module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -42,12 +42,12 @@
|
|
42
42
|
"graphql": "^15.9.0 || ^16.9.0"
|
43
43
|
},
|
44
44
|
"dependencies": {
|
45
|
-
"@graphql-mesh/cross-helpers": "^0.4.
|
45
|
+
"@graphql-mesh/cross-helpers": "^0.4.8",
|
46
46
|
"@graphql-mesh/string-interpolation": "^0.5.6",
|
47
|
-
"@graphql-mesh/transport-common": "^0.7.16-rc-
|
47
|
+
"@graphql-mesh/transport-common": "^0.7.16-rc-6e29476a1f21c468a2b0618036501702864a5764",
|
48
48
|
"@graphql-mesh/types": "^0.103.0",
|
49
|
-
"@graphql-mesh/utils": "^0.103.
|
50
|
-
"@graphql-tools/executor-graphql-ws": "^1.3.3-rc-
|
49
|
+
"@graphql-mesh/utils": "^0.103.1",
|
50
|
+
"@graphql-tools/executor-graphql-ws": "^1.3.3-rc-6e29476a1f21c468a2b0618036501702864a5764",
|
51
51
|
"@graphql-tools/utils": "^10.6.0",
|
52
52
|
"graphql-ws": "^5.16.0",
|
53
53
|
"tslib": "^2.4.0",
|