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

Commit

Permalink
Merge pull request #98 from xavcz/master
Browse files Browse the repository at this point in the history
Use print from graphql directly instead of from graphql-tag
  • Loading branch information
Urigo authored Mar 17, 2017
2 parents cacb869 + 16f67a8 commit b0c7108
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Allow data and errors in payload of SUBSCRIPTION_DATA [PR #84](https://github.com/apollographql/subscriptions-transport-ws/pull/84)
- Expose `index.js` as entrypoint for server/NodeJS application to allow NodeJS clients to use `SubscriptionClient` [PR #91](https://github.com/apollographql/subscriptions-transport-ws/pull/91)
- Fixed a bug with missing error message on `INIT_FAIL` message [#88](https://github.com/apollographql/subscriptions-transport-ws/issues/88)
- Remove dependency on `graphql-tag/printer` per [graphql-tag#54](https://github.com/apollographql/graphql-tag/issues/54) [PR #98](https://github.com/apollographql/subscriptions-transport-ws/pull/98)

### 0.5.3
- Fixed a bug with `browser` declaration on package.json ([Issue #79](https://github.com/apollographql/subscriptions-transport-ws/issues/79))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@types/ws": "0.0.38",
"backo2": "^1.0.2",
"eventemitter3": "^2.0.2",
"graphql": "^0.9.1",
"graphql-subscriptions": "^0.3.0",
"graphql-tag": "^1.2.4",
"lodash.isobject": "^3.0.2",
Expand Down Expand Up @@ -39,7 +40,6 @@
"@types/node": "^7.0.5",
"@types/sinon": "^1.16.31",
"chai": "^3.5.0",
"graphql": "^0.9.1",
"istanbul": "^1.0.0-alpha.2",
"lodash": "^4.17.1",
"mocha": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SubscriptionClient } from './client';
import { print } from 'graphql-tag/printer';
import { print } from 'graphql/language/printer';

// Quick way to add the subscribe and unsubscribe functions to the network interface
export function addGraphQLSubscriptions(networkInterface: any, wsClient: SubscriptionClient): any {
Expand Down

0 comments on commit b0c7108

Please sign in to comment.