Convert modules to standardized module system
Currently our code is still using the legacy CommonJS module system, instead standardized ECMAScript modules should be used. This makes the code more familiar to JavaScript developers not familiar with the old module system, and helps future proof the code so that we can upgrade our dependencies.
This will be a breaking change for as long as we support Node.js 18, as it does not have the ability to import standard modules from legacy ones. This issue will have to be resolved when we drop support for Node.js 18.
Can we switch to the new Node version now ?
No, we're not going to land this. The library has been deprecated for some time, and future support will likely be dropped in favor of community alternatives.