@stratasync/core 0.2.0 → 0.2.1
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/model/base-model.js
CHANGED
|
@@ -2,7 +2,7 @@ import { ModelRegistry } from "../schema/registry.js";
|
|
|
2
2
|
import { captureArchiveState, createArchivePayload, } from "../transaction/archive.js";
|
|
3
3
|
import { CachedPromise } from "./cached-promise.js";
|
|
4
4
|
/**
|
|
5
|
-
* Base model class
|
|
5
|
+
* Base model class.
|
|
6
6
|
*/
|
|
7
7
|
export class Model {
|
|
8
8
|
// ── Tracking infrastructure (must initialize before any decorated field) ──
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModelConstructor, ModelDefinition, ModelMetadata, ModelRegistrySnapshot, PropertyMetadata, SchemaDefinition } from "./types.js";
|
|
2
2
|
/**
|
|
3
|
-
* Runtime registry for model metadata
|
|
3
|
+
* Runtime registry for model metadata for model metadata.
|
|
4
4
|
*
|
|
5
5
|
* Static methods operate on the global decorator-driven registry, populated at
|
|
6
6
|
* import time by @ClientModel/@Property decorators.
|
package/dist/schema/registry.js
CHANGED
|
@@ -2,7 +2,7 @@ import { assignOptionalFields } from "../utils/assign.js";
|
|
|
2
2
|
import { computeSchemaHash } from "./hash.js";
|
|
3
3
|
import { isRegistrySnapshot, schemaToSnapshot, snapshotToSchemaDefinition, } from "./normalize.js";
|
|
4
4
|
/**
|
|
5
|
-
* Runtime registry for model metadata
|
|
5
|
+
* Runtime registry for model metadata for model metadata.
|
|
6
6
|
*
|
|
7
7
|
* Static methods operate on the global decorator-driven registry, populated at
|
|
8
8
|
* import time by @ClientModel/@Property decorators.
|
package/dist/sync/types.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface SyncAction {
|
|
|
29
29
|
clientId?: string;
|
|
30
30
|
/** Timestamp when the change was created */
|
|
31
31
|
createdAt?: Date;
|
|
32
|
-
/** Class name marker (
|
|
32
|
+
/** Class name marker (sync payloads include __class) */
|
|
33
33
|
__class?: "SyncAction";
|
|
34
34
|
}
|
|
35
35
|
/**
|
package/package.json
CHANGED