Skip to content

Commit 38b0428

Browse files
authored
chore(deps): update devdeps (react-grid-layout#1989)
* chore(deps): update devdeps * chore(actions): update node from 16 to 18 * chore(prettier): rerun it to fix new version formatting issues
1 parent 418ef37 commit 38b0428

File tree

7 files changed

+907
-872
lines changed

7 files changed

+907
-872
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Node.js
2323
uses: actions/setup-node@v2
2424
with:
25-
node-version: 16
25+
node-version: 18
2626

2727
- name: Install Node.js dependencies
2828
run: yarn

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Set up Node.js
4444
uses: actions/setup-node@v2
4545
with:
46-
node-version: 16
46+
node-version: 18
4747

4848
- uses: nearform-actions/optic-release-automation-action@v4
4949
with:

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up Node.js
1919
uses: actions/setup-node@v2
2020
with:
21-
node-version: 16
21+
node-version: 18
2222

2323
- name: Install Node.js dependencies
2424
run: yarn

lib/ReactGridLayout.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ export default class ReactGridLayout extends React.Component<Props, State> {
413413
{ e, node, size, handle }
414414
) => {
415415
const { oldResizeItem } = this.state;
416-
let { layout } = this.state;
416+
const { layout } = this.state;
417417
const { cols, preventCollision, allowOverlap } = this.props;
418418

419419
let shouldMoveItem = false;

lib/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ export function moveElement(
497497
compactType === "vertical" && typeof y === "number"
498498
? oldY >= y
499499
: compactType === "horizontal" && typeof x === "number"
500-
? oldX >= x
501-
: false;
500+
? oldX >= x
501+
: false;
502502
// $FlowIgnore acceptable modification of read-only array as it was recently cloned
503503
if (movingUp) sorted = sorted.reverse();
504504
const collisions = getAllCollisions(sorted, l);

package.json

+18-18
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"prepublishOnly": "make build",
1414
"validate": "npm ls",
1515
"flow": "flow",
16-
"fmt": "prettier --write ./**.{json,js,jsx,yml,md}",
17-
"fmt:check": "prettier --check ./**.{json,js,jsx,yml,md}"
16+
"fmt": "prettier --write .",
17+
"fmt:check": "prettier --check ."
1818
},
1919
"repository": {
2020
"type": "git",
@@ -48,46 +48,46 @@
4848
"fast-equals": "Bug in CRA5 causes fast-equals@5 to fail to import due to .cjs file. See https://github.com/react-grid-layout/react-grid-layout/issues/1904"
4949
},
5050
"devDependencies": {
51-
"@babel/cli": "^7.22.15",
52-
"@babel/core": "^7.22.17",
53-
"@babel/eslint-parser": "^7.22.15",
51+
"@babel/cli": "^7.23.4",
52+
"@babel/core": "^7.23.3",
53+
"@babel/eslint-parser": "^7.23.3",
5454
"@babel/plugin-proposal-class-properties": "^7.18.6",
55-
"@babel/plugin-transform-flow-comments": "^7.22.10",
56-
"@babel/preset-env": "^7.22.15",
57-
"@babel/preset-flow": "^7.22.15",
58-
"@babel/preset-react": "^7.22.15",
55+
"@babel/plugin-transform-flow-comments": "^7.23.3",
56+
"@babel/preset-env": "^7.23.3",
57+
"@babel/preset-flow": "^7.23.3",
58+
"@babel/preset-react": "^7.23.3",
5959
"@babel/register": "^7.22.15",
6060
"@webpack-cli/serve": "^2.0.5",
61-
"babel-jest": "^29.6.4",
61+
"babel-jest": "^29.7.0",
6262
"babel-loader": "^9.1.3",
6363
"babel-plugin-preval": "^5.1.0",
6464
"css-loader": "^6.8.1",
6565
"ejs": "^3.1.9",
6666
"enzyme": "^3.11.0",
6767
"enzyme-adapter-react-16": "^1.15.7",
6868
"enzyme-to-json": "^3.6.2",
69-
"eslint": "^8.49.0",
69+
"eslint": "^8.54.0",
7070
"eslint-plugin-flowtype": "^8.0.3",
71-
"eslint-plugin-mocha": "^10.1.0",
71+
"eslint-plugin-mocha": "^10.2.0",
7272
"eslint-plugin-react": "^7.33.2",
73-
"eslint-plugin-unicorn": "^48.0.1",
73+
"eslint-plugin-unicorn": "^49.0.0",
7474
"exports-loader": "^4.0.0",
7575
"flow-bin": "^0.172.0",
7676
"husky": "^8.0.3",
7777
"imports-loader": "^4.0.1",
78-
"jest": "^29.6.4",
79-
"jest-environment-jsdom": "^29.6.4",
80-
"lint-staged": "^14.0.1",
78+
"jest": "^29.7.0",
79+
"jest-environment-jsdom": "^29.7.0",
80+
"lint-staged": "^15.1.0",
8181
"lodash": "^4.17.21",
8282
"opener": "^1.5.2",
83-
"prettier": "^3.0.3",
83+
"prettier": "^3.1.0",
8484
"react": "^16.13.1",
8585
"react-dom": "^16.13.1",
8686
"react-hot-loader": "^4.13.1",
8787
"react-transform-hmr": "^1.0.2",
8888
"style-loader": "^3.3.3",
8989
"timsort": "^0.3.0",
90-
"webpack": "^5.88.2",
90+
"webpack": "^5.89.0",
9191
"webpack-cli": "^5.1.4",
9292
"webpack-dev-server": "^4.15.1"
9393
},

0 commit comments

Comments
 (0)