@graphql-mesh/transport-common
Version:
905 lines (613 loc) • 36.7 kB
Markdown
# @graphql-mesh/transport-common
## 0.7.33
### Patch Changes
- [#933](https://github.com/graphql-hive/gateway/pull/933) [`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
- Added dependency [`@graphql-hive/pubsub@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/pubsub/v/workspace:^) (to `dependencies`)
- Updated dependencies [[`a374bfc`](https://github.com/graphql-hive/gateway/commit/a374bfcf4309f5953b8c8304fba8e079b6f6b6dc)]:
- @graphql-hive/pubsub@1.0.0
## 0.7.32
### Patch Changes
- [#922](https://github.com/graphql-hive/gateway/pull/922) [`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106) Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
- Added dependency [`@graphql-hive/signal@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/signal/v/workspace:^) (to `dependencies`)
- Updated dependencies [[`c9cd206`](https://github.com/graphql-hive/gateway/commit/c9cd20666a740514a5c17ecd6d0c000ad0dd7106)]:
- @graphql-hive/signal@1.0.0
## 0.7.31
### Patch Changes
- [#706](https://github.com/graphql-hive/gateway/pull/706) [`e393337`](https://github.com/graphql-hive/gateway/commit/e393337ecb40beffb79748b19b5aa8f2fd9197b7) Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
- Updated dependency [`@envelop/core@^5.2.3` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.2.3) (from `^5.1.0`, in `dependencies`)
- [#775](https://github.com/graphql-hive/gateway/pull/775) [`33f7dfd`](https://github.com/graphql-hive/gateway/commit/33f7dfdb10eef2a1e7f6dffe0ce6e4bb3cc7c2c6) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
- Updated dependency [`@graphql-mesh/types@^0.104.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.104.0) (from `^0.103.18`, in `dependencies`)
- [#792](https://github.com/graphql-hive/gateway/pull/792) [`9c2f323`](https://github.com/graphql-hive/gateway/commit/9c2f323ece47d9c0ef8f4e44050390096ceac17f) Thanks [@ardatan](https://github.com/ardatan)! - Ensure subgraph name is present in the upstream error extensions when HTTP Executor throws
- Updated dependencies [[`e393337`](https://github.com/graphql-hive/gateway/commit/e393337ecb40beffb79748b19b5aa8f2fd9197b7)]:
- @graphql-tools/executor-common@0.0.4
## 0.7.30
### Patch Changes
- [#696](https://github.com/graphql-hive/gateway/pull/696) [`a289faa`](https://github.com/graphql-hive/gateway/commit/a289faae1469eb46f1458be341d21909fe5f8f8f) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency [`@envelop/core@^5.1.0` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.1.0) (from `^5.0.3`, in `dependencies`)
- Updated dependency [`@graphql-mesh/types@^0.103.18` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.18) (from `^0.103.6`, in `dependencies`)
- Updated dependencies [[`a289faa`](https://github.com/graphql-hive/gateway/commit/a289faae1469eb46f1458be341d21909fe5f8f8f)]:
- @graphql-tools/executor-common@0.0.3
## 0.7.29
### Patch Changes
- [#620](https://github.com/graphql-hive/gateway/pull/620) [`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9) Thanks [@renovate](https://github.com/apps/renovate)! - dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.8.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.8.1) (from `^10.7.0`, in `dependencies`)
- Updated dependencies [[`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9)]:
- @graphql-tools/executor-common@0.0.2
## 0.7.28
### Patch Changes
- [#598](https://github.com/graphql-hive/gateway/pull/598) [`8c80ac9`](https://github.com/graphql-hive/gateway/commit/8c80ac98cd5afd7c063945f4704fe4866622c5d7) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Removed dependency [`@graphql-hive/gateway-abort-signal-any@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/gateway-abort-signal-any/v/workspace:^) (from `dependencies`)
## 0.7.27
### Patch Changes
- [#420](https://github.com/graphql-hive/gateway/pull/420) [`14152f7`](https://github.com/graphql-hive/gateway/commit/14152f70d91572c0e60ba15ddeb2ffd0b41c9e92) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency [`@envelop/core@^5.0.3` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.0.3) (from `^5.0.1`, in `dependencies`)
- [#420](https://github.com/graphql-hive/gateway/pull/420) [`14152f7`](https://github.com/graphql-hive/gateway/commit/14152f70d91572c0e60ba15ddeb2ffd0b41c9e92) Thanks [@ardatan](https://github.com/ardatan)! - - In case of schema reload, throw `SCHEMA_RELOAD` error while recreating the transports and executors
- In case of shut down, throw `SHUTTING_DOWN` error while cleaning the transports and executors up
Previously, these errors are only thrown for subscriptions not it is thrown in other type of operations as well.
And previously the thrown errors during these two cleanup and restart process were cryptic, now the mentioned two errors above are thrown with more clear messages
## 0.7.26
### Patch Changes
- Updated dependencies [[`c60a8f4`](https://github.com/graphql-hive/gateway/commit/c60a8f446c5ca59a74a580050f5c20c0c9e61e97)]:
- @graphql-hive/gateway-abort-signal-any@0.0.3
## 0.7.25
### Patch Changes
- [#381](https://github.com/graphql-hive/gateway/pull/381) [`55eb1b4`](https://github.com/graphql-hive/gateway/commit/55eb1b4d14aec7b3e6c7bcf9f596bc01192d022c) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Added dependency [`@graphql-tools/executor-common@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor-common/v/workspace:^) (to `dependencies`)
- [#381](https://github.com/graphql-hive/gateway/pull/381) [`55eb1b4`](https://github.com/graphql-hive/gateway/commit/55eb1b4d14aec7b3e6c7bcf9f596bc01192d022c) Thanks [@ardatan](https://github.com/ardatan)! - This is a bugfix with some internal changes, no user action is needed. This bugfix and improvement is done to improve the stability of some components of the gateway;
Like HMAC Upstream Signature plugin, different components of the gateway were using different ways of serializing the execution request.
Some of them were ignoring `variables` if it is empty, some of not, this was causing the signature generation to be different for the same query.
For example, it was working as expected in Proxy mode, but not working as expected in Federation Gateway mode.
With this change, now we have a shared helper to serialize the upstream execution request with a memoized `print` function for query AST etc to have a consistent serialization so consistent signature generation for HMAC.
For example instead of using `print`, you should use `defaultPrintFn` that memoizes `print` operation and also used the string version of it parsed before by Envelop/Yoga.
```diff
-import { print } from 'graphql';
-const query = print(parsedQuery);
+import { defaultPrintFn } from '@graphql-tools/executor-common';
+const query = defaultPrintFn(parsedQuery);
```
Or instead of creating objects from `ExecutionRequest`, use `serializeExecutionRequest` helper.
```diff
-const serializedRequest = {
- query: print(executionRequest.document),
- variables: executionRequest.variables,
- operationName: executionRequest.operationName,
- extensions: executionRequest.extensions,
-};
+import { serializeExecutionRequest } from '@graphql-tools/executor-common';
+const serializedRequest = serializeExecutionRequest(executionRequest);
```
- Updated dependencies [[`55eb1b4`](https://github.com/graphql-hive/gateway/commit/55eb1b4d14aec7b3e6c7bcf9f596bc01192d022c)]:
- @graphql-tools/executor-common@0.0.1
## 0.7.24
### Patch Changes
- [#373](https://github.com/graphql-hive/gateway/pull/373) [`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency [`@graphql-tools/executor@^1.3.10` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.3.10) (from `^1.3.8`, in `dependencies`)
- Updated dependency [`@graphql-tools/utils@^10.7.0` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.7.0) (from `^10.6.2`, in `dependencies`)
- [#367](https://github.com/graphql-hive/gateway/pull/367) [`15975c2`](https://github.com/graphql-hive/gateway/commit/15975c28daddbb4f31d520371f53520aecacaac7) Thanks [@ardatan](https://github.com/ardatan)! - Fix the combination of `upstreamRetry` and `upstreamTimeout` together
When you use `upstreamRetry` and `upstreamTimeout` together, the `upstreamRetry` wasn't applied properly when the request is timed out with `upstreamTimeout`.
- Updated dependencies [[`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2), [`e606975`](https://github.com/graphql-hive/gateway/commit/e60697593290255fb9ac407e591ae3e8cb752df2)]:
- @graphql-hive/gateway-abort-signal-any@0.0.2
## 0.7.23
### Patch Changes
- [#322](https://github.com/graphql-hive/gateway/pull/322) [`23b8987`](https://github.com/graphql-hive/gateway/commit/23b89874fcf10b4cb6b1b941f29fa5f5aecf0ef2) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Added dependency [`@graphql-hive/gateway-abort-signal-any@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-hive/gateway-abort-signal-any/v/workspace:^) (to `dependencies`)
- Added dependency [`@graphql-tools/executor@^1.3.8` ↗︎](https://www.npmjs.com/package/@graphql-tools/executor/v/1.3.8) (to `dependencies`)
- Removed dependency [`@graphql-tools/delegate@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/workspace:^) (from `dependencies`)
- Updated dependencies [[`23b8987`](https://github.com/graphql-hive/gateway/commit/23b89874fcf10b4cb6b1b941f29fa5f5aecf0ef2)]:
- @graphql-hive/gateway-abort-signal-any@0.0.1
## 0.7.22
### Patch Changes
- [#291](https://github.com/graphql-hive/gateway/pull/291) [`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency [`@graphql-mesh/types@^0.103.6` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.6) (from `^0.103.4`, in `dependencies`)
- Updated dependency [`tslib@^2.8.1` ↗︎](https://www.npmjs.com/package/tslib/v/2.8.1) (from `^2.4.0`, in `dependencies`)
- Updated dependencies [[`34d1224`](https://github.com/graphql-hive/gateway/commit/34d12249ead65b8277df976f6318dca757df1151)]:
- @graphql-tools/delegate@10.2.7
## 0.7.21
### Patch Changes
- [#269](https://github.com/graphql-hive/gateway/pull/269) [`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4) Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency [`@graphql-tools/utils@^10.6.2` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.6.2) (from `^10.6.0`, in `dependencies`)
- Updated dependencies [[`7df2215`](https://github.com/graphql-hive/gateway/commit/7df2215abd309dc1dfd91f4ec91ce975f3982c62), [`cdca511`](https://github.com/graphql-hive/gateway/commit/cdca5116ce30c2bfced1130c9fbead67280af9d4)]:
- @graphql-tools/delegate@10.2.6
## 0.7.20
### Patch Changes
- Updated dependencies [[`9ce705c`](https://github.com/graphql-hive/gateway/commit/9ce705c5ccc5e6f4ac26af6e6471a6d2f4e995db)]:
- @graphql-tools/delegate@10.2.5
## 0.7.19
### Patch Changes
- Updated dependencies []:
- @graphql-tools/delegate@10.2.4
## 0.7.18
### Patch Changes
- Updated dependencies [[`7ca0ff3`](https://github.com/graphql-hive/gateway/commit/7ca0ff331e42c133c4218a8086bbf0a7607f45d0)]:
- @graphql-tools/delegate@10.2.3
## 0.7.17
### Patch Changes
- Updated dependencies [[`2e0add3`](https://github.com/graphql-hive/gateway/commit/2e0add3ea9b237ad385d5b5cd4c12eeeb847805a)]:
- @graphql-tools/delegate@10.2.2
## 0.7.16
### 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`)
- [#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 dependencies [[`310613d`](https://github.com/graphql-hive/gateway/commit/310613d68d1df3e2bceafbd0730084a4c83527bf)]:
- @graphql-tools/delegate@10.2.1
## 0.7.15
### 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/types@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/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/types@^0.103.0` ↗︎](https://www.npmjs.com/package/@graphql-mesh/types/v/0.103.0) (from `^0.102.12`, in `dependencies`)
- Updated dependencies [[`f32cb2a`](https://github.com/graphql-hive/gateway/commit/f32cb2a0289aa32e4811ced5dc1aac3efb0674f1)]:
- @graphql-tools/delegate@10.2.0
## 0.7.14
### 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/delegate@workspace:^` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/workspace:^) (from `^10.0.28`, 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)]:
- @graphql-tools/delegate@10.1.3
## 0.7.13
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.102.12
## 0.7.12
### Patch Changes
- [#7838](https://github.com/ardatan/graphql-mesh/pull/7838)
[`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.28` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.28)
(from `^10.0.27`, in `dependencies`)
- Updated dependencies
[[`de41fc2`](https://github.com/ardatan/graphql-mesh/commit/de41fc2932433f8da35b9de9492720e6c8c100af)]:
- @graphql-mesh/types@0.102.11
## 0.7.11
### Patch Changes
- [#7828](https://github.com/ardatan/graphql-mesh/pull/7828)
[`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.27` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.27)
(from `^10.0.26`, in `dependencies`)
- Updated dependencies
[[`997b81c`](https://github.com/ardatan/graphql-mesh/commit/997b81c8a5d28508057806b4f16eecc5b713cf71)]:
- @graphql-mesh/types@0.102.10
## 0.7.10
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.102.9
## 0.7.9
### Patch Changes
- [#7769](https://github.com/ardatan/graphql-mesh/pull/7769)
[`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.26` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.26)
(from `^10.0.23`, in `dependencies`)
- Updated dependencies
[[`518c42c`](https://github.com/ardatan/graphql-mesh/commit/518c42c5a2bee00e224df95c2beb758a28d1323c)]:
- @graphql-mesh/types@0.102.8
## 0.7.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/delegate@^10.0.23` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.23)
(from `^10.0.21`, in `dependencies`)
- 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)]:
- @graphql-mesh/types@0.102.7
## 0.7.7
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.102.6
## 0.7.6
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.102.5
## 0.7.5
### Patch Changes
- [#7488](https://github.com/ardatan/graphql-mesh/pull/7488)
[`5146df0`](https://github.com/ardatan/graphql-mesh/commit/5146df0fd3313227d5d7df2beb726ca89e13923f)
Thanks [@ardatan](https://github.com/ardatan)! - Improve Transport typings
## 0.7.4
### Patch Changes
- [#7576](https://github.com/ardatan/graphql-mesh/pull/7576)
[`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.21` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.21)
(from `^10.0.20`, in `dependencies`)
- Updated dependencies
[[`edbc074`](https://github.com/ardatan/graphql-mesh/commit/edbc074523ebc86114bb3342f86b7bcd9268d005)]:
- @graphql-mesh/types@0.102.4
## 0.7.3
### Patch Changes
- [#7572](https://github.com/ardatan/graphql-mesh/pull/7572)
[`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.20` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.20)
(from `^10.0.19`, in `dependencies`)
- Updated dependencies
[[`14ec31f`](https://github.com/ardatan/graphql-mesh/commit/14ec31f95bc06e9a3d06fae387fc40cc534e01f4)]:
- @graphql-mesh/types@0.102.3
## 0.7.2
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.102.2
## 0.7.1
### Patch Changes
- [#7013](https://github.com/ardatan/graphql-mesh/pull/7013)
[`60bfc22`](https://github.com/ardatan/graphql-mesh/commit/60bfc2240108af0a599a66451517a146cace879d)
Thanks [@ardatan](https://github.com/ardatan)! - Introduce a standard Upstream Error Format for
HTTP-based sources;
So all sources throw an error will have the extensions in the following format;
```json
{
"extensions": {
"request": {
// The details of the request made to the upstream service
"endpoint": "https://api.example.com",
"method": "GET"
},
"response": {
// The details of the HTTP response from the upstream service
"status": 401,
"statusText": "Unauthorized",
"headers": {
"content-type": "application/json"
},
"body": {
// The raw body returned by the upstream service
"error-message": "Unauthorized access"
}
}
}
}
```
- Updated dependencies []:
- @graphql-mesh/types@0.102.1
## 0.7.0
### Patch Changes
- Updated dependencies
[[`db41f96`](https://github.com/ardatan/graphql-mesh/commit/db41f96b392de95d5f3aff958df399bf58575373)]:
- @graphql-mesh/types@0.102.0
## 0.6.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
## 0.6.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/delegate@^10.0.19` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.19)
(from `^10.0.18`, in `dependencies`)
- 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)]:
- @graphql-mesh/types@0.101.0
## 0.5.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/delegate@^10.0.18` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.18)
(from `^10.0.17`, in `dependencies`)
- 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)]:
- @graphql-mesh/types@0.100.0
## 0.4.7
### Patch Changes
- Updated dependencies
[[`a1bfc49`](https://github.com/ardatan/graphql-mesh/commit/a1bfc492ac3378f22b79a51824407e776b496a84)]:
- @graphql-mesh/types@0.99.7
## 0.4.6
### Patch Changes
- [#7447](https://github.com/ardatan/graphql-mesh/pull/7447)
[`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.17` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.17)
(from `^10.0.16`, in `dependencies`)
- [#7447](https://github.com/ardatan/graphql-mesh/pull/7447)
[`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb)
Thanks [@ardatan](https://github.com/ardatan)! - Improvements on schema loading handling
- Updated dependencies
[[`6c67e77`](https://github.com/ardatan/graphql-mesh/commit/6c67e77d3c308615a733577293ecb6dd55793aeb)]:
- @graphql-mesh/types@0.99.6
## 0.4.5
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.99.5
## 0.4.4
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.99.4
## 0.4.3
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.99.3
## 0.4.2
### Patch Changes
- [#7352](https://github.com/ardatan/graphql-mesh/pull/7352)
[`4bc495c`](https://github.com/ardatan/graphql-mesh/commit/4bc495c03493f18c85e11f3f5fb54b3c35d16d8e)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.16` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.16)
(from `^10.0.14`, in `dependencies`)
- [#7294](https://github.com/ardatan/graphql-mesh/pull/7294)
[`345a814`](https://github.com/ardatan/graphql-mesh/commit/345a81490f5201f6ee2f378b1b9d83c5881c9730)
Thanks [@ardatan](https://github.com/ardatan)! - Ability to manipulate transport entry through
`transportEntries`.
For example, you can add extra headers to a subgraph
```ts
transportEntries: {
products: {
// This adds extra headers to the subgraph configuration
headers: [
// This forwards `authorization` from the upstream to downstream
['authorization', '{context.headers.authorization}'],
// Or some static value
['x-extra', process.env.SOME_THING],
];
}
}
```
- Updated dependencies
[[`4bc495c`](https://github.com/ardatan/graphql-mesh/commit/4bc495c03493f18c85e11f3f5fb54b3c35d16d8e)]:
- @graphql-mesh/types@0.99.2
## 0.4.1
### Patch Changes
- [#7316](https://github.com/ardatan/graphql-mesh/pull/7316)
[`7800514`](https://github.com/ardatan/graphql-mesh/commit/780051468203f3e82e7fee4ac40ce8b8a2cb10a3)
Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.14` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.14)
(from `^10.0.12`, in `dependencies`)
- Updated dependencies
[[`7800514`](https://github.com/ardatan/graphql-mesh/commit/780051468203f3e82e7fee4ac40ce8b8a2cb10a3)]:
- @graphql-mesh/types@0.99.1
## 0.4.0
### Minor Changes
- [#7207](https://github.com/ardatan/graphql-mesh/pull/7207)
[`69e6eb5`](https://github.com/ardatan/graphql-mesh/commit/69e6eb55b8e66024ccb7c97c017589e1eeb6bb1e)
Thanks [@enisdenjo](https://github.com/enisdenjo)! - Define transports using a default export
satisfying the `Transport` generic
For example, a custom http transport implementation looks like this:
```ts
// http-transport.ts
import { Transport } from '@graphql-mesh/transport-common';
export interface HTTPTransportOptions {
cache?: boolean;
}
export default {
getSubgraphExecutor(opts) {
// <the implementation of your executor getter>
},
} satisfies Transport<'http', HTTPTransportOptions>;
```
and is used for Mesh serve like this:
```ts
// mesh.config.ts
import { defineConfig } from '@graphql-mesh/serve-cli';
export const serveConfig = defineConfig({
transport: {
http: import('./http-transport'),
},
});
```
or like this:
```ts
// mesh.config.ts
import { defineConfig } from '@graphql-mesh/serve-cli';
import httpTransport from './http-transport';
export const serveConfig = defineConfig({
transport: {
http: httpTransport,
},
});
```
### Patch Changes
- [#7207](https://github.com/ardatan/graphql-mesh/pull/7207)
[`69e6eb5`](https://github.com/ardatan/graphql-mesh/commit/69e6eb55b8e66024ccb7c97c017589e1eeb6bb1e)
Thanks [@enisdenjo](https://github.com/enisdenjo)! - dependencies updates:
- Added dependency
[`@envelop/core@^5.0.1` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.0.1) (to
`dependencies`)
- [#7218](https://github.com/ardatan/graphql-mesh/pull/7218)
[`ededa2c`](https://github.com/ardatan/graphql-mesh/commit/ededa2c9e0fd44b338f2d3c66adfa1b59b130fa2)
Thanks [@EmrysMyrddin](https://github.com/EmrysMyrddin)! - dependencies updates:
- Added dependency
[`@envelop/core@^5.0.1` ↗︎](https://www.npmjs.com/package/@envelop/core/v/5.0.1) (to
`dependencies`)
- [#7207](https://github.com/ardatan/graphql-mesh/pull/7207)
[`69e6eb5`](https://github.com/ardatan/graphql-mesh/commit/69e6eb55b8e66024ccb7c97c017589e1eeb6bb1e)
Thanks [@enisdenjo](https://github.com/enisdenjo)! - Improved typings and rename
`TransportBaseContext` to `TransportContext`
- Updated dependencies []:
- @graphql-mesh/types@0.99.0
## 0.3.1
### Patch Changes
- [#7185](https://github.com/ardatan/graphql-mesh/pull/7185)
[`0d916a4`](https://github.com/ardatan/graphql-mesh/commit/0d916a4b4603ca57a383337f42c51ef8d5f4ae3d)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.12` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.12)
(from `^10.0.11`, in `dependencies`)
- Updated dependency
[`@graphql-tools/utils@^10.2.3` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.2.3)
(from `^10.2.1`, in `dependencies`)
- Updated dependencies
[[`0d916a4`](https://github.com/ardatan/graphql-mesh/commit/0d916a4b4603ca57a383337f42c51ef8d5f4ae3d),
[`8a04cf7`](https://github.com/ardatan/graphql-mesh/commit/8a04cf7abff41122d5268c57acfb26e97712730b)]:
- @graphql-mesh/types@0.98.10
## 0.3.0
### Minor Changes
- [#7145](https://github.com/ardatan/graphql-mesh/pull/7145)
[`7544594`](https://github.com/ardatan/graphql-mesh/commit/75445949f91f225ffed15491b8040b61ec4cf3ae)
Thanks [@ardatan](https://github.com/ardatan)! - POTENTIAL BREAKING CHANGE:
Now `@httpOperation` and `@transport` directive serializes headers as `[string, string][]` instead
of stringified JSON.
```diff
@httpOperation(
- operationSpecificHeaders: [["Authorization", "Bearer 123"], ["X-Api-Key", "123"]]
+ operationSpecificHeaders: "{\"Authorization\": \"Bearer 123\", \"X-Api-Key\": \"123\"}"
)
```
```diff
@transport(
- headers: [["Authorization, "Bearer 123"], ["X-Api-Key", "123"]]
+ headers: "{\"Authorization, \"Bearer 123\", \"X-Api-Key\": \"123\"}"
)
```
Also incorrect placement of `@transport` has been fixed to `SCHEMA`
```diff
directive @transport on
- FIELD_DEFINITION
+ SCHEMA
```
There is still backwards compatibility but this might look like a breaking change for some users
during schema validation.
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.98.9
## 0.2.8
### Patch Changes
- [#7054](https://github.com/ardatan/graphql-mesh/pull/7054)
[`88d6232`](https://github.com/ardatan/graphql-mesh/commit/88d623289e187435ddc88bbe3f4623a727101207)
Thanks [@ardatan](https://github.com/ardatan)! - Use `Disposable` pattern for plugins and
transports
- Updated dependencies
[[`4c75671`](https://github.com/ardatan/graphql-mesh/commit/4c756717247eb0a8f3431e31e6c86fc97297bd32),
[`88d6232`](https://github.com/ardatan/graphql-mesh/commit/88d623289e187435ddc88bbe3f4623a727101207)]:
- @graphql-mesh/types@0.98.8
## 0.2.7
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.98.7
## 0.2.6
### Patch Changes
- [#7030](https://github.com/ardatan/graphql-mesh/pull/7030)
[`270679b`](https://github.com/ardatan/graphql-mesh/commit/270679bb81046727ffe417800cbaa9924fb1bf5c)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.11` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.11)
(from `^10.0.10`, in `dependencies`)
- Updated dependency
[`@graphql-tools/utils@^10.2.1` ↗︎](https://www.npmjs.com/package/@graphql-tools/utils/v/10.2.1)
(from `^10.2.0`, in `dependencies`)
- Updated dependencies
[[`270679b`](https://github.com/ardatan/graphql-mesh/commit/270679bb81046727ffe417800cbaa9924fb1bf5c)]:
- @graphql-mesh/types@0.98.6
## 0.2.5
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.98.5
## 0.2.4
### Patch Changes
- [`fb59244`](https://github.com/ardatan/graphql-mesh/commit/fb592447c12950582881b24c0ca035a34d2ca48c)
Thanks [@ardatan](https://github.com/ardatan)! - Update GraphQL Tools packages
- Updated dependencies
[[`fb59244`](https://github.com/ardatan/graphql-mesh/commit/fb592447c12950582881b24c0ca035a34d2ca48c)]:
- @graphql-mesh/types@0.98.4
## 0.2.3
### Patch Changes
- [`c47b2aa`](https://github.com/ardatan/graphql-mesh/commit/c47b2aa8c225f04157c1391c638f866bb01edffa)
Thanks [@ardatan](https://github.com/ardatan)! - Bump GraphQL Tools versions
- Updated dependencies
[[`c47b2aa`](https://github.com/ardatan/graphql-mesh/commit/c47b2aa8c225f04157c1391c638f866bb01edffa)]:
- @graphql-mesh/types@0.98.3
## 0.2.2
### Patch Changes
- [`96dd11d`](https://github.com/ardatan/graphql-mesh/commit/96dd11d3c5b70a4971e56d47c8b200d4dc980f38)
Thanks [@ardatan](https://github.com/ardatan)! - Bump GraphQL Tools versions
- Updated dependencies
[[`96dd11d`](https://github.com/ardatan/graphql-mesh/commit/96dd11d3c5b70a4971e56d47c8b200d4dc980f38)]:
- @graphql-mesh/types@0.98.2
## 0.2.1
### Patch Changes
- Updated dependencies
[[`6044b7f`](https://github.com/ardatan/graphql-mesh/commit/6044b7f8bd72ee3d4460d9f09f303ea6fc4e007b)]:
- @graphql-mesh/types@0.98.1
## 0.2.0
### Patch Changes
- [#6872](https://github.com/ardatan/graphql-mesh/pull/6872)
[`2fcadce`](https://github.com/ardatan/graphql-mesh/commit/2fcadce67b9acbcab2a14aa9ea57dbb84101f0b5)
Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates:
- Updated dependency
[`@graphql-tools/delegate@^10.0.6` ↗︎](https://www.npmjs.com/package/@graphql-tools/delegate/v/10.0.6)
(from `^10.0.3`, in `dependencies`)
- Updated dependencies
[[`2fcadce`](https://github.com/ardatan/graphql-mesh/commit/2fcadce67b9acbcab2a14aa9ea57dbb84101f0b5)]:
- @graphql-mesh/types@0.98.0
## 0.1.5
### Patch Changes
- Updated dependencies
[[`52f74e7`](https://github.com/ardatan/graphql-mesh/commit/52f74e75219a32d30dea693a571c64c9c7519eb6)]:
- @graphql-mesh/types@0.97.5
## 0.1.4
### Patch Changes
- Updated dependencies
[[`ff33394`](https://github.com/ardatan/graphql-mesh/commit/ff3339451d8911f9b9265e158ad86844648ee12f)]:
- @graphql-mesh/types@0.97.4
## 0.1.3
### Patch Changes
- Updated dependencies
[[`57f4a60`](https://github.com/ardatan/graphql-mesh/commit/57f4a601c1f9819937c784ab9aae68f3368cbefd)]:
- @graphql-mesh/types@0.97.3
## 0.1.2
### Patch Changes
- Updated dependencies
[[`7a712ab`](https://github.com/ardatan/graphql-mesh/commit/7a712ab915ac3216765951080e689d510b5682a6)]:
- @graphql-mesh/types@0.97.2
## 0.1.1
### Patch Changes
- Updated dependencies
[[`dbaf72c`](https://github.com/ardatan/graphql-mesh/commit/dbaf72c4520f64524dce14b798019639c4d57020)]:
- @graphql-mesh/types@0.97.1
## 0.1.0
### Patch Changes
- Updated dependencies
[[`92dce67`](https://github.com/ardatan/graphql-mesh/commit/92dce67df35d70001ca9c818870a85256175279a)]:
- @graphql-mesh/types@0.97.0
## 0.0.3
### Patch Changes
- Updated dependencies []:
- @graphql-mesh/types@0.96.6
## 0.0.2
### Patch Changes
- Updated dependencies
[[`4b3ea1d`](https://github.com/ardatan/graphql-mesh/commit/4b3ea1d4ac804341d8dcae289ec1eac37026b908)]:
- @graphql-mesh/types@0.96.5
## 0.0.1
### Patch Changes
- [#6541](https://github.com/ardatan/graphql-mesh/pull/6541)
[`a7984e5`](https://github.com/ardatan/graphql-mesh/commit/a7984e5ab214ddd7f75dca0f03b2e7e8ad768211)
Thanks [@ardatan](https://github.com/ardatan)! - New Fusion packages
- Updated dependencies
[[`ae7b085`](https://github.com/ardatan/graphql-mesh/commit/ae7b085e93ba911f03bbfd2a15ff9ca8be9f4de8)]:
- @graphql-mesh/types@0.96.4