Skip to content

Commit 9dedb80

Browse files
committed
Fix peerDependencies
Update `flow` till 0.29
1 parent 21a5323 commit 9dedb80

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ esproposal.class_instance_fields=enable
1313
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
1414

1515
[version]
16-
0.28.0
16+
0.29.0

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ graphql-compose-mongoose
22
======================
33
This is a plugin for [graphql-compose](https://github.com/nodkz/graphql-compose), which derives a bunch of GraphQL types and resolvers from mongoose models.
44

5+
6+
Installation
7+
============
8+
```
9+
npm install graphql graphql-compose graphql-compose-connection mongoose graphql-compose-mongoose --save
10+
```
11+
Modules `graphql`, `graphql-compose`, `graphql-compose-connection`, `mongoose` 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.
12+
13+
514
Example
615
=======
716
Live demo: [https://graphql-compose-mongoose.herokuapp.com/](https://graphql-compose-mongoose.herokuapp.com/)

package.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@
2424
},
2525
"homepage": "https://github.com/nodkz/graphql-compose-mongoose",
2626
"dependencies": {
27-
"graphql": "^0.5.0",
28-
"graphql-compose": ">=0.0.6",
29-
"graphql-compose-connection": "^1.0.0",
30-
"object-path": "^0.9.2",
31-
"mongoose": "^4.4.20"
27+
"object-path": "^0.9.2"
28+
},
29+
"peerDependencies": {
30+
"graphql": ">=0.5.0 || >=0.6.0",
31+
"graphql-compose": ">=0.0.6 || >=1.0.0",
32+
"graphql-compose-connection": ">=1.0.0",
33+
"mongoose": ">=4.0.0"
3234
},
3335
"devDependencies": {
3436
"babel-cli": "6.10.1",
@@ -49,7 +51,7 @@
4951
"eslint-plugin-import": "1.10.2",
5052
"eslint-plugin-jsx-a11y": "1.5.5",
5153
"eslint-plugin-react": "5.2.2",
52-
"flow-bin": "0.28.0",
54+
"flow-bin": "0.29.0",
5355
"mocha": "2.5.3",
5456
"rimraf": "2.5.2",
5557
"sane": "1.3.4"

0 commit comments

Comments
 (0)