@graphql-mesh/supergraph 0.10.0-alpha-20250124181238-87366ee8e2a95025d881bdaba556f04d337e8331 → 0.10.0-alpha-20250303152151-d99794163758395e3b9780a2cfdef2a5a39433df

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/cjs/index.js CHANGED
@@ -32,7 +32,7 @@ class SupergraphHandler {
32
32
  fetch: this.fetchFn,
33
33
  logger: this.logger,
34
34
  }).catch(e => {
35
- throw new Error(`Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ${interpolatedSource} instead.\n Got error: ${e.message}`);
35
+ throw new Error(`Failed to load supergraph SDL from ${interpolatedSource}:\n ${e.message}`);
36
36
  });
37
37
  return handleSupergraphResponse(res, interpolatedSource);
38
38
  }
@@ -47,7 +47,7 @@ class SupergraphHandler {
47
47
  fetch: this.fetchFn,
48
48
  logger: this.logger,
49
49
  }).catch(e => {
50
- throw new Error(`Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ${interpolatedSource} instead.\n Got error: ${e.message}`);
50
+ throw new Error(`Failed to load supergraph SDL from ${interpolatedSource}:\n ${e.message}`);
51
51
  });
52
52
  return handleSupergraphResponse(sdlOrIntrospection, interpolatedSource);
53
53
  });
@@ -95,7 +95,6 @@ class SupergraphHandler {
95
95
  ...subgraphConfiguration,
96
96
  subscriptionsEndpoint,
97
97
  subscriptionsProtocol: subgraphConfiguration.subscriptionsProtocol,
98
- // @ts-expect-error - this is a bug in the types
99
98
  customFetch: fetchFn,
100
99
  });
101
100
  const subgraphOperationHeadersFactory = subgraphConfiguration.operationHeaders != null
package/esm/index.js CHANGED
@@ -30,7 +30,7 @@ export default class SupergraphHandler {
30
30
  fetch: this.fetchFn,
31
31
  logger: this.logger,
32
32
  }).catch(e => {
33
- throw new Error(`Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ${interpolatedSource} instead.\n Got error: ${e.message}`);
33
+ throw new Error(`Failed to load supergraph SDL from ${interpolatedSource}:\n ${e.message}`);
34
34
  });
35
35
  return handleSupergraphResponse(res, interpolatedSource);
36
36
  }
@@ -45,7 +45,7 @@ export default class SupergraphHandler {
45
45
  fetch: this.fetchFn,
46
46
  logger: this.logger,
47
47
  }).catch(e => {
48
- throw new Error(`Supergraph source must be a valid GraphQL SDL string or a parsed DocumentNode, but got an invalid result from ${interpolatedSource} instead.\n Got error: ${e.message}`);
48
+ throw new Error(`Failed to load supergraph SDL from ${interpolatedSource}:\n ${e.message}`);
49
49
  });
50
50
  return handleSupergraphResponse(sdlOrIntrospection, interpolatedSource);
51
51
  });
@@ -93,7 +93,6 @@ export default class SupergraphHandler {
93
93
  ...subgraphConfiguration,
94
94
  subscriptionsEndpoint,
95
95
  subscriptionsProtocol: subgraphConfiguration.subscriptionsProtocol,
96
- // @ts-expect-error - this is a bug in the types
97
96
  customFetch: fetchFn,
98
97
  });
99
98
  const subgraphOperationHeadersFactory = subgraphConfiguration.operationHeaders != null
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@graphql-mesh/supergraph",
3
- "version": "0.10.0-alpha-20250124181238-87366ee8e2a95025d881bdaba556f04d337e8331",
3
+ "version": "0.10.0-alpha-20250303152151-d99794163758395e3b9780a2cfdef2a5a39433df",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "*"
7
7
  },
8
8
  "dependencies": {
9
- "@graphql-mesh/cross-helpers": "^0.4.9",
10
- "@graphql-mesh/store": "0.104.0-alpha-20250124181238-87366ee8e2a95025d881bdaba556f04d337e8331",
9
+ "@graphql-mesh/cross-helpers": "^0.4.10",
10
+ "@graphql-mesh/store": "0.104.0-alpha-20250303152151-d99794163758395e3b9780a2cfdef2a5a39433df",
11
11
  "@graphql-mesh/string-interpolation": "^0.5.8",
12
- "@graphql-mesh/types": "0.104.0-alpha-20250124181238-87366ee8e2a95025d881bdaba556f04d337e8331",
13
- "@graphql-mesh/utils": "0.104.0-alpha-20250124181238-87366ee8e2a95025d881bdaba556f04d337e8331",
12
+ "@graphql-mesh/types": "0.104.0-alpha-20250303152151-d99794163758395e3b9780a2cfdef2a5a39433df",
13
+ "@graphql-mesh/utils": "0.104.0-alpha-20250303152151-d99794163758395e3b9780a2cfdef2a5a39433df",
14
14
  "@graphql-tools/federation": "^3.0.0",
15
15
  "@graphql-tools/url-loader": "^8.0.9",
16
- "@graphql-tools/utils": "^10.6.0",
16
+ "@graphql-tools/utils": "^10.8.0",
17
17
  "lodash.get": "^4.4.2",
18
18
  "tslib": "^2.4.0"
19
19
  },