@graphql-mesh/transport-ws 0.4.3-alpha-967b4ea6d0d2c2141ac1571d8754e2a9c35e5077 → 0.4.3-alpha-c97bad0dcb5c0451220186ccf2403109dfcd3c54

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @graphql-mesh/transport-ws
2
2
 
3
- ## 0.4.3-alpha-967b4ea6d0d2c2141ac1571d8754e2a9c35e5077
3
+ ## 0.4.3-alpha-c97bad0dcb5c0451220186ccf2403109dfcd3c54
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,8 +8,10 @@
8
8
 
9
9
  - Updated dependency [`@graphql-tools/executor-graphql-ws@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor-graphql-ws/v/workspace:^) (from `^1.3.0`, in `dependencies`)
10
10
 
11
- - Updated dependencies [[`73c621d`](https://github.com/graphql-hive/gateway/commit/73c621d98a4e6ca134527e349bc71223c03d06db)]:
12
- - @graphql-mesh/transport-common@0.7.14-alpha-967b4ea6d0d2c2141ac1571d8754e2a9c35e5077
11
+ - [`19bc6a4`](https://github.com/graphql-hive/gateway/commit/19bc6a4c222ff157553785ea16760888cdfe10bb) Thanks [@enisdenjo](https://github.com/enisdenjo)! - `onError` and `onEnd` callbacks when mapping async iterators are invoked only once regardless of how many times throw/return was called on the iterator
12
+
13
+ - Updated dependencies [[`73c621d`](https://github.com/graphql-hive/gateway/commit/73c621d98a4e6ca134527e349bc71223c03d06db), [`19bc6a4`](https://github.com/graphql-hive/gateway/commit/19bc6a4c222ff157553785ea16760888cdfe10bb)]:
14
+ - @graphql-mesh/transport-common@0.7.14-alpha-c97bad0dcb5c0451220186ccf2403109dfcd3c54
13
15
 
14
16
  ## 0.4.2
15
17
 
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 }, buildExecutor = executorGraphqlWs.buildGraphQLWSExecutor) {
19
+ getSubgraphExecutor({ transportEntry, logger }) {
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 = buildExecutor({
48
+ wsExecutor = executorGraphqlWs.buildGraphQLWSExecutor({
49
49
  url: wsUrl,
50
50
  lazy: true,
51
51
  lazyCloseTimeout: 3e3,
package/dist/index.d.cts CHANGED
@@ -1,13 +1,12 @@
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';
4
3
  import { ClientOptions } from 'graphql-ws';
5
4
 
6
5
  type WSTransportOptions = Omit<ClientOptions, 'url' | 'on' | 'connectionParams'> & {
7
6
  connectionParams?: Record<string, string>;
8
7
  };
9
8
  declare const _default: {
10
- getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: typeof buildGraphQLWSExecutor): DisposableExecutor & AsyncDisposable;
9
+ getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>): DisposableExecutor & AsyncDisposable;
11
10
  };
12
11
 
13
12
  export { type WSTransportOptions, _default as default };
package/dist/index.d.ts CHANGED
@@ -1,13 +1,12 @@
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';
4
3
  import { ClientOptions } from 'graphql-ws';
5
4
 
6
5
  type WSTransportOptions = Omit<ClientOptions, 'url' | 'on' | 'connectionParams'> & {
7
6
  connectionParams?: Record<string, string>;
8
7
  };
9
8
  declare const _default: {
10
- getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>, buildExecutor?: typeof buildGraphQLWSExecutor): DisposableExecutor & AsyncDisposable;
9
+ getSubgraphExecutor({ transportEntry, logger }: _graphql_mesh_transport_common.TransportGetSubgraphExecutorOptions<WSTransportOptions>): DisposableExecutor & AsyncDisposable;
11
10
  };
12
11
 
13
12
  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 }, buildExecutor = buildGraphQLWSExecutor) {
17
+ getSubgraphExecutor({ transportEntry, logger }) {
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 = buildExecutor({
46
+ wsExecutor = buildGraphQLWSExecutor({
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.3-alpha-967b4ea6d0d2c2141ac1571d8754e2a9c35e5077",
3
+ "version": "0.4.3-alpha-c97bad0dcb5c0451220186ccf2403109dfcd3c54",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,11 +44,11 @@
44
44
  "dependencies": {
45
45
  "@graphql-mesh/cross-helpers": "0.4.7",
46
46
  "@graphql-mesh/string-interpolation": "^0.5.6",
47
- "@graphql-mesh/transport-common": "^0.7.14-alpha-967b4ea6d0d2c2141ac1571d8754e2a9c35e5077",
47
+ "@graphql-mesh/transport-common": "^0.7.14-alpha-c97bad0dcb5c0451220186ccf2403109dfcd3c54",
48
48
  "@graphql-mesh/types": "^0.102.12",
49
49
  "@graphql-mesh/utils": "^0.102.12",
50
50
  "@graphql-tools/executor-graphql-ws": "^1.3.2",
51
- "@graphql-tools/utils": "^10.5.5",
51
+ "@graphql-tools/utils": "^10.5.6",
52
52
  "graphql-ws": "^5.16.0",
53
53
  "tslib": "^2.4.0",
54
54
  "ws": "^8.18.0"