@dxos/client-services 0.5.9-main.c34beda → 0.5.9-main.cd3aaf7

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.
@@ -359,7 +359,7 @@ import { SpaceMember } from "@dxos/protocols/proto/dxos/client/services";
359
359
  import { TRACE_PROCESSOR } from "@dxos/tracing";
360
360
 
361
361
  // packages/sdk/client-services/src/version.ts
362
- var DXOS_VERSION = "0.5.9-main.c34beda";
362
+ var DXOS_VERSION = "0.5.9-main.cd3aaf7";
363
363
 
364
364
  // packages/sdk/client-services/src/packlets/services/platform.ts
365
365
  import { Platform } from "@dxos/protocols/proto/dxos/client/services";
@@ -3880,21 +3880,35 @@ var runEpochMigration = async (ctx, context) => {
3880
3880
  });
3881
3881
  const newRootContent = await convertLegacySpaceRootDoc(structuredClone(rootHandle.docSync()));
3882
3882
  for (const [id, url] of Object.entries(newRootContent.links ?? {})) {
3883
- const handle = context.repo.find(url);
3884
- await cancelWithContext4(ctx, asyncTimeout2(handle.whenReady(), 1e4));
3885
- invariant12(handle.docSync(), "Doc not found", {
3886
- F: __dxlog_file16,
3887
- L: 107,
3888
- S: void 0,
3889
- A: [
3890
- "handle.docSync()",
3891
- "'Doc not found'"
3892
- ]
3893
- });
3894
- const newDoc = await convertLegacyReferences(structuredClone(handle.docSync()));
3895
- const migratedDoc = migrateDocument(handle.docSync(), newDoc);
3896
- const newHandle = context.repo.import(am.save(migratedDoc));
3897
- newRootContent.links[id] = newHandle.url;
3883
+ try {
3884
+ const handle = context.repo.find(url);
3885
+ await cancelWithContext4(ctx, asyncTimeout2(handle.whenReady(), 1e4));
3886
+ invariant12(handle.docSync(), "Doc not found", {
3887
+ F: __dxlog_file16,
3888
+ L: 108,
3889
+ S: void 0,
3890
+ A: [
3891
+ "handle.docSync()",
3892
+ "'Doc not found'"
3893
+ ]
3894
+ });
3895
+ const newDoc = await convertLegacyReferences(structuredClone(handle.docSync()));
3896
+ const migratedDoc = migrateDocument(handle.docSync(), newDoc);
3897
+ const newHandle = context.repo.import(am.save(migratedDoc));
3898
+ newRootContent.links[id] = newHandle.url;
3899
+ } catch (err) {
3900
+ log13.warn("Failed to migrate reference", {
3901
+ id,
3902
+ url,
3903
+ error: err
3904
+ }, {
3905
+ F: __dxlog_file16,
3906
+ L: 114,
3907
+ S: void 0,
3908
+ C: (f, a) => f(...a)
3909
+ });
3910
+ delete newRootContent.links[id];
3911
+ }
3898
3912
  }
3899
3913
  const migratedRoot = migrateDocument(rootHandle.docSync(), newRootContent);
3900
3914
  const newRoot = context.repo.import(am.save(migratedRoot));
@@ -3906,7 +3920,7 @@ var runEpochMigration = async (ctx, context) => {
3906
3920
  case CreateEpochRequest.Migration.REPLACE_AUTOMERGE_ROOT: {
3907
3921
  invariant12(context.newAutomergeRoot, void 0, {
3908
3922
  F: __dxlog_file16,
3909
- L: 124,
3923
+ L: 129,
3910
3924
  S: void 0,
3911
3925
  A: [
3912
3926
  "context.newAutomergeRoot",
@@ -7267,4 +7281,4 @@ export {
7267
7281
  ClientServicesProviderResource,
7268
7282
  DiagnosticsCollector
7269
7283
  };
7270
- //# sourceMappingURL=chunk-Y5AUZFDK.mjs.map
7284
+ //# sourceMappingURL=chunk-4FNLRMHR.mjs.map