Skip to content

1.1.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 May 00:26
c92a59a

[1.1.0] - 2026-05-30

Added

  • Query options (sort / limit / offset) across all layers (#20). find, findOne, and count now accept an options object to sort by a schema field (nulls-last, with a stable id tie-break), cap results with limit, and page with offset. The options flow end to end: through the Rust core (find_with / find_one_with / count_with), the typed nookdb API, and reactive live() subscriptions, which carry the options through every recompute.

Install & verify

npm install nookdb@1.1.0

Confirm the install resolved a native binding and the core round-trips:

node -e "const { open, s } = require('nookdb'); (async () => { const db = await open(require('path').join(require('os').tmpdir(), 'smoke-' + Date.now() + '.db'), { schema: { items: s.collection({ id: s.id(), v: s.number() }) } }); await db.items.insert({ id: 'a', v: 1 }); const all = await db.items.find({}); if (all.length !== 1) process.exit(1); db.close(); console.log('OK'); })().catch(e => { console.error(e); process.exit(1); });"

Prints OK on success. This is the same smoke check the CI install matrix runs across Linux/macOS/Windows on Node 20/22/24.