Tweak the Node.js version listed in "engines", to ensure that process.getBuiltinModule is available

In order to use the PDF.js library in Node.js environments the `process.getBuiltinModule` functionality must be available, which was released in [version `20.16.0`](https://nodejs.org/en/blog/release/v20.16.0), however we've seen repeated issues filed by users on older `20.x` versions.
This commit is contained in:
Jonas Jenwald 2025-04-06 14:32:36 +02:00
parent 6cc37c8415
commit 18617eb792
3 changed files with 3 additions and 3 deletions

View File

@ -2333,7 +2333,7 @@ function packageJson() {
url: `git+${DIST_GIT_URL}`, url: `git+${DIST_GIT_URL}`,
}, },
engines: { engines: {
node: ">=20", node: ">=20.16.0",
}, },
scripts: {}, scripts: {},
}; };

2
package-lock.json generated
View File

@ -63,7 +63,7 @@
"yargs": "^17.7.2" "yargs": "^17.7.2"
}, },
"engines": { "engines": {
"node": ">=20" "node": ">=20.16.0"
} }
}, },
"node_modules/@aashutoshrathi/word-wrap": { "node_modules/@aashutoshrathi/word-wrap": {

View File

@ -62,7 +62,7 @@
"url": "git://github.com/mozilla/pdf.js.git" "url": "git://github.com/mozilla/pdf.js.git"
}, },
"engines": { "engines": {
"node": ">=20" "node": ">=20.16.0"
}, },
"license": "Apache-2.0" "license": "Apache-2.0"
} }