Skip to content

Commit 18c39b6

Browse files
chore(deps): update
1 parent 6ae4c3e commit 18c39b6

File tree

21 files changed

+2113
-2094
lines changed

21 files changed

+2113
-2094
lines changed

Diff for: .husky/.gitignore

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

Diff for: .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

Diff for: .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

Diff for: husky.config.js

-6
This file was deleted.

Diff for: package-lock.json

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

Diff for: package.json

+14-14
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",
@@ -39,41 +39,41 @@
3939
"dist"
4040
],
4141
"peerDependencies": {
42-
"webpack": "^4.4.0 || ^5.0.0"
42+
"webpack": "^5.27.1"
4343
},
4444
"dependencies": {
4545
"loader-utils": "^2.0.0",
4646
"schema-utils": "^3.0.0",
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",
7777
"webpack-cli": "^4.5.0",
7878
"webpack-dev-server": "^3.7.2"
7979
},

Diff for: 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();

Diff for: 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
/************************************************************************/

0 commit comments

Comments
 (0)