Skip to content

Commit a4a24b1

Browse files
committed
chore: update dependencies
BREAKING CHANGE: drop Node 4 support, requires `node >= v6.0.0`
1 parent fdb240e commit a4a24b1

File tree

5 files changed

+3014
-1089
lines changed

5 files changed

+3014
-1089
lines changed

.babelrc

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
{
22
"plugins": [
3-
"transform-object-rest-spread",
4-
"transform-flow-strip-types",
3+
"@babel/plugin-proposal-object-rest-spread",
4+
"@babel/plugin-transform-flow-strip-types"
55
],
66
"env": {
77
"cjs": {
8-
"plugins": [
9-
["transform-runtime", { "polyfill": false }]
10-
],
118
"presets": [
12-
["env", {
13-
"targets": {
14-
"node": 4
15-
},
16-
}]
17-
],
9+
[
10+
"@babel/preset-env",
11+
{
12+
"targets": {
13+
"node": 6
14+
}
15+
}
16+
]
17+
]
1818
},
1919
"mjs": {
2020
"presets": [
2121
[
22-
"env",
22+
"@babel/preset-env",
2323
{
2424
"targets": {
2525
"node": "8.0.0"
@@ -32,11 +32,14 @@
3232
},
3333
"test": {
3434
"presets": [
35-
["env", {
36-
"targets": {
37-
"node": "current"
38-
},
39-
}]
35+
[
36+
"@babel/preset-env",
37+
{
38+
"targets": {
39+
"node": "current"
40+
}
41+
}
42+
]
4043
]
4144
}
4245
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ cache:
77
notifications:
88
email: true
99
node_js:
10-
- "9"
10+
- "10"
1111
- "8"
1212
before_install: yarn global add greenkeeper-lockfile@1
1313
before_script: greenkeeper-lockfile-update

package.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,33 +26,33 @@
2626
},
2727
"homepage": "https://github.com/graphql-compose/graphql-compose-pagination",
2828
"peerDependencies": {
29-
"graphql-compose": ">=4.0.0 || >=3.0.2"
29+
"graphql-compose": ">=5.0.1 || >=4.0.0 || >=3.0.2"
3030
},
3131
"devDependencies": {
32-
"babel-cli": "^6.26.0",
33-
"babel-eslint": "^8.2.5",
34-
"babel-jest": "^23.2.0",
35-
"babel-plugin-transform-flow-strip-types": "^6.22.0",
36-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
37-
"babel-plugin-transform-runtime": "^6.23.0",
38-
"babel-preset-env": "^1.7.0",
32+
"@babel/cli": "^7.0.0",
33+
"@babel/core": "^7.0.0",
34+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
35+
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
36+
"@babel/plugin-transform-runtime": "^7.0.0",
37+
"@babel/preset-env": "^7.0.0",
38+
"@babel/preset-flow": "^7.0.0",
39+
"babel-core": "^7.0.0-bridge.0",
40+
"babel-eslint": "^9.0.0",
41+
"babel-jest": "^23.4.2",
3942
"cz-conventional-changelog": "^2.1.0",
40-
"eslint": "^5.0.1",
41-
"eslint-config-airbnb-base": "^13.0.0",
42-
"eslint-config-prettier": "^2.9.0",
43-
"eslint-plugin-flowtype": "^2.49.3",
44-
"eslint-plugin-import": "^2.13.0",
45-
"eslint-plugin-prettier": "^2.6.1",
46-
"flow-bin": "^0.75.0",
47-
"graphql": "0.13.2",
48-
"graphql-compose": "^4.4.1",
49-
"jest": "^23.2.0",
50-
"prettier": "^1.13.6",
43+
"eslint": "^5.5.0",
44+
"eslint-config-airbnb-base": "^13.1.0",
45+
"eslint-config-prettier": "^3.0.1",
46+
"eslint-plugin-flowtype": "^2.50.0",
47+
"eslint-plugin-import": "^2.14.0",
48+
"eslint-plugin-prettier": "^2.6.2",
49+
"flow-bin": "^0.80.0",
50+
"graphql": "14.0.0",
51+
"graphql-compose": "^5.0.1",
52+
"jest": "^23.5.0",
53+
"prettier": "^1.14.2",
5154
"rimraf": "^2.6.2",
52-
"semantic-release": "^15.6.0"
53-
},
54-
"dependencies": {
55-
"babel-runtime": "^6.26.0"
55+
"semantic-release": "^15.9.12"
5656
},
5757
"config": {
5858
"commitizen": {

src/__mocks__/User.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/* @flow */
22
/* eslint-disable no-param-reassign */
33

4-
import { TypeComposer, Resolver } from 'graphql-compose';
5-
import { GraphQLEnumType } from 'graphql-compose/lib/graphql';
4+
import { TypeComposer, Resolver, EnumTypeComposer } from 'graphql-compose';
65

76
export const UserTC = TypeComposer.create(`
87
type User {
@@ -100,13 +99,13 @@ export const findManyResolver = new Resolver({
10099
type: UserTC,
101100
args: {
102101
filter: filterArgConfig,
103-
sort: new GraphQLEnumType({
102+
sort: EnumTypeComposer.create({
104103
name: 'SortUserInput',
105104
values: {
106-
ID_ASC: { name: 'ID_ASC', value: { id: 1 } },
107-
ID_DESC: { name: 'ID_DESC', value: { id: -1 } },
108-
AGE_ASC: { name: 'AGE_ASC', value: { age: 1 } },
109-
AGE_DESC: { name: 'AGE_DESC', value: { age: -1 } },
105+
ID_ASC: { value: { id: 1 } },
106+
ID_DESC: { value: { id: -1 } },
107+
AGE_ASC: { value: { age: 1 } },
108+
AGE_DESC: { value: { age: -1 } },
110109
},
111110
}),
112111
limit: 'Int',

0 commit comments

Comments
 (0)