Skip to content

Commit 152698f

Browse files
chore(deps): update (#205)
1 parent 6915c1b commit 152698f

14 files changed

+736
-738
lines changed

package-lock.json

Lines changed: 572 additions & 574 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dependencies": {
4444
"cacache": "^15.0.5",
4545
"find-cache-dir": "^3.3.1",
46-
"schema-utils": "^2.7.1",
46+
"schema-utils": "^3.0.0",
4747
"serialize-javascript": "^5.0.1",
4848
"webpack-sources": "^1.4.3"
4949
},
@@ -56,16 +56,16 @@
5656
"@gfx/zopfli": "^1.0.15",
5757
"@webpack-contrib/defaults": "^6.3.0",
5858
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
59-
"babel-jest": "^26.3.0",
59+
"babel-jest": "^26.5.2",
6060
"cross-env": "^7.0.2",
61-
"del": "^5.1.0",
61+
"del": "^6.0.0",
6262
"del-cli": "^3.0.1",
63-
"eslint": "^7.9.0",
64-
"eslint-config-prettier": "^6.11.0",
65-
"eslint-plugin-import": "^2.22.0",
66-
"file-loader": "^6.1.0",
63+
"eslint": "^7.10.0",
64+
"eslint-config-prettier": "^6.12.0",
65+
"eslint-plugin-import": "^2.22.1",
66+
"file-loader": "^6.1.1",
6767
"husky": "^4.3.0",
68-
"jest": "^26.4.2",
68+
"jest": "^26.5.2",
6969
"lint-staged": "^10.4.0",
7070
"memfs": "^3.2.0",
7171
"npm-run-all": "^4.1.5",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import webpack, {
1010
ModuleFilenameHelpers,
1111
version as webpackVersion,
1212
} from 'webpack';
13-
import validateOptions from 'schema-utils';
13+
import { validate } from 'schema-utils';
1414
import serialize from 'serialize-javascript';
1515

1616
import schema from './options.json';
@@ -21,7 +21,7 @@ const { RawSource } =
2121

