Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Update kv and object commands to use new jetstream api
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`.
- Loading branch information