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

@apollo/composition

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/composition - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

10

CHANGELOG.md
# CHANGELOG for `@apollo/composition`
## 2.3.3
### Patch Changes
- Stop generating misleading "hint" regarding value type fields for interface types that are entity interfaces (they have a `@key` defined). ([#2412](https://github.com/apollographql/federation/pull/2412))
- Updated dependencies [[`de89e504`](https://github.com/apollographql/federation/commit/de89e5044d1a2500505a9269bcec7709aa1dcdf4)]:
- @apollo/query-graphs@2.3.3
- @apollo/federation-internals@2.3.3
## 2.3.2

@@ -4,0 +14,0 @@ ### Patch Changes

2

dist/compose.d.ts
import { Schema, Subgraphs, ServiceDefinition } from "@apollo/federation-internals";
import { GraphQLError } from "graphql";
import { CompositionHint } from "./hints";
export declare type CompositionResult = CompositionFailure | CompositionSuccess;
export type CompositionResult = CompositionFailure | CompositionSuccess;
export interface CompositionFailure {

@@ -6,0 +6,0 @@ errors: GraphQLError[];

@@ -7,3 +7,3 @@ import { SubgraphASTNode } from "@apollo/federation-internals";

}
export declare type HintCodeDefinition = {
export type HintCodeDefinition = {
code: string;

@@ -10,0 +10,0 @@ level: {

import { Schema, SubtypingRule, Subgraphs } from "@apollo/federation-internals";
import { GraphQLError } from "graphql";
import { CompositionHint } from "../hints";
export declare type MergeResult = MergeSuccess | MergeFailure;
export declare type CompositionOptions = {
export type MergeResult = MergeSuccess | MergeFailure;
export type CompositionOptions = {
allowedFieldTypeMergingSubtypingRules?: SubtypingRule[];

@@ -7,0 +7,0 @@ };

{
"name": "@apollo/composition",
"version": "2.3.2",
"version": "2.3.3",
"description": "Apollo Federation composition utilities",

@@ -30,4 +30,4 @@ "main": "dist/index.js",

"dependencies": {
"@apollo/federation-internals": "2.3.2",
"@apollo/query-graphs": "2.3.2"
"@apollo/federation-internals": "2.3.3",
"@apollo/query-graphs": "2.3.3"
},

@@ -34,0 +34,0 @@ "peerDependencies": {

@@ -315,2 +315,26 @@ import { asFed2SubgraphDocument, buildSubgraph, Subgraphs } from '@apollo/federation-internals';

test('*No* hint on field of interface _with @key_ not being in all subgraphs', () => {
const subgraph1 = gql`
type Query {
a: Int
}
interface T @key(fields: "id") {
id: ID!
a: Int
b: Int
}
`;
const subgraph2 = gql`
type T @interfaceObject @key(fields: "id") {
id: ID!
a: Int
}
`;
const result = mergeDocuments(subgraph1, subgraph2);
expect(result).toNotRaiseHints();
})
test('hints on field of input object value type not being in all subgraphs', () => {

@@ -317,0 +341,0 @@ const subgraph1 = gql`

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 too big to display

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