Skip to content

Commit f45cf41

Browse files
committed
fix: upgrade till flow 0.110.0
1 parent 8bfefc4 commit f45cf41

File tree

5 files changed

+962
-745
lines changed

5 files changed

+962
-745
lines changed

.vscode/settings.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
2-
"prettier.eslintIntegration": true,
3-
"eslint.validate": [
4-
"javascript",
5-
],
2+
"eslint.validate": ["javascript"],
63
"javascript.validate.enable": false,
74
"javascript.autoClosingTags": false,
5+
"eslint.autoFixOnSave": true
86
}

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -39,41 +39,41 @@
3939
"mongoose": "^5.0.0 || ^4.4.0"
4040
},
4141
"devDependencies": {
42-
"@babel/cli": "^7.5.5",
43-
"@babel/core": "^7.5.5",
42+
"@babel/cli": "^7.6.4",
43+
"@babel/core": "^7.6.4",
4444
"@babel/plugin-proposal-class-properties": "^7.5.5",
45-
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
46-
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
47-
"@babel/plugin-transform-runtime": "^7.5.5",
48-
"@babel/preset-env": "^7.5.5",
45+
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
46+
"@babel/plugin-transform-flow-strip-types": "^7.6.3",
47+
"@babel/plugin-transform-runtime": "^7.6.2",
48+
"@babel/preset-env": "^7.6.3",
4949
"@babel/preset-flow": "^7.0.0",
50-
"@types/graphql": "^14.2.3",
50+
"@types/graphql": "^14.5.0",
5151
"@types/mongoose": "5.5.11",
5252
"babel-core": "^7.0.0-bridge.0",
53-
"babel-eslint": "^10.0.2",
54-
"babel-jest": "^24.8.0",
55-
"eslint": "^5.16.0",
56-
"eslint-config-airbnb-base": "^13.2.0",
57-
"eslint-config-prettier": "^4.3.0",
58-
"eslint-plugin-flowtype": "^3.13.0",
53+
"babel-eslint": "^10.0.3",
54+
"babel-jest": "^24.9.0",
55+
"eslint": "^6.6.0",
56+
"eslint-config-airbnb-base": "^14.0.0",
57+
"eslint-config-prettier": "^6.5.0",
58+
"eslint-plugin-flowtype": "^4.3.0",
5959
"eslint-plugin-import": "^2.18.2",
60-
"eslint-plugin-prettier": "^3.1.0",
61-
"flow-bin": "^0.104.0",
62-
"graphql": "14.4.2",
63-
"graphql-compose": "^7.3.0",
60+
"eslint-plugin-prettier": "^3.1.1",
61+
"flow-bin": "^0.110.0",
62+
"graphql": "14.5.8",
63+
"graphql-compose": "^7.4.2",
6464
"graphql-compose-connection": "^6.0.3",
6565
"graphql-compose-pagination": "^6.0.3",
66-
"jest": "^24.8.0",
67-
"mongodb-memory-server": "^5.1.9",
68-
"mongoose": "^5.6.8",
66+
"jest": "^24.9.0",
67+
"mongodb-memory-server": "^6.0.1",
68+
"mongoose": "^5.7.7",
6969
"prettier": "^1.18.2",
7070
"request": "^2.88.0",
71-
"rimraf": "^2.6.3",
72-
"semantic-release": "^15.13.19",
73-
"tslint": "^5.18.0",
71+
"rimraf": "^3.0.0",
72+
"semantic-release": "^15.13.28",
73+
"tslint": "^5.20.0",
7474
"tslint-config-prettier": "^1.18.0",
7575
"tslint-plugin-prettier": "^2.0.1",
76-
"typescript": "^3.5.3"
76+
"typescript": "^3.6.4"
7777
},
7878
"scripts": {
7979
"build": "npm run build-lib && npm run build-mjs && npm run build-es && npm run build-node8 && npm run build-ts",

src/discriminators/__mocks__/characterModels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const CharacterObject = {
3333
};
3434

3535
const CharacterSchema = new Schema(CharacterObject);
36-
const ACharacterSchema = new Schema(Object.assign({}, CharacterObject));
36+
const ACharacterSchema = new Schema({ ...CharacterObject });
3737

3838
export function getCharacterModels(DKey: string) {
3939
CharacterSchema.set('discriminatorKey', DKey);

src/resolvers/helpers/filterOperators.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export function _createOperatorsField<TContext>(
140140
if (Object.keys(fields).length > 0) {
141141
const operatorTypeName = `${upperFirst(fieldName)}${typeName}`;
142142
const operatorITC = itc.schemaComposer.getOrCreateITC(operatorTypeName, tc => {
143-
tc.setFields(fields);
143+
tc.setFields((fields: any));
144144
});
145145
operatorsITC.setField(fieldName, operatorITC);
146146
}

0 commit comments

Comments
 (0)