Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollo/federation-internals

Package Overview
Dependencies
Maintainers
1
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/federation-internals - npm Package Compare versions

Comparing version 2.5.7 to 2.6.0

dist/specs/authenticatedSpec.d.ts

2

dist/definitions.d.ts
import { ConstArgumentNode, ASTNode, DirectiveLocation, ConstDirectiveNode, DocumentNode, GraphQLError, GraphQLSchema, Kind, TypeNode, VariableDefinitionNode, VariableNode, DirectiveDefinitionNode, DirectiveNode } from "graphql";
import { CoreImport, CoreSpecDefinition, FeatureUrl } from "./coreSpec";
import { CoreImport, CoreSpecDefinition, FeatureUrl } from "./specs/coreSpec";
import { MapWithCachedArrays } from "./utils";

@@ -4,0 +4,0 @@ import { SDLValidationRule } from "graphql/validation/ValidationContext";

import { DirectiveLocation, GraphQLError } from "graphql";
import { CoreFeature, InputType, OutputType, Schema } from "./definitions";
import { ArgumentCompositionStrategy } from "./argumentCompositionStrategies";
import { FeatureDefinition, FeatureVersion } from "./coreSpec";
import { FeatureDefinition, FeatureVersion } from "./specs/coreSpec";
export type DirectiveSpecification = {

@@ -6,0 +6,0 @@ name: string;

@@ -9,3 +9,3 @@ "use strict";

const federation_1 = require("./federation");
const coreSpec_1 = require("./coreSpec");
const coreSpec_1 = require("./specs/coreSpec");
const federation_2 = require("./federation");

@@ -12,0 +12,0 @@ const utils_1 = require("./utils");

@@ -66,2 +66,5 @@ import { CompositeType, CoreFeature, Directive, DirectiveDefinition, FieldDefinition, InputFieldDefinition, InterfaceType, NamedType, ObjectType, ScalarType, Schema, SchemaBlueprint, SchemaConfig, SchemaElement, UnionType } from "./definitions";

}>;
policyDirective(): Post20FederationDirectiveDefinition<{
scopes: string[];
}>;
allFederationDirectives(): DirectiveDefinition[];

@@ -102,4 +105,4 @@ entityType(): UnionType | undefined;

