datalust / seq-logging

A Node.js client for the Seq HTTP ingestion API
Apache License 2.0
25 stars 15 forks source link

Update packages to latest versions #79

Closed KodrAus closed 8 months ago

KodrAus commented 8 months ago

This PR just updates our packages to their most recent versions, resolving some vulnerabilities in transient dependencies. I've also removed the nyc dev dependency, which we didn't appear to be using and pulled in a lot of stuff.

KodrAus commented 8 months ago

Ok, looks like we can't update node-fetch without dropping support for Node versions below 18:

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/runner/work/seq-logging/seq-logging/node_modules/node-fetch/src/index.js from /home/runner/work/seq-logging/seq-logging/index.js not supported.
Instead change the require of /home/runner/work/seq-logging/seq-logging/node_modules/node-fetch/src/index.js in /home/runner/work/seq-logging/seq-logging/index.js to a dynamic import() which is available in all CommonJS modules.