Skip to content

v1.0.1

Choose a tag to compare

@edadma edadma released this 22 Feb 23:38
· 382 commits to dev since this release

What's New

  • Rename ConnectSQL → Session — the @petradb/engine npm package now exports Session instead of ConnectSQL
  • Async execute() API — execute() now returns Promise<ExecuteResult[]> for API parity between embedded and network usage
  • New @petradb/client package — network client for petradb-server with the same Session API as @petradb/engine
  • Aligned response formats between engine and server:
    • UPDATE/DELETE use rowCount instead of rows
    • INSERT results include rows and fields
    • TRUNCATE command string is "truncate table"
    • CREATE/DROP TYPE use type key, CREATE/DROP INDEX use index key
  • Scala class rename — internal Scala class renamed from ConnectSQL to JSSession
  • Fix CreateIndexResult serialization — server was using name instead of index
  • Comprehensive test coverage — 9 new server tests and 6 new engine tests for response format alignment