Skip to content

Commit

Permalink
chore(release): v0.18.0-dev.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jost-s committed Nov 25, 2024
1 parent 0be25b4 commit 166c72e
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 13 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 1 addition & 4 deletions docs/tryorama.cellzomecallrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,5 @@ The zome request options adapted to a specific cell.
**Signature:**

```typescript
export type CellZomeCallRequest = Omit<CallZomeRequest, "cap_secret" | "cell_id" | "payload" | "provenance"> & {
provenance?: AgentPubKey;
payload?: unknown;
};
export type CellZomeCallRequest = Omit<CallZomeRequest, "cap_secret" | "cell_id">;
```
4 changes: 3 additions & 1 deletion docs/tryorama.iappwebsocket.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ AppWebsocket interface for local and TryCP conductors.
**Signature:**

```typescript
export type IAppWebsocket = Pick<AppWebsocket, "callZome">;
export type IAppWebsocket = {
callZome: <T>(request: CallZomeRequest, timeout?: number) => Promise<T>;
};
```
4 changes: 2 additions & 2 deletions docs/tryorama.trycpconductor.connectappws.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<import("@holochain/client").AppInfoResponse>;
callZome: <T>(request: CallZomeRequest | CallZomeRequestSigned) => Promise<T>;
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>;
Expand Down Expand Up @@ -70,7 +70,7 @@ number
</tbody></table>
**Returns:**

Promise&lt;{ appInfo: () =&gt; Promise&lt;import("@holochain/client").AppInfoResponse&gt;; callZome: &lt;T&gt;(request: CallZomeRequest \| CallZomeRequestSigned) =&gt; Promise&lt;T&gt;; enableApp: () =&gt; Promise&lt;void&gt;; createCloneCell: (request: CreateCloneCellRequest) =&gt; Promise&lt;import("@holochain/client").ClonedCell&gt;; enableCloneCell: (request: EnableCloneCellRequest) =&gt; Promise&lt;import("@holochain/client").ClonedCell&gt;; disableCloneCell: (request: DisableCloneCellRequest) =&gt; Promise&lt;void&gt;; networkInfo: (request: NetworkInfoRequest) =&gt; Promise&lt;import("@holochain/client").NetworkInfoResponse&gt;; provideMemproofs: (request: MemproofMap) =&gt; Promise&lt;void&gt;; }&gt;
Promise&lt;{ appInfo: () =&gt; Promise&lt;import("@holochain/client").AppInfoResponse&gt;; callZome: &lt;T&gt;(request: CallZomeRequest) =&gt; Promise&lt;T&gt;; enableApp: () =&gt; Promise&lt;void&gt;; createCloneCell: (request: CreateCloneCellRequest) =&gt; Promise&lt;import("@holochain/client").ClonedCell&gt;; enableCloneCell: (request: EnableCloneCellRequest) =&gt; Promise&lt;import("@holochain/client").ClonedCell&gt;; disableCloneCell: (request: DisableCloneCellRequest) =&gt; Promise&lt;void&gt;; networkInfo: (request: NetworkInfoRequest) =&gt; Promise&lt;import("@holochain/client").NetworkInfoResponse&gt;; provideMemproofs: (request: MemproofMap) =&gt; Promise&lt;void&gt;; }&gt;

The App API web socket.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
8 changes: 6 additions & 2 deletions ts/src/local/conductor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 166c72e

Please sign in to comment.