2222
class CompressionPlugin {
2323
constructor(options = {}) {
24-
validateOptions(schema, options, {
24+
validate(schema, options, {
2525
name: 'Compression Plugin',
2626
baseDataPath: 'options',
2727
});

test/__snapshots__/CompressionPlugin.test.js.snap.webpack5

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ Array [
8989
393,
9090
],
9191
Array [
92-
"async.async.27b6ff8858c766f77f7c.js",
92+
"async.async.d1b531c50fe64d803595.js",
9393
265,
9494
],
9595
Array [
96-
"async.async.27b6ff8858c766f77f7c.js.gz",
96+
"async.async.d1b531c50fe64d803595.js.gz",
9797
179,
9898
],
9999
Array [
100-
"main.1dbd2c97402fe5e0aff0.js",
100+
"main.3ed4c27a6135732feb25.js",
101101
16477,
102102
],
103103
Array [
104-
"main.1dbd2c97402fe5e0aff0.js.gz",
104+
"main.3ed4c27a6135732feb25.js.gz",
105105
3926,
106106
],
107107
]
@@ -441,19 +441,19 @@ Array [
441441
393,
442442
],
443443
Array [
444-
"async.async.1c2911c7c819fc826fb7.js",
444+
"async.async.99e57b92178c984aefdd.js",
445445
265,
446446
],
447447
Array [
448-
"async.async.1c2911c7c819fc826fb7.js.gz",
448+
"async.async.99e57b92178c984aefdd.js.gz",
449449
179,
450450
],
451451
Array [
452-
"main.549e08e1b71de97c7e36.js",
452+
"main.57df66b21fd8eebca594.js",
453453
16477,
454454
],
455455
Array [
456-
"main.549e08e1b71de97c7e36.js.gz",
456+
"main.57df66b21fd8eebca594.js.gz",
457457
3926,
458458
],
459459
]
@@ -474,19 +474,19 @@ Array [
474474
393,
475475
],
476476
Array [
477-
"async.async.1c2911c7c819fc826fb7.js",
477+
"async.async.99e57b92178c984aefdd.js",
478478
265,
479479
],
480480
Array [
481-
"async.async.1c2911c7c819fc826fb7.js.gz",
481+
"async.async.99e57b92178c984aefdd.js.gz",
482482
179,
483483
],
484484
Array [
485-
"main.549e08e1b71de97c7e36.js",
485+
"main.57df66b21fd8eebca594.js",
486486
16477,
487487
],
488488
Array [
489-
"main.549e08e1b71de97c7e36.js.gz",
489+
"main.57df66b21fd8eebca594.js.gz",
490490
3926,
491491
],
492492
]
@@ -540,10 +540,10 @@ Array [
540540
},
541541
],
542542
Array [
543-
"async.async.js?ver=931a10b06a9f000536b2",
543+
"async.async.js?ver=65943692495e907c9625",
544544
265,
545545
Object {
546-
"fullhash": "931a10b06a9f000536b2",
546+
"fullhash": "65943692495e907c9625",
547547
"immutable": true,
548548
"related": Object {
549549
"gziped": "async.async.js.gz",
@@ -572,18 +572,18 @@ Array [
572572
],
573573
Array [
574574
"main.js.gz",
575-
3947,
575+
3950,
576576
Object {
577577
"compressed": true,
578578
"immutable": true,
579-
"size": 3947,
579+
"size": 3950,
580580
},
581581
],
582582
Array [
583-
"main.js?var=931a10b06a9f000536b2",
583+
"main.js?var=65943692495e907c9625",
584584
16633,
585585
Object {
586-
"fullhash": "931a10b06a9f000536b2",
586+
"fullhash": "65943692495e907c9625",
587587
"immutable": true,
588588
"related": Object {
589589
"gziped": "main.js.gz",
@@ -630,30 +630,30 @@ Array [
630630
],
631631
Array [
632632
"async.async.js.gz",
633-
233,
633+
234,
634634
Object {
635635
"compressed": true,
636636
"immutable": true,
637-
"size": 233,
637+
"size": 234,
638638
},
639639
],
640640
Array [
641-
"async.async.js.map?ver=2b96998c4528126e8d99",
641+
"async.async.js.map?ver=f41f7203ba0954c3d6fd",
642642
116,
643643
Object {
644644
"development": true,
645645
"size": 116,
646646
},
647647
],
648648
Array [
649-
"async.async.js?ver=2b96998c4528126e8d99",
649+
"async.async.js?ver=f41f7203ba0954c3d6fd",
650650
330,
651651
Object {
652-
"fullhash": "2b96998c4528126e8d99",
652+
"fullhash": "f41f7203ba0954c3d6fd",
653653
"immutable": true,
654654
"related": Object {
655655
"gziped": "async.async.js.gz",
656-
"sourceMap": "async.async.js.map?ver=2b96998c4528126e8d99",
656+
"sourceMap": "async.async.js.map?ver=f41f7203ba0954c3d6fd",
657657
},
658658
"size": 330,
659659
},
@@ -679,23 +679,23 @@ Array [
679679
],
680680
Array [
681681
"main.js.gz",
682-
3983,
682+
3982,
683683
Object {
684684
"compressed": true,
685685
"immutable": true,
686-
"size": 3983,
686+
"size": 3982,
687687
},
688688
],
689689
Array [
690690
"main.js.map.gz",
691-
3956,
691+
3955,
692692
Object {
693693
"compressed": true,
694-
"size": 3956,
694+
"size": 3955,
695695
},
696696
],
697697
Array [
698-
"main.js.map?var=2b96998c4528126e8d99",
698+
"main.js.map?var=f41f7203ba0954c3d6fd",
699699
12430,
700700
Object {
701701
"development": true,
@@ -706,14 +706,14 @@ Array [
706706
},
707707
],
708708
Array [
709-
"main.js?var=2b96998c4528126e8d99",
709+
"main.js?var=f41f7203ba0954c3d6fd",
710710
16694,
711711
Object {
712-
"fullhash": "2b96998c4528126e8d99",
712+
"fullhash": "f41f7203ba0954c3d6fd",
713713
"immutable": true,
714714
"related": Object {
715715
"gziped": "main.js.gz",
716-
"sourceMap": "main.js.map?var=2b96998c4528126e8d99",
716+
"sourceMap": "main.js.map?var=f41f7203ba0954c3d6fd",
717717
},
718718
"size": 16694,
719719
},
@@ -844,10 +844,10 @@ Array [
844844
},
845845
],
846846
Array [
847-
"async.async.js?ver=2b96998c4528126e8d99",
847+
"async.async.js?ver=f41f7203ba0954c3d6fd",
848848
265,
849849
Object {
850-
"fullhash": "2b96998c4528126e8d99",
850+
"fullhash": "f41f7203ba0954c3d6fd",
851851
"immutable": true,
852852
"related": Object {
853853
"brotliCompressed": "async.async.js.br",
@@ -860,11 +860,11 @@ Array [
860860
],
861861
Array [
862862
"main.js.br",
863-
3436,
863+
3446,
864864
Object {
865865
"compressed": true,
866866
"immutable": true,
867-
"size": 3436,
867+
"size": 3446,
868868
},
869869
],
870870
Array [
@@ -887,18 +887,18 @@ Array [
887887
],
888888
Array [
889889
"main.js.gz",
890-
3953,
890+
3951,
891891
Object {
892892
"compressed": true,
893893
"immutable": true,
894-
"size": 3953,
894+
"size": 3951,
895895
},
896896
],
897897
Array [
898-
"main.js?var=2b96998c4528126e8d99",
898+
"main.js?var=f41f7203ba0954c3d6fd",
899899
16636,
900900
Object {
901-
"fullhash": "2b96998c4528126e8d99",
901+
"fullhash": "f41f7203ba0954c3d6fd",
902902
"immutable": true,
903903
"related": Object {
904904
"brotliCompressed": "main.js.br",
@@ -935,15 +935,15 @@ Array [
935935
179,
936936
],
937937
Array [
938-
"async.async.js?ver=2b96998c4528126e8d99",
938+
"async.async.js?ver=f41f7203ba0954c3d6fd",
939939
265,
940940
],
941941
Array [
942942
"main.js.gz",
943-
3953,
943+
3951,
944944
],
945945
Array [
946-
"main.js?var=2b96998c4528126e8d99",
946+
"main.js?var=f41f7203ba0954c3d6fd",
947947
16636,
948948
],
949949
]

test/__snapshots__/algorithm.test.js.snap.webpack5

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ Array [
1919
393,
2020
],
2121
Array [
22-
"async.async.1c2911c7c819fc826fb7.js",
22+
"async.async.99e57b92178c984aefdd.js",
2323
265,
2424
],
2525
Array [
26-
"async.async.1c2911c7c819fc826fb7.js.gz",
26+
"async.async.99e57b92178c984aefdd.js.gz",
2727
179,
2828
],
2929
Array [
30-
"main.549e08e1b71de97c7e36.js",
30+
"main.57df66b21fd8eebca594.js",
3131
16477,
3232
],
3333
Array [
34-
"main.549e08e1b71de97c7e36.js.gz",
34+
"main.57df66b21fd8eebca594.js.gz",
3535
3926,
3636
],
3737
]
@@ -62,19 +62,19 @@ Array [
6262
672,
6363
],
6464
Array [
65-
"async.async.1c2911c7c819fc826fb7.js",
65+
"async.async.99e57b92178c984aefdd.js",
6666
265,
6767
],
6868
Array [
69-
"async.async.1c2911c7c819fc826fb7.js.gz",
69+
"async.async.99e57b92178c984aefdd.js.gz",
7070
265,
7171
],
7272
Array [
73-
"main.549e08e1b71de97c7e36.js",
73+
"main.57df66b21fd8eebca594.js",
7474
16477,
7575
],
7676
Array [
77-
"main.549e08e1b71de97c7e36.js.gz",
77+
"main.57df66b21fd8eebca594.js.gz",
7878
16477,
7979
],
8080
]
@@ -103,11 +103,11 @@ Array [
103103
672,
104104
],
105105
Array [
106-
"async.async.1c2911c7c819fc826fb7.js",
106+
"async.async.99e57b92178c984aefdd.js",
107107
265,
108108
],
109109
Array [
110-
"main.549e08e1b71de97c7e36.js",
110+
"main.57df66b21fd8eebca594.js",
111111
16477,
112112
],
113113
]

0 commit comments

Comments
 (0)