@graphql-hive/gateway-runtime 2.7.8 → 2.7.9-alpha-519f6ef1e18642c393e8dca84db6d69c56ef110f

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @graphql-hive/gateway-runtime
2
2
 
3
+ ## 2.7.9-alpha-519f6ef1e18642c393e8dca84db6d69c56ef110f
4
+ ### Patch Changes
5
+
6
+
7
+
8
+ - [#2127](https://github.com/graphql-hive/gateway/pull/2127) [`519f6ef`](https://github.com/graphql-hive/gateway/commit/519f6ef1e18642c393e8dca84db6d69c56ef110f) Thanks [@ardatan](https://github.com/ardatan)! - When a plugin like Defer/Stream plugin updates the schema, the gateway considers the original schema as a new schema then tries to overwrite it.
9
+ After the overwrite, the external plugin tries to update it again on each request. So this causes extra schema changes on each request which causes extra resource consumption.
10
+ - Updated dependencies []:
11
+ - @graphql-mesh/hmac-upstream-signature@2.0.10
12
+
3
13
  ## 2.7.8
4
14
  ### Patch Changes
5
15
 
package/dist/index.cjs CHANGED
@@ -2464,6 +2464,7 @@ function createGatewayRuntime(config) {
2464
2464
  assumeValid: true,
2465
2465
  assumeValidSDL: true
2466
2466
  });
2467
+ replaceSchema(unifiedGraph);
2467
2468
  }
2468
2469
  continuePolling2();
2469
2470
  return true;
@@ -2501,6 +2502,7 @@ function createGatewayRuntime(config) {
2501
2502
  assumeValidSDL: true
2502
2503
  });
2503
2504
  }
2505
+ replaceSchema(unifiedGraph);
2504
2506
  continuePolling2();
2505
2507
  return true;
2506
2508
  }
@@ -2518,6 +2520,7 @@ function createGatewayRuntime(config) {
2518
2520
  }),
2519
2521
  (schema) => {
2520
2522
  unifiedGraph = schema;
2523
+ replaceSchema(unifiedGraph);
2521
2524
  continuePolling2();
2522
2525
  return true;
2523
2526
  }
@@ -2579,6 +2582,7 @@ function createGatewayRuntime(config) {
2579
2582
  () => unifiedGraph,
2580
2583
  (newUnifiedGraph) => {
2581
2584
  unifiedGraph = newUnifiedGraph;
2585
+ replaceSchema(newUnifiedGraph);
2582
2586
  },
2583
2587
  onSubgraphExecuteHooks,
2584
2588
  onDelegateHooks,
@@ -2730,8 +2734,7 @@ function createGatewayRuntime(config) {
2730
2734
  }
2731
2735
  },
2732
2736
  onRequestParse() {
2733
- return promiseHelpers.handleMaybePromise(getSchema, (schema) => {
2734
- replaceSchema(schema);
2737
+ return promiseHelpers.handleMaybePromise(getSchema, () => {
2735
2738
  });
2736
2739
  },
2737
2740
  onPluginInit({ plugins, setSchema }) {
package/dist/index.js CHANGED
@@ -2463,6 +2463,7 @@ function createGatewayRuntime(config) {
2463
2463
  assumeValid: true,
2464
2464
  assumeValidSDL: true
2465
2465
  });
2466
+ replaceSchema(unifiedGraph);
2466
2467
  }
2467
2468
  continuePolling2();
2468
2469
  return true;
@@ -2500,6 +2501,7 @@ function createGatewayRuntime(config) {
2500
2501
  assumeValidSDL: true
2501
2502
  });
2502
2503
  }
2504
+ replaceSchema(unifiedGraph);
2503
2505
  continuePolling2();
2504
2506
  return true;
2505
2507
  }
@@ -2517,6 +2519,7 @@ function createGatewayRuntime(config) {
2517
2519
  }),
2518
2520
  (schema) => {
2519
2521
  unifiedGraph = schema;
2522
+ replaceSchema(unifiedGraph);
2520
2523
  continuePolling2();
2521
2524
  return true;
2522
2525
  }
@@ -2578,6 +2581,7 @@ function createGatewayRuntime(config) {
2578
2581
  () => unifiedGraph,
2579
2582
  (newUnifiedGraph) => {
2580
2583
  unifiedGraph = newUnifiedGraph;
2584
+ replaceSchema(newUnifiedGraph);
2581
2585
  },
2582
2586
  onSubgraphExecuteHooks,
2583
2587
  onDelegateHooks,
@@ -2729,8 +2733,7 @@ function createGatewayRuntime(config) {
2729
2733
  }
2730
2734
  },
2731
2735
  onRequestParse() {
2732
- return handleMaybePromise(getSchema, (schema) => {
2733
- replaceSchema(schema);
2736
+ return handleMaybePromise(getSchema, () => {
2734
2737
  });
2735
2738
  },
2736
2739
  onPluginInit({ plugins, setSchema }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-hive/gateway-runtime",
3
- "version": "2.7.8",
3
+ "version": "2.7.9-alpha-519f6ef1e18642c393e8dca84db6d69c56ef110f",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",