Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE: drop Node 4 support, requires `node >= v6.0.0`
  • Loading branch information
nodkz committed Sep 5, 2018
1 parent ad4977a commit d00e53f
Show file tree
Hide file tree
Showing 6 changed files with 925 additions and 763 deletions.
37 changes: 20 additions & 17 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"plugins": [
"transform-object-rest-spread",
"transform-flow-strip-types",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-transform-flow-strip-types"
],
"env": {
"cjs": {
"plugins": [
["transform-runtime", { "polyfill": false }]
],
"presets": [
["env", {
"targets": {
"node": 4
},
}]
],
[
"@babel/preset-env",
{
"targets": {
"node": 6
}
}
]
]
},
"mjs": {
"presets": [
[
"env",
"@babel/preset-env",
{
"targets": {
"node": "8.0.0"
Expand All @@ -32,11 +32,14 @@
},
"test": {
"presets": [
["env", {
"targets": {
"node": "current"
},
}]
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cache:
notifications:
email: true
node_js:
- "9"
- "10"
- "8"
before_install: yarn global add greenkeeper-lockfile@1
before_script: greenkeeper-lockfile-update
Expand Down
31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,33 @@
},
"homepage": "https://github.com/graphql-compose/graphql-compose-connection",
"peerDependencies": {
"graphql-compose": ">=3.0.0 || >=4.0.0"
"graphql-compose": ">=5.0.1 || >=4.0.0 || >=3.0.0"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-flow": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.4.2",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.7.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.4.0",
"eslint": "^5.5.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-flowtype": "^2.50.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-prettier": "^2.6.2",
"flow-bin": "^0.79.1",
"graphql": "0.13.2",
"graphql-compose": "^4.8.2",
"flow-bin": "^0.80.0",
"graphql": "14.0.0",
"graphql-compose": "^5.0.1",
"jest": "^23.5.0",
"prettier": "^1.14.2",
"rimraf": "^2.6.2",
"semantic-release": "^15.9.9"
},
"dependencies": {
"babel-runtime": "^6.26.0"
"semantic-release": "^15.9.12"
},
"config": {
"commitizen": {
Expand Down
8 changes: 4 additions & 4 deletions src/__mocks__/userTypeComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ export const findManyResolver = new Resolver({
sort: new GraphQLEnumType({
name: 'SortUserInput',
values: {
ID_ASC: { name: 'ID_ASC', value: { id: 1 } },
ID_DESC: { name: 'ID_DESC', value: { id: -1 } },
AGE_ASC: { name: 'AGE_ASC', value: { age: 1 } },
AGE_DESC: { name: 'AGE_DESC', value: { age: -1 } },
ID_ASC: { value: { id: 1 } },
ID_DESC: { value: { id: -1 } },
AGE_ASC: { value: { age: 1 } },
AGE_DESC: { value: { age: -1 } },
},
}),
limit: GraphQLInt,
Expand Down
4 changes: 3 additions & 1 deletion src/types/__tests__/sortInputType-test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* @flow */

import { EnumTypeComposer } from 'graphql-compose';
import { GraphQLEnumType } from 'graphql-compose/lib/graphql';
import { userTypeComposer } from '../../__mocks__/userTypeComposer';
import { prepareSortType } from '../sortInputType';
Expand Down Expand Up @@ -141,7 +142,8 @@ describe('types/sortInputType.js', () => {
});

it('should have enum values', () => {
expect(sortType._enumConfig.values._ID_ASC).toBeTruthy();
const etc = EnumTypeComposer.create(sortType);
expect(etc.hasField('_ID_ASC')).toBeTruthy();
});
});
});
Loading

0 comments on commit d00e53f

Please sign in to comment.