From 166c72ea30b248bd319b2b8500ca90932c700f9b Mon Sep 17 00:00:00 2001 From: Jost Schulte Date: Mon, 25 Nov 2024 08:18:56 -0600 Subject: [PATCH] chore(release): v0.18.0-dev.2 --- CHANGELOG.md | 5 ++++- docs/tryorama.cellzomecallrequest.md | 5 +---- docs/tryorama.iappwebsocket.md | 4 +++- docs/tryorama.trycpconductor.connectappws.md | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- ts/src/local/conductor.ts | 8 ++++++-- 7 files changed, 19 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da58a5ff..50ffbbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,12 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Added ### Removed ### Changed -- Update JS client due to modified zome call signing. ### Fixed +## 2024-11-25: v0.18.0-dev.2 +### Changed +- Update JS client due to modified zome call signing. + ## 2024-11-14: v0.18.0-dev.1 ### Fixed - Disable unstable DPKI. diff --git a/docs/tryorama.cellzomecallrequest.md b/docs/tryorama.cellzomecallrequest.md index 9c1861e2..0fe17f18 100644 --- a/docs/tryorama.cellzomecallrequest.md +++ b/docs/tryorama.cellzomecallrequest.md @@ -9,8 +9,5 @@ The zome request options adapted to a specific cell. **Signature:** ```typescript -export type CellZomeCallRequest = Omit & { - provenance?: AgentPubKey; - payload?: unknown; -}; +export type CellZomeCallRequest = Omit; ``` diff --git a/docs/tryorama.iappwebsocket.md b/docs/tryorama.iappwebsocket.md index 8975154c..89bc260d 100644 --- a/docs/tryorama.iappwebsocket.md +++ b/docs/tryorama.iappwebsocket.md @@ -9,5 +9,7 @@ AppWebsocket interface for local and TryCP conductors. **Signature:** ```typescript -export type IAppWebsocket = Pick; +export type IAppWebsocket = { + callZome: (request: CallZomeRequest, timeout?: number) => Promise; +}; ``` diff --git a/docs/tryorama.trycpconductor.connectappws.md b/docs/tryorama.trycpconductor.connectappws.md index afbbe4cc..b70a4630 100644 --- a/docs/tryorama.trycpconductor.connectappws.md +++ b/docs/tryorama.trycpconductor.connectappws.md @@ -11,7 +11,7 @@ Get all [App API methods](https://github.com/holochain/holochain-client-js/blob/ ```typescript connectAppWs(_token: AppAuthenticationToken, port: number): Promise<{ appInfo: () => Promise; - callZome: (request: CallZomeRequest | CallZomeRequestSigned) => Promise; + callZome: (request: CallZomeRequest) => Promise; enableApp: () => Promise; createCloneCell: (request: CreateCloneCellRequest) => Promise; enableCloneCell: (request: EnableCloneCellRequest) => Promise; @@ -70,7 +70,7 @@ number **Returns:** -Promise<{ appInfo: () => Promise<import("@holochain/client").AppInfoResponse>; callZome: <T>(request: CallZomeRequest \| CallZomeRequestSigned) => Promise<T>; enableApp: () => Promise<void>; createCloneCell: (request: CreateCloneCellRequest) => Promise<import("@holochain/client").ClonedCell>; enableCloneCell: (request: EnableCloneCellRequest) => Promise<import("@holochain/client").ClonedCell>; disableCloneCell: (request: DisableCloneCellRequest) => Promise<void>; networkInfo: (request: NetworkInfoRequest) => Promise<import("@holochain/client").NetworkInfoResponse>; provideMemproofs: (request: MemproofMap) => Promise<void>; }> +Promise<{ appInfo: () => Promise<import("@holochain/client").AppInfoResponse>; callZome: <T>(request: CallZomeRequest) => Promise<T>; enableApp: () => Promise<void>; createCloneCell: (request: CreateCloneCellRequest) => Promise<import("@holochain/client").ClonedCell>; enableCloneCell: (request: EnableCloneCellRequest) => Promise<import("@holochain/client").ClonedCell>; disableCloneCell: (request: DisableCloneCellRequest) => Promise<void>; networkInfo: (request: NetworkInfoRequest) => Promise<import("@holochain/client").NetworkInfoResponse>; provideMemproofs: (request: MemproofMap) => Promise<void>; }> The App API web socket. diff --git a/package-lock.json b/package-lock.json index ae526e78..904e52f4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@holochain/tryorama", - "version": "0.18.0-dev.1", + "version": "0.18.0-dev.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@holochain/tryorama", - "version": "0.18.0-dev.1", + "version": "0.18.0-dev.2", "license": "MIT", "dependencies": { "@holochain/client": "^0.19.0-dev.5", diff --git a/package.json b/package.json index 18069fc9..598e7d66 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@holochain/tryorama", "description": "Toolset to manage Holochain conductors and facilitate running test scenarios", - "version": "0.18.0-dev.1", + "version": "0.18.0-dev.2", "author": "Holochain Foundation", "license": "MIT", "keywords": [ diff --git a/ts/src/local/conductor.ts b/ts/src/local/conductor.ts index ca324898..c393c04c 100644 --- a/ts/src/local/conductor.ts +++ b/ts/src/local/conductor.ts @@ -7,8 +7,9 @@ import { getSigningCredentials, InstallAppRequest, AppAuthenticationToken, - AppCallZomeRequest, NetworkSeed, + CallZomeRequest, + RoleNameCallZomeRequest, } from "@holochain/client"; import getPort, { portNumbers } from "get-port"; import pick from "lodash/pick.js"; @@ -330,7 +331,10 @@ export class Conductor implements IConductor { // set up automatic zome call signing const callZome = appWs.callZome.bind(appWs); - appWs.callZome = async (req: AppCallZomeRequest, timeout?: number) => { + appWs.callZome = async ( + req: CallZomeRequest | RoleNameCallZomeRequest, + timeout?: number + ) => { let cellId; if ("role_name" in req) { assert(appWs.cachedAppInfo);