You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node 18 has a global fetch implementation so @web-std/fetch should not be needed for much longer. Please can we be consistent with ucanto and detect and use the native fetch implementation rather than depending on this module. Library consumers can install their own fetch implementation if they want to use this in an environment that does not support native fetch.
Note: need to globalThis.fetch.bind(globalThis) to avoid TypeError: 'fetch' called on an object that does not implement interface Window. e.g. storacha/ucanto#88
The text was updated successfully, but these errors were encountered:
Node 18 has a global fetch implementation so
@web-std/fetch
should not be needed for much longer. Please can we be consistent withucanto
and detect and use the native fetch implementation rather than depending on this module. Library consumers can install their own fetch implementation if they want to use this in an environment that does not support native fetch.Note: need to
globalThis.fetch.bind(globalThis)
to avoidTypeError: 'fetch' called on an object that does not implement interface Window.
e.g. storacha/ucanto#88The text was updated successfully, but these errors were encountered: