Skip to content

Commit 2188805

Browse files
committed
chore(deps): upgrade devDeps
1 parent 2591bf7 commit 2188805

File tree

6 files changed

+2441
-3028
lines changed

6 files changed

+2441
-3028
lines changed

.flowconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[version]
2-
^0.151.0
2+
^0.158.0
33

44
[ignore]
55
<PROJECT_ROOT>/build/.*

package.json

+29-28
Original file line numberDiff line numberDiff line change
@@ -39,49 +39,49 @@
3939
"lodash.isequal": "^4.0.0",
4040
"prop-types": "^15.0.0",
4141
"react-draggable": "^4.0.0",
42-
"react-resizable": "^3.0.1"
42+
"react-resizable": "^3.0.4"
4343
},
4444
"devDependencies": {
45-
"@babel/cli": "^7.13.16",
46-
"@babel/core": "^7.14.0",
47-
"@babel/plugin-proposal-class-properties": "^7.13.0",
48-
"@babel/plugin-transform-flow-comments": "^7.12.13",
49-
"@babel/preset-env": "^7.14.1",
50-
"@babel/preset-flow": "^7.13.13",
51-
"@babel/preset-react": "^7.13.13",
52-
"@babel/register": "^7.13.16",
53-
"@webpack-cli/serve": "^1.4.0",
45+
"@babel/cli": "^7.14.8",
46+
"@babel/core": "^7.15.0",
47+
"@babel/plugin-proposal-class-properties": "^7.14.5",
48+
"@babel/plugin-transform-flow-comments": "^7.14.5",
49+
"@babel/preset-env": "^7.15.0",
50+
"@babel/preset-flow": "^7.14.5",
51+
"@babel/preset-react": "^7.14.5",
52+
"@babel/register": "^7.15.3",
53+
"@webpack-cli/serve": "^1.5.2",
5454
"babel-eslint": "^10.1.0",
55-
"babel-jest": "^26.6.3",
55+
"babel-jest": "^27.0.6",
5656
"babel-loader": "^8.2.2",
5757
"babel-plugin-preval": "^5.0.0",
58-
"css-loader": "^5.2.4",
58+
"css-loader": "^6.2.0",
5959
"ejs": "^3.1.6",
6060
"enzyme": "^3.11.0",
6161
"enzyme-adapter-react-16": "^1.15.6",
6262
"enzyme-to-json": "^3.6.2",
63-
"eslint": "^7.26.0",
64-
"eslint-plugin-flowtype": "^5.7.2",
65-
"eslint-plugin-mocha": "^8.1.0",
66-
"eslint-plugin-react": "^7.23.2",
67-
"exports-loader": "^2.0.0",
68-
"flow-bin": "^0.151.0",
69-
"husky": "^6.0.0",
70-
"imports-loader": "^2.0.0",
71-
"jest": "^26.6.3",
72-
"lint-staged": "^11.0.0",
63+
"eslint": "^7.32.0",
64+
"eslint-plugin-flowtype": "^5.9.0",
65+
"eslint-plugin-mocha": "^9.0.0",
66+
"eslint-plugin-react": "^7.24.0",
67+
"exports-loader": "^3.0.0",
68+
"flow-bin": "^0.158.0",
69+
"husky": "^7.0.2",
70+
"imports-loader": "^3.0.0",
71+
"jest": "^27.0.6",
72+
"lint-staged": "^11.1.2",
7373
"lodash": "^4.17.21",
7474
"opener": "^1.5.2",
75-
"prettier": "^2.3.0",
75+
"prettier": "^2.3.2",
7676
"react": "^16.13.1",
7777
"react-dom": "^16.13.1",
7878
"react-hot-loader": "^4.13.0",
7979
"react-transform-hmr": "^1.0.2",
80-
"style-loader": "^2.0.0",
80+
"style-loader": "^3.2.1",
8181
"timsort": "^0.3.0",
82-
"webpack": "^5.36.2",
83-
"webpack-cli": "^4.7.0",
84-
"webpack-dev-server": "^3.11.2"
82+
"webpack": "^5.51.1",
83+
"webpack-cli": "^4.8.0",
84+
"webpack-dev-server": "^4.0.0"
8585
},
8686
"peerDependencies": {
8787
"react": ">= 16.3.0",
@@ -100,11 +100,12 @@
100100
"testMatch": [
101101
"<rootDir>/test/spec/*.js"
102102
],
103+
"testEnvironment": "jsdom",
103104
"testURL": "http://localhost"
104105
},
105106
"lint-staged": {
106107
"*.{js,jsx,css}": [
107108
"prettier --write"
108109
]
109110
}
110-
}
111+
}

