@dxos/client 2.33.9-dev.d70ac9ee → 2.33.9-dev.d7113edd

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.
Files changed (43) hide show
  1. package/dist/browser.js +98370 -0
  2. package/dist/src/api/client.js +3 -3
  3. package/dist/src/api/client.js.map +1 -1
  4. package/dist/src/api/client.test.js +2 -2
  5. package/dist/src/api/client.test.js.map +1 -1
  6. package/dist/src/api/invitations/invitation-proxy.js +4 -4
  7. package/dist/src/api/invitations/invitation-proxy.js.map +1 -1
  8. package/dist/src/api/invitations/invitation-request.js +2 -2
  9. package/dist/src/api/invitations/invitation-request.js.map +1 -1
  10. package/dist/src/api/proxies/echo-proxy.js +2 -2
  11. package/dist/src/api/proxies/echo-proxy.js.map +1 -1
  12. package/dist/src/index.d.ts +4 -3
  13. package/dist/src/index.d.ts.map +1 -1
  14. package/dist/src/index.js +8 -14
  15. package/dist/src/index.js.map +1 -1
  16. package/dist/src/proto/index.d.ts +3 -0
  17. package/dist/src/proto/index.d.ts.map +1 -0
  18. package/dist/src/proto/index.js +35 -0
  19. package/dist/src/proto/index.js.map +1 -0
  20. package/dist/src/services/impl/halo.js +12 -12
  21. package/dist/src/services/impl/halo.js.map +1 -1
  22. package/dist/src/services/impl/party.js +6 -6
  23. package/dist/src/services/impl/party.js.map +1 -1
  24. package/dist/src/services/impl/profile.js +5 -5
  25. package/dist/src/services/impl/profile.js.map +1 -1
  26. package/dist/src/services/impl/types.d.ts +1 -1
  27. package/dist/src/services/impl/types.d.ts.map +1 -1
  28. package/dist/src/services/services.test.js +2 -2
  29. package/dist/src/services/services.test.js.map +1 -1
  30. package/dist/tsconfig.tsbuildinfo +1 -1
  31. package/package.json +35 -19
  32. package/src/api/client.test.ts +1 -1
  33. package/src/api/client.ts +1 -1
  34. package/src/api/invitations/invitation-proxy.ts +1 -1
  35. package/src/api/invitations/invitation-request.ts +1 -1
  36. package/src/api/proxies/echo-proxy.ts +1 -1
  37. package/src/index.ts +13 -3
  38. package/src/proto/index.ts +6 -0
  39. package/src/services/impl/halo.ts +1 -1
  40. package/src/services/impl/party.ts +1 -1
  41. package/src/services/impl/profile.ts +1 -1
  42. package/src/services/impl/types.ts +1 -1
  43. package/src/services/services.test.ts +1 -1
