@dxos/migrations 0.8.4-main.fd6878d → 0.8.4-staging.60fe92afc8

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/LICENSE CHANGED
@@ -1,8 +1,105 @@
1
- MIT License
2
- Copyright (c) 2022 DXOS
1
+ # Functional Source License, Version 1.1, ALv2 Future License
3
2
 
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ ## Abbreviation
5
4
 
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ FSL-1.1-Apache-2.0
7
6
 
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7
+ ## Notice
8
+
9
+ Copyright 2026 DXOS
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # @dxos/echo-signals
1
+ # @dxos/migrations
2
2
 
3
3
  ## Installation
4
4
 
5
5
  ```bash
6
- pnpm i @dxos/echo-signals
6
+ pnpm i @dxos/migrations
7
7
  ```
8
8
 
9
9
  ## DXOS Resources
@@ -16,4 +16,4 @@ pnpm i @dxos/echo-signals
16
16
 
17
17
  Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
18
18
 
19
- License: [MIT](./LICENSE) Copyright 2022 © DXOS
19
+ License: [FSL-1.1-Apache-2.0](./LICENSE) Copyright 2022 © DXOS
@@ -1,28 +1,40 @@
1
+ // src/annotations.ts
2
+ import * as Schema from "effect/Schema";
3
+ import { Annotation } from "@dxos/echo";
4
+ var MigrationVersionAnnotation = Annotation.make({
5
+ id: "org.dxos.migrations.version",
6
+ schema: Schema.String
7
+ });
8
+
9
+ // src/document-compaction.ts
10
+ import { SpaceState } from "@dxos/client/echo";
11
+ import { invariant as invariant2 } from "@dxos/invariant";
12
+
1
13
  // src/migration-builder.ts
2
- import { next as am } from "@automerge/automerge";
14
+ import { next as A, toJS } from "@automerge/automerge";
3
15
  import { CreateEpochRequest } from "@dxos/client/halo";
4
- import { ObjectCore, migrateDocument } from "@dxos/echo-db";
5
- import { Reference, SpaceDocVersion, encodeReference } from "@dxos/echo-protocol";
6
- import { requireTypeReference } from "@dxos/echo-schema";
16
+ import { ObjectCore, migrateDocument } from "@dxos/echo-client/internal";
17
+ import { EncodedReference, SpaceDocVersion } from "@dxos/echo-protocol";
18
+ import { getSchemaURI } from "@dxos/echo/internal";
19
+ import * as Type from "@dxos/echo/Type";
7
20
  import { invariant } from "@dxos/invariant";
21
+ import { EID, EntityId } from "@dxos/keys";
8
22
  var __dxlog_file = "/__w/dxos/dxos/packages/sdk/migrations/src/migration-builder.ts";
9
23
  var MigrationBuilder = class {
10
24
  _space;
11
25
  _repo;
12
26
  _rootDoc;
13
- // echoId -> automergeUrl
14
- _newLinks;
15
- _flushIds;
16
- _deleteObjects;
17
- _newRoot;
27
+ // echoUri -> automergeUrl
28
+ _newLinks = {};
29
+ _flushIds = [];
30
+ _deleteObjects = [];
31
+ _newRoot = void 0;
18
32
  constructor(_space) {
19
33
  this._space = _space;
20
- this._newLinks = {};
21
- this._flushIds = [];
22
- this._deleteObjects = [];
23
- this._newRoot = void 0;
24
- this._repo = this._space.db.coreDatabase._repo;
25
- this._rootDoc = this._space.db.coreDatabase._automergeDocLoader.getSpaceRootDocHandle().doc();
34
+ this._repo = this._space.internal.db._repo;
35
+ const rootDoc = this._space.internal.db._getSpaceRootDocHandle().doc();
36
+ invariant(rootDoc, "Space root document must be available when creating MigrationBuilder", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 41, S: this, A: ["rootDoc", "'Space root document must be available when creating MigrationBuilder'"] });
37
+ this._rootDoc = rootDoc;
26
38
  }