test/util/setupTests.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ Enzyme.configure({ adapter: new Adapter() });
1010
import { sort } from "timsort";
1111

1212
// $FlowIgnore dirty hack
13-
Array.prototype.sort = function(comparator) {
13+
Array.prototype.sort = function (comparator) {
1414
sort(this, comparator);
1515
return this;
1616
};
1717

1818
// Required in drag code, not working in JSDOM
1919
Object.defineProperty(HTMLElement.prototype, "offsetParent", {
2020
get() {
21+
// $FlowIgnore[object-this-reference]
2122
return this.parentNode;
2223
}
2324
});

webpack-dev-server.config.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ module.exports = {
99
output: {
1010
path: "/",
1111
filename: "bundle.js",
12-
sourceMapFilename: "[file].map"
12+
sourceMapFilename: "[file].map",
13+
publicPath: "/"
1314
},
1415
module: {
1516
rules: [
@@ -33,12 +34,15 @@ module.exports = {
3334
],
3435
devtool: "eval",
3536
devServer: {
36-
publicPath: "/",
3737
compress: true,
3838
port: 4002,
39-
open: true,
40-
openPage: "index-dev.html",
41-
contentBase: "."
39+
open: "index-dev.html",
40+
client: {
41+
overlay: true
42+
},
43+
static: {
44+
directory: "."
45+
}
4246
},
4347
resolve: {
4448
extensions: [".webpack.js", ".web.js", ".js", ".jsx"],

webpack-examples.config.js

+12-13
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ module.exports = {
2121
output: {
2222
path: __dirname + "/examples",
2323
filename: "[name].js",
24-
sourceMapFilename: "[file].map"
24+
sourceMapFilename: "[file].map",
25+
publicPath: "/examples/"
2526
},
2627
module: {
2728
rules: [
@@ -37,19 +38,19 @@ module.exports = {
3738
},
3839
plugins: [
3940
new webpack.DefinePlugin({
40-
"process.env": {
41-
NODE_ENV: JSON.stringify("production"),
42-
// sigil to load self into #content
43-
STATIC_EXAMPLES: JSON.stringify(true)
44-
}
41+
"process.env.STATIC_EXAMPLES": JSON.stringify(true)
4542
})
4643
],
4744
devServer: {
45+
compress: true,
4846
port: 4002,
49-
open: true,
50-
openPage: "examples/0-showcase.html",
51-
contentBase: ".",
52-
publicPath: "/examples/"
47+
open: "examples/0-showcase.html",
48+
client: {
49+
overlay: true
50+
},
51+
static: {
52+
directory: "."
53+
}
5354
},
5455
resolve: {
5556
extensions: [".js", ".jsx"],
@@ -60,9 +61,7 @@ module.exports = {
6061
// Load all entry points
6162
const files = fs
6263
.readdirSync(__dirname + "/test/examples")
63-
.filter(function (element, index, array) {
64-
return element.match(/^.+\.jsx$/);
65-
});
64+
.filter(element => element.match(/^.+\.jsx$/));
6665

6766
for (const file of files) {
6867
const module_name = file.replace(/\.jsx$/, "");

0 commit comments

Comments
 (0)