Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Support GraphQL v15 #1263

Merged
merged 2 commits into from
Apr 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

### Improvements

- Support GraphQL v15 [PR #1263](https://github.com/apollographql/apollo-link/pull/1263) [#1261](https://github.com/apollographql/apollo-link/issues/1261)
- Several dependency updates
- Documentation updates. <br/>
[@samtheson](https://github.com/samtheson) in [#1130](https://github.com/apollographql/apollo-link/pull/1130)


## 2019-06-14

### apollo-link 1.2.12
Expand Down
4 changes: 2 additions & 2 deletions packages/apollo-link-batch-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"tslib": "^1.9.3"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.3 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.3 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"fetch-mock": "6.5.2",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"object-to-querystring": "1.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-batch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"fetch-mock": "6.5.2",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"proxyquire": "1.8.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-dedup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-error/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-link-error/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ import {
Operation,
NextLink,
FetchResult,
ExecutionResult,
} from 'apollo-link';
import { GraphQLError, ExecutionResult } from 'graphql';
import { GraphQLError } from 'graphql';
import { ServerError, ServerParseError } from 'apollo-link-http-common';

export interface ErrorResponse {
Expand Down
4 changes: 2 additions & 2 deletions packages/apollo-link-http-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"tslib": "^1.9.3"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"fetch-mock": "6.5.2",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"object-to-querystring": "1.0.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/apollo-link-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"tslib": "^1.9.3"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"apollo-fetch": "0.7.0",
"fetch-mock": "6.5.2",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"object-to-querystring": "1.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-polling/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-retry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/apollo-link-schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@
"tslib": "^1.9.3"
},
"peerDependencies": {
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"graphql-tools": "2.24.0",
"graphql-tools": "4.0.7",
"jest": "24.9.0",
"rimraf": "2.7.1",
"rollup": "1.29.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/apollo-link-schema/src/__tests__/schemaLink.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Observable, ApolloLink, execute } from 'apollo-link';
import { print, graphql } from 'graphql';
import { execute } from 'apollo-link';
import { makeExecutableSchema } from 'graphql-tools';
import gql from 'graphql-tag';

Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-schema/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { execute } from 'graphql/execution/execute';
import { GraphQLSchema } from 'graphql/type/schema';
import { GraphQLSchema } from 'graphql';

export namespace SchemaLink {
export type ResolverContextFunction = (
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-link-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/apollo-link-ws/src/__tests__/webSocketLink.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { SubscriptionClient } from 'subscriptions-transport-ws';
import { Observable, execute } from 'apollo-link';
import { ExecutionResult } from 'graphql';
import { Observable, execute, ExecutionResult } from 'apollo-link';

import { WebSocketLink } from '../webSocketLink';

Expand Down
4 changes: 2 additions & 2 deletions packages/apollo-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"zen-observable-ts": "file:../zen-observable-ts"
},
"peerDependencies": {
"graphql": "^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0"
"graphql": "^0.11.3 || ^0.12.3 || ^0.13.0 || ^14.0.0 || ^15.0.0"
},
"devDependencies": {
"@types/graphql": "14.2.3",
"@types/jest": "24.9.0",
"@types/node": "9.6.55",
"graphql": "14.5.8",
"graphql": "15.0.0",
"graphql-tag": "2.10.1",
"jest": "24.9.0",
"rimraf": "2.7.1",
Expand Down
12 changes: 10 additions & 2 deletions packages/apollo-link/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import Observable from 'zen-observable-ts';
import { DocumentNode } from 'graphql/language/ast';
import { ExecutionResult } from 'graphql/execution/execute';
export { ExecutionResult, DocumentNode };
import { ExecutionResult as GraphQLExecutionResult } from 'graphql';
export { DocumentNode };

export interface ExecutionResult<
TData = {
[key: string]: any;
}
> extends GraphQLExecutionResult {
data?: TData | null;
}

export interface GraphQLRequest {
query: DocumentNode;
Expand Down