Closed rotu closed 1 month ago
My goal is for glTF Transform to support all stable versions of Node.js — currently v18, v20, and v22. It looks like the Node.js fetch
function is stable only in v22+, so I don't think we should access it automatically in NodeIO quite yet. But we could certainly update the documentation to show built-in fetch rather than node-fetch
, passing that into the NodeIO constructor. I believe this would just require an update to the documentation here:
Users on Node.js v18 and v20 could still use experimental fetch or a third-party library, as needed.
Node has a
fetch
function built in, soNodeIO
should no longer need a third party library.