@graphql-mesh/transport-ws 1.0.0-alpha-0970bee38b7b2f35ae088184ca6a3b6700f5a1bd → 1.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-mesh/transport-ws
2
2
 
3
- ## 1.0.0-alpha-0970bee38b7b2f35ae088184ca6a3b6700f5a1bd
3
+ ## 1.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce
4
4
 
5
5
  ### Major Changes
6
6
 
@@ -24,7 +24,7 @@
24
24
  - Added dependency [`isomorphic-ws@^5.0.0` ↗︎](https://www.npmjs.com/package/isomorphic-ws/v/5.0.0) (to `dependencies`)
25
25
 
26
26
  - Updated dependencies [[`9a763a5`](https://github.com/graphql-hive/gateway/commit/9a763a5de54ad4b033f410d6623da4cde79bd2b6), [`ddc90f3`](https://github.com/graphql-hive/gateway/commit/ddc90f330beb5551df50abf26b0a07d5c4d4f0b4), [`ddc90f3`](https://github.com/graphql-hive/gateway/commit/ddc90f330beb5551df50abf26b0a07d5c4d4f0b4), [`a4cb5cc`](https://github.com/graphql-hive/gateway/commit/a4cb5cc9b2807ccae5ce3631eb3705d929ee4599)]:
27
- - @graphql-tools/executor-graphql-ws@2.0.0-alpha-0970bee38b7b2f35ae088184ca6a3b6700f5a1bd
27
+ - @graphql-tools/executor-graphql-ws@2.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce
28
28
 
29
29
  ## 0.4.16
30
30
 
package/dist/index.cjs CHANGED
@@ -5,7 +5,11 @@ var stringInterpolation = require('@graphql-mesh/string-interpolation');
5
5
  var utils = require('@graphql-mesh/utils');
6
6
  var executorGraphqlWs = require('@graphql-tools/executor-graphql-ws');
7
7
  var graphqlWs = require('graphql-ws');
8
- var isomorphicWs = require('isomorphic-ws');
8
+ var WebSocket = require('isomorphic-ws');
9
+
10
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
+
12
+ var WebSocket__default = /*#__PURE__*/_interopDefault(WebSocket);
9
13
 
10
14
  function switchProtocols(url) {
11
15
  if (url.startsWith("https://")) {
@@ -48,11 +52,11 @@ var index = {
48
52
  const executorLogger = logger?.child("GraphQL WS").child(hash);
49
53
  wsExecutor = buildExecutor(
50
54
  graphqlWs.createClient({
51
- webSocketImpl: headers ? class WebSocketWithHeaders extends isomorphicWs.WebSocket {
55
+ webSocketImpl: headers ? class WebSocketWithHeaders extends WebSocket__default.default {
52
56
  constructor(url, protocol) {
53
57
  super(url, protocol, { headers });
54
58
  }
55
- } : isomorphicWs.WebSocket,
59
+ } : WebSocket__default.default,
56
60
  url: wsUrl,
57
61
  lazy: true,
58
62
  lazyCloseTimeout: 3e3,
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
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
+ import { DisposableAsyncExecutor } from '@graphql-tools/utils';
4
+ import { Client } from 'graphql-ws';
4
5
 
5
6
  interface WSTransportOptions {
6
7
  /**
@@ -11,7 +12,7 @@ interface WSTransportOptions {
11
12
  connectionParams?: Record<string, string>;
12
13
  }
13
14
  declare const _default: {
14
- getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: typeof buildGraphQLWSExecutor): DisposableExecutor & AsyncDisposable;
15
+ getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: (client: Client) => DisposableAsyncExecutor): DisposableExecutor & AsyncDisposable;
15
16
  };
16
17
 
17
18
  export { type WSTransportOptions, _default as default };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
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
+ import { DisposableAsyncExecutor } from '@graphql-tools/utils';
4
+ import { Client } from 'graphql-ws';
4
5
 
5
6
  interface WSTransportOptions {
6
7
  /**
@@ -11,7 +12,7 @@ interface WSTransportOptions {
11
12
  connectionParams?: Record<string, string>;
12
13
  }
13
14
  declare const _default: {
14
- getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: typeof buildGraphQLWSExecutor): DisposableExecutor & AsyncDisposable;
15
+ getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: (client: Client) => DisposableAsyncExecutor): DisposableExecutor & AsyncDisposable;
15
16
  };
16
17
 
17
18
  export { type WSTransportOptions, _default as default };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { getInterpolatedHeadersFactory } from '@graphql-mesh/string-interpolatio
3
3
  import { makeAsyncDisposable, isDisposable, dispose } from '@graphql-mesh/utils';
4
4
  import { buildGraphQLWSExecutor } from '@graphql-tools/executor-graphql-ws';
5
5
  import { createClient } from 'graphql-ws';
6
- import { WebSocket } from 'isomorphic-ws';
6
+ import WebSocket from 'isomorphic-ws';
7
7
 
8
8
  function switchProtocols(url) {
9
9
  if (url.startsWith("https://")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/transport-ws",
3
- "version": "1.0.0-alpha-0970bee38b7b2f35ae088184ca6a3b6700f5a1bd",
3
+ "version": "1.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,7 +47,7 @@
47
47
  "@graphql-mesh/transport-common": "^0.7.27",
48
48
  "@graphql-mesh/types": "^0.103.6",
49
49
  "@graphql-mesh/utils": "^0.103.6",
50
- "@graphql-tools/executor-graphql-ws": "2.0.0-alpha-0970bee38b7b2f35ae088184ca6a3b6700f5a1bd",
50
+ "@graphql-tools/executor-graphql-ws": "2.0.0-alpha-4c51bd8bb08df38e00c9d97ddb5d04633c181bce",
51
51
  "@graphql-tools/utils": "^10.7.0",
52
52
  "graphql-ws": "^6.0.2",
53
53
  "isomorphic-ws": "^5.0.0",