specref
specref copied to clipboard
Bump Node version in package.json, re-generate package-lock.json
The package-lock.json file was generated with a now obsolete version of npm and any attempt to run npm install with a more recent version of npm starts with converting the file to the new JSON format. This update does this so that installing the code (or in a job) does not require creating changes to a repo file.
The package.json file also referenced a now obsolete and no longer supported version of Node.js (v14). Using the opportunity to bump the versions to something more current (>v20.14 for Node, >v10.7 for npm). Any sufficiently recent install of Node.js will match these constraints, and this will allow using more advanced Node.js features (including fetch to replace the dependency on request down the road).
@tobie, I do not know whether this can have any consequence on the server deployment. For the auto-update script, I'm going to create a PR right after this one to switch to a GitHub action, and that action actually needs the new version of package-lock.json (otherwise it's going to update it itself...). I let you check for the web server.