@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 +7 -7
- package/dist/index.cjs +7 -3
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
# @graphql-mesh/transport-ws
|
2
2
|
|
3
|
-
## 1.0.0-alpha-
|
3
|
+
## 1.0.0-alpha-ca09c100b696a084ce629c4c1c8b00b74b059702
|
4
4
|
|
5
5
|
### Major Changes
|
6
6
|
|
7
|
-
- [#481](https://github.com/graphql-hive/gateway/pull/481) [`
|
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) [`
|
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) [`
|
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) [`
|
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 [[`
|
27
|
-
- @graphql-tools/executor-graphql-ws@2.0.0-alpha-
|
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
|
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
|
55
|
+
webSocketImpl: headers ? class WebSocketWithHeaders extends WebSocket__default.default {
|
52
56
|
constructor(url, protocol) {
|
53
57
|
super(url, protocol, { headers });
|
54
58
|
}
|
55
|
-
} :
|
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
|
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-
|
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-
|
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",
|