Skip to content

Commit da2801a

Browse files
janicduplessiskassens
authored andcommitted
Update to graphql 14.0.2 (#214)
* Bumb dependencies * Update flow / eslint config, remove unused name property * Revert sane version bump because of node versions compat * Update CI node versions
1 parent 02783f8 commit da2801a

File tree

7 files changed

+553
-385
lines changed

7 files changed

+553
-385
lines changed

.eslintrc

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,7 @@
1111
"node": true
1212
},
1313

14-
"ecmaFeatures": {
15-
"arrowFunctions": true,
16-
"binaryLiterals": true,
17-
"blockBindings": true,
18-
"classes": true,
19-
"defaultParams": true,
20-
"destructuring": true,
21-
"experimentalObjectRestSpread": true,
22-
"forOf": true,
23-
"generators": true,
24-
"globalReturn": true,
25-
"jsx": true,
26-
"modules": true,
27-
"objectLiteralComputedProperties": true,
28-
"objectLiteralDuplicateProperties": true,
29-
"objectLiteralShorthandMethods": true,
30-
"objectLiteralShorthandProperties": true,
31-
"octalLiterals": true,
32-
"regexUFlag": true,
33-
"regexYFlag": true,
34-
"restParams": true,
35-
"spread": true,
36-
"superInFunctions": true,
37-
"templateStrings": true,
38-
"unicodeCodePointEscapes": true
39-
},
40-
4114
"rules": {
42-
"babel/no-await-in-loop": 2,
43-
4415
"flowtype/space-after-type-colon": [2, "always"],
4516
"flowtype/space-before-type-colon": [2, "never"],
4617
"flowtype/space-before-generic-bracket": [2, "never"],
@@ -93,6 +64,7 @@
9364
"newline-after-var": 0,
9465
"no-alert": 2,
9566
"no-array-constructor": 2,
67+
"no-await-in-loop": 2,
9668
"no-bitwise": 0,
9769
"no-caller": 2,
9870
"no-catch-shadow": 0,

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
[options]
1111

1212
[version]
13-
^0.73.0
13+
^0.80.0

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@ language: node_js
22

33
# https://github.com/nodejs/LTS
44
node_js:
5+
- '10'
56
- '9'
67
- '8'
7-
- '7'
88
- '6'
9-
- '4'
109

1110
git:
1211
depth: 5

package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
"cover:lcov": "babel-node node_modules/.bin/isparta cover --root src --report lcovonly node_modules/.bin/_mocha -- $npm_package_options_mocha"
4040
},
4141
"peerDependencies": {
42-
"graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0"
42+
"graphql": "^0.5.0 || ^0.6.0 || ^0.7.0 || ^0.8.0-b || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0"
4343
},
4444
"devDependencies": {
4545
"babel-cli": "^6.26.0",
46-
"babel-core": "^6.26.0",
47-
"babel-eslint": "^8.2.1",
46+
"babel-core": "^6.26.3",
47+
"babel-eslint": "^9.0.0",
4848
"babel-plugin-check-es2015-constants": "^6.22.0",
4949
"babel-plugin-syntax-async-functions": "6.13.0",
5050
"babel-plugin-transform-class-properties": "^6.24.1",
@@ -57,7 +57,7 @@
5757
"babel-plugin-transform-es2015-duplicate-keys": "^6.24.1",
5858
"babel-plugin-transform-es2015-function-name": "^6.24.1",
5959
"babel-plugin-transform-es2015-literals": "^6.22.0",
60-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
60+
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
6161
"babel-plugin-transform-es2015-object-super": "^6.24.1",
6262
"babel-plugin-transform-es2015-parameters": "^6.24.1",
6363
"babel-plugin-transform-es2015-shorthand-properties": "^6.24.1",
@@ -67,14 +67,14 @@
6767
"babel-plugin-transform-object-rest-spread": "^6.26.0",
6868
"babel-plugin-transform-regenerator": "^6.26.0",
6969
"chai": "4.1.2",
70-
"coveralls": "3.0.0",
71-
"eslint": "^4.17.0",
72-
"eslint-plugin-babel": "^4.1.2",
73-
"eslint-plugin-flowtype": "^2.44.0",
74-
"flow-bin": "^0.73.0",
75-
"graphql": "^0.13.1",
76-
"isparta": "4.0.0",
77-
"mocha": "^5.0.1",
78-
"sane": "^2.4.1"
70+
"coveralls": "3.0.2",
71+
"eslint": "^5.5.0",
72+
"eslint-plugin-babel": "^5.2.0",
73+
"eslint-plugin-flowtype": "^2.50.0",
74+
"flow-bin": "^0.80.0",
75+
"graphql": "^14.0.2",
76+
"isparta": "4.1.0",
77+
"mocha": "^5.2.0",
78+
"sane": "^2.5.2"
7979
}
8080
}

src/mutation/__tests__/mutation.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ describe('mutationWithClientMutationId()', () => {
132132
'Field "simpleMutation" argument "input" of type ' +
133133
'"SimpleMutationInput!" is required but not provided.',
134134
locations: [ { line: 3, column: 9 } ],
135-
path: undefined
136135
}
137136
]
138137
});

src/node/node.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ export function nodeDefinitions<TContext>(
5858
});
5959

6060
const nodeField = {
61-
name: 'node',
6261
description: 'Fetches an object given its ID',
6362
type: nodeInterface,
6463
args: {
@@ -71,7 +70,6 @@ export function nodeDefinitions<TContext>(
7170
};
7271

7372
const nodesField = {
74-
name: 'nodes',
7573
description: 'Fetches objects given their IDs',
7674
type: new GraphQLNonNull(
7775
new GraphQLList(
@@ -140,7 +138,6 @@ export function globalIdField(
140138
idFetcher?: (object: any, context: any, info: GraphQLResolveInfo) => string
141139
): GraphQLFieldConfig<*, *> {
142140
return {
143-
name: 'id',
144141
description: 'The ID of an object',
145142
type: new GraphQLNonNull(GraphQLID),
146143
resolve: (obj, args, context, info) => toGlobalId(

0 commit comments

Comments
 (0)