Releases: oliver-oloughlin/kvdex
Releases · oliver-oloughlin/kvdex
v0.31.0
- BREAKING: changed API for
kvdex.setInterval()
- BREAKING: changed API for
kvdex.loop()
- BREAKING: separated upsert by id/index into
collection.upsert()
andcollection.upsertByPrimaryIndex()
- feat: added
collection.getOne()
- feat: added
collection.getOneBySecondaryIndex()
- feat: added
collection.updateOne()
- feat: added
collection.updateOneBySecondaryIndex()
- chore: updated readme
- chore: updated documentation
Thanks to @chaosharmonic for contributions on collection.getOne()
and collection.updateOne()
v0.30.0
- BREAKING: removed "auto" option for collection serialize.
- BREAKING: set JSON serializer as default in both Deno and Deploy runtime.
v0.29.1
- feat: fallback to json serializer if core serializer is not available
v0.29.0
- BREAKING: refactored all update/upsert methods to allow strategies: replace, merge and merge-shallow
- BREAKING: removed QueueValue type, replaced with KvValue to enable undefined queue values.
v0.28.3
v0.28.2
- feat(collection): added support for offset pagination
- feat(collection): allow all list options for count operations
v0.28.1
- fix(types): Exclude types from KvId that are not assignable to KvValue
Nameless `loop()` and `setInterval()`
- BREAKING: removed first "name" argument for
loop()
andsetInterval()
- Fix: enforce a minimum of 1 second first delay for
loop()
andsetInterval()
to ensure queue listeners are registered before the first delivery
Upsert and Version History Pagination
- Added:
upsert()
by id and by primary index. - Added: support for pagination and filtering for
findHistory()
. - BREAKING CHANGE: changed return signature of
findHistory()
to be in line with other pagination-supported methods.
Watch and Watch Many
- Added:
watch()
collection method for listening to live updates on a document by id - Added:
watchMany()
collection method for listening to live updates on multiple documents by ids. - Changed: deprecated
write()
in favour ofset()
andadd()
withoverwrite: true
option.