Skip to content

v1.1.0-beta.1

Pre-release
Pre-release

Choose a tag to compare

@junwatu junwatu released this 24 Mar 09:40
· 1 commit to main since this release

What's Changed

Bug Fixes — GridDB Cloud DML Operations

  • delete() and update() with WHERE clause now work correctly on GridDB Cloud
  • Added executeDml() method using type: 'sql-update' via /sql/update endpoint (GridDB Cloud requires this for INSERT/UPDATE/DELETE — the previous type: 'sql-select' via /sql/dml/query was rejected)
  • truncate() now uses the correct DML endpoint
  • Stripped undefined/empty bindings from query payloads (GridDB Cloud rejects them with "Mapping JSON data error")

New Method

  • executeDml(stmt, bindings?) — Execute raw SQL DML statements (INSERT, UPDATE, DELETE) via the correct endpoint

Type Changes

  • GridDBQuery.type now supports 'sql-select' | 'sql-update' | 'tql'

Documentation

  • Added API overview table with all 18 methods
  • Added GridDB Cloud section (endpoint separation, config example, IP allowlist tip)
  • Documented executeDml() and truncate()
  • Fixed delete()/update() examples to use inline WHERE values

Verification

  • ✅ All 175 tests passed (7 test files)
  • ✅ Build (tsc) successful
  • ✅ Tested against live GridDB Cloud instance

Installation

npm install @junwatu/griddb-client@1.1.0-beta.1