@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.
- package/dist/lib/browser/{chunk-Y5AUZFDK.mjs → chunk-4FNLRMHR.mjs} +32 -18
- package/dist/lib/browser/{chunk-Y5AUZFDK.mjs.map → chunk-4FNLRMHR.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/packlets/testing/index.mjs +1 -1
- package/dist/lib/node/{chunk-UHP765AN.cjs → chunk-ZTE7R6AZ.cjs} +35 -21
- package/dist/lib/node/{chunk-UHP765AN.cjs.map → chunk-ZTE7R6AZ.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +45 -45
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/packlets/testing/index.cjs +8 -8
- package/dist/types/src/packlets/spaces/epoch-migrations.d.ts.map +1 -1
- package/dist/types/src/version.d.ts +1 -1
- package/package.json +36 -36
- package/src/packlets/spaces/epoch-migrations.ts +12 -7
- package/src/version.ts +1 -1
|
@@ -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.
|
|
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
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
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:
|
|
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-
|
|
7284
|
+
//# sourceMappingURL=chunk-4FNLRMHR.mjs.map
|