Skip to content

Releases: junwatu/griddb-client

v1.1.0-beta.1

v1.1.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@junwatu junwatu released this 24 Mar 09:40

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

v1.1.0-beta.0

v1.1.0-beta.0 Pre-release
Pre-release

Choose a tag to compare

@junwatu junwatu released this 20 Mar 02:33

What's Changed

Dependencies Updated

  • Updated all npm packages to latest versions (zero outdated)
  • Removed unused Jest dependencies (jest, ts-jest, @types/jest) — project uses Vitest
  • Vitest upgraded from v3.2.4 → v4.1.0
  • TypeScript upgraded from v5.9.2 → v5.9.3
  • ESLint upgraded from v8 → v10
  • @typescript-eslint/* upgraded from v6 → v8
  • happy-dom upgraded from v18 → v20
  • dotenv upgraded from v16 → v17
  • @faker-js/faker upgraded from v10.0.0 → v10.3.0
  • prettier upgraded from v3.6.2 → v3.8.1

ESLint Migration

  • Migrated from .eslintrc.json (legacy config) to eslint.config.mjs (flat config) for ESLint v10 compatibility
  • Removed .eslintignore (now handled in flat config)

Code Fixes

  • Fixed unused catch binding in cloud-client.ts
  • Fixed indentation in transformers.ts

Verification

  • ✅ All 169 tests passed (7 test files)
  • ✅ Build (tsc) successful
  • ✅ ESLint: 0 errors

Installation

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

v1.0.0-beta.5

v1.0.0-beta.5 Pre-release
Pre-release

Choose a tag to compare

@junwatu junwatu released this 27 Aug 04:25

Changes

  • Fixed tests to align with core code changes (PUT method for inserts)
  • Updated HTTP method from POST to PUT for GridDB Web API compliance
  • All tests passing (169 tests)
  • Build successful
  • Now tagged as both beta and latest

Installation

# Install latest version
npm install @junwatu/griddb-client

# Or install beta specifically
npm install @junwatu/griddb-client@beta

What's Changed

  • Core CRUD operations now use PUT method for inserts (GridDB Web API standard)
  • Test suite updated to reflect API changes
  • Maintained backward compatibility for all public APIs
  • Package is now available as both beta and latest tags

v1.0.0-beta.4

v1.0.0-beta.4 Pre-release
Pre-release

Choose a tag to compare

@junwatu junwatu released this 27 Aug 04:05

Changes

  • Fixed tests to align with core code changes (PUT method for inserts)
  • Updated HTTP method from POST to PUT for GridDB Web API compliance
  • All tests passing (169 tests)
  • Build successful

Installation

npm install @junwatu/griddb-client@beta

What's Changed

  • Core CRUD operations now use PUT method for inserts (GridDB Web API standard)
  • Test suite updated to reflect API changes
  • Maintained backward compatibility for all public APIs

v1.0.0-beta.2 - Beta Release

Choose a tag to compare

@junwatu junwatu released this 25 Aug 03:39

🚀 GridDB Client Library - Beta Release

This is the second beta release of the TypeScript/JavaScript client library for GridDB Web API.

✨ Features

  • 🔌 Full GridDB Web API Support - Complete implementation of GridDB Web API v2
  • ☁️ GridDB Cloud Support - Built-in support for GridDB Cloud services
  • 🛠️ Complete CRUD Operations - Create, Read, Update, Delete with ease
  • 🔄 Batch Operations - Efficient batch inserts with error handling
  • 📊 SQL & TQL Support - Execute both SQL and TQL queries
  • 🔧 TypeScript First - Full TypeScript support with comprehensive type definitions
  • ⚡ Performance Optimized - Connection pooling, retry logic, and efficient transformations
  • 🧪 Well Tested - 166+ unit tests with mocked responses

📦 Installation

# Will be available after 24-hour npm republish window
npm install @junwatu/griddb-client@beta

For now, you can install directly from GitHub:

npm install github:junwatu/griddb-client#v1.0.0-beta.2

📖 Quick Start

import { GridDB } from '@junwatu/griddb-client';

const griddb = new GridDB({
  griddbWebApiUrl: 'http://localhost:8080/griddb/v2',
  username: 'admin',
  password: 'admin'
});

// Create container
await griddb.createContainer({
  containerName: 'users',
  columns: [
    { name: 'id', type: 'INTEGER' },
    { name: 'name', type: 'STRING' }
  ]
});

// Insert data
await griddb.insert({
  containerName: 'users',
  data: { id: 1, name: 'John' }
});

🐛 Known Issues

📝 What's Changed

  • Fixed HTTP method usage (POST for insert, PUT for update)
  • Updated package name references in documentation
  • Added comprehensive test suite
  • Improved error handling

🤝 Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

📄 License

MIT