[1.1.0] - 2026-05-30
Added
- Query options (
sort/limit/offset) across all layers (#20).find,findOne, andcountnow accept an options object to sort by a schema field (nulls-last, with a stableidtie-break), cap results withlimit, and page withoffset. The options flow end to end: through the Rust core (find_with/find_one_with/count_with), the typednookdbAPI, and reactivelive()subscriptions, which carry the options through every recompute.
Install & verify
npm install nookdb@1.1.0Confirm 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.