package/package.json CHANGED
@@ -1,29 +1,27 @@
1
1
  {
2
2
  "name": "@dxos/client",
3
- "version": "2.33.9-dev.d70ac9ee",
3
+ "version": "2.33.9-dev.d7113edd",
4
4
  "license": "MIT",
5
5
  "author": "DXOS.org",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
8
+ "browser": {
9
+ "./dist/src/index.js": "./dist/browser.js",
10
+ "node:assert": "assert"
11
+ },
8
12
  "files": [
9
13
  "dist",
10
14
  "src"
11
15
  ],
12
16
  "dependencies": {
13
- "@dxos/async": "2.33.9-dev.d70ac9ee",
14
- "@dxos/codec-protobuf": "2.33.9-dev.d70ac9ee",
15
- "@dxos/config": "2.33.9-dev.d70ac9ee",
16
- "@dxos/credentials": "2.33.9-dev.d70ac9ee",
17
- "@dxos/debug": "2.33.9-dev.d70ac9ee",
18
- "@dxos/echo-db": "2.33.9-dev.d70ac9ee",
19
- "@dxos/echo-protocol": "2.33.9-dev.d70ac9ee",
20
- "@dxos/feed-store": "2.33.9-dev.d70ac9ee",
21
- "@dxos/model-factory": "2.33.9-dev.d70ac9ee",
22
- "@dxos/network-manager": "2.33.9-dev.d70ac9ee",
23
- "@dxos/object-model": "2.33.9-dev.d70ac9ee",
24
- "@dxos/protocols": "2.33.9-dev.d70ac9ee",
25
- "@dxos/rpc": "2.33.9-dev.d70ac9ee",
26
- "@dxos/util": "2.33.9-dev.d70ac9ee",
17
+ "@dxos/async": "2.33.9-dev.d7113edd",
18
+ "@dxos/codec-protobuf": "2.33.9-dev.d7113edd",
19
+ "@dxos/config": "2.33.9-dev.d7113edd",
20
+ "@dxos/debug": "2.33.9-dev.d7113edd",
21
+ "@dxos/model-factory": "2.33.9-dev.d7113edd",
22
+ "@dxos/protocols": "2.33.9-dev.d7113edd",
23
+ "@dxos/rpc": "2.33.9-dev.d7113edd",
24
+ "@dxos/util": "2.33.9-dev.d7113edd",
27
25
  "abstract-leveldown": "~7.0.0",
28
26
  "assert": "^2.0.0",
29
27
  "debug": "^4.3.3",
@@ -36,12 +34,20 @@
36
34
  "uuid": "^8.3.2"
37
35
  },
38
36
  "devDependencies": {
37
+ "@dxos/credentials": "2.33.9-dev.d7113edd",
38
+ "@dxos/crypto": "2.33.9-dev.d7113edd",
39
+ "@dxos/echo-db": "2.33.9-dev.d7113edd",
40
+ "@dxos/echo-protocol": "2.33.9-dev.d7113edd",
39
41
  "@dxos/eslint-plugin": "~1.0.34",
42
+ "@dxos/feed-store": "2.33.9-dev.d7113edd",
43
+ "@dxos/network-manager": "2.33.9-dev.d7113edd",
44
+ "@dxos/object-model": "2.33.9-dev.d7113edd",
40
45
  "@dxos/protocols-toolchain": "2.33.8",
41
- "@dxos/random-access-multi-storage": "2.33.9-dev.d70ac9ee",
46
+ "@dxos/random-access-multi-storage": "2.33.9-dev.d7113edd",
42
47
  "@dxos/testutils": "2.33.8",
48
+ "@koush/wrtc": "^0.5.3",
43
49
  "@types/debug": "^4.1.7",
44
- "@types/jest": "^26.0.7",
50
+ "@types/jest": "^28.1.6",
45
51
  "@types/level-js": "~4.0.1",
46
52
  "@types/lodash.defaultsdeep": "^4.6.6",
47
53
  "@types/memdown": "^3.0.0",
@@ -51,6 +57,7 @@
51
57
  "@types/uuid": "~8.3.3",
52
58
  "eslint": "^7.12.1",
53
59
  "expect": "~27.0.2",
60
+ "jsonify": "^0.0.0",
54
61
  "mocha": "~8.4.0",
55
62
  "typescript": "^4.7.2",
56
63
  "wait-for-expect": "^3.0.2"
@@ -59,12 +66,21 @@
59
66
  "access": "public"
60
67
  },
61
68
  "toolchain": {
69
+ "bundlePackages": [
70
+ "@dxos/credentials",
71
+ "@dxos/crypto",
72
+ "@dxos/echo-db",
73
+ "@dxos/echo-protocol",
74
+ "@dxos/feed-store",
75
+ "@dxos/network-manager",
76
+ "@dxos/object-model"
77
+ ],
62
78
  "testingFramework": "mocha"
63
79
  },
64
80
  "scripts": {
65
81
  "prebuild": "node -p \"'export const DXOS_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'\" > src/version.ts",
66
- "build": "npm run prebuild && toolchain build",
67
- "build:test": "toolchain build:test",
82
+ "build": "npm run prebuild && toolchain bundle:library",
83
+ "build:test": "toolchain build:test --bundle",
68
84
  "lint": "toolchain lint",
69
85
  "test": "toolchain test"
70
86
  }
@@ -2,9 +2,9 @@
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
6
5
  import expect from 'expect';
7
6
  import { it as test } from 'mocha';
7
+ import assert from 'node:assert';
8
8
  import waitForExpect from 'wait-for-expect';
9
9
 
10
10
  import { sleep, waitForCondition } from '@dxos/async';
package/src/api/client.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
6
5
  import debug from 'debug';
6
+ import assert from 'node:assert';
7
7
 
8
8
  import { synchronized } from '@dxos/async';
9
9
  import { Config, ConfigObject } from '@dxos/config';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
5
+ import assert from 'node:assert';
6
6
 
7
7
  import { Event, trigger } from '@dxos/async';
8
8
  import { Stream } from '@dxos/codec-protobuf';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
5
+ import assert from 'node:assert';
6
6
 
7
7
  import { Event } from '@dxos/async';
8
8
  import { raise } from '@dxos/debug';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2021 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
5
+ import assert from 'node:assert';
6
6
 
7
7
  import { Event, latch } from '@dxos/async';
8
8
  import { failUndefined } from '@dxos/debug';
package/src/index.ts CHANGED
@@ -6,6 +6,7 @@ export { generateSeedPhrase } from '@dxos/credentials';
6
6
 
7
7
  export {
8
8
  PARTY_ITEM_TYPE, // TODO(burdon): Remove?
9
+ TYPE_SCHEMA,
9
10
  Entity,
10
11
  Item,
11
12
  Link,
@@ -17,7 +18,11 @@ export {
17
18
  InvitationDescriptorType,
18
19
  OpenProgress,
19
20
  PartyMember,
20
- ResultSet
21
+ ResultSet,
22
+ Schema,
23
+ SchemaDef,
24
+ SchemaField,
25
+ SchemaRef
21
26
  } from '@dxos/echo-db';
22
27
 
23
28
  export {
@@ -26,13 +31,18 @@ export {
26
31
  } from '@dxos/echo-protocol';
27
32
 
28
33
  export {
29
- ObjectModel
34
+ ObjectModel,
35
+ OrderedList
30
36
  } from '@dxos/object-model';
31
37
 
32
- export * as proto from './proto/gen';
38
+ // TODO(wittjosiah): Remove.
39
+ export {
40
+ NetworkManager
41
+ } from '@dxos/network-manager';
33
42
 
34
43
  export * from './api';
35
44
  export * from './devtools';
45
+ export * from './proto';
36
46
  export * from './services';
37
47
  export * from './util';
38
48
  export * from './version';
@@ -0,0 +1,6 @@
1
+ //
2
+ // Copyright 2022 DXOS.org
3
+ //
4
+
5
+ export * as proto from './gen';
6
+ export * from './gen/dxos/halo/keys';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
5
+ import assert from 'node:assert';
6
6
 
7
7
  import { Stream } from '@dxos/codec-protobuf';
8
8
  import { ECHO } from '@dxos/echo-db';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
5
+ import assert from 'node:assert';
6
6
  import { v4 } from 'uuid';
7
7
 
8
8
  import { latch } from '@dxos/async';
@@ -2,7 +2,7 @@
2
2
  // Copyright 2022 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
5
+ import assert from 'node:assert';
6
6
  import { v4 } from 'uuid';
7
7
 
8
8
  import { latch } from '@dxos/async';
@@ -3,10 +3,10 @@
3
3
  //
4
4
 
5
5
  import { Config } from '@dxos/config';
6
- import { KeyRecord } from '@dxos/credentials';
7
6
  import { ECHO } from '@dxos/echo-db';
8
7
 
9
8
  import { SignRequest, SignResponse } from '../../proto/gen/dxos/client';
9
+ import { KeyRecord } from '../../proto/gen/dxos/halo/keys';
10
10
 
11
11
  /**
12
12
  * Signer plugin.
@@ -2,8 +2,8 @@
2
2
  // Copyright 2020 DXOS.org
3
3
  //
4
4
 
5
- import assert from 'assert';
6
5
  import { it as test } from 'mocha';
6
+ import assert from 'node:assert';
7
7
 
8
8
  import { latch } from '@dxos/async';
9
9
  import { RpcClosedError } from '@dxos/rpc';