We’re pleased to share that a new alpha of the 5.0.0 version of the JavaScript / TypeScript SDK is available on npm and in the alpha branch of the GitHub repository. This version of the SDK represents a breaking change to the existing 4.x SDK, as we have migrated completely to using built-in fetch for HTTP requests across all environments (Node.js, Deno, etc). However, we do expect that most of your code will “just work” with minor adjustments in types.
We would love your help and feedback on this new version - if you have any thoughts you’d like to share, please comment on this post.
Hey @sudarsangp, yes this is related to your node version. We’re dropping all support for v16 as active support was dropped over 2 years ago. Our minimum supported version is v18.
You’ll have to use a polyfill if you want to continue using v16.