Skip to content

Commit 5cf5a1d

Browse files
chore(deps): update (#814)
1 parent 3dd5b6e commit 5cf5a1d

File tree

8 files changed

+2956
-2548
lines changed

8 files changed

+2956
-2548
lines changed

package-lock.json

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

package.json

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
"commitlint": "commitlint --from=main",
3535
"security": "npm audit --production",
3636
"lint:prettier": "prettier --cache --list-different .",
37-
"lint:js": "eslint --cache .",
37+
"lint:code": "eslint --cache .",
3838
"lint:spelling": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
3939
"lint:types": "tsc --pretty --noEmit",
4040
"lint": "npm-run-all -l -p \"lint:**\"",
41-
"fix:js": "npm run lint:js -- --fix",
42-
"fix:prettier": "npm run lint:prettier -- --write",
43-
"fix": "npm-run-all -l fix:js fix:prettier",
41+
"fix:code": "npm run lint:code -- --fix",
42+
"fmt": "npm run lint:prettier -- --write",
43+
"fix": "npm run fix:code && npm run fmt",
4444
"test:only": "cross-env NODE_ENV=test node --experimental-vm-modules node_modules/jest/bin/jest.js",
4545
"test:watch": "npm run test:only -- --watch",
4646
"test:coverage": "npm run test:only -- --collectCoverageFrom=\"src/**/*.js\" --coverage",
@@ -59,43 +59,31 @@
5959
"devDependencies": {
6060
"@babel/cli": "^7.24.6",
6161
"@babel/core": "^7.25.2",
62-
"@babel/eslint-parser": "^7.25.1",
6362
"@babel/preset-env": "^7.25.3",
64-
"@commitlint/cli": "^19.3.0",
65-
"@commitlint/config-conventional": "^19.2.2",
66-
"@eslint/js": "^9.32.0",
67-
"@eslint/markdown": "^7.0.0",
68-
"@stylistic/eslint-plugin": "^5.2.2",
63+
"@commitlint/cli": "^20.3.1",
64+
"@commitlint/config-conventional": "^20.3.1",
6965
"@types/glob-parent": "^5.1.3",
7066
"@types/node": "^22.13.5",
7167
"@types/normalize-path": "^3.0.2",
68+
"@types/picomatch": "^4.0.2",
7269
"@types/serialize-javascript": "^5.0.4",
7370
"babel-jest": "^30.0.0",
7471
"cross-env": "^7.0.3",
75-
"cspell": "^8.15.6",
76-
"del": "^6.1.1",
72+
"cspell": "^9.6.2",
7773
"del-cli": "^6.0.0",
7874
"eslint": "^9.31.0",
79-
"eslint-config-prettier": "^10.1.8",
8075
"eslint-config-webpack": "^4.4.2",
81-
"eslint-plugin-import": "^2.32.0",
8276
"eslint-plugin-jest": "^29.0.1",
83-
"eslint-plugin-jsdoc": "^51.4.1",
84-
"eslint-plugin-n": "^17.21.0",
85-
"eslint-plugin-prettier": "^5.5.3",
86-
"eslint-plugin-unicorn": "^60.0.0",
8777
"file-loader": "^6.2.0",
88-
"globals": "^16.3.0",
8978
"husky": "^9.1.4",
9079
"is-gzip": "^2.0.0",
9180
"jest": "^30.0.0",
92-
"lint-staged": "^15.2.8",
81+
"lint-staged": "^16.2.7",
9382
"memfs": "^4.11.1",
9483
"npm-run-all": "^4.1.5",
9584
"prettier": "^3.2.5",
9685
"standard-version": "^9.3.1",
9786
"typescript": "^5.4.5",
98-
"typescript-eslint": "^8.37.0",
9987
"webpack": "^5.91.0"
10088
},
10189
"peerDependencies": {

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ const getTinyGlobby = memoize(() => require("tinyglobby"));
107107
*/
108108

109109
/**
110-
* @typedef { Record<string, unknown> | ((item: { absoluteFilename: string, sourceFilename: string, filename: string, toType: ToType }) => Record<string, unknown>) } Info
110+
* @typedef {Record<string, unknown> | ((item: { absoluteFilename: string, sourceFilename: string, filename: string, toType: ToType }) => Record<string, unknown>)} Info
111111
*/
112112

113113
/**
@@ -311,7 +311,7 @@ class CopyPlugin {
311311
* @param {number} concurrency /maximum number of concurrent operations
312312
* @param {ObjectPattern & { context: string }} pattern the pattern to process
313313
* @param {number} index the index of the pattern in the patterns array
314-
* @returns {Promise<Array<CopiedResult | undefined> | undefined>} processes the pattern and returns an array of copied results
314+
* @returns {Promise<(CopiedResult | undefined)[] | undefined>} processes the pattern and returns an array of copied results
315315
*/
316316
static async glob(
317317
globby,
@@ -461,7 +461,7 @@ class CopyPlugin {
461461
);
462462

463463
/**
464-
* @type {Array<CopiedResult | undefined>}
464+
* @type {(CopiedResult | undefined)[]}
465465
*/
466466
let copiedResult;
467467

@@ -870,7 +870,7 @@ class CopyPlugin {
870870
pattern.context = context;
871871

872872
/**
873-
* @type {Array<CopiedResult | undefined> | undefined}
873+
* @type {(CopiedResult | undefined)[] | undefined}
874874
*/
875875
let copiedResult;
876876

@@ -897,7 +897,7 @@ class CopyPlugin {
897897
}
898898

899899
/**
900-
* @type {Array<CopiedResult>}
900+
* @type {CopiedResult[]}
901901
*/
902902
let filteredCopiedResult = copiedResult.filter(
903903
/**

src/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/** @typedef {import("webpack").Compilation["inputFileSystem"] } InputFileSystem */
2-
/** @typedef {import("fs").Stats } Stats */
1+
/** @typedef {import("webpack").Compilation["inputFileSystem"]} InputFileSystem */
2+
/** @typedef {import("fs").Stats} Stats */
33

44
/**
55
* @param {InputFileSystem} inputFileSystem the input file system to use for reading the file stats.

test/__snapshots__/validate-options.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`validate options should throw an error on the "options" option with "{"concurrency":true}" value 1`] = `
44
"Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.

test/helpers/run.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const ignore = [
2525
];
2626

2727
/**
28-
* @param {{ patterns?: Array<unknown>, compiler?: unknown, preCopy?: unknown, breakContenthash?: unknown, withChildCompilation?: unknown, expectedErrors?: Array<Error>, expectedWarnings?: Array<Error> }} opts Options for running the test
28+
* @param {{ patterns?: unknown[], compiler?: unknown, preCopy?: unknown, breakContenthash?: unknown, withChildCompilation?: unknown, expectedErrors?: Error[], expectedWarnings?: Error[] }} opts Options for running the test
2929
* @returns {Promise<{ compilation: unknown, compiler: unknown, stats: unknown }>} Resolves with compilation, compiler, and stats
3030
*/
3131
function run(opts) {
@@ -96,7 +96,7 @@ function run(opts) {
9696
}
9797

9898
/**
99-
* @param {{ expectedAssetKeys?: Array<string>, expectedAssetContent?: { [key: string]: unknown }, skipAssetsTesting?: boolean }} opts Options for running the test
99+
* @param {{ expectedAssetKeys?: string[], expectedAssetContent?: { [key: string]: unknown }, skipAssetsTesting?: boolean }} opts Options for running the test
100100
* @returns {Promise<void>} Resolves when the test is complete
101101
*/
102102
function runEmit(opts) {
@@ -163,7 +163,7 @@ const delay = (ms) =>
163163
});
164164

165165
/**
166-
* @param {{ patterns?: Array<unknown>, options?: unknown, newFileLoc1?: string, newFileLoc2?: string, expectedAssetKeys?: Array<string> }} opts Options for running the test
166+
* @param {{ patterns?: unknown[], options?: unknown, newFileLoc1?: string, newFileLoc2?: string, expectedAssetKeys?: string[] }} opts Options for running the test
167167
* @returns {Promise<void>} Resolves when the test is complete
168168
*/
169169
function runChange(opts) {

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ declare class CopyPlugin {
4343
* @param {number} concurrency /maximum number of concurrent operations
4444
* @param {ObjectPattern & { context: string }} pattern the pattern to process
4545
* @param {number} index the index of the pattern in the patterns array
46-
* @returns {Promise<Array<CopiedResult | undefined> | undefined>} processes the pattern and returns an array of copied results
46+
* @returns {Promise<(CopiedResult | undefined)[] | undefined>} processes the pattern and returns an array of copied results
4747
*/
4848
private static glob;
4949
/**

types/utils.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ export function readFile(
1616
inputFileSystem: InputFileSystem,
1717
path: string,
1818
): Promise<string | Buffer>;
19-
/** @typedef {import("webpack").Compilation["inputFileSystem"] } InputFileSystem */
20-
/** @typedef {import("fs").Stats } Stats */
19+
/** @typedef {import("webpack").Compilation["inputFileSystem"]} InputFileSystem */
20+
/** @typedef {import("fs").Stats} Stats */
2121
/**
2222
* @param {InputFileSystem} inputFileSystem the input file system to use for reading the file stats.
2323
* @param {string} path the path to the file or directory to get stats for.

0 commit comments

Comments
 (0)