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

Commit

Permalink
Update 'graphql-js'
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Jun 4, 2020
1 parent 5cc17bd commit 19cbf79
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 447 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"express": "4.17.1",
"flow-bin": "0.125.1",
"graphiql": "0.17.5",
"graphql": "14.5.8",
"graphql": "15.0.0",
"mocha": "6.2.2",
"multer": "1.4.2",
"nyc": "14.1.1",
Expand All @@ -78,6 +78,6 @@
"unfetch": "4.1.0"
},
"peerDependencies": {
"graphql": "^14.4.1"
"graphql": "^14.6.0 || ^15.0.0"
}
}
4 changes: 2 additions & 2 deletions src/__tests__/http-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,7 @@ function urlString(urlParams?: ?{ [param: string]: mixed, ... }) {
expect(JSON.parse(response.text)).to.deep.equal({
errors: [
{
message: 'Syntax Error: Unexpected Name "syntaxerror"',
message: 'Syntax Error: Unexpected Name "syntaxerror".',
locations: [{ line: 1, column: 1 }],
},
],
Expand Down Expand Up @@ -1587,7 +1587,7 @@ function urlString(urlParams?: ?{ [param: string]: mixed, ... }) {
{
locations: [{ column: 16, line: 1 }],
message:
'Variable "$who" got invalid value ["Dolly", "Jonty"]; Expected type String. String cannot represent a non string value: ["Dolly", "Jonty"]',
'Variable "$who" got invalid value ["Dolly", "Jonty"]; String cannot represent a non string value: ["Dolly", "Jonty"]',
},
],
});
Expand Down
4 changes: 1 addition & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
Source,
ASTVisitor,
DocumentNode,
ValidationRule,
ValidationContext,
ExecutionArgs,
ExecutionResult,
Expand All @@ -14,9 +15,6 @@ import {
GraphQLTypeResolver,
} from 'graphql';

// TODO: Temporary until we update TS typings for 'graphql' package
import { ValidationRule } from 'graphql/validation/ValidationContext';

export = graphqlHTTP;

type Request = IncomingMessage;
Expand Down
Loading

0 comments on commit 19cbf79

Please sign in to comment.