diff --git a/CHANGELOG.md b/CHANGELOG.md index 30b9d6a..f8eb62e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## \[Unreleased\] +### Added +### Changed +### Fixed +### Removed + +## 2024-03-04: v0.5.0-dev.29 ### Removed -- The utilities crate, it is now replaced by signing built into the client. Please see the updated tests for examples of how to use this. -- `sign_zome_call_with_client` which was used internally but also exposed in the public interface. You probably don't need to call this but if you wish to for some reason then use one of the two new `*Signer` types, and convert them to a `Arc>`, then use the `sign` method to compute a signature. The logic to prepare the data to be signed is no longer public so you would have to set this up yourself following the `sign_zome_call` function in the `signer` module. +- **BREAKING**: The utilities crate, it is now replaced by signing built into the client. Please see the updated tests for examples of how to use this. +- **BREAKING**: `sign_zome_call_with_client` which was used internally but also exposed in the public interface. You probably don't need to call this but if you wish to for some reason then use one of the two new `*Signer` types, and convert them to a `Arc>`, then use the `sign` method to compute a signature. The logic to prepare the data to be signed is no longer public so you would have to set this up yourself following the `sign_zome_call` function in the `signer` module. ### Added - Capability to create zome call signing credentials with the `AdminWebsocket` using `authorize_signing_credentials`. @@ -15,13 +21,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - `from_existing` method to the `AppAgentWebsocket` which allows it to wrap an existing `AppWebsocket` instead of having to open a new connection. This is useful if you already have an `AppWebsocket` but otherwise you should just use the `connect` method of the `AppAgentWebsocket` rather than two steps. ### Changed -- `AppAgentWebsocket::connect` now takes an `Arc>` instead of a `LairClient`. The `Arc>` can be created from a `.into()` on either a `ClientAgentSigner` or a `LairAgentSigner`. Use the latter to restore the previous behaviour. -- `AppAgentWebsocket::call_zome` used to take a `RoleName` as its first parameter. This is now a `ZomeCallTarget`. There is a `.into()` which restores the previous behaviour. Now you can also pass a `CloneCellId` or a `CellId`, also using a `.into()`. Using `CellId` is stronly recommended for now. Please see the doc comments on `ZomeCallTarget` if you intend to use the other options. - -### Added -### Changed -### Fixed -### Removed +- **BREAKING**: `AppAgentWebsocket::connect` now takes an `Arc>` instead of a `LairClient`. The `Arc>` can be created from a `.into()` on either a `ClientAgentSigner` or a `LairAgentSigner`. Use the latter to restore the previous behaviour. +- **BREAKING**: `AppAgentWebsocket::call_zome` used to take a `RoleName` as its first parameter. This is now a `ZomeCallTarget`. There is a `.into()` which restores the previous behaviour. Now you can also pass a `CloneCellId` or a `CellId`, also using a `.into()`. Using `CellId` is stronly recommended for now. Please see the doc comments on `ZomeCallTarget` if you intend to use the other options. ## 2024-02-29: v0.5.0-dev.28 ### Added diff --git a/Cargo.lock b/Cargo.lock index 4e99855..76711ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2671,7 +2671,7 @@ dependencies = [ [[package]] name = "holochain_client" -version = "0.5.0-dev.28" +version = "0.5.0-dev.29" dependencies = [ "again", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 9d51416..9e08494 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ name = "holochain_client" readme = "README.md" repository = "https://github.com/holochain/holochain-client-rust" resolver = "2" -version = "0.5.0-dev.28" +version = "0.5.0-dev.29" [workspace] members = ["fixture/zomes/foo"] @@ -49,6 +49,4 @@ kitsune_p2p_types = "0.3.0-beta-dev.14" [features] default = ["lair_signing"] -lair_signing = [ - "dep:lair_keystore_api", -] +lair_signing = ["dep:lair_keystore_api"] diff --git a/flake.lock b/flake.lock index 1a7cfcb..e9fe6a9 100644 --- a/flake.lock +++ b/flake.lock @@ -190,11 +190,11 @@ ] }, "locked": { - "lastModified": 1709294263, - "narHash": "sha256-jg/o3NjiXwKHOOTyWMeZIOOlP05IVKZYAuwLKxJDuAc=", + "lastModified": 1709620314, + "narHash": "sha256-d7vekpj538VqdDrChFbVQpSVGDMnU1nSksbSzacKvyM=", "owner": "holochain", "repo": "holochain", - "rev": "4540acace814504dacc41a6433e17f157749004f", + "rev": "392bdfd729fb6ce50f78f9e7f1c757dc392675f4", "type": "github" }, "original": { @@ -254,11 +254,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1709150264, - "narHash": "sha256-HofykKuisObPUfj0E9CJVfaMhawXkYx3G8UIFR/XQ38=", + "lastModified": 1709479366, + "narHash": "sha256-n6F0n8UV6lnTZbYPl1A9q1BS0p4hduAv1mGAP17CVd0=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9099616b93301d5cf84274b184a3a5ec69e94e08", + "rev": "b8697e57f10292a6165a20f03d2f42920dfaf973", "type": "github" }, "original": { @@ -332,11 +332,11 @@ ] }, "locked": { - "lastModified": 1709259239, - "narHash": "sha256-MbrpgqpvUND7+UnOSLazrAMj0+zle16RRiOKTtjBefw=", + "lastModified": 1709604635, + "narHash": "sha256-le4fwmWmjGRYWwkho0Gr7mnnZndOOe4XGbLw68OvF40=", "owner": "oxalica", "repo": "rust-overlay", - "rev": "0e031ddb3f5a339dc6eda93d271ae43618b14eec", + "rev": "e86c0fb5d3a22a5f30d7f64ecad88643fe26449d", "type": "github" }, "original": { @@ -386,11 +386,11 @@ }, "locked": { "dir": "versions/weekly", - "lastModified": 1709294263, - "narHash": "sha256-jg/o3NjiXwKHOOTyWMeZIOOlP05IVKZYAuwLKxJDuAc=", + "lastModified": 1709620314, + "narHash": "sha256-d7vekpj538VqdDrChFbVQpSVGDMnU1nSksbSzacKvyM=", "owner": "holochain", "repo": "holochain", - "rev": "4540acace814504dacc41a6433e17f157749004f", + "rev": "392bdfd729fb6ce50f78f9e7f1c757dc392675f4", "type": "github" }, "original": {