@holochain/client 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import { ActionHash, EntryHash, ExternalHash } from "../types.js";
2
+ /**
3
+ * @public
4
+ */
5
+ export type AnyLinkableHash = EntryHash | ActionHash | ExternalHash;
@@ -0,0 +1 @@
1
+ export {};
@@ -3,14 +3,14 @@ import { Entry } from "./entry.js";
3
3
  /**
4
4
  * @public
5
5
  */
6
- export declare type Record = {
6
+ export type Record = {
7
7
  signed_action: SignedActionHashed;
8
8
  entry: RecordEntry;
9
9
  };
10
10
  /**
11
11
  * @public
12
12
  */
13
- export declare type RecordEntry = {
13
+ export type RecordEntry = {
14
14
  Present: Entry;
15
15
  } | {
16
16
  Hidden: void;
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.33.7"
8
+ "packageVersion": "7.34.4"
9
9
  }
10
10
  ]
11
11
  }
package/lib/types.d.ts CHANGED
@@ -1,99 +1,103 @@
1
1
  /**
2
2
  * @public
3
3
  */
4
- export declare type HoloHash = Uint8Array;
4
+ export type HoloHash = Uint8Array;
5
5
  /**
6
6
  * @public
7
7
  */
8
- export declare type AgentPubKey = HoloHash;
8
+ export type AgentPubKey = HoloHash;
9
9
  /**
10
10
  * @public
11
11
  */
12
- export declare type DnaHash = HoloHash;
12
+ export type DnaHash = HoloHash;
13
13
  /**
14
14
  * @public
15
15
  */
16
- export declare type WasmHash = HoloHash;
16
+ export type WasmHash = HoloHash;
17
17
  /**
18
18
  * @public
19
19
  */
20
- export declare type EntryHash = HoloHash;
20
+ export type EntryHash = HoloHash;
21
21
  /**
22
22
  * @public
23
23
  */
24
- export declare type ActionHash = HoloHash;
24
+ export type ActionHash = HoloHash;
25
25
  /**
26
26
  * @public
27
27
  */
28
- export declare type AnyDhtHash = HoloHash;
28
+ export type AnyDhtHash = HoloHash;
29
29
  /**
30
30
  * @public
31
31
  */
32
- export declare type KitsuneAgent = Uint8Array;
32
+ export type ExternalHash = HoloHash;
33
33
  /**
34
34
  * @public
35
35
  */
36
- export declare type KitsuneSpace = Uint8Array;
36
+ export type KitsuneAgent = Uint8Array;
37
+ /**
38
+ * @public
39
+ */
40
+ export type KitsuneSpace = Uint8Array;
37
41
  /** Base64 hash types */
38
42
  /**
39
43
  * @public
40
44
  */
41
- export declare type HoloHashB64 = string;
45
+ export type HoloHashB64 = string;
42
46
  /**
43
47
  * @public
44
48
  */
45
- export declare type AgentPubKeyB64 = HoloHashB64;
49
+ export type AgentPubKeyB64 = HoloHashB64;
46
50
  /**
47
51
  * @public
48
52
  */
49
- export declare type DnaHashB64 = HoloHashB64;
53
+ export type DnaHashB64 = HoloHashB64;
50
54
  /**
51
55
  * @public
52
56
  */
53
- export declare type WasmHashB64 = HoloHashB64;
57
+ export type WasmHashB64 = HoloHashB64;
54
58
  /**
55
59
  * @public
56
60
  */
57
- export declare type EntryHashB64 = HoloHashB64;
61
+ export type EntryHashB64 = HoloHashB64;
58
62
  /**
59
63
  * @public
60
64
  */
61
- export declare type ActionHashB64 = HoloHashB64;
65
+ export type ActionHashB64 = HoloHashB64;
62
66
  /**
63
67
  * @public
64
68
  */
65
- export declare type AnyDhtHashB64 = HoloHashB64;
69
+ export type AnyDhtHashB64 = HoloHashB64;
66
70
  /**
67
71
  * @public
68
72
  */
