Skip to content

Commit 2d8e221

Browse files
committed
fix: upgrade dependancies
1 parent bf0b16f commit 2d8e221

File tree

6 files changed

+3155
-2767
lines changed

6 files changed

+3155
-2767
lines changed

.eslintrc

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,27 @@
66
"plugins": [
77
"prettier"
88
],
9-
"parser": "babel-eslint",
9+
"parser": "@babel/eslint-parser",
1010
"rules": {
1111
"no-underscore-dangle": 0,
1212
"arrow-body-style": 0,
1313
"arrow-parens": 0,
1414
"prefer-template": 0,
1515
"no-use-before-define": 0,
1616
"no-else-return": 0,
17-
"comma-dangle": ["error", {
18-
"arrays": "always-multiline",
19-
"objects": "always-multiline",
20-
"imports": "always-multiline",
21-
"exports": "always-multiline",
22-
"functions": "ignore"
23-
}],
24-
"prettier/prettier": ["error"],
17+
"comma-dangle": [
18+
"error",
19+
{
20+
"arrays": "always-multiline",
21+
"objects": "always-multiline",
22+
"imports": "always-multiline",
23+
"exports": "always-multiline",
24+
"functions": "ignore"
25+
}
26+
],
27+
"prettier/prettier": [
28+
"error"
29+
],
2530
"no-plusplus": 0,
2631
"prefer-destructuring": 0,
2732
"no-prototype-builtins": 0,

package.json

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -32,45 +32,46 @@
3232
},
3333
"homepage": "https://github.com/relay-tools/react-relay-network-modern#readme",
3434
"dependencies": {
35-
"core-js": "^3.0.0",
35+
"@types/node": "^18.14.6",
36+
"core-js": "^3.29.0",
3637
"extract-files": "^9.0.0"
3738
},
3839
"peerDependencies": {
3940
"relay-runtime": ">=1.4.0"
4041
},
4142
"devDependencies": {
42-
"@babel/cli": "7.16.0",
43-
"@babel/core": "7.16.0",
44-
"@babel/plugin-proposal-class-properties": "7.16.0",
45-
"@babel/plugin-proposal-object-rest-spread": "7.16.0",
46-
"@babel/plugin-proposal-optional-chaining": "^7.4.4",
47-
"@babel/plugin-transform-flow-strip-types": "7.16.0",
43+
"@babel/cli": "7.21.0",
44+
"@babel/core": "7.21.0",
45+
"@babel/eslint-parser": "^7.19.1",
46+
"@babel/plugin-proposal-class-properties": "7.18.6",
47+
"@babel/plugin-proposal-object-rest-spread": "7.20.7",
48+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
49+
"@babel/plugin-transform-flow-strip-types": "7.21.0",
4850
"@babel/polyfill": "7.12.1",
49-
"@babel/preset-env": "7.16.0",
50-
"@babel/preset-flow": "7.16.0",
51-
"@babel/register": "7.16.0",
51+
"@babel/preset-env": "7.20.2",
52+
"@babel/preset-flow": "7.18.6",
53+
"@babel/register": "7.21.0",
5254
"babel-core": "^7.0.0-bridge.0",
53-
"babel-eslint": "10.1.0",
54-
"babel-jest": "^24.8.0",
55-
"cz-conventional-changelog": "^2.1.0",
56-
"eslint": "^5.16.0",
57-
"eslint-config-airbnb-base": "^13.1.0",
58-
"eslint-config-prettier": "^4.3.0",
59-
"eslint-module-utils": "^2.4.0",
60-
"eslint-plugin-import": "^2.17.3",
61-
"eslint-plugin-prettier": "^3.1.0",
62-
"fetch-mock": "^7.3.3",
63-
"flow-bin": "0.101.0",
64-
"form-data": "^2.3.3",
65-
"jest": "^24.8.0",
66-
"prettier": "^1.18.2",
67-
"relay-runtime": "^4.0.0",
68-
"rimraf": "^2.6.3",
55+
"babel-jest": "^29.4.3",
56+
"cz-conventional-changelog": "^3.3.0",
57+
"eslint": "^8.35.0",
58+
"eslint-config-airbnb-base": "^15.0.0",
59+
"eslint-config-prettier": "^8.6.0",
60+
"eslint-module-utils": "^2.7.4",
61+
"eslint-plugin-import": "^2.27.5",
62+
"eslint-plugin-prettier": "^4.2.1",
63+
"fetch-mock": "^9.11.0",
64+
"flow-bin": "0.201.0",
65+
"form-data": "^4.0.0",
66+
"jest": "^29.4.3",
67+
"prettier": "^2.8.4",
68+
"relay-runtime": "^14.1.0",
69+
"rimraf": "^4.3.0",
6970
"semantic-release": "^15.13.12",
70-
"tslint": "^5.17.0",
71+
"tslint": "^5.20.1",
7172
"tslint-config-prettier": "^1.18.0",
72-
"tslint-plugin-prettier": "^2.0.1",
73-
"typescript": "^3.5.1"
73+
"tslint-plugin-prettier": "^2.3.0",
74+
"typescript": "^4.8.4"
7475
},
7576
"config": {
7677
"commitizen": {
@@ -90,7 +91,7 @@
9091
"build-flow": "echo `$1` && find ./src -name '*.js' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`.flow; done",
9192
"build-dts": "echo `$1` && find ./src -name '*d.ts' -not -path '*/__*' | while read filepath; do cp $filepath `echo ./${COPY_TO_FOLDER:-lib}$filepath | sed 's/.\\/src\\//\\//g'`; done",
9293
"lint": "npm run eslint && npm run tslint && npm run tscheck",
93-
"eslint": "eslint --ext .js ./src",
94+
"eslint": "eslint --ext .js ./src --fix",
9495
"tslint": "tslint -p . \"src/**/*.d.ts\"",
9596
"tscheck": "tsc --noEmit",
9697
"coverage": "jest --coverage --maxWorkers 2",

src/express-middleware/graphqlBatchHTTPWrapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
type ExpressMiddleware = (req: any, res: any) => any;
44

5-
export default function(graphqlHTTPMiddleware: ExpressMiddleware): ExpressMiddleware {
5+
export default function (graphqlHTTPMiddleware: ExpressMiddleware): ExpressMiddleware {
66
return (req, res) => {
77
const subResponses = [];
88
return Promise.all(

src/middlewares/progress.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ function createProgressHandler(opts: ProgressOpts) {
5252
export default function progressMiddleware(opts: ProgressOpts): MiddlewareRaw {
5353
const progressHandler = createProgressHandler(opts);
5454

55-
const mw = (next: MiddlewareRawNextFn) => async (
56-
req: RelayRequestAny
57-
): Promise<FetchResponse> => {
58-
const res: FetchResponse = await next(req);
59-
progressHandler(res.clone());
60-
return res;
61-
};
55+
const mw =
56+
(next: MiddlewareRawNextFn) =>
57+
async (req: RelayRequestAny): Promise<FetchResponse> => {
58+
const res: FetchResponse = await next(req);
59+
progressHandler(res.clone());
60+
return res;
61+
};
6262

6363
mw.isRawMiddleware = true;
6464
return (mw: any);

src/middlewares/retry.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,7 @@ export function promiseWithTimeout<T>(
255255

256256
return new Promise((resolve, reject) => {
257257
const timeoutId = setTimeout(() => {
258-
onTimeout()
259-
.then(resolve)
260-
.catch(reject);
258+
onTimeout().then(resolve).catch(reject);
261259
}, timeoutMS);
262260

263261
promise

0 commit comments

Comments
 (0)