Replace node-fetch by builtin Node fetch API (#30)

* Replace node-fetch by builtin Node fetch API

* Run npm update
This commit is contained in:
Rémi Verschelde
2025-11-10 14:01:34 +01:00
committed by GitHub
4 changed files with 903 additions and 528 deletions

View File

@@ -46,8 +46,7 @@ in a `.env` file at the repository root.
`python -m http.server 8080 -d ./out`).
`rollup` is used for browser packing of scripts and copying of static assets. The
data fetching script is plain JavaScript with `node-fetch` used to polyfill
`fetch()`-like API.
data fetching script is plain JavaScript with the Node `fetch` API.
### Adding a new version

View File

@@ -1,5 +1,4 @@
const fs = require('fs').promises;
const fetch = require('node-fetch');
const nodeUtil = require('util');
const exec = nodeUtil.promisify(require('child_process').exec);

1426
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -16,7 +16,6 @@
"dompurify": "^2.0.7",
"lit-element": "^2.2.1",
"marked": "^0.7.0",
"node-fetch": "^2.7.0",
"posthtml": "^0.12.0",
"rollup": "^1.24.0",
"rollup-plugin-babel": "^4.3.3",