Skip to content

Commit 1beb5fd

Browse files
committed
Move graphql-compose module to peerDependencies.
1 parent 9ac6d7f commit 1beb5fd

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 1.0.1 (July 18, 2016)
44
* Add fallback to `sort` arg, due [unexpected behavior](https://github.com/graphql/graphql-js/issues/435#issuecomment-233297537) of defaultValue for enum field
5+
* Move `graphql-compose` module to peerDependencies.
56

67
## 1.0.0 (July 15, 2016)
78
* Production ready version

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ Besides standard connection arguments `first`, `last`, `before` and `after`, als
1010

1111
[CHANGELOG](https://github.com/nodkz/graphql-compose-connection/blob/master/CHANGELOG.md)
1212

13+
Installation
14+
============
15+
```
16+
npm install graphql graphql-compose graphql-compose-connection --save
17+
```
18+
19+
Modules `graphql` and `graphql-compose` are in `peerDependencies`, so should be installed explicitly in your app. They have global objects and should not have ability to be installed as submodule.
20+
21+
1322
Example
1423
=======
1524
```js

package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@
2222
"url": "https://github.com/nodkz/graphql-compose-connection/issues"
2323
},
2424
"homepage": "https://github.com/nodkz/graphql-compose-connection",
25-
"dependencies": {
26-
"graphql-compose": ">=0.0.6"
27-
},
2825
"peerDependencies": {
29-
"graphql": "^0.5.0"
26+
"graphql-compose": ">=0.0.6",
27+
"graphql": ">=0.5.0"
3028
},
3129
"devDependencies": {
3230
"babel-cli": "6.10.1",

0 commit comments

Comments
 (0)