libsql / hrana-client-ts

Hrana client for TypeScript and JavaScript
https://libsql.org/hrana-client-ts/
MIT License
23 stars 7 forks source link

replace @libsql/isomorphic-fetch with cross-fetch #20

Closed sivukhin closed 1 month ago

sivukhin commented 1 month ago

@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.