@graphql-mesh/transport-ws 1.0.0-alpha-7e26045e711907070b7236c41b9ed6a3906eb150 → 1.0.0-alpha-ca09c100b696a084ce629c4c1c8b00b74b059702

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,30 +1,30 @@
1
1
  # @graphql-mesh/transport-ws
2
2
 
3
- ## 1.0.0-alpha-7e26045e711907070b7236c41b9ed6a3906eb150
3
+ ## 1.0.0-alpha-ca09c100b696a084ce629c4c1c8b00b74b059702
4
4
 
5
5
  ### Major Changes
6
6
 
7
- - [#481](https://github.com/graphql-hive/gateway/pull/481) [`ddc90f3`](https://github.com/graphql-hive/gateway/commit/ddc90f330beb5551df50abf26b0a07d5c4d4f0b4) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Options allow configuring only `connectionParams`
7
+ - [#481](https://github.com/graphql-hive/gateway/pull/481) [`6313dbd`](https://github.com/graphql-hive/gateway/commit/6313dbdb96aa729dacd711b4400c30017fe7aa62) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Options allow configuring only `connectionParams`
8
8
 
9
9
  In most of the cases you won't need to configure the underlying graphql-ws client any further.
10
10
 
11
- - [#481](https://github.com/graphql-hive/gateway/pull/481) [`fc46acd`](https://github.com/graphql-hive/gateway/commit/fc46acd594803e73e4822388a2ce6efa8867d29b) Thanks [@enisdenjo](https://github.com/enisdenjo)! - WebSocket transport is stable and production ready
11
+ - [#481](https://github.com/graphql-hive/gateway/pull/481) [`7bfa1bf`](https://github.com/graphql-hive/gateway/commit/7bfa1bf8430cedd130704a06a75c2e880a6871a1) Thanks [@enisdenjo](https://github.com/enisdenjo)! - WebSocket transport is stable and production ready
12
12
 
13
13
  ### Minor Changes
14
14
 
15
- - [#481](https://github.com/graphql-hive/gateway/pull/481) [`a4cb5cc`](https://github.com/graphql-hive/gateway/commit/a4cb5cc9b2807ccae5ce3631eb3705d929ee4599) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Upgrade graphql-ws to v6
15
+ - [#481](https://github.com/graphql-hive/gateway/pull/481) [`b227bd9`](https://github.com/graphql-hive/gateway/commit/b227bd9862cb64186b8cc7ea3fb9a6530b122157) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Upgrade graphql-ws to v6
16
16
 
17
17
  If you have a custom graphql-ws configuration when using the transport, you will have to migrate the graphql-ws side to v6. [Please consult the changelog of graphql-ws.](https://github.com/enisdenjo/graphql-ws/releases/tag/v6.0.0)
18
18
 
19
19
  ### Patch Changes
20
20
 
21
- - [#481](https://github.com/graphql-hive/gateway/pull/481) [`9a763a5`](https://github.com/graphql-hive/gateway/commit/9a763a5de54ad4b033f410d6623da4cde79bd2b6) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
21
+ - [#481](https://github.com/graphql-hive/gateway/pull/481) [`9dba1f0`](https://github.com/graphql-hive/gateway/commit/9dba1f0cb9b9c1311a6fbb9e0061bd01c4d334e3) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
22
22
 
23
23
  - Updated dependency [`graphql-ws@^6.0.2` ↗︎](https://www.npmjs.com/package/graphql-ws/v/6.0.2) (from `^5.16.0`, in `dependencies`)
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
- - 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-7e26045e711907070b7236c41b9ed6a3906eb150
26
+ - Updated dependencies [[`9dba1f0`](https://github.com/graphql-hive/gateway/commit/9dba1f0cb9b9c1311a6fbb9e0061bd01c4d334e3), [`6313dbd`](https://github.com/graphql-hive/gateway/commit/6313dbdb96aa729dacd711b4400c30017fe7aa62), [`6313dbd`](https://github.com/graphql-hive/gateway/commit/6313dbdb96aa729dacd711b4400c30017fe7aa62), [`b227bd9`](https://github.com/graphql-hive/gateway/commit/b227bd9862cb64186b8cc7ea3fb9a6530b122157)]:
27
+ - @graphql-tools/executor-graphql-ws@2.0.0-alpha-ca09c100b696a084ce629c4c1c8b00b74b059702
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.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-7e26045e711907070b7236c41b9ed6a3906eb150",
3
+ "version": "1.0.0-alpha-ca09c100b696a084ce629c4c1c8b00b74b059702",
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-7e26045e711907070b7236c41b9ed6a3906eb150",
50
+ "@graphql-tools/executor-graphql-ws": "2.0.0-alpha-ca09c100b696a084ce629c4c1c8b00b74b059702",
51
51
  "@graphql-tools/utils": "^10.7.0",
52
52
  "graphql-ws": "^6.0.2",
53
53
  "isomorphic-ws": "^5.0.0",