Release v2.0.3
Pre-release
Pre-release
This release introduces preliminary support for NATS Key-Value storage.
Summary of my changes since PR #23 :
Core NATS
- added
-trace
to the methodjet_stream
to log all JetStream requests similarly to--trace
in NATS CLI (remember to set-log_level
todebug
as well) - added new functions
nats::isotime_to_msec
andnats::msec_to_isotime
- basically working around limitations ofclock
that doesn't work with milliseconds
JetStream
- added a convenience method
empty_kv_bucket
to delete all messages in a bucket without deleting the bucket itself - added
-description
tocreate_kv_bucket
Key-Value
- removed the
-timeout
option from methodshistory
andkeys
(but I'll add a test checking what happens in case of disconnection) - content of the bucket status dict is now documented in KvAPI
- removed
unwatch
- to stop watching, just destroy thekv_watcher
object - removed
-idle_heartbeat
fromwatch
(might come back depending on how I implement #26 ) key
is now mandatory argument forwatch
. Use ">" to watch all keys
Note that this release is not production-ready, and is intended only for development. Once the open issues are solved, a proper v2.1 will be released in the near future.