Skip to content

Commit c315cc7

Browse files
committed
feat: upgrade till [email protected]
1 parent f48b81a commit c315cc7

File tree

5 files changed

+922
-647
lines changed

5 files changed

+922
-647
lines changed

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -35,46 +35,46 @@
3535
"graphql-compose-pagination": ">=5.0.0"
3636
},
3737
"peerDependencies": {
38-
"graphql-compose": ">=6.0.0",
38+
"graphql-compose": ">=6.2.0",
3939
"mongoose": ">=5.0.0 || >=4.4.0"
4040
},
4141
"devDependencies": {
42-
"@babel/cli": "^7.2.3",
43-
"@babel/core": "^7.3.4",
44-
"@babel/plugin-proposal-class-properties": "^7.3.4",
45-
"@babel/plugin-proposal-object-rest-spread": "^7.3.4",
46-
"@babel/plugin-transform-flow-strip-types": "^7.3.4",
47-
"@babel/plugin-transform-runtime": "^7.3.4",
48-
"@babel/preset-env": "^7.3.4",
42+
"@babel/cli": "^7.4.3",
43+
"@babel/core": "^7.4.3",
44+
"@babel/plugin-proposal-class-properties": "^7.4.0",
45+
"@babel/plugin-proposal-object-rest-spread": "^7.4.3",
46+
"@babel/plugin-transform-flow-strip-types": "^7.4.0",
47+
"@babel/plugin-transform-runtime": "^7.4.3",
48+
"@babel/preset-env": "^7.4.3",
4949
"@babel/preset-flow": "^7.0.0",
50-
"@types/graphql": "^14.0.7",
50+
"@types/graphql": "^14.2.0",
5151
"@types/mongoose": "5.2.10",
5252
"babel-core": "^7.0.0-bridge.0",
5353
"babel-eslint": "^10.0.1",
54-
"babel-jest": "^24.5.0",
54+
"babel-jest": "^24.7.1",
5555
"cz-conventional-changelog": "^2.1.0",
56-
"eslint": "^5.15.2",
56+
"eslint": "^5.16.0",
5757
"eslint-config-airbnb-base": "^13.1.0",
5858
"eslint-config-prettier": "^4.1.0",
59-
"eslint-plugin-flowtype": "^3.4.2",
59+
"eslint-plugin-flowtype": "^3.5.1",
6060
"eslint-plugin-import": "^2.16.0",
6161
"eslint-plugin-prettier": "^3.0.1",
62-
"flow-bin": "^0.95.1",
63-
"graphql": "14.1.1",
64-
"graphql-compose": "^6.0.1",
62+
"flow-bin": "^0.96.0",
63+
"graphql": "14.2.1",
64+
"graphql-compose": "^6.2.0",
6565
"graphql-compose-connection": ">=5.0.0",
6666
"graphql-compose-pagination": ">=5.0.0",
67-
"jest": "^24.5.0",
68-
"mongodb-memory-server": "^4.2.1",
69-
"mongoose": "^5.4.19",
67+
"jest": "^24.7.1",
68+
"mongodb-memory-server": "^4.2.2",
69+
"mongoose": "^5.4.22",
7070
"prettier": "^1.16.4",
7171
"request": "^2.88.0",
7272
"rimraf": "^2.6.3",
7373
"semantic-release": "^15.13.3",
74-
"tslint": "^5.14.0",
74+
"tslint": "^5.15.0",
7575
"tslint-config-prettier": "^1.18.0",
7676
"tslint-plugin-prettier": "^2.0.1",
77-
"typescript": "^3.3.3333"
77+
"typescript": "^3.4.2"
7878
},
7979
"config": {
8080
"commitizen": {

src/discriminators/__tests__/DiscriminatorTypeComposer-test.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ describe('DiscriminatorTypeComposer', () => {
234234
afterAll(() => schemaComposer.clear());
235235

236236
it('should add field to baseTC', () => {
237-
expect(characterDTC.getFieldTC('field1').getFieldType('nested')).toEqual(
237+
expect(characterDTC.getFieldOTC('field1').getFieldType('nested')).toEqual(
238238
graphql.GraphQLString
239239
);
240240
});
@@ -243,14 +243,16 @@ describe('DiscriminatorTypeComposer', () => {
243243
expect(
244244
characterDTC
245245
.getDInterface()
246-
.getFieldTC('field1')
246+
.getFieldOTC('field1')
247247
.getFieldType('nested')
248248
).toEqual(graphql.GraphQLString);
249249
});
250250

251251
it('should have exactly plus two fields added to childTC fields', () => {
252-
expect(droidTC.getFieldTC('field1').getFieldType('nested')).toEqual(graphql.GraphQLString);
253-
expect(personTC.getFieldTC('field2').getFieldType('nested')).toEqual(graphql.GraphQLString);
252+
expect(droidTC.getFieldOTC('field1').getFieldType('nested')).toEqual(graphql.GraphQLString);
253+
expect(personTC.getFieldOTC('field2').getFieldType('nested')).toEqual(
254+
graphql.GraphQLString
255+
);
254256
});
255257

256258
it('should have plus 2 field length on childTC', () => {

src/discriminators/prepareBaseResolvers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function prepareBaseResolvers(baseTC: DiscriminatorTypeComposer<any, any>
7272
case EMCResolvers.connection:
7373
const edgesTC = resolver // eslint-disable-line no-case-declarations
7474
.getTypeComposer()
75-
.getFieldTC('edges')
75+
.getFieldOTC('edges')
7676
.clone(`${baseTC.getTypeName()}Edge`);
7777

7878
edgesTC.extendField('node', {

src/resolvers/helpers/__tests__/filterOperators-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('Resolver helper `filter` ->', () => {
3535

3636
it('should by default have only indexed fields', () => {
3737
_createOperatorsField(itc, 'OperatorsTypeName', UserModel, {});
38-
const operatorsTC = itc.getFieldTC(OPERATORS_FIELDNAME);
38+
const operatorsTC = itc.getFieldITC(OPERATORS_FIELDNAME);
3939
expect(operatorsTC.getFieldNames()).toEqual(
4040
expect.arrayContaining(['name', '_id', 'employment'])
4141
);
@@ -44,14 +44,14 @@ describe('Resolver helper `filter` ->', () => {
4444

4545
it('should have only provided fields via options', () => {
4646
_createOperatorsField(itc, 'OperatorsTypeName', UserModel, { age: ['lt'] });
47-
const operatorsTC = itc.getFieldTC(OPERATORS_FIELDNAME);
47+
const operatorsTC = itc.getFieldITC(OPERATORS_FIELDNAME);
4848
expect(operatorsTC.hasField('age')).toBe(true);
4949
});
5050

5151
it('should have only provided operators via options for field', () => {
5252
_createOperatorsField(itc, 'OperatorsTypeName', UserModel, { age: ['lt', 'gte'] });
53-
const operatorsTC = itc.getFieldTC(OPERATORS_FIELDNAME);
54-
const ageTC = operatorsTC.getFieldTC('age');
53+
const operatorsTC = itc.getFieldITC(OPERATORS_FIELDNAME);
54+
const ageTC = operatorsTC.getFieldITC('age');
5555
expect(ageTC.getFieldNames()).toEqual(expect.arrayContaining(['lt', 'gte']));
5656
});
5757

0 commit comments

Comments
 (0)