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

Commit

Permalink
bump graphql types versions and export dedup from apollo-link
Browse files Browse the repository at this point in the history
  • Loading branch information
evans committed Aug 8, 2017
1 parent d044195 commit c63f3f4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/apollo-link-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
"typescript": "^2.2.1"
},
"optionalDependencies": {
"@types/graphql": "~0.9.0"
"@types/graphql": "~0.10.2"
}
}
2 changes: 1 addition & 1 deletion packages/apollo-link-dedup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@
"typescript": "^2.2.1"
},
"optionalDependencies": {
"@types/graphql": "~0.9.0"
"@types/graphql": "~0.10.2"
}
}
2 changes: 1 addition & 1 deletion packages/apollo-link-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@
"typescript": "^2.2.1"
},
"optionalDependencies": {
"@types/graphql": "~0.9.0"
"@types/graphql": "~0.10.2"
}
}
2 changes: 1 addition & 1 deletion packages/apollo-link-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@
"typescript": "^2.2.1"
},
"optionalDependencies": {
"@types/graphql": "~0.9.0"
"@types/graphql": "~0.10.2"
}
}
1 change: 1 addition & 0 deletions packages/apollo-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
},
"dependencies": {
"apollo-link-core": "^0.3.0",
"apollo-link-dedup": "^0.1.0",
"apollo-link-http": "^0.3.0",
"apollo-link-polling": "^0.3.0",
"apollo-link-retry": "^0.3.0",
Expand Down
10 changes: 9 additions & 1 deletion packages/apollo-link/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import ApolloLink from 'apollo-link-core';

import DedupLink from 'apollo-link-dedup';
import HttpLink from 'apollo-link-http';
import RetryLink from 'apollo-link-retry';
import SetContextLink from 'apollo-link-set-context';
Expand All @@ -8,6 +9,13 @@ import WebSocketLink from 'apollo-link-ws';

export * from 'apollo-link-core';

export { HttpLink, RetryLink, SetContextLink, PollingLink, WebSocketLink };
export {
HttpLink,
RetryLink,
SetContextLink,
PollingLink,
WebSocketLink,
DedupLink,
};

export default ApolloLink;
6 changes: 6 additions & 0 deletions packages/apollo-link/tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ describe('Exports', () => {
});
});

describe('DedupLink', () => {
it('constructor', () => {
assert.doesNotThrow(() => new Allpollo.DedupLink());
});
});

describe('WebSocketLink', () => {
it('constructor', () => {
const client: any = {};
Expand Down

0 comments on commit c63f3f4

Please sign in to comment.