@dxos/client-services 0.4.10-main.eedd150 → 0.4.10-main.ef6fbc2

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.
@@ -1,2 +1,2 @@
1
- export declare const DXOS_VERSION = "0.4.10-main.eedd150";
1
+ export declare const DXOS_VERSION = "0.4.10-main.ef6fbc2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/client-services",
3
- "version": "0.4.10-main.eedd150",
3
+ "version": "0.4.10-main.ef6fbc2",
4
4
  "description": "DXOS client services implementation",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -23,43 +23,43 @@
23
23
  "dependencies": {
24
24
  "level": "^8.0.1",
25
25
  "platform": "^1.3.6",
26
- "@dxos/async": "0.4.10-main.eedd150",
27
- "@dxos/automerge": "0.4.10-main.eedd150",
28
- "@dxos/client-protocol": "0.4.10-main.eedd150",
29
- "@dxos/context": "0.4.10-main.eedd150",
30
- "@dxos/codec-protobuf": "0.4.10-main.eedd150",
31
- "@dxos/config": "0.4.10-main.eedd150",
32
- "@dxos/crypto": "0.4.10-main.eedd150",
33
- "@dxos/debug": "0.4.10-main.eedd150",
34
- "@dxos/echo-db": "0.4.10-main.eedd150",
35
- "@dxos/credentials": "0.4.10-main.eedd150",
36
- "@dxos/feed-store": "0.4.10-main.eedd150",
37
- "@dxos/indexing": "0.4.10-main.eedd150",
38
- "@dxos/echo-schema": "0.4.10-main.eedd150",
39
- "@dxos/invariant": "0.4.10-main.eedd150",
40
- "@dxos/keyring": "0.4.10-main.eedd150",
41
- "@dxos/keys": "0.4.10-main.eedd150",
42
- "@dxos/echo-pipeline": "0.4.10-main.eedd150",
43
- "@dxos/lock-file": "0.4.10-main.eedd150",
44
- "@dxos/log": "0.4.10-main.eedd150",
45
- "@dxos/messaging": "0.4.10-main.eedd150",
46
- "@dxos/node-std": "0.4.10-main.eedd150",
47
- "@dxos/network-manager": "0.4.10-main.eedd150",
48
- "@dxos/protocols": "0.4.10-main.eedd150",
49
- "@dxos/random-access-storage": "0.4.10-main.eedd150",
50
- "@dxos/teleport": "0.4.10-main.eedd150",
51
- "@dxos/rpc": "0.4.10-main.eedd150",
52
- "@dxos/teleport-extension-gossip": "0.4.10-main.eedd150",
53
- "@dxos/teleport-extension-object-sync": "0.4.10-main.eedd150",
54
- "@dxos/timeframe": "0.4.10-main.eedd150",
55
- "@dxos/util": "0.4.10-main.eedd150",
56
- "@dxos/websocket-rpc": "0.4.10-main.eedd150",
57
- "@dxos/tracing": "0.4.10-main.eedd150"
26
+ "@dxos/async": "0.4.10-main.ef6fbc2",
27
+ "@dxos/automerge": "0.4.10-main.ef6fbc2",
28
+ "@dxos/codec-protobuf": "0.4.10-main.ef6fbc2",
29
+ "@dxos/client-protocol": "0.4.10-main.ef6fbc2",
30
+ "@dxos/credentials": "0.4.10-main.ef6fbc2",
31
+ "@dxos/context": "0.4.10-main.ef6fbc2",
32
+ "@dxos/config": "0.4.10-main.ef6fbc2",
33
+ "@dxos/crypto": "0.4.10-main.ef6fbc2",
34
+ "@dxos/debug": "0.4.10-main.ef6fbc2",
35
+ "@dxos/echo-db": "0.4.10-main.ef6fbc2",
36
+ "@dxos/echo-pipeline": "0.4.10-main.ef6fbc2",
37
+ "@dxos/indexing": "0.4.10-main.ef6fbc2",
38
+ "@dxos/echo-schema": "0.4.10-main.ef6fbc2",
39
+ "@dxos/feed-store": "0.4.10-main.ef6fbc2",
40
+ "@dxos/keyring": "0.4.10-main.ef6fbc2",
41
+ "@dxos/invariant": "0.4.10-main.ef6fbc2",
42
+ "@dxos/keys": "0.4.10-main.ef6fbc2",
43
+ "@dxos/lock-file": "0.4.10-main.ef6fbc2",
44
+ "@dxos/log": "0.4.10-main.ef6fbc2",
45
+ "@dxos/messaging": "0.4.10-main.ef6fbc2",
46
+ "@dxos/network-manager": "0.4.10-main.ef6fbc2",
47
+ "@dxos/protocols": "0.4.10-main.ef6fbc2",
48
+ "@dxos/node-std": "0.4.10-main.ef6fbc2",
49
+ "@dxos/random-access-storage": "0.4.10-main.ef6fbc2",
50
+ "@dxos/rpc": "0.4.10-main.ef6fbc2",
51
+ "@dxos/teleport": "0.4.10-main.ef6fbc2",
52
+ "@dxos/teleport-extension-gossip": "0.4.10-main.ef6fbc2",
53
+ "@dxos/teleport-extension-object-sync": "0.4.10-main.ef6fbc2",
54
+ "@dxos/timeframe": "0.4.10-main.ef6fbc2",
55
+ "@dxos/tracing": "0.4.10-main.ef6fbc2",
56
+ "@dxos/websocket-rpc": "0.4.10-main.ef6fbc2",
57
+ "@dxos/util": "0.4.10-main.ef6fbc2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/platform": "^1.3.4",
61
61
  "@types/readable-stream": "^2.3.9",
62
- "@dxos/signal": "0.4.10-main.eedd150"
62
+ "@dxos/signal": "0.4.10-main.ef6fbc2"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
@@ -5,7 +5,7 @@
5
5
  import { type Level } from 'level';
6
6
 
7
7
  import { Trigger } from '@dxos/async';
8
- import { Context } from '@dxos/context';
8
+ import { Context, Resource } from '@dxos/context';
9
9
  import { getCredentialAssertion, type CredentialProcessor } from '@dxos/credentials';
10
10
  import { failUndefined } from '@dxos/debug';
11
11
  import { AutomergeHost, MetadataStore, SnapshotStore, SpaceManager, valueEncoding } from '@dxos/echo-pipeline';
@@ -49,7 +49,7 @@ export type ServiceContextRuntimeParams = IdentityManagerRuntimeParams & DataSpa
49
49
  // TODO(dmaretskyi): Gets duplicated in CJS build between normal and testing bundles.
50
50
  @safeInstanceof('dxos.client-services.ServiceContext')
51
51
  @Trace.resource()
52
- export class ServiceContext {
52
+ export class ServiceContext extends Resource {
53
53
  public readonly initialized = new Trigger();
54
54
  public readonly metadataStore: MetadataStore;
55
55
  /**
@@ -85,6 +85,8 @@ export class ServiceContext {
85
85
  public readonly signalManager: SignalManager,
86
86
  public readonly _runtimeParams?: IdentityManagerRuntimeParams & DataSpaceManagerRuntimeParams,
87
87
  ) {
88
+ super();
89
+
88
90
  // TODO(burdon): Move strings to constants.
89
91
  this.metadataStore = new MetadataStore(storage.createDirectory('metadata'));
90
92
  this.snapshotStore = new SnapshotStore(storage.createDirectory('snapshots'));
@@ -148,7 +150,7 @@ export class ServiceContext {
148
150
  }
149
151
 
150
152
  @Trace.span()
151
- async open(ctx: Context) {
153
+ protected override async _open(ctx: Context) {
152
154
  await this._checkStorageVersion();
153
155
 
154
156
  log('opening...');
@@ -166,7 +168,7 @@ export class ServiceContext {
166
168
  log('opened');
167
169
  }
168
170
 
169
- async close() {
171
+ protected override async _close() {
170
172
  log('closing...');
171
173
  if (this._deviceSpaceSync && this.identityManager.identity) {
172
174
  await this.identityManager.identity.space.spaceState.removeCredentialProcessor(this._deviceSpaceSync);
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const DXOS_VERSION = "0.4.10-main.eedd150";
1
+ export const DXOS_VERSION = "0.4.10-main.ef6fbc2";