MatthewWid / better-sse

⬆ Dead simple, dependency-less, spec-compliant server-sent events implementation for Node, written in TypeScript.
https://matthewwid.github.io/better-sse/
MIT License
558 stars 14 forks source link

Target Node 20. Drop support for Node <18. Update all dependencies to latest. #73

Closed MatthewWid closed 1 month ago

MatthewWid commented 1 month ago

This PR updates the package to target Node 20 and above (the current LTS version) and drops support for Node 17 and below.

In addition, it updates all dependencies to their latest versions (except for ESLint, as there are a number of breaking and incompatible changes with ESLint v9 that makes upgrading difficult for now) and updates the TypeScript configuration to pull from the Node 20 TSConfig base.

Moving support to Node >=18 is a necessary first step to supporting dual exports for CJS and ESM consumers. See #71 and #60.