libsql / hrana-client-ts

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

Bun support #5

Closed lukadev-0 closed 1 year ago

lukadev-0 commented 1 year ago

The hrana client currently does not support Bun, and gives the following error when attempting to query something:

TypeError: undefined is not an object
      at lazyLoadStream (:1:20)
      at getReader (:1:20)
      at readStreamIntoSink (:1:32)
      at readableStreamIntoText (:1:20)
      at /home/luka/dev/sandbox/bun-libsql-hrana-test/node_modules/@libsql/hrana-client/lib-esm/http/stream.js:402:27
      at decodePipelineResponse (/home/luka/dev/sandbox/bun-libsql-hrana-test/node_modules/@libsql/hrana-client/lib-esm/http/stream.js:400:38)
      at processTicksAndRejections (:1:2602)

Reproduction

lukadev-0 commented 1 year ago

Looks like this has been fixed in the latest version of @libsql/client (0.3.4)