Skip to content

Commit

Permalink
Upgrade to graphql-14 (#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
excitement-engineer committed Sep 16, 2018
1 parent 4a49a72 commit 43aa87a
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 34 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -40,7 +40,7 @@
"README.md"
],
"peerDependencies": {
"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"
"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"
},
"devDependencies": {
"babel-cli": "^6.26.0",
Expand All @@ -51,8 +51,8 @@
"babel-preset-stage-2": "^6.24.1",
"codecov": "^3.0.0",
"eslint-plugin-flowtype": "^2.50.0",
"flow-bin": "^0.65.0",
"graphql": "^0.13.0",
"flow-bin": "^0.81.0",
"graphql": "^14.0.2",
"jest": "^23.6.0",
"mockdate": "^2.0.2",
"standard": "^12.0.1"
Expand Down
6 changes: 0 additions & 6 deletions src/date/index.test.js
Expand Up @@ -86,12 +86,6 @@ describe('GraphQLDate', () => {
GraphQLDate.parseValue(value)
).toEqual(expected)
})
})

it(`parses undefined into javascript undefined`, () => {
expect(
GraphQLDate.parseValue(undefined)
).toBeUndefined()
});

[
Expand Down
4 changes: 3 additions & 1 deletion src/date/integration.test.js
Expand Up @@ -54,6 +54,7 @@ it('executes a query that includes a date', async () => {
validDate
validDateString
input(date: $date)
inputNull: input
}
`

Expand All @@ -65,7 +66,8 @@ it('executes a query that includes a date', async () => {
data: {
validDate: '2016-05-02',
input: '2017-10-01',
validDateString: '1991-12-24'
validDateString: '1991-12-24',
inputNull: null
}
})
})
Expand Down
6 changes: 0 additions & 6 deletions src/dateTime/index.test.js
Expand Up @@ -139,12 +139,6 @@ describe('GraphQLDateTime', () => {
GraphQLDateTime.parseValue(value)
).toEqual(expected)
})
})

it(`parses undefined into undefined`, () => {
expect(
GraphQLDateTime.parseValue(undefined)
).toBeUndefined()
});

[
Expand Down
4 changes: 3 additions & 1 deletion src/dateTime/integration.test.js
Expand Up @@ -68,6 +68,7 @@ it('executes a query that includes a DateTime', async () => {
validDateString
validUnixTimestamp
input(date: $date)
inputNull: input
}
`

Expand All @@ -81,7 +82,8 @@ it('executes a query that includes a DateTime', async () => {
validUTCDateString: '1991-12-24T00:00:00Z',
validDateString: '2016-02-01T11:00:00Z',
input: '2017-10-01T00:00:00.000Z',
validUnixTimestamp: '1997-01-27T00:41:18.000Z'
validUnixTimestamp: '1997-01-27T00:41:18.000Z',
inputNull: null
}
})
})
Expand Down
6 changes: 0 additions & 6 deletions src/time/index.test.js
Expand Up @@ -105,12 +105,6 @@ describe('GraphQLTime', () => {
GraphQLTime.parseValue(value)
).toEqual(expected)
})
})

it(`parses undefined into javascript undefined`, () => {
expect(
GraphQLTime.parseValue(undefined)
).toBeUndefined()
});

[
Expand Down
4 changes: 3 additions & 1 deletion src/time/integration.test.js
Expand Up @@ -64,6 +64,7 @@ it('executes a query that includes a time', async () => {
validUTCTimeString
validTimeString
input(time: $time)
inputNull: input
}
`

Expand All @@ -76,7 +77,8 @@ it('executes a query that includes a time', async () => {
validJSDate: '14:48:10.003Z',
validUTCTimeString: '14:30:00Z',
validTimeString: '22:30:00Z',
input: '14:30:00.000Z'
input: '14:30:00.000Z',
inputNull: null
}
})
})
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Expand Up @@ -1889,9 +1889,9 @@ flat-cache@^1.2.1:
graceful-fs "^4.1.2"
write "^0.2.1"

flow-bin@^0.65.0:
version "0.65.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.65.0.tgz#64ffeca27211c786e2d68508c65686ba1b8a2169"
flow-bin@^0.81.0:
version "0.81.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.81.0.tgz#7f0a733dce1dad3cb1447c692639292dc3d60bf5"

for-in@^0.1.5:
version "0.1.6"
Expand Down Expand Up @@ -2108,11 +2108,11 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.4:
version "1.0.1"
resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725"

graphql@^0.13.0:
version "0.13.0"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.13.0.tgz#d1b44a282279a9ce0a6ec1037329332f4c1079b6"
graphql@^14.0.2:
version "14.0.2"
resolved "https://registry.yarnpkg.com/graphql/-/graphql-14.0.2.tgz#7dded337a4c3fd2d075692323384034b357f5650"
dependencies:
iterall "1.1.x"
iterall "^1.2.2"

growly@^1.3.0:
version "1.3.0"
Expand Down Expand Up @@ -2566,9 +2566,9 @@ istanbul-reports@^1.5.1:
dependencies:
handlebars "^4.0.3"

iterall@1.1.x:
version "1.1.4"
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.4.tgz#0db40d38fdcf53ae14dc8ec674e62ab190d52cfc"
iterall@^1.2.2:
version "1.2.2"
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.2.2.tgz#92d70deb8028e0c39ff3164fdbf4d8b088130cd7"

jest-changed-files@^23.4.2:
version "23.4.2"
Expand Down

0 comments on commit 43aa87a

Please sign in to comment.