Bump @types/node to 20.17.7 to fix findSourceMap type (#96321)

Fixes
https://github.com/vercel/next.js/pull/96198#discussion_r3666434724.

Bumps the pinned `@types/node` version to `20.17.7` to get an upstream
fix for `findSourceMap` type.

Also regenerates the pnpm patch due to a conflict.

I upgraded by just a patch because I'm not sure if we rely on being on
an old version here.

## Test Plan

`findSourceMap` now shows correct types.

<img width="694" height="335" alt="Screenshot 2026-07-29 at 01 02 48"
src="https://github.com/user-attachments/assets/cfe740e0-b8bf-4edc-ac27-698f926feb32"
/>
This commit is contained in:
dan
2026-07-29 01:28:48 +01:00
committed by GitHub
parent 0d5ff0d321
commit faa3bdf7f1
3 changed files with 227 additions and 227 deletions
+4 -4
View File
@@ -161,7 +161,7 @@
"@types/http-proxy": "1.17.17",
"@types/jest": "29.5.5",
"@types/js-yaml": "4.0.9",
"@types/node": "20.17.6",
"@types/node": "20.17.7",
"@types/node-fetch": "2.6.1",
"@types/react": "19.2.10",
"@types/react-dom": "19.2.3",
@@ -313,7 +313,7 @@
"webpack": "5.98.0",
"browserslist": "4.28.1",
"caniuse-lite": "1.0.30001746",
"@types/node": "20.17.6",
"@types/node": "20.17.7",
"@babel/core": "7.26.10",
"@babel/parser": "7.27.0",
"@babel/types": "7.27.0",
@@ -337,7 +337,6 @@
"patchedDependencies": {
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"@types/[email protected]": "patches/@[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
"[email protected]": "patches/[email protected]",
@@ -345,7 +344,8 @@
"@modelcontextprotocol/sdk": "patches/@modelcontextprotocol__sdk.patch",
"@vercel/blob": "patches/@vercel__blob.patch",
"postcss-scss": "patches/postcss-scss.patch",
"[email protected]": "patches/[email protected]"
"[email protected]": "patches/[email protected]",
"@types/[email protected]": "patches/@[email protected]"
}
}
}
@@ -1,11 +1,11 @@
diff --git a/module.d.ts b/module.d.ts
index 3b40061a67ccb5a65071d29a3a8d7134d8851158..d733cde7cee76a389379f187f08c455c1b67b1e8 100644
index 73b88af8b53babda5843dc5d4bb3b2a9b14d053b..6ecfa95f38c81421a49bc055bfff87a4f9dcc51c 100644
--- a/module.d.ts
+++ b/module.d.ts
@@ -49,7 +49,25 @@ declare module "module" {
* @return Returns `module.SourceMap` if a source map is found, `undefined` otherwise.
*/
function findSourceMap(path: string, error?: Error): SourceMap;
function findSourceMap(path: string, error?: Error): SourceMap | undefined;
- interface SourceMapPayload {
+ /**
+ * https://tc39.es/source-map/#index-map
+221 -221
View File
File diff suppressed because it is too large Load Diff