@graphql-mesh/transport-ws 1.0.3-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113 → 1.0.3-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66

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
- ## 1.0.3-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113
3
+ ## 1.0.3-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,9 +8,14 @@
8
8
 
9
9
  - 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`)
10
10
 
11
+ - [#642](https://github.com/graphql-hive/gateway/pull/642) [`30e41a6`](https://github.com/graphql-hive/gateway/commit/30e41a6f5b97c42ae548564bce3f6e4a92b1225f) Thanks [@ardatan](https://github.com/ardatan)! - New JSON-based logger
12
+
13
+ By default, it prints pretty still to the console unless NODE_ENV is production.
14
+ For JSON output, set the `LOG_FORMAT` environment variable to `json`.
15
+
11
16
  - Updated dependencies [[`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9), [`d72209a`](https://github.com/graphql-hive/gateway/commit/d72209ad82ec53689f93ce5d81bfa52493919ad9)]:
12
- - @graphql-mesh/transport-common@0.7.29-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113
13
- - @graphql-tools/executor-graphql-ws@2.0.2-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113
17
+ - @graphql-mesh/transport-common@0.7.29-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66
18
+ - @graphql-tools/executor-graphql-ws@2.0.2-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66
14
19
 
15
20
  ## 1.0.2
16
21
 
package/dist/index.cjs CHANGED
@@ -43,7 +43,12 @@ var index = {
43
43
  const hash = JSON.stringify({ wsUrl, connectionParams, headers });
44
44
  let wsExecutor = wsExecutorMap.get(hash);
45
45
  if (!wsExecutor) {
46
- const executorLogger = logger?.child("GraphQL WS").child(hash);
46
+ const executorLogger = logger?.child({
47
+ executor: "GraphQL WS",
48
+ wsUrl,
49
+ connectionParams,
50
+ headers
51
+ });
47
52
  wsExecutor = executorGraphqlWs.buildGraphQLWSExecutor({
48
53
  headers,
49
54
  url: wsUrl,
package/dist/index.js CHANGED
@@ -41,7 +41,12 @@ var index = {
41
41
  const hash = JSON.stringify({ wsUrl, connectionParams, headers });
42
42
  let wsExecutor = wsExecutorMap.get(hash);
43
43
  if (!wsExecutor) {
44
- const executorLogger = logger?.child("GraphQL WS").child(hash);
44
+ const executorLogger = logger?.child({
45
+ executor: "GraphQL WS",
46
+ wsUrl,
47
+ connectionParams,
48
+ headers
49
+ });
45
50
  wsExecutor = buildGraphQLWSExecutor({
46
51
  headers,
47
52
  url: wsUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-mesh/transport-ws",
3
- "version": "1.0.3-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113",
3
+ "version": "1.0.3-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,10 +44,10 @@
44
44
  "dependencies": {
45
45
  "@graphql-mesh/cross-helpers": "^0.4.9",
46
46
  "@graphql-mesh/string-interpolation": "^0.5.6",
47
- "@graphql-mesh/transport-common": "0.7.29-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113",
47
+ "@graphql-mesh/transport-common": "0.7.29-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66",
48
48
  "@graphql-mesh/types": "^0.103.6",
49
49
  "@graphql-mesh/utils": "^0.103.6",
50
- "@graphql-tools/executor-graphql-ws": "2.0.2-rc-8e35bbcfc4ac6766046f3e0f31ec28a807f42113",
50
+ "@graphql-tools/executor-graphql-ws": "2.0.2-rc-0f4cb6b94c8aa4251c6608e9d149df46311e7a66",
51
51
  "@graphql-tools/utils": "^10.8.1",
52
52
  "graphql-ws": "^6.0.3",
53
53
  "tslib": "^2.8.1",