cloudflare-typescript icon indicating copy to clipboard operation
cloudflare-typescript copied to clipboard

Upcoming major version upgrade

Open jhutchings1 opened this issue 9 months ago • 6 comments

In support of #2267 , we will be upgrading the Typescript library to remove dependencies on node-fetch. We expect that this migration will result in breaking changes and a need to bump the major version of the library. We are currently anticipating that this will land in early May 2025.

cc: @cloudflare/sdk

jhutchings1 avatar Mar 24 '25 20:03 jhutchings1

This issue hasn't been updated in a while. If it's still reproducing, please comment to let us know. Thank you!

github-actions[bot] avatar May 24 '25 16:05 github-actions[bot]

Still relevant 😄

rattrayalex avatar May 24 '25 19:05 rattrayalex

This issue hasn't been updated in a while. If it's still reproducing, please comment to let us know. Thank you!

github-actions[bot] avatar Jul 24 '25 16:07 github-actions[bot]

This issue hasn't been updated in a while. If it's still reproducing, please comment to let us know. Thank you!

github-actions[bot] avatar Sep 30 '25 16:09 github-actions[bot]

Supposedly this was not addressed in 5.0? https://github.com/cloudflare/cloudflare-typescript/issues/2673#issuecomment-3258888204

IanVS avatar Oct 03 '25 13:10 IanVS

@IanVS No it was not. It's on our list, but the team's focus has been almost entirely consumed by Terraform for the past couple of quarters. cc: @KaydeeDee

jhutchings1 avatar Oct 06 '25 21:10 jhutchings1

This issue hasn't been updated in a while. If it's still reproducing, please comment to let us know. Thank you!

github-actions[bot] avatar Dec 06 '25 16:12 github-actions[bot]

In the next major version, I recommend setting an engines.node version to at least >= 18 (but ideally a higher version). Changing this value becomes a breaking change from there on out, but it substantially limits your support matrix and allows you to make these kinds of dependency updates much more easily.

The globalThis.fetch API was added in Node 16.15.0 and hasnt been experimental since 18.0.0 (hence the suggestion). All variants of Node.js "native" fetch is achieved by an embedded copy of node-fetch, so including it as a dependency is just doubling-up for users who are on a Node version released anytime after ~Oct 2021

lukeed avatar Dec 11 '25 03:12 lukeed