UNPKG

@graphql-mesh/transport-ws

Version:
425 lines (299 loc) 18.8 kB
# @graphql-mesh/transport-ws ## 0.4.10-alpha-8b003d550d757d9f556d48288423f6ec263b8cb3 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.7.21-alpha-8b003d550d757d9f556d48288423f6ec263b8cb3 ## 0.4.9 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.7.20 ## 0.4.8 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.7.19 ## 0.4.7 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.7.18 ## 0.4.6 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.7.17 ## 0.4.5 ### Patch Changes - [#164](https://github.com/graphql-hive/gateway/pull/164) [`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - 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`) - [#180](https://github.com/graphql-hive/gateway/pull/180) [`9438e21`](https://github.com/graphql-hive/gateway/commit/9438e21982ed5c6fb18cb678b275046595ae00f5) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/types@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.4) (from `^0.103.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.4) (from `^0.103.1`, in `dependencies`) - [#185](https://github.com/graphql-hive/gateway/pull/185) [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/types@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.4) (from `^0.103.0`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.4) (from `^0.103.1`, in `dependencies`) - [#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: - 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`) - 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`) - Updated dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf), [`9438e21`](https://github.com/graphql-hive/gateway/commit/9438e21982ed5c6fb18cb678b275046595ae00f5), [`f0b6921`](https://github.com/graphql-hive/gateway/commit/f0b69219fefc1b24c5511a1c623a5e3bbaf5ca0b), [`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf)]: - @graphql-mesh/transport-common@0.7.16 - @graphql-tools/executor-graphql-ws@1.3.3 ## 0.4.4 ### Patch Changes - [#148](https://github.com/graphql-hive/gateway/pull/148) [`f32cb2a`](https://github.com/graphql-hive/gateway/commit/f32cb2a0289aa32e4811ced5dc1aac3efb0674f1) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-mesh/cross-helpers@^0.4.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.4.7) (from `0.4.7`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.0) (from `^0.102.12`, in `dependencies`) - [#150](https://github.com/graphql-hive/gateway/pull/150) [`c0e189a`](https://github.com/graphql-hive/gateway/commit/c0e189ac83901da3a101f16f151e859ff7cca19f) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/cross-helpers@^0.4.7` ↗︎](https://www.npmjs.com/package/@graphql-mesh/cross-helpers/v/0.4.7) (from `0.4.7`, in `dependencies`) - Updated dependency [`@graphql-mesh/types@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependency [`@graphql-mesh/utils@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.103.0) (from `^0.102.12`, in `dependencies`) - Updated dependencies [[`f32cb2a`](https://github.com/graphql-hive/gateway/commit/f32cb2a0289aa32e4811ced5dc1aac3efb0674f1), [`c0e189a`](https://github.com/graphql-hive/gateway/commit/c0e189ac83901da3a101f16f151e859ff7cca19f)]: - @graphql-mesh/transport-common@0.7.15 ## 0.4.3 ### Patch Changes - [#118](https://github.com/graphql-hive/gateway/pull/118) [`73c621d`](https://github.com/graphql-hive/gateway/commit/73c621d98a4e6ca134527e349bc71223c03d06db) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - 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`) - [`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 - Updated dependencies [[`73c621d`](https://github.com/graphql-hive/gateway/commit/73c621d98a4e6ca134527e349bc71223c03d06db), [`19bc6a4`](https://github.com/graphql-hive/gateway/commit/19bc6a4c222ff157553785ea16760888cdfe10bb)]: - @graphql-mesh/transport-common@0.7.14 ## 0.4.2 ### Patch Changes - Updated dependencies [[`eee53b9`](https://github.com/ardatan/graphql-mesh/commit/eee53b9f455653166c39bca627b3261fbefe4eb7)]: - @graphql-mesh/utils@0.102.12 - @graphql-mesh/transport-common@0.7.13 ## 0.4.1 ### Patch Changes - Updated dependencies [[`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af), [`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af)]: - @graphql-mesh/transport-common@0.7.12 - @graphql-mesh/utils@0.102.11 ## 0.4.0 ### Minor Changes - [#7712](https://github.com/ardatan/graphql-mesh/pull/7712) [`dc54d58`](https://github.com/ardatan/graphql-mesh/commit/dc54d589afa0d08378565e1153b679397f2853a5) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - Add support for upstream WebSocket subscriptions in Docker and binary distributions. The HTTP headers of the incoming client's request can now be forwarded to the upstream in the [WebSocket HTTP upgrade request](https://developer.mozilla.org/en-US/docs/Web/HTTP/Protocol_upgrade_mechanism#upgrading_http1.1_connections): ```ts import { defineConfig } from '@graphql-hive/gateway'; export const gatewayConfig = defineConfig({ transportEntries: { ['*.http']: { options: { subscriptions: { kind: 'ws', location: '/subscriptions', headers: [['authentication', '{context.headers.authentication}']], }, }, }, }, }); ``` ### Patch Changes - [#7712](https://github.com/ardatan/graphql-mesh/pull/7712) [`dc54d58`](https://github.com/ardatan/graphql-mesh/commit/dc54d589afa0d08378565e1153b679397f2853a5) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates: - Updated dependency [`@graphql-tools/executor-graphql-ws@^1.3.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor-graphql-ws/v/1.3.0) (from `^1.2.0`, in `dependencies`) - [#7712](https://github.com/ardatan/graphql-mesh/pull/7712) [`dc54d58`](https://github.com/ardatan/graphql-mesh/commit/dc54d589afa0d08378565e1153b679397f2853a5) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - WebSocket connections are now cached against the whole `connectionParams` object and forwarded `headers`. The fixes WebSocket connection being reused wrongly when `connectionParams.token` is stable while other fields are changing. ## 0.3.11 ### Patch Changes - Updated dependencies [[`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71), [`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71)]: - @graphql-mesh/transport-common@0.7.11 - @graphql-mesh/utils@0.102.10 ## 0.3.10 ### Patch Changes - Updated dependencies [[`fad4d27`](https://github.com/ardatan/graphql-mesh/commit/fad4d27bfebb80a374c2041b86ffab509845effe)]: - @graphql-mesh/utils@0.102.9 - @graphql-mesh/transport-common@0.7.10 ## 0.3.9 ### Patch Changes - Updated dependencies [[`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c), [`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c)]: - @graphql-mesh/transport-common@0.7.9 - @graphql-mesh/utils@0.102.8 ## 0.3.8 ### Patch Changes - [#7781](https://github.com/ardatan/graphql-mesh/pull/7781) [`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.5.5` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.5.5) (from `^10.5.3`, in `dependencies`) - Updated dependencies [[`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be), [`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be), [`50bf472`](https://github.com/ardatan/graphql-mesh/commit/50bf4723657d27dc196d80407bda40c93aa5c9be)]: - @graphql-mesh/cross-helpers@0.4.7 - @graphql-mesh/transport-common@0.7.8 - @graphql-mesh/utils@0.102.7 ## 0.3.7 ### Patch Changes - [`340b933`](https://github.com/ardatan/graphql-mesh/commit/340b933afcb9d97064712f09d775d628ad843c42) Thanks [@enisdenjo](https://github.com/enisdenjo)! - connectionParams factory function may be undefined - Updated dependencies [[`bf588d3`](https://github.com/ardatan/graphql-mesh/commit/bf588d372c0078378aaa24beea2da794af7949e6)]: - @graphql-mesh/utils@0.102.6 - @graphql-mesh/transport-common@0.7.7 ## 0.3.6 ### Patch Changes - Updated dependencies [[`3bf14b3`](https://github.com/ardatan/graphql-mesh/commit/3bf14b33ee621cce004a329928b8a04a68218016), [`b7f6ebf`](https://github.com/ardatan/graphql-mesh/commit/b7f6ebfa077957c3a1ecad1fed449e972cb09ae0), [`0a3e52c`](https://github.com/ardatan/graphql-mesh/commit/0a3e52c2ad2941e7c48f0e80706db41644797c2d)]: - @graphql-mesh/utils@0.102.5 - @graphql-mesh/transport-common@0.7.6 ## 0.3.5 ### Patch Changes - Updated dependencies [[`5146df0`](https://github.com/ardatan/graphql-mesh/commit/5146df0fd3313227d5d7df2beb726ca89e13923f)]: - @graphql-mesh/transport-common@0.7.5 ## 0.3.4 ### Patch Changes - Updated dependencies [[`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005), [`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005)]: - @graphql-mesh/transport-common@0.7.4 - @graphql-mesh/utils@0.102.4 ## 0.3.3 ### Patch Changes - Updated dependencies [[`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4), [`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4)]: - @graphql-mesh/transport-common@0.7.3 - @graphql-mesh/utils@0.102.3 ## 0.3.2 ### Patch Changes - Updated dependencies [[`5d95aad`](https://github.com/ardatan/graphql-mesh/commit/5d95aad185448e8e3a004a08e364f98ee9bbee2a)]: - @graphql-mesh/utils@0.102.2 - @graphql-mesh/transport-common@0.7.2 ## 0.3.1 ### Patch Changes - Updated dependencies [[`e49a7e6`](https://github.com/ardatan/graphql-mesh/commit/e49a7e69475b652a53a0f289a44247e8b7ea96de), [`60bfc22`](https://github.com/ardatan/graphql-mesh/commit/60bfc2240108af0a599a66451517a146cace879d)]: - @graphql-mesh/utils@0.102.1 - @graphql-mesh/transport-common@0.7.1 ## 0.3.0 ### Patch Changes - Updated dependencies [[`13fa835`](https://github.com/ardatan/graphql-mesh/commit/13fa835036c3671305fc831fa236f110c33d9965)]: - @graphql-mesh/string-interpolation@0.5.6 - @graphql-mesh/utils@0.102.0 - @graphql-mesh/transport-common@0.7.0 ## 0.2.2 ### Patch Changes - [#7518](https://github.com/ardatan/graphql-mesh/pull/7518) [`b0cdc83`](https://github.com/ardatan/graphql-mesh/commit/b0cdc839699a1dd90d125289b49b75f703cbb18e) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates: - Updated dependency [`@graphql-mesh/transport-common@^0.6.1` ↗︎](https://www.npmjs.com/package/@graphql-mesh/transport-common/v/0.6.1) (from `^0.6.0`, in `dependencies`) ## 0.2.1 ### Patch Changes - [#7516](https://github.com/ardatan/graphql-mesh/pull/7516) [`67e1062`](https://github.com/ardatan/graphql-mesh/commit/67e10629c70ec553234c1ffc99af4b89ddb31985) Thanks [@enisdenjo](https://github.com/enisdenjo)! - Transport's kind doesn't need to be typed - Updated dependencies [[`67e1062`](https://github.com/ardatan/graphql-mesh/commit/67e10629c70ec553234c1ffc99af4b89ddb31985)]: - @graphql-mesh/transport-common@0.6.1 ## 0.2.0 ### Patch Changes - [#7497](https://github.com/ardatan/graphql-mesh/pull/7497) [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.5.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.5.2) (from `^10.3.4`, in `dependencies`) - [#7512](https://github.com/ardatan/graphql-mesh/pull/7512) [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.5.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.5.3) (from `^10.5.2`, in `dependencies`) - Updated dependencies [[`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6), [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6), [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e), [`190e9ec`](https://github.com/ardatan/graphql-mesh/commit/190e9ece9bc050a0564f3b5292ab5229e63d40a6), [`d784488`](https://github.com/ardatan/graphql-mesh/commit/d784488dcf04b3b0bf32f386baf8b48e1f20d27e)]: - @graphql-mesh/cross-helpers@0.4.6 - @graphql-mesh/transport-common@0.6.0 - @graphql-mesh/utils@0.101.0 ## 0.1.0 ### Patch Changes - [#7477](https://github.com/ardatan/graphql-mesh/pull/7477) [`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Updated dependency [`@graphql-tools/utils@^10.3.4` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.3.4) (from `^10.2.3`, in `dependencies`) - Updated dependencies [[`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c), [`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c), [`c06a048`](https://github.com/ardatan/graphql-mesh/commit/c06a0482e7431683f0b75fde3aebbb97aca00c4c), [`a324c5e`](https://github.com/ardatan/graphql-mesh/commit/a324c5ef300c25dcfa265f3457453b50af0b83e7), [`4d1eb28`](https://github.com/ardatan/graphql-mesh/commit/4d1eb285c2b703c5f80473ad0f316004306fac7f), [`a324c5e`](https://github.com/ardatan/graphql-mesh/commit/a324c5ef300c25dcfa265f3457453b50af0b83e7)]: - @graphql-mesh/cross-helpers@0.4.5 - @graphql-mesh/transport-common@0.5.0 - @graphql-mesh/utils@0.100.0 ## 0.0.6 ### Patch Changes - Updated dependencies []: - @graphql-mesh/utils@0.99.7 - @graphql-mesh/transport-common@0.4.7 ## 0.0.5 ### Patch Changes - Updated dependencies [[`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb), [`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb), [`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb), [`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb)]: - @graphql-mesh/transport-common@0.4.6 - @graphql-mesh/utils@0.99.6 ## 0.0.4 ### Patch Changes - [#7401](https://github.com/ardatan/graphql-mesh/pull/7401) [`33c23e8`](https://github.com/ardatan/graphql-mesh/commit/33c23e83a60328df806a8adc8d262a0c6de7e5a4) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: - Added dependency [`@graphql-mesh/utils@^0.99.4` ↗︎](https://www.npmjs.com/package/@graphql-mesh/utils/v/0.99.4) (to `dependencies`) - Updated dependencies [[`33c23e8`](https://github.com/ardatan/graphql-mesh/commit/33c23e83a60328df806a8adc8d262a0c6de7e5a4)]: - @graphql-mesh/utils@0.99.5 - @graphql-mesh/transport-common@0.4.5 ## 0.0.3 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.4.4 ## 0.0.2 ### Patch Changes - Updated dependencies []: - @graphql-mesh/transport-common@0.4.3 ## 0.0.1 ### Patch Changes - Updated dependencies [[`b01f3ea`](https://github.com/ardatan/graphql-mesh/commit/b01f3eabdc42d8905e8d586a4845e8394c094033), [`0bdc18d`](https://github.com/ardatan/graphql-mesh/commit/0bdc18df3d150a61abf987b8829934ed4ca02eed), [`4bc495c`](https://github.com/ardatan/graphql-mesh/commit/4bc495c03493f18c85e11f3f5fb54b3c35d16d8e), [`345a814`](https://github.com/ardatan/graphql-mesh/commit/345a81490f5201f6ee2f378b1b9d83c5881c9730)]: - @graphql-mesh/string-interpolation@0.5.5 - @graphql-mesh/transport-common@0.4.2