From 435a4a5e267a8f0bc3b3359c9f9220c5acbfa92d Mon Sep 17 00:00:00 2001 From: Stuart Harris Date: Fri, 17 May 2024 09:14:25 +0100 Subject: [PATCH] crux_kv 0.4 --- Cargo.lock | 2 +- crux_kv/CHANGELOG.md | 31 ++++++++++++++++++++++++++++--- crux_kv/Cargo.toml | 2 +- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 93842706..f16c4645 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -403,7 +403,7 @@ dependencies = [ [[package]] name = "crux_kv" -version = "0.3.0" +version = "0.4.0" dependencies = [ "anyhow", "crux_core", diff --git a/crux_kv/CHANGELOG.md b/crux_kv/CHANGELOG.md index 91efaf58..ff796d4c 100644 --- a/crux_kv/CHANGELOG.md +++ b/crux_kv/CHANGELOG.md @@ -3,13 +3,33 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +and this project adheres to +[Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.4.0](https://github.com/redbadger/crux/compare/crux_kv-v0.3.0...crux_kv-v0.4.0) - 2024-05-17 + +### Breaking Changes + +Introduces a `Value` enum, which can be `None` for a key that _doesn't_ exist, +or where there is no `previous_value`. See +https://github.com/redbadger/crux/pull/235. + +### Other + +- avoid clones of capability +- crux_kv take methods by move +- update API for crux_kv +- relax callback bounds in crux_kv + ## [0.3.0](https://github.com/redbadger/crux/compare/crux_kv-v0.2.0...crux_kv-v0.3.0) - 2024-05-15 -Hot on the heels of the last release, we've added a an [operation to list keys](https://github.com/redbadger/crux/pull/232), and [improved the app-facing API of crux_kv](https://github.com/redbadger/crux/pull/231). The latter means that there is now a much more idiomatic Rust API for interacting with the key-value store. +Hot on the heels of the last release, we've added a an +[operation to list keys](https://github.com/redbadger/crux/pull/232), and +[improved the app-facing API of crux_kv](https://github.com/redbadger/crux/pull/231). +The latter means that there is now a much more idiomatic Rust API for +interacting with the key-value store. ### Other @@ -22,7 +42,12 @@ Hot on the heels of the last release, we've added a an [operation to list keys]( ### Breaking Changes -This is a breaking change release. We've added `delete` and `exists` operations and renamed `read` to `get` and `write` to `set`, amongst other renames and type changes. We've also improved error handling and tests. See https://github.com/redbadger/crux/pull/227 for more information. However, there are sadly still no atomic or batch operations, which will follow in a future release. +This is a breaking change release. We've added `delete` and `exists` operations +and renamed `read` to `get` and `write` to `set`, amongst other renames and type +changes. We've also improved error handling and tests. See +https://github.com/redbadger/crux/pull/227 for more information. However, there +are sadly still no atomic or batch operations, which will follow in a future +release. ### Other diff --git a/crux_kv/Cargo.toml b/crux_kv/Cargo.toml index 2d40b1ae..8b8e94d3 100644 --- a/crux_kv/Cargo.toml +++ b/crux_kv/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "crux_kv" description = "Key-Value capability for use with crux_core" -version = "0.3.0" +version = "0.4.0" readme = "README.md" authors.workspace = true repository.workspace = true