27
39
  async findObject(id) {
28
40
  const documentId = (this._rootDoc.links?.[id] || this._newLinks[id])?.toString();
@@ -39,17 +51,10 @@ var MigrationBuilder = class {
39
51
  if (!objectStructure) {
40
52
  return;
41
53
  }
42
- const { schema, props } = await migrate(objectStructure);
54
+ const { type, props } = await migrate(objectStructure);
55
+ const schema = Type.getSchema(type);
43
56
  const oldHandle = await this._findObjectContainingHandle(id);
44
- invariant(oldHandle, void 0, {
45
- F: __dxlog_file,
46
- L: 84,
47
- S: this,
48
- A: [
49
- "oldHandle",
50
- ""
51
- ]
52
- });
57
+ invariant(oldHandle, void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 62, S: this, A: ["oldHandle", ""] });
53
58
  const newState = {
54
59
  version: SpaceDocVersion.CURRENT,
55
60
  access: {
@@ -58,7 +63,7 @@ var MigrationBuilder = class {
58
63
  objects: {
59
64
  [id]: {
60
65
  system: {
61
- type: encodeReference(requireTypeReference(schema))
66
+ type: EncodedReference.fromURI(getSchemaURI(schema))
62
67
  },
63
68
  data: props,
64
69
  meta: {
@@ -68,59 +73,79 @@ var MigrationBuilder = class {
68
73
  }
69
74
  };
70
75
  const migratedDoc = migrateDocument(oldHandle.doc(), newState);
71
- const newHandle = this._repo.import(am.save(migratedDoc));
76
+ const newHandle = this._repo.import(A.save(migratedDoc));
77
+ await newHandle.whenReady();
78
+ invariant(newHandle.url, "Migrated document URL not available after whenReady", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 83, S: this, A: ["newHandle.url", "'Migrated document URL not available after whenReady'"] });
72
79
  this._newLinks[id] = newHandle.url;
73
- this._addHandleToFlushList(newHandle);
80
+ this._addHandleToFlushList(newHandle.documentId);
74
81
  }
75
- async addObject(schema, props) {
76
- const core = this._createObject({
77
- schema,
82
+ async addObject(type, props) {
83
+ const resolved = Type.getSchema(type);
84
+ const core = await this._createObject({
85
+ schema: resolved,
78
86
  props
79
87
  });
80
88
  return core.id;
81
89
  }
82
90
  createReference(id) {
83
- return encodeReference(Reference.localObjectReference(id));
91
+ invariant(EntityId.isValid(id), "Invalid EntityId.", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 96, S: this, A: ["EntityId.isValid(id)", "'Invalid EntityId.'"] });
92
+ return EncodedReference.fromURI(EID.make({
93
+ entityId: id
94
+ }));
84
95
  }
85
96
  deleteObject(id) {
86
97
  this._deleteObjects.push(id);
87
98
  }
88
- changeProperties(changeFn) {
99
+ /**
100
+ * Re-materializes linked object documents into fresh Automerge docs without history.
101
+ * Call {@link _commit} to publish a new space epoch with updated root links.
102
+ */
103
+ async compactLinkedDocuments(objectIds) {
104
+ const linkIds = objectIds ?? Object.keys(this._rootDoc.links ?? {});
105
+ const compacted = [];
106
+ const skipped = [];
107
+ for (const id of linkIds) {
108
+ const oldHandle = await this._findObjectContainingHandle(id);
109
+ if (!oldHandle) {
110
+ skipped.push(id);
111
+ continue;
112
+ }
113
+ await oldHandle.whenReady();
114
+ const materialized = toJS(oldHandle.doc());
115
+ const newHandle = this._repo.create(materialized);
116
+ await newHandle.whenReady();
117
+ invariant(newHandle.url, "Compacted document URL not available after whenReady", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 121, S: this, A: ["newHandle.url", "'Compacted document URL not available after whenReady'"] });
118
+ this._newLinks[id] = newHandle.url;
119
+ this._addHandleToFlushList(newHandle.documentId);
120
+ compacted.push(id);
121
+ }
122
+ return {
123
+ compacted,
124
+ skipped
125
+ };
126
+ }
127
+ async changeProperties(changeFn) {
89
128
  if (!this._newRoot) {
90
- this._buildNewRoot();
129
+ await this._buildNewRoot();
91
130
  }
92
- invariant(this._newRoot, "New root not created", {
93
- F: __dxlog_file,
94
- L: 126,
95
- S: this,
96
- A: [
97
- "this._newRoot",
98
- "'New root not created'"
99
- ]
100
- });
131
+ invariant(this._newRoot, "New root not created", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 135, S: this, A: ["this._newRoot", "'New root not created'"] });
101
132
  this._newRoot.change((doc) => {
102
133
  const propertiesStructure = doc.objects?.[this._space.properties.id];
103
134
  propertiesStructure && changeFn(propertiesStructure);
104
135
  });
105
- this._addHandleToFlushList(this._newRoot);
136
+ await this._newRoot.whenReady();
137
+ this._addHandleToFlushList(this._newRoot.documentId);
106
138
  }
107
139
  /**
108
140
  * @internal
109
141
  */
110
142
  async _commit() {
111
143
  if (!this._newRoot) {
112
- this._buildNewRoot();
144
+ await this._buildNewRoot();
113
145
  }
114
- invariant(this._newRoot, "New root not created", {
115
- F: __dxlog_file,
116
- L: 142,
117
- S: this,
118
- A: [
119
- "this._newRoot",
120
- "'New root not created'"
121
- ]
122
- });
146
+ invariant(this._newRoot, "New root not created", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 149, S: this, A: ["this._newRoot", "'New root not created'"] });
123
147
  await this._space.db.flush();
148
+ invariant(this._newRoot.url, "New root URL not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 152, S: this, A: ["this._newRoot.url", "'New root URL not available'"] });
124
149
  await this._space.internal.createEpoch({
125
150
  migration: CreateEpochRequest.Migration.REPLACE_AUTOMERGE_ROOT,
126
151
  automergeRootUrl: this._newRoot.url
@@ -135,7 +160,7 @@ var MigrationBuilder = class {
135
160
  await docHandle.whenReady();
136
161
  return docHandle;
137
162
  }
138
- _buildNewRoot() {
163
+ async _buildNewRoot() {
139
164
  const links = {
140
165
  ...this._rootDoc.links ?? {}
141
166
  };
@@ -143,7 +168,7 @@ var MigrationBuilder = class {
143
168
  delete links[id];
144
169
  }
145
170
  for (const [id, url] of Object.entries(this._newLinks)) {
146
- links[id] = new am.RawString(url);
171
+ links[id] = new A.RawString(url);
147
172
  }
148
173
  this._newRoot = this._repo.create({
149
174
  version: SpaceDocVersion.CURRENT,
@@ -153,15 +178,16 @@ var MigrationBuilder = class {
153
178
  objects: this._rootDoc.objects,
154
179
  links
155
180
  });
156
- this._addHandleToFlushList(this._newRoot);
181
+ await this._newRoot.whenReady();
182
+ this._addHandleToFlushList(this._newRoot.documentId);
157
183
  }
158
- _createObject({ id, schema, props }) {
184
+ async _createObject({ id, schema, props }) {
159
185
  const core = new ObjectCore();
160
186
  if (id) {
161
187
  core.id = id;
162
188
  }
163
189
  core.initNewObject(props);
164
- core.setType(requireTypeReference(schema));
190
+ core.setType(EncodedReference.fromURI(getSchemaURI(schema)));
165
191
  const newHandle = this._repo.create({
166
192
  version: SpaceDocVersion.CURRENT,
167
193
  access: {
@@ -171,25 +197,51 @@ var MigrationBuilder = class {
171
197
  [core.id]: core.getDoc()
172
198
  }
173
199
  });
200
+ await newHandle.whenReady();
174
201
  this._newLinks[core.id] = newHandle.url;
175
- this._addHandleToFlushList(newHandle);
202
+ this._addHandleToFlushList(newHandle.documentId);
176
203
  return core;
177
204
  }
178
- _addHandleToFlushList(handle) {
179
- this._flushIds.push(handle.documentId);
205
+ _addHandleToFlushList(id) {
206
+ this._flushIds.push(id);
180
207
  }
181
208
  };
182
209
 
210
+ // src/document-compaction.ts
211
+ var __dxlog_file2 = "/__w/dxos/dxos/packages/sdk/migrations/src/document-compaction.ts";
212
+ var compactDocumentsEpochMigration = async (space, options = {}) => {
213
+ invariant2(space.state.get() === SpaceState.SPACE_READY, "Space must be open and ready before compaction.", { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 11, S: void 0, A: ["space.state.get() === SpaceState.SPACE_READY", "'Space must be open and ready before compaction.'"] });
214
+ const builder = new MigrationBuilder(space);
215
+ const { compacted, skipped } = await builder.compactLinkedDocuments(options.objectIds);
216
+ await builder._commit();
217
+ const epochs = await space.internal.getEpochs();
218
+ const lastEpoch = epochs[epochs.length - 1];
219
+ const epochNumber = lastEpoch?.subject.assertion.number ?? 0;
220
+ return {
221
+ compacted,
222
+ skipped,
223
+ epochNumber
224
+ };
225
+ };
226
+
183
227
  // src/migrations.ts
184
- import { SpaceState, live } from "@dxos/client/echo";
185
- import { invariant as invariant2 } from "@dxos/invariant";
186
- var __dxlog_file2 = "/__w/dxos/dxos/packages/sdk/migrations/src/migrations.ts";
228
+ import { Atom } from "@effect-atom/atom";
229
+ import * as Registry from "@effect-atom/atom/Registry";
230
+ import * as Option from "effect/Option";
231
+ import { SpaceState as SpaceState2 } from "@dxos/client/echo";
232
+ import { Annotation as Annotation2, Obj } from "@dxos/echo";
233
+ import { invariant as invariant3 } from "@dxos/invariant";
234
+ var __dxlog_file3 = "/__w/dxos/dxos/packages/sdk/migrations/src/migrations.ts";
187
235
  var Migrations = class {
188
236
  static namespace;
189
237
  static migrations = [];
190
- static _state = live({
238
+ static _registry = Registry.make();
239
+ static _stateAtom = Atom.make({
191
240
  running: []
192
- });
241
+ }).pipe(Atom.keepAlive);
242
+ /**
243
+ * @deprecated Use `MigrationVersionAnnotation` via `Annotation.get/set` on space properties.
244
+ */
193
245
  static get versionProperty() {
194
246
  return this.namespace && `${this.namespace}.version`;
195
247
  }
@@ -197,77 +249,59 @@ var Migrations = class {
197
249
  return this.migrations[this.migrations.length - 1]?.version;
198
250
  }
199
251
  static running(space) {
200
- return this._state.running.includes(space.key.toHex());
252
+ const state = this._registry.get(this._stateAtom);
253
+ return state.running.includes(space.key.toHex());
201
254
  }
202
255
  static define(namespace, migrations) {
203
256
  this.namespace = namespace;
204
257
  this.migrations = migrations;
205
258
  }
206
259
  static async migrate(space, targetVersion) {
207
- invariant2(!this.running(space), "Migration already running", {
208
- F: __dxlog_file2,
209
- L: 44,
210
- S: this,
211
- A: [
212
- "!this.running(space)",
213
- "'Migration already running'"
214
- ]
215
- });
216
- invariant2(this.versionProperty, "Migrations namespace not set", {
217
- F: __dxlog_file2,
218
- L: 45,
219
- S: this,
220
- A: [
221
- "this.versionProperty",
222
- "'Migrations namespace not set'"
223
- ]
224
- });
225
- invariant2(space.state.get() === SpaceState.SPACE_READY, "Space not ready", {
226
- F: __dxlog_file2,
227
- L: 46,
228
- S: this,
229
- A: [
230
- "space.state.get() === SpaceState.SPACE_READY",
231
- "'Space not ready'"
232
- ]
233
- });
234
- const currentVersion = space.properties[this.versionProperty];
260
+ invariant3(!this.running(space), "Migration already running", { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 36, S: this, A: ["!this.running(space)", "'Migration already running'"] });
261
+ invariant3(space.state.get() === SpaceState2.SPACE_READY, "Space not ready", { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 37, S: this, A: ["space.state.get() === SpaceState.SPACE_READY", "'Space not ready'"] });
262
+ const currentVersion = Annotation2.get(space.properties, MigrationVersionAnnotation).pipe(Option.getOrUndefined);
235
263
  const currentIndex = this.migrations.findIndex((m) => m.version === currentVersion) + 1;
236
264
  const i = this.migrations.findIndex((m) => m.version === targetVersion);
237
265
  const targetIndex = i === -1 ? this.migrations.length : i + 1;
238
266
  if (currentIndex === targetIndex) {
239
267
  return false;
240
268
  }
241
- this._state.running.push(space.key.toHex());
242
- if (targetIndex > currentIndex) {
243
- const migrations = this.migrations.slice(currentIndex, targetIndex);
244
- for (const migration of migrations) {
245
- const builder = new MigrationBuilder(space);
246
- await migration.next({
247
- space,
248
- builder
249
- });
250
- builder.changeProperties((propertiesStructure) => {
251
- invariant2(this.versionProperty, "Migrations namespace not set", {
252
- F: __dxlog_file2,
253
- L: 62,
254
- S: this,
255
- A: [
256
- "this.versionProperty",
257
- "'Migrations namespace not set'"
258
- ]
269
+ const spaceKey = space.key.toHex();
270
+ const currentState = this._registry.get(this._stateAtom);
271
+ this._registry.set(this._stateAtom, {
272
+ running: [
273
+ ...currentState.running,
274
+ spaceKey
275
+ ]
276
+ });
277
+ try {
278
+ if (targetIndex > currentIndex) {
279
+ const migrations = this.migrations.slice(currentIndex, targetIndex);
280
+ for (const migration of migrations) {
281
+ const builder = new MigrationBuilder(space);
282
+ await migration.next({
283
+ space,
284
+ builder
285
+ });
286
+ await builder._commit();
287
+ Obj.update(space.properties, (properties) => {
288
+ Annotation2.set(properties, MigrationVersionAnnotation, migration.version);
259
289
  });
260
- propertiesStructure.data[this.versionProperty] = migration.version;
261
- });
262
- await builder._commit();
290
+ }
263
291
  }
292
+ } finally {
293
+ const finalState = this._registry.get(this._stateAtom);
294
+ this._registry.set(this._stateAtom, {
295
+ running: finalState.running.filter((key) => key !== spaceKey)
296
+ });
264
297
  }
265
- this._state.running.splice(this._state.running.indexOf(space.key.toHex()), 1);
266
298
  return true;
267
299
  }
268
300
  };
269
301
  export {
270
302
  MigrationBuilder,
271
- Migrations
303
+ MigrationVersionAnnotation,
304
+ Migrations,
305
+ compactDocumentsEpochMigration
272
306
  };
273
307
  //# sourceMappingURL=index.mjs.map