From 1d423d6eea624e7c7a0fe05e67edfe73bf388ede Mon Sep 17 00:00:00 2001 From: Jost Schulte Date: Tue, 17 Oct 2023 15:48:49 -0600 Subject: [PATCH] chore(release): v0.16.3 --- CHANGELOG.md | 4 ++++ docs/client.attachappinterfacerequest.md | 2 +- docs/client.capaccess.md | 10 ++++++---- docs/client.capaccesstype.md | 21 +++++++++++++++++++++ docs/client.md | 1 + package-lock.json | 6 +++--- package.json | 2 +- 7 files changed, 37 insertions(+), 9 deletions(-) create mode 100644 docs/client.capaccesstype.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a75d923..5c3c05c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added ### Changed ### Fixed +### Removed + +## 2023-10-17: v0.16.3 +### Fixed - `CapAccess` types `Unrestricted` and `Transferable` were not correctly implemented. Both need to be nested objects containing a single property with a Pascal cased name, e. g. `{ access: { Unrestricted: null } }`. - `AttachAppInterfaceRequest` took a mandatory property `port`. The property is optional now. ### Removed diff --git a/docs/client.attachappinterfacerequest.md b/docs/client.attachappinterfacerequest.md index 4051638b..caf29e46 100644 --- a/docs/client.attachappinterfacerequest.md +++ b/docs/client.attachappinterfacerequest.md @@ -9,6 +9,6 @@ ```typescript export type AttachAppInterfaceRequest = { - port: number; + port?: number; }; ``` diff --git a/docs/client.capaccess.md b/docs/client.capaccess.md index 9235cf6f..dd33c7cf 100644 --- a/docs/client.capaccess.md +++ b/docs/client.capaccess.md @@ -8,16 +8,18 @@ **Signature:** ```typescript -export type CapAccess = "Unrestricted" | { - Transferable: { +export type CapAccess = { + [CapAccessType.Unrestricted]: null; +} | { + [CapAccessType.Transferable]: { secret: CapSecret; }; } | { - Assigned: { + [CapAccessType.Assigned]: { secret: CapSecret; assignees: AgentPubKey[]; }; }; ``` -**References:** [CapSecret](./client.capsecret.md), [AgentPubKey](./client.agentpubkey.md) +**References:** [CapAccessType.Unrestricted](./client.capaccesstype.md), [CapAccessType.Transferable](./client.capaccesstype.md), [CapSecret](./client.capsecret.md), [CapAccessType.Assigned](./client.capaccesstype.md), [AgentPubKey](./client.agentpubkey.md) diff --git a/docs/client.capaccesstype.md b/docs/client.capaccesstype.md new file mode 100644 index 00000000..d3782a55 --- /dev/null +++ b/docs/client.capaccesstype.md @@ -0,0 +1,21 @@ + + +[Home](./index.md) > [@holochain/client](./client.md) > [CapAccessType](./client.capaccesstype.md) + +## CapAccessType enum + + +**Signature:** + +```typescript +export declare enum CapAccessType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| Assigned | "Assigned" | | +| Transferable | "Transferable" | | +| Unrestricted | "Unrestricted" | | + diff --git a/docs/client.md b/docs/client.md index 52af1100..e20a6c32 100644 --- a/docs/client.md +++ b/docs/client.md @@ -20,6 +20,7 @@ | --- | --- | | [ActionType](./client.actiontype.md) | | | [AppStatusFilter](./client.appstatusfilter.md) | | +| [CapAccessType](./client.capaccesstype.md) | | | [CellProvisioningStrategy](./client.cellprovisioningstrategy.md) | | | [CellType](./client.celltype.md) | | | [DhtOpType](./client.dhtoptype.md) | | diff --git a/package-lock.json b/package-lock.json index 3b3fe442..16b85e1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@holochain/client", - "version": "0.16.2", + "version": "0.16.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@holochain/client", - "version": "0.16.2", + "version": "0.16.3", "license": "CAL-1.0", "dependencies": { "@holochain/serialization": "^0.1.0-beta-rc.3", @@ -40,7 +40,7 @@ "typescript": "^4.9.5" }, "engines": { - "node": ">=16.0.0 || >=18.0.0" + "node": ">=18.0.0 || >=20.0.0" } }, "../holochain-serialization-js": { diff --git a/package.json b/package.json index e4c17b46..36cd907e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@holochain/client", - "version": "0.16.2", + "version": "0.16.3", "description": "A JavaScript client for the Holochain Conductor API", "author": "Holochain Foundation (http://holochain.org)", "license": "CAL-1.0",