export declare function setSchemaAsFed2Subgraph(schema: Schema): void;
export declare const FEDERATION2_LINK_WITH_FULL_IMPORTS = "@link(url: \"https://specs.apollo.dev/federation/v2.5\", import: [\"@key\", \"@requires\", \"@provides\", \"@external\", \"@tag\", \"@extends\", \"@shareable\", \"@inaccessible\", \"@override\", \"@composeDirective\", \"@interfaceObject\", \"@authenticated\", \"@requiresScopes\"])";
export declare const FEDERATION2_LINK_WITH_AUTO_EXPANDED_IMPORTS = "@link(url: \"https://specs.apollo.dev/federation/v2.5\", import: [\"@key\", \"@requires\", \"@provides\", \"@external\", \"@tag\", \"@extends\", \"@shareable\", \"@inaccessible\", \"@override\", \"@composeDirective\", \"@interfaceObject\"])";
export declare const FEDERATION2_LINK_WITH_FULL_IMPORTS = "@link(url: \"https://specs.apollo.dev/federation/v2.6\", import: [\"@key\", \"@requires\", \"@provides\", \"@external\", \"@tag\", \"@extends\", \"@shareable\", \"@inaccessible\", \"@override\", \"@composeDirective\", \"@interfaceObject\", \"@authenticated\", \"@requiresScopes\", \"@policy\"])";
export declare const FEDERATION2_LINK_WITH_AUTO_EXPANDED_IMPORTS = "@link(url: \"https://specs.apollo.dev/federation/v2.6\", import: [\"@key\", \"@requires\", \"@provides\", \"@external\", \"@tag\", \"@extends\", \"@shareable\", \"@inaccessible\", \"@override\", \"@composeDirective\", \"@interfaceObject\"])";
export declare function asFed2SubgraphDocument(document: DocumentNode, options?: {

@@ -106,0 +109,0 @@ addAsSchemaExtension?: boolean;

@@ -10,7 +10,7 @@ export * from './definitions';

export * from './debug';
export * from './coreSpec';
export * from './joinSpec';
export * from './tagSpec';
export * from './inaccessibleSpec';
export * from './federationSpec';
export * from './specs/coreSpec';
export * from './specs/joinSpec';
export * from './specs/tagSpec';
export * from './specs/inaccessibleSpec';
export * from './specs/federationSpec';
export * from './supergraphs';

@@ -24,4 +24,4 @@ export * from './error';

export * from './argumentCompositionStrategies';
export * from './authenticatedSpec';
export * from './requiresScopesSpec';
export * from './specs/authenticatedSpec';
export * from './specs/requiresScopesSpec';
//# sourceMappingURL=index.d.ts.map

@@ -27,7 +27,7 @@ "use strict";

__exportStar(require("./debug"), exports);
__exportStar(require("./coreSpec"), exports);
__exportStar(require("./joinSpec"), exports);
__exportStar(require("./tagSpec"), exports);
__exportStar(require("./inaccessibleSpec"), exports);
__exportStar(require("./federationSpec"), exports);
__exportStar(require("./specs/coreSpec"), exports);
__exportStar(require("./specs/joinSpec"), exports);
__exportStar(require("./specs/tagSpec"), exports);
__exportStar(require("./specs/inaccessibleSpec"), exports);
__exportStar(require("./specs/federationSpec"), exports);
__exportStar(require("./supergraphs"), exports);

@@ -42,4 +42,4 @@ __exportStar(require("./error"), exports);

__exportStar(require("./argumentCompositionStrategies"), exports);
__exportStar(require("./authenticatedSpec"), exports);
__exportStar(require("./requiresScopesSpec"), exports);
__exportStar(require("./specs/authenticatedSpec"), exports);
__exportStar(require("./specs/requiresScopesSpec"), exports);
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import { FeatureDefinition, FeatureDefinitions, FeatureUrl } from "./coreSpec";
import { FeatureDefinition, FeatureDefinitions, FeatureUrl } from "./specs/coreSpec";
export declare function registerKnownFeature(definitions: FeatureDefinitions): void;

@@ -3,0 +3,0 @@ export declare function coreFeatureDefinitionIfKnown(url: FeatureUrl): FeatureDefinition | undefined;

@@ -10,3 +10,3 @@ "use strict";

const values_1 = require("./values");
const federationSpec_1 = require("./federationSpec");
const federationSpec_1 = require("./specs/federationSpec");
class ExternalOnTypeExtensionRemoval {

@@ -13,0 +13,0 @@ constructor(field) {

import { DocumentNode } from "graphql";
import { CoreFeatures, Schema } from "./definitions";
import { JoinSpecDefinition } from "./joinSpec";
import { JoinSpecDefinition } from "./specs/joinSpec";
import { Subgraphs } from ".";

@@ -5,0 +5,0 @@ export declare const DEFAULT_SUPPORTED_SUPERGRAPH_FEATURES: Set<string>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Supergraph = exports.isFed1Supergraph = exports.validateSupergraph = exports.DEFAULT_SUPPORTED_SUPERGRAPH_FEATURES = void 0;
const coreSpec_1 = require("./coreSpec");
const coreSpec_1 = require("./specs/coreSpec");
const definitions_1 = require("./definitions");
const joinSpec_1 = require("./joinSpec");
const joinSpec_1 = require("./specs/joinSpec");
const buildSchema_1 = require("./buildSchema");

@@ -8,0 +8,0 @@ const extractSubgraphsFromSupergraph_1 = require("./extractSubgraphsFromSupergraph");

{
"name": "@apollo/federation-internals",
"version": "2.5.7",
"version": "2.6.0",
"description": "Apollo Federation internal utilities",

@@ -21,3 +21,3 @@ "main": "dist/index.js",

"author": "Apollo <packages@apollographql.com>",
"license": "SEE LICENSE IN ./LICENSE",
"license": "Elastic-2.0",
"engines": {

@@ -24,0 +24,0 @@ "node": ">=14.15.0"

@@ -26,3 +26,3 @@ import { ASTNode, DirectiveLocation, GraphQLError } from "graphql";

import { ArgumentCompositionStrategy } from "./argumentCompositionStrategies";
import { FeatureDefinition, FeatureVersion } from "./coreSpec";
import { FeatureDefinition, FeatureVersion } from "./specs/coreSpec";

@@ -29,0 +29,0 @@ export type DirectiveSpecification = {

@@ -31,4 +31,4 @@ import {

} from "./federation";
import { CoreSpecDefinition, FeatureVersion } from "./coreSpec";
import { JoinFieldDirectiveArguments, JoinSpecDefinition, JoinTypeDirectiveArguments } from "./joinSpec";
import { CoreSpecDefinition, FeatureVersion } from "./specs/coreSpec";
import { JoinFieldDirectiveArguments, JoinSpecDefinition, JoinTypeDirectiveArguments } from "./specs/joinSpec";
import { FederationMetadata, Subgraph, Subgraphs } from "./federation";

@@ -35,0 +35,0 @@ import { assert } from "./utils";

@@ -10,7 +10,7 @@ export * from './definitions';

export * from './debug';
export * from './coreSpec';
export * from './joinSpec';
export * from './tagSpec';
export * from './inaccessibleSpec';
export * from './federationSpec';
export * from './specs/coreSpec';
export * from './specs/joinSpec';
export * from './specs/tagSpec';
export * from './specs/inaccessibleSpec';
export * from './specs/federationSpec';
export * from './supergraphs';

@@ -24,3 +24,3 @@ export * from './error';

export * from './argumentCompositionStrategies';
export * from './authenticatedSpec';
export * from './requiresScopesSpec';
export * from './specs/authenticatedSpec';
export * from './specs/requiresScopesSpec';

@@ -1,2 +0,2 @@

import { FeatureDefinition, FeatureDefinitions, FeatureUrl } from "./coreSpec";
import { FeatureDefinition, FeatureDefinitions, FeatureUrl } from "./specs/coreSpec";

@@ -3,0 +3,0 @@ const registeredFeatures: Map<string, FeatureDefinitions> = new Map();

@@ -36,3 +36,3 @@ import {

import { valueEquals } from "./values";
import { FEDERATION1_TYPES } from "./federationSpec";
import { FEDERATION1_TYPES } from "./specs/federationSpec";

@@ -39,0 +39,0 @@ export type UpgradeResult = UpgradeSuccess | UpgradeFailure;

import { DocumentNode, GraphQLError } from "graphql";
import { ErrCoreCheckFailed, FeatureUrl, FeatureVersion } from "./coreSpec";
import { ErrCoreCheckFailed, FeatureUrl, FeatureVersion } from "./specs/coreSpec";
import { CoreFeatures, Schema, sourceASTs } from "./definitions";
import { joinIdentity, JoinSpecDefinition, JOIN_VERSIONS } from "./joinSpec";
import { joinIdentity, JoinSpecDefinition, JOIN_VERSIONS } from "./specs/joinSpec";
import { buildSchema, buildSchemaFromAST } from "./buildSchema";

@@ -93,7 +93,7 @@ import { extractSubgraphsNamesAndUrlsFromSupergraph, extractSubgraphsFromSupergraph } from "./extractSubgraphsFromSupergraph";

const [coreFeatures] = validateSupergraph(schema);
if (supportedFeatures !== null) {
checkFeatureSupport(coreFeatures, supportedFeatures);
}
if (shouldValidate) {

@@ -100,0 +100,0 @@ schema.validate();

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc