Skip to content

Commit

Permalink
Fix graphql-tools/subscriptions dependencies and exports (#1257)
Browse files Browse the repository at this point in the history
* Reorder dependencies

* Fix dependencies and exports

* Remove unused exports
  • Loading branch information
olistic authored and evans committed Jun 27, 2018
1 parent ea25edc commit 8ef1818
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 25 deletions.
6 changes: 3 additions & 3 deletions packages/apollo-server-core/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import 'apollo-server-env';

export { runQuery } from './runQuery';
export { runHttpQuery, HttpQueryRequest, HttpQueryError } from './runHttpQuery';

export {
default as GraphQLOptions,
resolveGraphqlOptions,
PersistedQueryOptions,
} from './graphqlOptions';

export {
ApolloError,
toApolloError,
Expand All @@ -23,9 +26,6 @@ export { convertNodeHttpToRequest } from './nodeHttpToRequest';
export { ApolloServerBase } from './ApolloServer';
export * from './types';

export * from 'graphql-tools';
export * from 'graphql-subscriptions';

// This currently provides the ability to have syntax highlighting as well as
// consistency between client and server gql tags
import { DocumentNode } from 'graphql';
Expand Down
6 changes: 3 additions & 3 deletions packages/apollo-server-errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
"engines": {
"node": ">=6"
},
"peerDependencies": {
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0"
},
"devDependencies": {
"@types/jest": "^23.0.0",
"jest": "^23.1.0",
"ts-jest": "^22.4.6"
},
"peerDependencies": {
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0"
},
"jest": {
"testEnvironment": "node",
"transform": {
Expand Down
2 changes: 2 additions & 0 deletions packages/apollo-server-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
"body-parser": "^1.18.3",
"cors": "^2.8.4",
"graphql-playground-middleware-express": "^1.7.1",
"graphql-subscriptions": "^0.5.8",
"graphql-tools": "^3.0.4",
"type-is": "^1.6.16"
},
"devDependencies": {
Expand Down
6 changes: 4 additions & 2 deletions packages/apollo-server-express/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Expose types which can be used by both middleware flavors.
export { GraphQLOptions, gql } from 'apollo-server-core';

export {
Expand All @@ -11,7 +10,10 @@ export {
UserInputError,
} from 'apollo-server-core';

// ApolloServer integration
export * from 'graphql-tools';
export * from 'graphql-subscriptions';

// ApolloServer integration.
export {
ApolloServer,
registerServer,
Expand Down
4 changes: 3 additions & 1 deletion packages/apollo-server-hapi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
"apollo-server-core": "^2.0.0-rc.5",
"apollo-upload-server": "^5.0.0",
"boom": "^7.1.0",
"graphql-playground-html": "^1.6.0"
"graphql-playground-html": "^1.6.0",
"graphql-subscriptions": "^0.5.8",
"graphql-tools": "^3.0.4"
},
"devDependencies": {
"@types/hapi": "^17.0.12",
Expand Down
7 changes: 5 additions & 2 deletions packages/apollo-server-hapi/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Expose types which can be used by both middleware flavors.
export { GraphQLOptions, gql } from 'apollo-server-core';

export {
ApolloError,
toApolloError,
Expand All @@ -10,7 +10,10 @@ export {
UserInputError,
} from 'apollo-server-core';

// ApolloServer integration
export * from 'graphql-tools';
export * from 'graphql-subscriptions';

// ApolloServer integration.
export {
ApolloServer,
registerServer,
Expand Down
8 changes: 4 additions & 4 deletions packages/apollo-server-integration-testsuite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
"dependencies": {
"apollo-server-core": "^2.0.0-rc.5"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
},
"devDependencies": {
"apollo-fetch": "^0.7.0",
"apollo-link": "^1.2.2",
Expand All @@ -39,5 +35,9 @@
"js-sha256": "^0.9.0",
"subscriptions-transport-ws": "^0.9.11",
"ws": "^5.2.0"
},
"typings": "dist/index.d.ts",
"typescript": {
"definition": "dist/index.d.ts"
}
}
3 changes: 2 additions & 1 deletion packages/apollo-server-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
},
"dependencies": {
"apollo-server-core": "^2.0.0-rc.5",
"graphql-playground-html": "^1.6.0"
"graphql-playground-html": "^1.6.0",
"graphql-tools": "^3.0.4"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.6",
Expand Down
5 changes: 3 additions & 2 deletions packages/apollo-server-lambda/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// Expose types which can be used by both middleware flavors.
export { GraphQLOptions, gql } from 'apollo-server-core';

export {
Expand All @@ -11,5 +10,7 @@ export {
UserInputError,
} from 'apollo-server-core';

// ApolloServer integration
export * from 'graphql-tools';

// ApolloServer integration.
export { ApolloServer, CreateHandlerOptions } from './ApolloServer';
15 changes: 8 additions & 7 deletions packages/apollo-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,19 @@
"url": "https://github.com/apollographql/apollo-server/issues"
},
"homepage": "https://github.com/apollographql/apollo-server#readme",
"dependencies": {
"apollo-server-core": "^2.0.0-rc.5",
"apollo-server-express": "^2.0.0-rc.5",
"express": "^4.0.0",
"graphql-subscriptions": "^0.5.8",
"graphql-tools": "^3.0.4"
},
"devDependencies": {
"@types/request": "^2.47.0",
"request": "^2.87.0"
},
"peerDependencies": {
"graphql": "^0.12.0 || ^0.13.0 || ^14.0.0"
},
"typings": "dist/index.d.ts",
"dependencies": {
"apollo-server-core": "^2.0.0-rc.5",
"apollo-server-express": "^2.0.0-rc.5",
"express": "^4.0.0",
"graphql-subscriptions": "^0.5.8"
}
"typings": "dist/index.d.ts"
}

0 comments on commit 8ef1818

Please sign in to comment.