@libsql/isomorphic-fetch is weird dependency which we do not properly maintain. For example, for now it uses "web" types in the node context and create issues with undici HTTP client.
This PR completely remove @libsql/isomorphic-fetch in favour of well maintained cross-fetch library.
We expect increase in bundle size as cross-fetch explicitly depends on the node-fetch (@libsql/isomorphic-fetch - 230B minified, `cross-fetch - 9.8KB minified). This increase comes in exchange for safety and stability of our hrana client.
@libsql/isomorphic-fetch
is weird dependency which we do not properly maintain. For example, for now it uses "web" types in the node context and create issues withundici
HTTP client.This PR completely remove
@libsql/isomorphic-fetch
in favour of well maintainedcross-fetch
library.We expect increase in bundle size as
cross-fetch
explicitly depends on thenode-fetch
(@libsql/isomorphic-fetch
- 230B minified, `cross-fetch - 9.8KB minified). This increase comes in exchange for safety and stability of our hrana client.