Skip to content

Commit 35377f2

Browse files
Merge branch 'master' into unresolved-entity
2 parents 1501b24 + 470efde commit 35377f2

File tree

8 files changed

+24
-8
lines changed

8 files changed

+24
-8
lines changed

CHANGELOG.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ The version headers in this history reflect the versions of Apollo Server itself
55
- [__CHANGELOG for `@apollo/gateway`__](https://github.com/apollographql/apollo-server/blob/master/packages/apollo-gateway/CHANGELOG.md)
66
- [__CHANGELOG for `@apollo/federation`__](https://github.com/apollographql/apollo-server/blob/master/packages/apollo-federation/CHANGELOG.md)
77

8-
### vNext
8+
### vNEXT
99

10-
- `apollo-engine-reporting`: Add environment variable `APOLLO_SCHEMA_REPORTING` that can enable schema reporting. If `experimental__schemaReporting` is set it will override the environment variables.
11-
- `apollo-engine-reporting`: The schema reporting URL has been changed to use the new dedicated sub-domain `https://edge-server-reporting.api.apollographql.com`.
10+
> The changes noted within this `vNEXT` section have not been released yet. New PRs and commits which introduce changes should include an entry in this `vNEXT` section as part of their development. With few exceptions, the format of the entry should follow convention (i.e., prefix with package name, use markdown `backtick formatting` for package names and code, suffix with a link to the change-set à la `[PR #YYY](https://link/pull/YYY)`, etc.).
11+
When a release is being prepared, a new header will be (manually) created below and the appropriate changes within that release will be moved into the new section.
12+
- `apollo-engine-reporting`: Add environment variable `APOLLO_SCHEMA_REPORTING` that can enable schema reporting. If `experimental__schemaReporting` is set it will override the environment variable. [PR #4206](https://github.com/apollographql/apollo-server/pull/4206)
13+
- `apollo-engine-reporting`: The schema reporting URL has been changed to use the new dedicated sub-domain `https://edge-server-reporting.api.apollographql.com`. [PR #4232](https://github.com/apollographql/apollo-server/pull/4232)
14+
- `apollo-server-core`: Though Apollo Server **is not affected** due to the way it is integrated, in response to [an upstream security advisory for GraphQL Playground](https://github.com/prisma-labs/graphql-playground/security/advisories/GHSA-4852-vrh7-28rf) we have published [the same patch](https://github.com/prisma-labs/graphql-playground/commit/bf1883db538c97b076801a60677733816cb3cfb7) on our `@apollographql/graphql-playground-html` fork and bumped Apollo Server to use it. Again, this was done out of an **abundance of caution** since the way that Apollo Server utilizes `renderPlaygroundPage` is _not_ vulnerable as it does not allow per-request Playground configuration that could allow interpolation of user-input. [PR #4231](https://github.com/apollographql/apollo-server/pull/4231)
1215

1316
### v2.14.3
1417

packages/apollo-federation/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
77
- _Nothing yet! Stay tuned._
88

9+
## 0.16.6
10+
11+
- In-house `Maybe` type which was previously imported from `graphql` and has been moved in `v15.1.0`. [#4230](https://github.com/apollographql/apollo-server/pull/4230)
12+
913
## 0.16.5
1014

1115
- Remove federation primitives from SDL during composition. This allows for services to report their *full* SDL from the `{ _service { sdl } }` query as opposed to the previously limited SDL without federation definitions. [#4209](https://github.com/apollographql/apollo-server/pull/4209)

packages/apollo-federation/src/composition/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {
55
DirectiveDefinitionNode,
66
} from 'graphql';
77

8+
export type Maybe<T> = null | undefined | T;
9+
810
export type ServiceName = string | null;
911

1012
export type DefaultRootOperationTypeName =

packages/apollo-federation/src/composition/utils.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ import {
3131
GraphQLDirective,
3232
OperationTypeNode,
3333
} from 'graphql';
34-
import Maybe from 'graphql/tsutils/Maybe';
35-
import { ExternalFieldDefinition, DefaultRootOperationTypeName } from './types';
34+
import {
35+
ExternalFieldDefinition,
36+
DefaultRootOperationTypeName,
37+
Maybe,
38+
} from './types';
3639
import federationDirectives from '../directives';
3740

3841
export function isStringValueNode(node: any): node is StringValueNode {

packages/apollo-federation/src/composition/validate/sdl/matchingUnions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { GraphQLError, ASTVisitor, UnionTypeDefinitionNode } from 'graphql';
22
import { SDLValidationContext } from 'graphql/validation/ValidationContext';
3-
import Maybe from 'graphql/tsutils/Maybe';
43
import xorBy from 'lodash.xorby';
4+
import { Maybe } from '../../types';
55
import { errorWithCode, logServiceAndType } from '../../utils';
66
import {
77
existedTypeNameMessage,

packages/apollo-federation/src/composition/validate/sdl/uniqueFieldDefinitionNames.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from 'graphql';
1616
import { SDLValidationContext } from 'graphql/validation/ValidationContext';
1717
import { TypeMap } from 'graphql/type/schema';
18-
import Maybe from 'graphql/tsutils/Maybe';
18+
import { Maybe } from '../../types';
1919
import { diffTypeNodes, logServiceAndType } from '../../utils';
2020

2121
type TypeNodeWithFields = TypeDefinitionWithFields | TypeExtensionWithFields;

packages/apollo-federation/src/composition/validate/sdl/uniqueTypeNamesWithFields.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from 'graphql';
88

99
import { SDLValidationContext } from 'graphql/validation/ValidationContext';
10-
import Maybe from 'graphql/tsutils/Maybe';
10+
import { Maybe } from '../../types';
1111
import {
1212
isTypeNodeAnEntity,
1313
diffTypeNodes,

packages/apollo-gateway/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
77
- __FIX__: Continue resolving when an `@external` reference cannot be resolved. [#3914](https://github.com/apollographql/apollo-server/pull/3914)
88

9+
## 0.16.6
10+
11+
- Only changes in the similarly versioned `@apollo/federation` package.
12+
913
## 0.16.5
1014

1115
- Only changes in the similarly versioned `@apollo/federation` package.

0 commit comments

Comments
 (0)