69
- export declare type InstalledAppId = string;
73
+ export type InstalledAppId = string;
70
74
  /**
71
75
  * @public
72
76
  */
73
- export declare type Signature = Uint8Array;
77
+ export type Signature = Uint8Array;
74
78
  /**
75
79
  * @public
76
80
  */
77
- export declare type CellId = [DnaHash, AgentPubKey];
81
+ export type CellId = [DnaHash, AgentPubKey];
78
82
  /**
79
83
  * @public
80
84
  */
81
- export declare type DnaProperties = unknown;
85
+ export type DnaProperties = unknown;
82
86
  /**
83
87
  * @public
84
88
  */
85
- export declare type RoleName = string;
89
+ export type RoleName = string;
86
90
  /**
87
91
  * @public
88
92
  */
89
- export declare type InstalledCell = {
93
+ export type InstalledCell = {
90
94
  cell_id: CellId;
91
95
  role_name: RoleName;
92
96
  };
93
97
  /**
94
98
  * @public
95
99
  */
96
- export declare type Timestamp = number;
100
+ export type Timestamp = number;
97
101
  /**
98
102
  * @public
99
103
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holochain/client",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "A JavaScript client for the Holochain Conductor API",
5
5
  "author": "Holochain Foundation <info@holochain.org> (http://holochain.org)",
6
6
  "license": "CAL-1.0",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/holochain/holochain-client-js#readme",
20
20
  "engines": {
21
- "node": "^14.13.1 || >=16.0.0 || >=18.0.0"
21
+ "node": ">=16.0.0 || >=18.0.0"
22
22
  },
23
23
  "main": "lib/index.js",
24
24
  "module": "lib/index.js",
@@ -30,29 +30,28 @@
30
30
  "files": [
31
31
  "lib"
32
32
  ],
33
- "browser": {
34
- "crypto": false
35
- },
36
33
  "scripts": {
37
34
  "lint": "eslint --fix --ext .ts src test .eslintrc.cjs",
38
35
  "test:app-agent": "RUST_LOG=error RUST_BACKTRACE=1 node --loader ts-node/esm test/e2e/app-agent-websocket.ts",
39
36
  "test": "RUST_LOG=error RUST_BACKTRACE=1 node --loader ts-node/esm test/index.ts",
37
+ "build:lib": "rimraf ./lib && tsc -p tsconfig.build.json",
40
38
  "build:docs": "api-extractor run --local && api-documenter markdown -i docs/temp -o docs",
41
- "build": "rimraf ./lib && tsc -p tsconfig.build.json && npm run build:docs"
39
+ "build": "npm run build:lib && npm run build:docs"
42
40
  },
43
41
  "dependencies": {
44
42
  "@holochain/serialization": "^0.1.0-beta-rc.3",
45
43
  "@msgpack/msgpack": "^2.7.2",
44
+ "@noble/ed25519": "^2.0.0",
46
45
  "@tauri-apps/api": "^1.2.0",
47
46
  "emittery": "^1.0.1",
48
47
  "isomorphic-ws": "^5.0.0",
49
48
  "js-base64": "^3.7.3",
50
49
  "lodash-es": "^4.17.21",
51
- "tweetnacl": "^1.0.3"
50
+ "ws": "^8.13.0"
52
51
  },
53
52
  "devDependencies": {
54
- "@microsoft/api-documenter": "^7.19.27",
55
- "@microsoft/api-extractor": "^7.33.7",
53
+ "@microsoft/api-documenter": "^7.21.7",
54
+ "@microsoft/api-extractor": "^7.34.4",
56
55
  "@types/js-yaml": "^3.12.7",
57
56
  "@types/lodash-es": "^4.17.6",
58
57
  "@types/tape": "^4.13.2",
@@ -67,7 +66,7 @@
67
66
  "prettier": "^2.6.2",
68
67
  "rimraf": "^3.0.2",
69
68
  "tape": "^5.5.3",
70
- "ts-node": "^10.8.1",
71
- "typescript": "^4.7.2"
69
+ "ts-node": "^10.9.1",
70
+ "typescript": "^4.9.5"
72
71
  }
73
72
  }