@dxos/echo-protocol 0.8.4-main.3f58842 → 0.8.4-main.5ea62a8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/echo-protocol",
3
- "version": "0.8.4-main.3f58842",
3
+ "version": "0.8.4-main.5ea62a8",
4
4
  "description": "Core ECHO APIs.",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -11,6 +11,7 @@
11
11
  "type": "module",
12
12
  "exports": {
13
13
  ".": {
14
+ "source": "./src/index.ts",
14
15
  "types": "./dist/types/src/index.d.ts",
15
16
  "browser": "./dist/lib/browser/index.mjs",
16
17
  "node": "./dist/lib/node-esm/index.mjs"
@@ -25,12 +26,12 @@
25
26
  "src"
26
27
  ],
27
28
  "dependencies": {
28
- "effect": "3.17.0",
29
- "@dxos/crypto": "0.8.4-main.3f58842",
30
- "@dxos/invariant": "0.8.4-main.3f58842",
31
- "@dxos/keys": "0.8.4-main.3f58842",
32
- "@dxos/protocols": "0.8.4-main.3f58842",
33
- "@dxos/util": "0.8.4-main.3f58842"
29
+ "effect": "3.17.7",
30
+ "@dxos/crypto": "0.8.4-main.5ea62a8",
31
+ "@dxos/invariant": "0.8.4-main.5ea62a8",
32
+ "@dxos/keys": "0.8.4-main.5ea62a8",
33
+ "@dxos/protocols": "0.8.4-main.5ea62a8",
34
+ "@dxos/util": "0.8.4-main.5ea62a8"
34
35
  },
35
36
  "publishConfig": {
36
37
  "access": "public"
@@ -8,7 +8,7 @@ import { visitValues } from '@dxos/util';
8
8
 
9
9
  import { type RawString } from './automerge';
10
10
  import type { ForeignKey } from './foreign-key';
11
- import { isEncodedReference, type EncodedReference } from './reference';
11
+ import { type EncodedReference, isEncodedReference } from './reference';
12
12
  import { type SpaceDocVersion } from './space-doc-version';
13
13
 
14
14
  export type SpaceState = {
package/src/space-id.ts CHANGED
@@ -18,7 +18,7 @@ export const createIdFromSpaceKey = async (spaceKey: PublicKey): Promise<SpaceId
18
18
  return cachedValue;
19
19
  }
20
20
 
21
- const digest = await subtleCrypto.digest('SHA-256', spaceKey.asUint8Array());
21
+ const digest = await subtleCrypto.digest('SHA-256', spaceKey.asUint8Array() as Uint8Array<ArrayBuffer>);
22
22
 
23
23
  const bytes = new Uint8Array(digest).slice(0, SpaceId.byteLength);
24
24
  const spaceId = SpaceId.encode(bytes);