- Replace isomorphic-fetch dependency with cross-fetch
- Upgrade isomorphic-fetch to v0.3.0 which do not override
fetch
agent and do not have issue with headers in cloud providers (see libsql/isomorphic-ts#17)
- Make sure fetch response body is read or cancelled during flush, which fixes random networking errors observed by users.
- Make row properties writable to match the behavior of the SQLite client.
- Remove confusing 404 error message.
- Update
isomorphic-fetch
dependency for built-in Node fetch(). This package now requires Node 18 or later.
- Switch to use Hrana 2 by default to let Hrana 3 cook a bit longer.
- Update
isomorphic-{fetch, ws}
dependencies for Bun support.
- Added support for Hrana 3, which included some API changes:
- Added variant
3
to theProtocolVersion
type - Added
BatchCond.isAutocommit()
- Added
Stream.getAutocommit()
- Added parameter
useCursor
toStream.batch()
- Added variant
- Changed meaning of
Stream.close()
, which now closes the stream immediately- Added
Stream.closeGracefully()
- Added
- Changed type of
StmtResult.lastInsertRowid
to bigint - Changed
BatchCond.and()
andBatchCond.or()
to pass theBatch
object - Added
Stream.client()
- Added
MisuseError
andInternalError
- Added reexport of
WebSocket
from@libsql/isomorphic-ws
- Added reexports of
fetch
,Request
,Response
and other types from@libsql/isomorphic-fetch
- Dropped workarounds for broken WebSocket support in Miniflare 2
- Pass a
string
instead ofURL
to theRequest
constructor
- Added
customFetch
argument toopenHttp()
to override thefetch()
function
- Added
IntMode
,Client.intMode
andStream.intMode
- Fixed environments that don't support
queueMicrotask()
by implementing a ponyfill libsql-client-ts#47
- Added support for Hrana over HTTP, which included some API changes:
- Removed
open()
, replaced withopenHttp()
andopenWs()
- Added
SqlOwner
interface for thestoreSql()
method, which is implemented byWsClient
andHttpStream
- Removed
- Added HTTP
status
toHttpServerError
- Changed
parseLibsqlUrl()
to support both WebSocket and HTTP URLs - Changed
Value
type to includebigint