This PR fixes several things, I decided to fix everything in one PR rather than multiple as there are many little things.
The most important fix for this PR is the "DeprecationWarning" appearing with node-fetch on Node.js v20.
(node:15500) [node-fetch#buffer] DeprecationWarning: Please use 'response.arrayBuffer()' instead of 'response.buffer()'
(Use `node --trace-deprecation ...` to show where the warning was created)
npm run test command that don't run in CI + failing because of ts-node not allowing to require a ESM module (node-fetch) which tsx (a more modern alternative) does, so it is working again. (+ updated actions/checkout and actions/setup-node)
Wrong ESLint configuration with Prettier, which didn't format the code as wanted.
Updated the dependencies as lot of them were old versions + there were npm found vulnerabilities
Minify ncc build, reduce nearly half of the package size
Hey! :wave:
This PR fixes several things, I decided to fix everything in one PR rather than multiple as there are many little things.
node-fetch
on Node.js v20.npm run test
command that don't run in CI + failing because ofts-node
not allowing to require a ESM module (node-fetch) whichtsx
(a more modern alternative) does, so it is working again. (+ updated actions/checkout and actions/setup-node)