@apollo/gateway
Advanced tools
Comparing version 2.7.3-testing.0 to 2.7.3
@@ -68,3 +68,3 @@ import { GraphQLSchema } from 'graphql'; | ||
private initQueryPlanStore; | ||
private issueConfigurationWarningsIfApplicable; | ||
private validateConfigAndEmitWarnings; | ||
load(options?: { | ||
@@ -71,0 +71,0 @@ apollo?: ApolloConfigFromAS2Or3; |
@@ -168,3 +168,3 @@ "use strict"; | ||
} | ||
this.issueConfigurationWarningsIfApplicable(); | ||
this.validateConfigAndEmitWarnings(); | ||
this.logger.debug('Gateway successfully initialized (but not yet loaded)'); | ||
@@ -187,3 +187,5 @@ this.state = { phase: 'initialized' }; | ||
} | ||
issueConfigurationWarningsIfApplicable() { | ||
validateConfigAndEmitWarnings() { | ||
var _a; | ||
(0, federation_internals_1.assert)(!((_a = this.config.queryPlannerConfig) === null || _a === void 0 ? void 0 : _a.typeConditionedFetching), "Type conditions are not supported in the gateway"); | ||
if (this.pollIntervalInMs && (0, config_1.isServiceListConfig)(this.config)) { | ||
@@ -190,0 +192,0 @@ this.logger.warn('Polling running services is dangerous and not recommended in production. ' + |
{ | ||
"name": "@apollo/gateway", | ||
"version": "2.7.3-testing.0", | ||
"version": "2.7.3", | ||
"description": "Apollo Gateway", | ||
@@ -28,5 +28,5 @@ "author": "Apollo <packages@apollographql.com>", | ||
"dependencies": { | ||
"@apollo/composition": "2.7.3-testing.0", | ||
"@apollo/federation-internals": "2.7.3-testing.0", | ||
"@apollo/query-planner": "2.7.3-testing.0", | ||
"@apollo/composition": "2.7.3", | ||
"@apollo/federation-internals": "2.7.3", | ||
"@apollo/query-planner": "2.7.3", | ||
"@apollo/server-gateway-interface": "^1.1.0", | ||
@@ -33,0 +33,0 @@ "@apollo/usage-reporting-protobuf": "^4.1.0", |
@@ -60,2 +60,3 @@ import { deprecate } from 'util'; | ||
import { | ||
assert, | ||
operationFromDocument, | ||
@@ -190,3 +191,3 @@ Schema, | ||
this.issueConfigurationWarningsIfApplicable(); | ||
this.validateConfigAndEmitWarnings(); | ||
@@ -218,3 +219,5 @@ this.logger.debug('Gateway successfully initialized (but not yet loaded)'); | ||
private issueConfigurationWarningsIfApplicable() { | ||
private validateConfigAndEmitWarnings() { | ||
assert(!this.config.queryPlannerConfig?.typeConditionedFetching, "Type conditions are not supported in the gateway"); | ||
// Warn against using the pollInterval and a serviceList simultaneously | ||
@@ -574,2 +577,3 @@ // TODO(trevor:removeServiceList) | ||
this.schema = addExtensions(this.apiSchema.toGraphQLJSSchema()); | ||
this.queryPlanner = new QueryPlanner(supergraph, this.config.queryPlannerConfig); | ||
@@ -576,0 +580,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
467930
8097
1
+ Added@apollo/composition@2.7.3(transitive)
+ Added@apollo/federation-internals@2.7.3(transitive)
+ Added@apollo/query-graphs@2.7.3(transitive)
+ Added@apollo/query-planner@2.7.3(transitive)
- Removed@apollo/composition@2.7.3-testing.0(transitive)
- Removed@apollo/federation-internals@2.7.3-testing.0(transitive)
- Removed@apollo/query-graphs@2.7.3-testing.0(transitive)
- Removed@apollo/query-planner@2.7.3-testing.0(transitive)
Updated@apollo/composition@2.7.3
Updated@apollo/query-planner@2.7.3