Skip to content

Commit 07b8910

Browse files
chore(deps): updated (#728)
1 parent 6ae4c3e commit 07b8910

File tree

21 files changed

+2111
-2092
lines changed

21 files changed

+2111
-2092
lines changed

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged

husky.config.js

-6
This file was deleted.

package-lock.json

+1,767-1,743
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
2626
"lint:js": "eslint --cache .",
2727
"lint": "npm-run-all -l -p \"lint:**\"",
28-
"prepare": "npm run build",
28+
"prepare": "husky install && npm run build",
2929
"release": "standard-version",
3030
"security": "npm audit",
3131
"test:only": "cross-env NODE_ENV=test jest",
@@ -47,33 +47,33 @@
4747
"webpack-sources": "^1.1.0"
4848
},
4949
"devDependencies": {
50-
"@babel/cli": "^7.12.16",
51-
"@babel/core": "^7.12.16",
52-
"@babel/preset-env": "^7.12.16",
53-
"@commitlint/cli": "^11.0.0",
54-
"@commitlint/config-conventional": "^11.0.0",
50+
"@babel/cli": "^7.13.10",
51+
"@babel/core": "^7.13.10",
52+
"@babel/preset-env": "^7.13.10",
53+
"@commitlint/cli": "^12.0.1",
54+
"@commitlint/config-conventional": "^12.0.1",
5555
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
5656
"babel-eslint": "^10.1.0",
5757
"babel-jest": "^26.6.3",
5858
"bootstrap": "^4.6.0",
5959
"cross-env": "^7.0.3",
60-
"css-loader": "^5.0.2",
60+
"css-loader": "^5.1.3",
6161
"del": "^6.0.0",
6262
"del-cli": "^3.0.1",
63-
"es-check": "5.2.0",
64-
"eslint": "^7.20.0",
65-
"eslint-config-prettier": "^7.2.0",
63+
"es-check": "5.2.3",
64+
"eslint": "^7.22.0",
65+
"eslint-config-prettier": "^8.1.0",
6666
"eslint-plugin-import": "^2.22.1",
6767
"file-loader": "^6.2.0",
68-
"husky": "^4.3.8",
68+
"husky": "^5.2.0",
6969
"jest": "^26.6.3",
70-
"jsdom": "^16.4.0",
70+
"jsdom": "^16.5.1",
7171
"lint-staged": "^10.5.4",
7272
"memfs": "^3.0.2",
7373
"npm-run-all": "^4.1.5",
7474
"prettier": "^2.2.1",
7575
"standard-version": "^9.1.0",
76-
"webpack": "^5.22.0",
76+
"webpack": "^5.27.1",
7777
"webpack-cli": "^4.5.0",
7878
"webpack-dev-server": "^3.7.2"
7979
},

test/TestMemoryFS.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from 'path';
33
import { createFsFromVolume, Volume } from 'memfs';
44
import webpack from 'webpack';
55

6-
const assetsNames = (json) => json.assets.map((asset) => asset.name);
6+
const assetsNames = (assets) => assets.map((asset) => asset.name);
77

