Here we update both the kv and object commands to no longer use the deprecated nats.JetstreamContext and instead use jetstream.Jetstream.
We also fix some minor usability issues, like make the revision flag required for the update action, improve the error message when attempting to revert a key value in a bucket with history=1, and perform the revert with an update action instead of a put.
Here we update both the kv and object commands to no longer use the deprecated nats.JetstreamContext and instead use jetstream.Jetstream.
We also fix some minor usability issues, like make the
revision
flag required for theupdate
action, improve the error message when attempting to revert a key value in a bucket with history=1, and perform the revert with anupdate
action instead of aput
.