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.0.0-preview.4 to 2.0.0-preview.5

4

CHANGELOG.md

@@ -9,2 +9,6 @@ # CHANGELOG for `@apollo/federation-internals`

## v2.0.0-preview.5
- Fix propagation of `@tag` to the supergraph and allows @tag to be repeated. Additionally, merged directives (only `@tag` and `@deprecated` currently) are not allowed on external fields anymore [PR #1592](https://github.com/apollographql/federation/pull/1592).
## v2.0.0-preview.4

@@ -11,0 +15,0 @@

@@ -84,2 +84,3 @@ import { ASTNode, GraphQLError, Source } from "graphql";

EXTERNAL_ON_INTERFACE: ErrorCodeDefinition;
MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL: ErrorCodeDefinition;
FIELD_TYPE_MISMATCH: ErrorCodeDefinition;

@@ -86,0 +87,0 @@ ARGUMENT_TYPE_MISMATCH: ErrorCodeDefinition;

@@ -82,2 +82,3 @@ "use strict";

const EXTERNAL_ON_INTERFACE = makeCodeDefinition('EXTERNAL_ON_INTERFACE', 'The field of an interface type is marked with `@external`: as external is about marking field not resolved by the subgraph and as interface field are not resolved (only implementations of those fields are), an "external" interface field is nonsensical');
const MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL = makeCodeDefinition('MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL', 'In a subgraph, a field is both marked @external and has a merged directive applied to it');
const FIELD_TYPE_MISMATCH = makeCodeDefinition('FIELD_TYPE_MISMATCH', 'A field has a type that is incompatible with other declarations of that field in other subgraphs.', { ...DEFAULT_METADATA, replaces: ['VALUE_TYPE_FIELD_TYPE_MISMATCH'] });

@@ -138,2 +139,3 @@ const ARGUMENT_TYPE_MISMATCH = makeCodeDefinition('FIELD_ARGUMENT_TYPE_MISMATCH', 'An argument (of a field/directive) has a type that is incompatible with that of other declarations of that same argument in other subgraphs.', { ...DEFAULT_METADATA, replaces: ['VALUE_TYPE_INPUT_VALUE_MISMATCH'] });

EXTERNAL_ON_INTERFACE,
MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL,
FIELD_TYPE_MISMATCH,

@@ -140,0 +142,0 @@ ARGUMENT_TYPE_MISMATCH,

@@ -51,2 +51,3 @@ "use strict";

locations: tagSpec_1.tagLocations,
repeatable: true,
argumentFct: (schema) => {

@@ -53,0 +54,0 @@ return [{ name: 'name', type: new definitions_1.NonNullType(schema.stringType()) }];

@@ -23,2 +23,3 @@ "use strict";

const directive = this.addDirective(schema, 'tag').addLocations(...exports.tagLocations);
directive.repeatable = true;
directive.addArgument("name", new definitions_1.NonNullType(schema.stringType()));

@@ -25,0 +26,0 @@ }

4

package.json
{
"name": "@apollo/federation-internals",
"version": "2.0.0-preview.4",
"version": "2.0.0-preview.5",
"description": "Apollo Federation internal utilities",

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

},
"gitHead": "1ab3c3b872dade5ca564bd3ba3ac723a99ad4960"
"gitHead": "3baf9497767a263e66f6a5c1123d9dd68fb63433"
}

@@ -255,2 +255,7 @@ import { ASTNode, GraphQLError, Source } from "graphql";

const MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL = makeCodeDefinition(
'MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL',
'In a subgraph, a field is both marked @external and has a merged directive applied to it',
);
const FIELD_TYPE_MISMATCH = makeCodeDefinition(

@@ -364,2 +369,3 @@ 'FIELD_TYPE_MISMATCH',

EXTERNAL_ON_INTERFACE,
MERGED_DIRECTIVE_APPLICATION_ON_EXTERNAL,
FIELD_TYPE_MISMATCH,

@@ -366,0 +372,0 @@ ARGUMENT_TYPE_MISMATCH,

@@ -65,2 +65,3 @@ import {

locations: tagLocations,
repeatable: true,
argumentFct: (schema) => {

@@ -67,0 +68,0 @@ return [{ name: 'name', type: new NonNullType(schema.stringType()) }];

@@ -25,2 +25,3 @@ import { DirectiveLocation, GraphQLError } from "graphql";

const directive = this.addDirective(schema, 'tag').addLocations(...tagLocations);
directive.repeatable = true;
directive.addArgument("name", new NonNullType(schema.stringType()));

@@ -27,0 +28,0 @@ }

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 not supported yet

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