88
describe('TestMemoryFS', () => {
99
it('should preserve asset even if not emitted', (done) => {
@@ -40,8 +40,8 @@ describe('TestMemoryFS', () => {
4040
return;
4141
}
4242

43-
expect(assetsNames(stats1.toJson())).toEqual(
44-
assetsNames(stats2.toJson())
43+
expect(assetsNames(stats1.compilation.getAssets())).toEqual(
44+
assetsNames(stats2.compilation.getAssets())
4545
);
4646

4747
done();

test/cases/chunkFilename-fullhash/expected/webpack-5/main.js

+14-21
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ __webpack_require__.r(__webpack_exports__);
1818
/******/ // The require function
1919
/******/ function __webpack_require__(moduleId) {
2020
/******/ // Check if module is in cache
21-
/******/ if(__webpack_module_cache__[moduleId]) {
22-
/******/ return __webpack_module_cache__[moduleId].exports;
21+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
22+
/******/ if (cachedModule !== undefined) {
23+
/******/ return cachedModule.exports;
2324
/******/ }
2425
/******/ // Create a new module (and put it into the cache)
2526
/******/ var module = __webpack_module_cache__[moduleId] = {
@@ -72,7 +73,7 @@ __webpack_require__.r(__webpack_exports__);
7273
/******/
7374
/******/ /* webpack/runtime/getFullHash */
7475
/******/ (() => {
75-
/******/ __webpack_require__.h = () => ("f4055680253d27bc029e")
76+
/******/ __webpack_require__.h = () => ("07119853b0d8e8fbe3ca")
7677
/******/ })();
7778
/******/
7879
/******/ /* webpack/runtime/global */
@@ -247,12 +248,11 @@ __webpack_require__.r(__webpack_exports__);
247248
/******/
248249
/******/ // object to store loaded and loading chunks
249250
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
250-
/******/ // Promise = chunk loading, 0 = chunk loaded
251+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
251252
/******/ var installedChunks = {
252253
/******/ 1: 0
253254
/******/ };
254255
/******/
255-
/******/
256256
/******/ __webpack_require__.f.j = (chunkId, promises) => {
257257
/******/ // JSONP chunk loading for javascript
258258
/******/ var installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
@@ -264,9 +264,7 @@ __webpack_require__.r(__webpack_exports__);
264264
/******/ } else {
265265
/******/ if(true) { // all chunks have JS
266266
/******/ // setup Promise in chunk cache
267-
/******/ var promise = new Promise((resolve, reject) => {
268-
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
269-
/******/ });
267+
/******/ var promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
270268
/******/ promises.push(installedChunkData[2] = promise);
271269
/******/
272270
/******/ // start chunk loading
@@ -302,39 +300,34 @@ __webpack_require__.r(__webpack_exports__);
302300
/******/
303301
/******/ // no HMR manifest
304302
/******/
305-
/******/ // no deferred startup
303+
/******/ // no on chunks loaded
306304
/******/
307305
/******/ // install a JSONP callback for chunk loading
308306
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
309307
/******/ var [chunkIds, moreModules, runtime] = data;
310308
/******/ // add "moreModules" to the modules object,
311309
/******/ // then flag all "chunkIds" as loaded and fire callback
312-
/******/ var moduleId, chunkId, i = 0, resolves = [];
313-
/******/ for(;i < chunkIds.length; i++) {
314-
/******/ chunkId = chunkIds[i];
315-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
316-
/******/ resolves.push(installedChunks[chunkId][0]);
317-
/******/ }
318-
/******/ installedChunks[chunkId] = 0;
319-
/******/ }
310+
/******/ var moduleId, chunkId, i = 0;
320311
/******/ for(moduleId in moreModules) {
321312
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
322313
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
323314
/******/ }
324315
/******/ }
325316
/******/ if(runtime) runtime(__webpack_require__);
326317
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
327-
/******/ while(resolves.length) {
328-
/******/ resolves.shift()();
318+
/******/ for(;i < chunkIds.length; i++) {
319+
/******/ chunkId = chunkIds[i];
320+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
321+
/******/ installedChunks[chunkId][0]();
322+
/******/ }
323+
/******/ installedChunks[chunkIds[i]] = 0;
329324
/******/ }
330325
/******/
331326
/******/ }
332327
/******/
333328
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
334329
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
335330
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
336-
/******/
337-
/******/ // no deferred startup
338331
/******/ })();
339332
/******/
340333
/************************************************************************/
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
/******/ (() => { // webpackBootstrap
22
/******/ "use strict";
33
/******/ var __webpack_modules__ = ([
4-
/* 0 */
5-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6-
7-
__webpack_require__.r(__webpack_exports__);
8-
/* harmony import */ var _styleC_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
9-
10-
11-
12-
/***/ }),
4+
/* 0 */,
135
/* 1 */
146
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
157

@@ -18,15 +10,7 @@ __webpack_require__.r(__webpack_exports__);
1810

1911

2012
/***/ }),
21-
/* 2 */
22-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
23-
24-
__webpack_require__.r(__webpack_exports__);
25-
/* harmony import */ var _styleD_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
26-
27-
28-
29-
/***/ }),
13+
/* 2 */,
3014
/* 3 */
3115
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
3216

@@ -43,8 +27,9 @@ __webpack_require__.r(__webpack_exports__);
4327
/******/ // The require function
4428
/******/ function __webpack_require__(moduleId) {
4529
/******/ // Check if module is in cache
46-
/******/ if(__webpack_module_cache__[moduleId]) {
47-
/******/ return __webpack_module_cache__[moduleId].exports;
30+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
31+
/******/ if (cachedModule !== undefined) {
32+
/******/ return cachedModule.exports;
4833
/******/ }
4934
/******/ // Create a new module (and put it into the cache)
5035
/******/ var module = __webpack_module_cache__[moduleId] = {
@@ -63,10 +48,38 @@ __webpack_require__.r(__webpack_exports__);
6348
/******/ // expose the modules object (__webpack_modules__)
6449
/******/ __webpack_require__.m = __webpack_modules__;
6550
/******/
66-
/******/ // the startup function
67-
/******/ // It's empty as some runtime module handles the default behavior
68-
/******/ __webpack_require__.x = x => {};
6951
/************************************************************************/
52+
/******/ /* webpack/runtime/chunk loaded */
53+
/******/ (() => {
54+
/******/ var deferred = [];
55+
/******/ __webpack_require__.O = (result, chunkIds, fn, priority) => {
56+
/******/ if(chunkIds) {
57+
/******/ priority = priority || 0;
58+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
59+
/******/ deferred[i] = [chunkIds, fn, priority];
60+
/******/ return;
61+
/******/ }
62+
/******/ var notFulfilled = Infinity;
63+
/******/ for (var i = 0; i < deferred.length; i++) {
64+
/******/ var [chunkIds, fn, priority] = deferred[i];
65+
/******/ var fulfilled = true;
66+
/******/ for (var j = 0; j < chunkIds.length; j++) {
67+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {
68+
/******/ chunkIds.splice(j--, 1);
69+
/******/ } else {
70+
/******/ fulfilled = false;
71+
/******/ if(priority < notFulfilled) notFulfilled = priority;
72+
/******/ }
73+
/******/ }
74+
/******/ if(fulfilled) {
75+
/******/ deferred.splice(i--, 1)
76+
/******/ result = fn();
77+
/******/ }
78+
/******/ }
79+
/******/ return result;
80+
/******/ };
81+
/******/ })();
82+
/******/
7083
/******/ /* webpack/runtime/hasOwnProperty shorthand */
7184
/******/ (() => {
7285
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
@@ -89,15 +102,11 @@ __webpack_require__.r(__webpack_exports__);
89102
/******/
90103
/******/ // object to store loaded and loading chunks
91104
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
92-
/******/ // Promise = chunk loading, 0 = chunk loaded
105+
/******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
93106
/******/ var installedChunks = {
94107
/******/ 0: 0
95108
/******/ };
96109
/******/
97-
/******/ var deferredModules = [
98-
/******/ [0],
99-
/******/ [2]
100-
/******/ ];
101110
/******/ // no chunk on demand loading
102111
/******/
103112
/******/ // no prefetching
@@ -108,75 +117,55 @@ __webpack_require__.r(__webpack_exports__);
108117
/******/
109118
/******/ // no HMR manifest
110119
/******/
111-
/******/ var checkDeferredModules = x => {};
120+
/******/ __webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
112121
/******/
113122
/******/ // install a JSONP callback for chunk loading
114123
/******/ var webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
115-
/******/ var [chunkIds, moreModules, runtime, executeModules] = data;
124+
/******/ var [chunkIds, moreModules, runtime] = data;
116125
/******/ // add "moreModules" to the modules object,
117126
/******/ // then flag all "chunkIds" as loaded and fire callback
118-
/******/ var moduleId, chunkId, i = 0, resolves = [];
119-
/******/ for(;i < chunkIds.length; i++) {
120-
/******/ chunkId = chunkIds[i];
121-
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
122-
/******/ resolves.push(installedChunks[chunkId][0]);
123-
/******/ }
124-
/******/ installedChunks[chunkId] = 0;
125-
/******/ }
127+
/******/ var moduleId, chunkId, i = 0;
126128
/******/ for(moduleId in moreModules) {
127129
/******/ if(__webpack_require__.o(moreModules, moduleId)) {
128130
/******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
129131
/******/ }
130132
/******/ }
131133
/******/ if(runtime) runtime(__webpack_require__);
132134
/******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
133-
/******/ while(resolves.length) {
134-
/******/ resolves.shift()();
135+
/******/ for(;i < chunkIds.length; i++) {
136+
/******/ chunkId = chunkIds[i];
137+
/******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
138+
/******/ installedChunks[chunkId][0]();
139+
/******/ }
140+
/******/ installedChunks[chunkIds[i]] = 0;
135141
/******/ }
136-
/******/
137-
/******/ // add entry modules from loaded chunk to deferred list
138-
/******/ if(executeModules) deferredModules.push.apply(deferredModules, executeModules);
139-
/******/
140-
/******/ // run deferred modules when all chunks ready
141-
/******/ return checkDeferredModules();
142+
/******/ __webpack_require__.O();
142143
/******/ }
143144
/******/
144145
/******/ var chunkLoadingGlobal = self["webpackChunk"] = self["webpackChunk"] || [];
145146
/******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
146147
/******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
147-
/******/
148-
/******/ function checkDeferredModulesImpl() {
149-
/******/ var result;
150-
/******/ for(var i = 0; i < deferredModules.length; i++) {
151-
/******/ var deferredModule = deferredModules[i];
152-
/******/ var fulfilled = true;
153-
/******/ for(var j = 1; j < deferredModule.length; j++) {
154-
/******/ var depId = deferredModule[j];
155-
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
156-
/******/ }
157-
/******/ if(fulfilled) {
158-
/******/ deferredModules.splice(i--, 1);
159-
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
160-
/******/ }
161-
/******/ }
162-
/******/ if(deferredModules.length === 0) {
163-
/******/ __webpack_require__.x();
164-
/******/ __webpack_require__.x = x => {};
165-
/******/ }
166-
/******/ return result;
167-
/******/ }
168-
/******/ var startup = __webpack_require__.x;
169-
/******/ __webpack_require__.x = () => {
170-
/******/ // reset startup function so it can be called again when more startup code is added
171-
/******/ __webpack_require__.x = startup || (x => {});
172-
/******/ return (checkDeferredModules = checkDeferredModulesImpl)();
173-
/******/ };
174148
/******/ })();
175149
/******/
176150
/************************************************************************/
177-
/******/
178-
/******/ // run startup
179-
/******/ var __webpack_exports__ = __webpack_require__.x();
180-
/******/
151+
var __webpack_exports__ = {};
152+
// This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
153+
(() => {
154+
var __webpack_exports__ = {};
155+
__webpack_require__.r(__webpack_exports__);
156+
/* harmony import */ var _styleC_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
157+
158+
159+
})();
160+
161+
// This entry need to be wrapped in an IIFE because it need to be isolated against other entry modules.
162+
(() => {
163+
__webpack_require__.r(__webpack_exports__);
164+
/* harmony import */ var _styleD_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
165+
166+
167+
})();
168+
169+
__webpack_require__.O();
181170
/******/ })()
182171
;

0 commit comments

Comments
 (0)