- Remove
cross-fetchdependency and use nativefetch,Request, andResponseglobals. This package now requires an environment with a built-in Fetch API (Node 18+, modern browsers, Bun, Deno).
- Add support for propagating remote encryption key
- Replace isomorphic-fetch dependency with cross-fetch
- Upgrade isomorphic-fetch to v0.3.0 which do not override
fetchagent 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-fetchdependency 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
3to theProtocolVersiontype - Added
BatchCond.isAutocommit() - Added
Stream.getAutocommit() - Added parameter
useCursortoStream.batch()
- Added variant
- Changed meaning of
Stream.close(), which now closes the stream immediately- Added
Stream.closeGracefully()
- Added
- Changed type of
StmtResult.lastInsertRowidto bigint - Changed
BatchCond.and()andBatchCond.or()to pass theBatchobject - Added
Stream.client() - Added
MisuseErrorandInternalError - Added reexport of
WebSocketfrom@libsql/isomorphic-ws - Added reexports of
fetch,Request,Responseand other types from@libsql/isomorphic-fetch - Dropped workarounds for broken WebSocket support in Miniflare 2
- Pass a
stringinstead ofURLto theRequestconstructor
- Added
customFetchargument toopenHttp()to override thefetch()function
- Added
IntMode,Client.intModeandStream.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
SqlOwnerinterface for thestoreSql()method, which is implemented byWsClientandHttpStream
- Removed
- Added HTTP
statustoHttpServerError - Changed
parseLibsqlUrl()to support both WebSocket and HTTP URLs - Changed
Valuetype to includebigint