Skip to content

Commit d00e53f

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

File tree

6 files changed

+925
-763
lines changed

6 files changed

+925
-763
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: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,34 +25,33 @@
2525
},
2626
"homepage": "https://github.com/graphql-compose/graphql-compose-connection",
2727
"peerDependencies": {
28-
"graphql-compose": ">=3.0.0 || >=4.0.0"
28+
"graphql-compose": ">=5.0.1 || >=4.0.0 || >=3.0.0"
2929
},
3030
"devDependencies": {
31-
"babel-cli": "^6.26.0",
32-
"babel-core": "^6.26.3",
33-
"babel-eslint": "^8.2.6",
31+
"@babel/cli": "^7.0.0",
32+
"@babel/core": "^7.0.0",
33+
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
34+
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
35+
"@babel/plugin-transform-runtime": "^7.0.0",
36+
"@babel/preset-env": "^7.0.0",
37+
"@babel/preset-flow": "^7.0.0",
38+
"babel-core": "^7.0.0-bridge.0",
39+
"babel-eslint": "^9.0.0",
3440
"babel-jest": "^23.4.2",
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",
3941
"cz-conventional-changelog": "^2.1.0",
40-
"eslint": "^5.4.0",
42+
"eslint": "^5.5.0",
4143
"eslint-config-airbnb-base": "^13.1.0",
4244
"eslint-config-prettier": "^3.0.1",
4345
"eslint-plugin-flowtype": "^2.50.0",
4446
"eslint-plugin-import": "^2.14.0",
4547
"eslint-plugin-prettier": "^2.6.2",
46-
"flow-bin": "^0.79.1",
47-
"graphql": "0.13.2",
48-
"graphql-compose": "^4.8.2",
48+
"flow-bin": "^0.80.0",
49+
"graphql": "14.0.0",
50+
"graphql-compose": "^5.0.1",
4951
"jest": "^23.5.0",
5052
"prettier": "^1.14.2",
5153
"rimraf": "^2.6.2",
52-
"semantic-release": "^15.9.9"
53-
},
54-
"dependencies": {
55-
"babel-runtime": "^6.26.0"
54+
"semantic-release": "^15.9.12"
5655
},
5756
"config": {
5857
"commitizen": {

src/__mocks__/userTypeComposer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ export const findManyResolver = new Resolver({
128128
sort: new GraphQLEnumType({
129129
name: 'SortUserInput',
130130
values: {
131-
ID_ASC: { name: 'ID_ASC', value: { id: 1 } },
132-
ID_DESC: { name: 'ID_DESC', value: { id: -1 } },
133-
AGE_ASC: { name: 'AGE_ASC', value: { age: 1 } },
134-
AGE_DESC: { name: 'AGE_DESC', value: { age: -1 } },
131+
ID_ASC: { value: { id: 1 } },
132+
ID_DESC: { value: { id: -1 } },
133+
AGE_ASC: { value: { age: 1 } },
134+
AGE_DESC: { value: { age: -1 } },
135135
},
136136
}),
137137
limit: GraphQLInt,

src/types/__tests__/sortInputType-test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* @flow */
22

3+
import { EnumTypeComposer } from 'graphql-compose';
34
import { GraphQLEnumType } from 'graphql-compose/lib/graphql';
45
import { userTypeComposer } from '../../__mocks__/userTypeComposer';
56
import { prepareSortType } from '../sortInputType';
@@ -141,7 +142,8 @@ describe('types/sortInputType.js', () => {
141142
});
142143

143144
it('should have enum values', () => {
144-
expect(sortType._enumConfig.values._ID_ASC).toBeTruthy();
145+
const etc = EnumTypeComposer.create(sortType);
146+
expect(etc.hasField('_ID_ASC')).toBeTruthy();
145147
});
146148
});
147149
});

0 commit comments

Comments
 (0)