@holochain/client 0.14.0 → 0.14.1

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.
package/README.md CHANGED
@@ -16,7 +16,9 @@ A JavaScript client for the Holochain Conductor API (works with browsers as well
16
16
  ## Compatibility
17
17
 
18
18
  **JS client v0.12.x** is compatible with **Holochain v0.1.x**.
19
- **JS client v0.13.x** is compatible with **Holochain v0.2.x**.
19
+
20
+ **JS client v0.14.x** is compatible with **Holochain v0.2.x**.
21
+ *As target, ES2020 or higher is required when bundling for production*.
20
22
 
21
23
  ## Installation
22
24
 
@@ -1,8 +1,7 @@
1
1
  import * as ed25519 from "@noble/ed25519";
2
2
  import { encodeHashToBase64 } from "../utils/base64.js";
3
- import { webcrypto } from "crypto";
4
3
  if (!globalThis.crypto) {
5
- globalThis.crypto = webcrypto;
4
+ import("node:crypto").then((webcrypto) => (globalThis.crypto = webcrypto));
6
5
  }
7
6
  const signingCredentials = new Map();
8
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@holochain/client",
3
- "version": "0.14.0",
3
+ "version": "0.14.1",
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",