Skip to content

Commit 8ac130a

Browse files
ci: fix
1 parent ddc3782 commit 8ac130a

File tree

7 files changed

+1248
-1201
lines changed

7 files changed

+1248
-1201
lines changed

.github/workflows/dependency-review.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- name: "Dependency Review"
1515
uses: actions/dependency-review-action@v4
1616
with:
17+
allow-dependencies-licenses: "pkg:npm/@cspell/dict-en-common-misspellings, pkg:npm/flatted, pkg:npm/parse-imports, pkg:npm/prettier"
1718
allow-licenses: |
1819
0BSD,
1920
AFL-1.1,

eslint.config.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,11 @@ module.exports = [
265265
"n/no-unsupported-features/node-builtins": [
266266
"error",
267267
{
268-
ignores: ["zlib.createBrotliCompress", "zlib.createBrotliDecompress"]
268+
ignores: [
269+
"zlib.createBrotliCompress",
270+
"zlib.createBrotliDecompress",
271+
"EventSource"
272+
]
269273
}
270274
],
271275
"n/exports-style": "error"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
"toml": "^3.0.0",
105105
"tooling": "webpack/tooling#v1.23.5",
106106
"ts-loader": "^9.5.1",
107-
"typescript": "^5.6.2",
107+
"typescript": "^5.7.3",
108108
"url-loader": "^4.1.0",
109109
"wast-loader": "^1.12.1",
110110
"webassembly-feature": "1.3.0",

test/__snapshots__/StatsTestCases.basictest.js.snap

+2-14
Original file line numberDiff line numberDiff line change
@@ -1748,19 +1748,7 @@ webpack x.x.x compiled successfully in X ms"
17481748
`;
17491749

17501750
exports[`StatsTestCases should print correct stats for module-not-found-error 1`] = `
1751-
"ERROR in ./index.js 1:0-17
1752-
Module not found: Error: Can't resolve 'buffer' in 'Xdir/module-not-found-error'
1753-
1754-
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
1755-
This is no longer the case. Verify if you need this module and configure a polyfill for it.
1756-
1757-
If you want to include a polyfill, you need to:
1758-
- add a fallback 'resolve.fallback: { \\"buffer\\": require.resolve(\\"buffer/\\") }'
1759-
- install 'buffer'
1760-
If you don't want to include a polyfill, you can use an empty module like this:
1761-
resolve.fallback: { \\"buffer\\": false }
1762-
1763-
ERROR in ./index.js 2:0-13
1751+
"ERROR in ./index.js 2:0-13
17641752
Module not found: Error: Can't resolve 'os' in 'Xdir/module-not-found-error'
17651753
17661754
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default.
@@ -1772,7 +1760,7 @@ If you want to include a polyfill, you need to:
17721760
If you don't want to include a polyfill, you can use an empty module like this:
17731761
resolve.fallback: { \\"os\\": false }
17741762
1775-
webpack compiled with 2 errors"
1763+
webpack compiled with 1 error"
17761764
`;
17771765

17781766
exports[`StatsTestCases should print correct stats for module-reasons 1`] = `

tsconfig.module.test.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target": "esnext",
44
"module": "esnext",
55
"moduleResolution": "node",
6-
"lib": ["esnext", "dom"],
6+
"lib": ["es2017", "dom"],
77
"allowJs": true,
88
"checkJs": true,
99
"noEmit": true,

types.d.ts

+38-36
Original file line numberDiff line numberDiff line change
@@ -248,19 +248,20 @@ declare interface ArgumentConfig {
248248
type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
249249
values?: any[];
250250
}
251+
type ArrayBufferLike = ArrayBuffer | SharedArrayBuffer;
251252
type ArrayBufferView =
252-
| Uint8Array
253-
| Uint8ClampedArray
254-
| Uint16Array
255-
| Uint32Array
256-
| Int8Array
257-
| Int16Array
258-
| Int32Array
259-
| BigUint64Array
260-
| BigInt64Array
261-
| Float32Array
262-
| Float64Array
263-
| DataView;
253+
| Uint8Array<ArrayBufferLike>
254+
| Uint8ClampedArray<ArrayBufferLike>
255+
| Uint16Array<ArrayBufferLike>
256+
| Uint32Array<ArrayBufferLike>
257+
| Int8Array<ArrayBufferLike>
258+
| Int16Array<ArrayBufferLike>
259+
| Int32Array<ArrayBufferLike>
260+
| BigUint64Array<ArrayBufferLike>
261+
| BigInt64Array<ArrayBufferLike>
262+
| Float32Array<ArrayBufferLike>
263+
| Float64Array<ArrayBufferLike>
264+
| DataView<ArrayBufferLike>;
264265
declare interface Asset {
265266
/**
266267
* the filename of the asset
@@ -15464,6 +15465,7 @@ declare class WebpackError extends Error {
1546415465
* Creates an instance of WebpackError.
1546515466
*/
1546615467
constructor(message?: string);
15468+
[index: number]: () => string;
1546715469
details?: string;
1546815470
module?: null | Module;
1546915471
loc?: SyntheticDependencyLocation | RealDependencyLocation;
@@ -15755,37 +15757,37 @@ declare interface WriteFile {
1575515757
file: PathOrFileDescriptorFs,
1575615758
data:
1575715759
| string
15758-
| Uint8Array
15759-
| Uint8ClampedArray
15760-
| Uint16Array
15761-
| Uint32Array
15762-
| Int8Array
15763-
| Int16Array
15764-
| Int32Array
15765-
| BigUint64Array
15766-
| BigInt64Array
15767-
| Float32Array
15768-
| Float64Array
15769-
| DataView,
15760+
| Uint8Array<ArrayBufferLike>
15761+
| Uint8ClampedArray<ArrayBufferLike>
15762+
| Uint16Array<ArrayBufferLike>
15763+
| Uint32Array<ArrayBufferLike>
15764+
| Int8Array<ArrayBufferLike>
15765+
| Int16Array<ArrayBufferLike>
15766+
| Int32Array<ArrayBufferLike>
15767+
| BigUint64Array<ArrayBufferLike>
15768+
| BigInt64Array<ArrayBufferLike>
15769+
| Float32Array<ArrayBufferLike>
15770+
| Float64Array<ArrayBufferLike>
15771+
| DataView<ArrayBufferLike>,
1577015772
options: WriteFileOptions,
1577115773
callback: (arg0: null | NodeJS.ErrnoException) => void
1577215774
): void;
1577315775
(
1577415776
file: PathOrFileDescriptorFs,
1577515777
data:
1577615778
| string
15777-
| Uint8Array
15778-
| Uint8ClampedArray
15779-
| Uint16Array
15780-
| Uint32Array
15781-
| Int8Array
15782-
| Int16Array
15783-
| Int32Array
15784-
| BigUint64Array
15785-
| BigInt64Array
15786-
| Float32Array
15787-
| Float64Array
15788-
| DataView,
15779+
| Uint8Array<ArrayBufferLike>
15780+
| Uint8ClampedArray<ArrayBufferLike>
15781+
| Uint16Array<ArrayBufferLike>
15782+
| Uint32Array<ArrayBufferLike>
15783+
| Int8Array<ArrayBufferLike>
15784+
| Int16Array<ArrayBufferLike>
15785+
| Int32Array<ArrayBufferLike>
15786+
| BigUint64Array<ArrayBufferLike>
15787+
| BigInt64Array<ArrayBufferLike>
15788+
| Float32Array<ArrayBufferLike>
15789+
| Float64Array<ArrayBufferLike>
15790+
| DataView<ArrayBufferLike>,
1578915791
callback: (arg0: null | NodeJS.ErrnoException) => void
1579015792
): void;
1579115793
}

0 commit comments

Comments
 (0)