Skip to content

Commit 0c415df

Browse files
committed
fix: flowtype definitions for flow@0.69.0
1 parent 8997c6e commit 0c415df

File tree

4 files changed

+812
-555
lines changed

4 files changed

+812
-555
lines changed

package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,31 @@
3131
},
3232
"devDependencies": {
3333
"babel-cli": "^6.26.0",
34-
"babel-eslint": "^8.2.1",
35-
"babel-jest": "^22.2.2",
34+
"babel-eslint": "^8.2.2",
35+
"babel-jest": "^22.4.3",
3636
"babel-plugin-transform-flow-strip-types": "^6.22.0",
3737
"babel-plugin-transform-object-rest-spread": "^6.26.0",
3838
"babel-plugin-transform-runtime": "^6.23.0",
3939
"babel-preset-env": "^1.6.1",
4040
"cz-conventional-changelog": "^2.1.0",
41-
"elasticsearch": "^14.1.0",
42-
"eslint": "^4.17.0",
41+
"elasticsearch": "^14.2.2",
42+
"eslint": "^4.19.1",
4343
"eslint-config-airbnb-base": "^12.0.1",
4444
"eslint-config-prettier": "^2.9.0",
45-
"eslint-plugin-flowtype": "^2.44.0",
46-
"eslint-plugin-import": "^2.8.0",
45+
"eslint-plugin-flowtype": "^2.46.1",
46+
"eslint-plugin-import": "^2.10.0",
4747
"eslint-plugin-prettier": "^2.6.0",
48-
"express": "^4.16.1",
49-
"express-graphql": "^0.6.11",
50-
"flow-bin": "^0.65.0",
51-
"graphql": "0.13.0",
52-
"graphql-compose": "^3.0.4",
53-
"jest": "^22.3.0",
54-
"nodemon": "^1.14.12",
48+
"express": "^4.16.3",
49+
"express-graphql": "^0.6.12",
50+
"flow-bin": "^0.69.0",
51+
"graphql": "0.13.2",
52+
"graphql-compose": "^3.1.1",
53+
"jest": "^22.4.3",
54+
"nodemon": "^1.17.3",
5555
"npm-run-all": "^4.1.2",
56-
"prettier": "^1.10.2",
56+
"prettier": "^1.11.1",
5757
"rimraf": "^2.6.2",
58-
"semantic-release": "^12.4.1"
58+
"semantic-release": "^15.1.4"
5959
},
6060
"config": {
6161
"commitizen": {

src/mappingConverter.js

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export type ElasticPropertyT = {
3333
type?: string,
3434
fields?: ElasticMappingPropertiesT,
3535
properties?: ElasticMappingPropertiesT,
36+
index?: any,
3637
};
3738

3839
export type InputFieldsMap = {

src/resolvers/searchConnection.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ export default function createSearchConnectionResolver(
103103
const cursor = dataToCursor(node.sort);
104104
if (cursorMap.has(cursor)) {
105105
throw new Error(
106-
'Argument `sort` should be more complex. `cursor` are constructed ' +
107-
'according to the sort fields. Detected that two records have ' +
106+
`Argument \`sort {${args.sort.join(', ')}}\` must be more complex! ` +
107+
'Values from record which are used in `sort` will be used for `cursor` fields. ' +
108+
'According to connection spec `cursor` must be unique for every node.' +
109+
'Detected that two nodes have ' +
108110
`the same cursors '${cursor}' with data '${unbase64(cursor)}'. ` +
109-
'You should add more `sort` fields, which provide unique data ' +
110-
'for all cursors in the result set (eg. `id` field).'
111+
'You must add more `sort` fields, which provide unique data ' +
112+
'for all cursors in the result set.'
111113
);
112114
}
113115
cursorMap.set(cursor, node);

0 commit comments

Comments
 (0)