@platforma-sdk/model 1.53.1 → 1.53.3
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/block_migrations.cjs +233 -52
- package/dist/block_migrations.cjs.map +1 -1
- package/dist/block_migrations.d.ts +208 -40
- package/dist/block_migrations.d.ts.map +1 -1
- package/dist/block_migrations.js +234 -54
- package/dist/block_migrations.js.map +1 -1
- package/dist/block_model.cjs +46 -12
- package/dist/block_model.cjs.map +1 -1
- package/dist/block_model.d.ts +9 -2
- package/dist/block_model.d.ts.map +1 -1
- package/dist/block_model.js +46 -12
- package/dist/block_model.js.map +1 -1
- package/dist/block_storage.cjs +7 -1
- package/dist/block_storage.cjs.map +1 -1
- package/dist/block_storage.d.ts.map +1 -1
- package/dist/block_storage.js +7 -1
- package/dist/block_storage.js.map +1 -1
- package/dist/block_storage_vm.cjs +4 -4
- package/dist/block_storage_vm.cjs.map +1 -1
- package/dist/block_storage_vm.d.ts +1 -1
- package/dist/block_storage_vm.js +4 -4
- package/dist/block_storage_vm.js.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/package.json +5 -5
- package/src/block_migrations.test.ts +79 -43
- package/src/block_migrations.ts +306 -94
- package/src/block_model.ts +215 -102
- package/src/block_storage.ts +7 -1
- package/src/block_storage_vm.ts +4 -4
- package/src/index.ts +1 -0
|
@@ -6,9 +6,10 @@ export type DataRecoverFn<T> = (version: DataVersionKey, data: unknown) => T;
|
|
|
6
6
|
/**
|
|
7
7
|
* Helper to define version keys with literal type inference and runtime validation.
|
|
8
8
|
* - Validates that all version values are unique
|
|
9
|
+
* - Validates that no version value is empty
|
|
9
10
|
* - Eliminates need for `as const` assertion
|
|
10
11
|
*
|
|
11
|
-
* @throws Error if duplicate version values are found
|
|
12
|
+
* @throws Error if duplicate or empty version values are found
|
|
12
13
|
*
|
|
13
14
|
* @example
|
|
14
15
|
* const Version = defineDataVersions({
|
|
@@ -44,37 +45,194 @@ type MigrationStep = {
|
|
|
44
45
|
toVersion: DataVersionKey;
|
|
45
46
|
migrate: (data: unknown) => unknown;
|
|
46
47
|
};
|
|
47
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Default recover function for unknown versions.
|
|
50
|
+
* Use as fallback at the end of custom recover functions.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* .recover((version, data) => {
|
|
54
|
+
* if (version === 'legacy') {
|
|
55
|
+
* return transformLegacyData(data);
|
|
56
|
+
* }
|
|
57
|
+
* return defaultRecover(version, data);
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
48
60
|
export declare const defaultRecover: DataRecoverFn<never>;
|
|
49
|
-
/**
|
|
50
|
-
declare
|
|
61
|
+
/** Symbol for internal builder creation method */
|
|
62
|
+
declare const FROM_BUILDER: unique symbol;
|
|
63
|
+
/** Internal state passed from builder to DataModel */
|
|
64
|
+
type BuilderState<S> = {
|
|
65
|
+
versionChain: DataVersionKey[];
|
|
66
|
+
steps: MigrationStep[];
|
|
67
|
+
initialDataFn: () => S;
|
|
68
|
+
recoverFn?: DataRecoverFn<S>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Final builder state after recover() is called.
|
|
72
|
+
* Only allows calling create() to finalize the DataModel.
|
|
73
|
+
*
|
|
74
|
+
* @typeParam VersionedData - Map of version keys to their data types
|
|
75
|
+
* @typeParam CurrentVersion - The current (final) version in the chain
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
declare class DataModelBuilderWithRecover<VersionedData extends DataVersionMap, CurrentVersion extends keyof VersionedData & string> {
|
|
51
79
|
private readonly versionChain;
|
|
52
80
|
private readonly migrationSteps;
|
|
53
|
-
private readonly recoverFn
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
81
|
+
private readonly recoverFn;
|
|
82
|
+
/** @internal */
|
|
83
|
+
constructor({ versionChain, steps, recoverFn, }: {
|
|
84
|
+
versionChain: DataVersionKey[];
|
|
85
|
+
steps: MigrationStep[];
|
|
86
|
+
recoverFn: DataRecoverFn<VersionedData[CurrentVersion]>;
|
|
87
|
+
});
|
|
88
|
+
/**
|
|
89
|
+
* Finalize the DataModel with initial data factory.
|
|
90
|
+
*
|
|
91
|
+
* The initial data factory is called when creating new blocks or when
|
|
92
|
+
* migration/recovery fails and data must be reset.
|
|
93
|
+
*
|
|
94
|
+
* @param initialData - Factory function returning initial state (must exactly match CurrentVersion's data type)
|
|
95
|
+
* @returns Finalized DataModel instance
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* .init(() => ({ numbers: [], labels: [], description: '' }))
|
|
99
|
+
*/
|
|
100
|
+
init<S extends VersionedData[CurrentVersion]>(initialData: DataCreateFn<S>, ..._noExtraKeys: Exclude<keyof S, keyof VersionedData[CurrentVersion]> extends never ? [] : [never]): DataModel<VersionedData[CurrentVersion]>;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Internal builder for constructing DataModel with type-safe migration chains.
|
|
104
|
+
*
|
|
105
|
+
* Tracks the current version through the generic type system, ensuring:
|
|
106
|
+
* - Migration functions receive correctly typed input
|
|
107
|
+
* - Migration functions must return the correct output type
|
|
108
|
+
* - Version keys must exist in the VersionedData map
|
|
109
|
+
* - All versions must be covered before calling init()
|
|
110
|
+
*
|
|
111
|
+
* @typeParam VersionedData - Map of version keys to their data types
|
|
112
|
+
* @typeParam CurrentVersion - The current version in the migration chain
|
|
113
|
+
* @typeParam RemainingVersions - Versions not yet covered by migrations
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
declare class DataModelMigrationChain<VersionedData extends DataVersionMap, CurrentVersion extends keyof VersionedData & string, RemainingVersions extends keyof VersionedData & string = Exclude<keyof VersionedData & string, CurrentVersion>> {
|
|
117
|
+
private readonly versionChain;
|
|
118
|
+
private readonly migrationSteps;
|
|
119
|
+
/** @internal */
|
|
120
|
+
constructor({ versionChain, steps, }: {
|
|
121
|
+
versionChain: DataVersionKey[];
|
|
122
|
+
steps?: MigrationStep[];
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* Add a migration step to transform data from current version to next version.
|
|
126
|
+
*
|
|
127
|
+
* Migration functions:
|
|
128
|
+
* - Receive data typed as the current version's data type (readonly)
|
|
129
|
+
* - Must return data matching the target version's data type
|
|
130
|
+
* - Should be pure functions (no side effects)
|
|
131
|
+
* - May throw errors (will result in data reset with warning)
|
|
132
|
+
*
|
|
133
|
+
* @typeParam NextVersion - The target version key (must be in RemainingVersions)
|
|
134
|
+
* @param nextVersion - The version key to migrate to
|
|
135
|
+
* @param fn - Migration function transforming current data to next version
|
|
136
|
+
* @returns Builder with updated current version
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* .migrate(Version.V2, (data) => ({ ...data, labels: [] }))
|
|
140
|
+
*/
|
|
141
|
+
migrate<NextVersion extends RemainingVersions>(nextVersion: NextVersion, fn: DataMigrateFn<VersionedData[CurrentVersion], VersionedData[NextVersion]>): DataModelMigrationChain<VersionedData, NextVersion, Exclude<RemainingVersions, NextVersion>>;
|
|
142
|
+
/**
|
|
143
|
+
* Set a recovery handler for unknown or legacy versions.
|
|
144
|
+
*
|
|
145
|
+
* The recover function is called when data has a version not in the migration chain.
|
|
146
|
+
* It should either:
|
|
147
|
+
* - Transform the data to the current version's format and return it
|
|
148
|
+
* - Call `defaultRecover(version, data)` to signal unrecoverable data
|
|
149
|
+
*
|
|
150
|
+
* Can only be called once. After calling, only `init()` is available.
|
|
151
|
+
*
|
|
152
|
+
* @param fn - Recovery function that transforms unknown data or throws
|
|
153
|
+
* @returns Builder with only init() method available
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* .recover((version, data) => {
|
|
157
|
+
* if (version === 'legacy' && isLegacyFormat(data)) {
|
|
158
|
+
* return transformLegacy(data);
|
|
159
|
+
* }
|
|
160
|
+
* return defaultRecover(version, data);
|
|
161
|
+
* })
|
|
162
|
+
*/
|
|
163
|
+
recover(fn: DataRecoverFn<VersionedData[CurrentVersion]>): DataModelBuilderWithRecover<VersionedData, CurrentVersion>;
|
|
164
|
+
/**
|
|
165
|
+
* Finalize the DataModel with initial data factory.
|
|
166
|
+
*
|
|
167
|
+
* Can only be called when all versions in VersionedData have been covered
|
|
168
|
+
* by the migration chain (RemainingVersions is empty).
|
|
169
|
+
*
|
|
170
|
+
* The initial data factory is called when creating new blocks or when
|
|
171
|
+
* migration/recovery fails and data must be reset.
|
|
172
|
+
*
|
|
173
|
+
* @param initialData - Factory function returning initial state (must exactly match CurrentVersion's data type)
|
|
174
|
+
* @returns Finalized DataModel instance
|
|
175
|
+
*
|
|
176
|
+
* @example
|
|
177
|
+
* .init(() => ({ numbers: [], labels: [], description: '' }))
|
|
178
|
+
*/
|
|
179
|
+
init<S extends VersionedData[CurrentVersion]>(this: DataModelMigrationChain<VersionedData, CurrentVersion, never>, initialData: DataCreateFn<S>, ..._noExtraKeys: Exclude<keyof S, keyof VersionedData[CurrentVersion]> extends never ? [] : [never]): DataModel<VersionedData[CurrentVersion]>;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Builder entry point for creating DataModel with type-safe migrations.
|
|
183
|
+
*
|
|
184
|
+
* @typeParam VersionedData - Map of version keys to their data types
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* const Version = defineDataVersions({
|
|
188
|
+
* V1: 'v1',
|
|
189
|
+
* V2: 'v2',
|
|
190
|
+
* });
|
|
191
|
+
*
|
|
192
|
+
* type VersionedData = {
|
|
193
|
+
* [Version.V1]: { count: number };
|
|
194
|
+
* [Version.V2]: { count: number; label: string };
|
|
195
|
+
* };
|
|
196
|
+
*
|
|
197
|
+
* const dataModel = new DataModelBuilder<VersionedData>()
|
|
198
|
+
* .from(Version.V1)
|
|
199
|
+
* .migrate(Version.V2, (data) => ({ ...data, label: '' }))
|
|
200
|
+
* .init(() => ({ count: 0, label: '' }));
|
|
201
|
+
*/
|
|
202
|
+
export declare class DataModelBuilder<VersionedData extends DataVersionMap> {
|
|
203
|
+
/**
|
|
204
|
+
* Start a migration chain from an initial version.
|
|
205
|
+
*
|
|
206
|
+
* @typeParam InitialVersion - The starting version key (inferred from argument)
|
|
207
|
+
* @param initialVersion - The version key to start from
|
|
208
|
+
* @returns Migration chain builder for adding migrations
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* new DataModelBuilder<VersionedData>()
|
|
212
|
+
* .from(Version.V1)
|
|
213
|
+
* .migrate(Version.V2, (data) => ({ ...data, newField: '' }))
|
|
214
|
+
*/
|
|
215
|
+
from<InitialVersion extends keyof VersionedData & string>(initialVersion: InitialVersion): DataModelMigrationChain<VersionedData, InitialVersion, Exclude<keyof VersionedData & string, InitialVersion>>;
|
|
63
216
|
}
|
|
64
217
|
/**
|
|
65
218
|
* DataModel defines the block's data structure, initial values, and migrations.
|
|
66
219
|
* Used by BlockModelV3 to manage data state.
|
|
67
220
|
*
|
|
221
|
+
* Use `new DataModelBuilder<VersionedData>()` to create a DataModel:
|
|
222
|
+
*
|
|
223
|
+
* **Simple (no migrations):**
|
|
68
224
|
* @example
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
225
|
+
* const Version = defineDataVersions({ V1: DATA_MODEL_DEFAULT_VERSION });
|
|
226
|
+
* type VersionedData = { [Version.V1]: BlockData };
|
|
227
|
+
*
|
|
228
|
+
* const dataModel = new DataModelBuilder<VersionedData>()
|
|
229
|
+
* .from(Version.V1)
|
|
230
|
+
* .init(() => ({ numbers: [], labels: [] }));
|
|
74
231
|
*
|
|
75
|
-
*
|
|
232
|
+
* **With migrations:**
|
|
233
|
+
* @example
|
|
76
234
|
* const Version = defineDataVersions({
|
|
77
|
-
* V1:
|
|
235
|
+
* V1: DATA_MODEL_DEFAULT_VERSION,
|
|
78
236
|
* V2: 'v2',
|
|
79
237
|
* V3: 'v3',
|
|
80
238
|
* });
|
|
@@ -85,8 +243,8 @@ declare class DataModelBuilder<VersionedData extends DataVersionMap, CurrentVers
|
|
|
85
243
|
* [Version.V3]: { numbers: number[]; labels: string[]; description: string };
|
|
86
244
|
* };
|
|
87
245
|
*
|
|
88
|
-
* const dataModel =
|
|
89
|
-
* .from
|
|
246
|
+
* const dataModel = new DataModelBuilder<VersionedData>()
|
|
247
|
+
* .from(Version.V1)
|
|
90
248
|
* .migrate(Version.V2, (data) => ({ ...data, labels: [] }))
|
|
91
249
|
* .migrate(Version.V3, (data) => ({ ...data, description: '' }))
|
|
92
250
|
* .recover((version, data) => {
|
|
@@ -95,7 +253,7 @@ declare class DataModelBuilder<VersionedData extends DataVersionMap, CurrentVers
|
|
|
95
253
|
* }
|
|
96
254
|
* return defaultRecover(version, data);
|
|
97
255
|
* })
|
|
98
|
-
* .
|
|
256
|
+
* .init(() => ({ numbers: [], labels: [], description: '' }));
|
|
99
257
|
*/
|
|
100
258
|
export declare class DataModel<State> {
|
|
101
259
|
private readonly versionChain;
|
|
@@ -103,37 +261,47 @@ export declare class DataModel<State> {
|
|
|
103
261
|
private readonly initialDataFn;
|
|
104
262
|
private readonly recoverFn;
|
|
105
263
|
private constructor();
|
|
106
|
-
/** Start a migration chain from an initial type */
|
|
107
|
-
static from<VersionedData extends DataVersionMap, InitialVersion extends keyof VersionedData & string = keyof VersionedData & string>(initialVersion: InitialVersion): DataModelBuilder<VersionedData, InitialVersion>;
|
|
108
|
-
/** Create a data model with just initial data (no migrations) */
|
|
109
|
-
static create<S>(initialData: () => S, version?: DataVersionKey): DataModel<S>;
|
|
110
|
-
/** Create from builder (internal use) */
|
|
111
|
-
static _fromBuilder<S>(versionChain: DataVersionKey[], steps: MigrationStep[], initialData: () => S, recover?: DataRecoverFn<S>): DataModel<S>;
|
|
112
264
|
/**
|
|
113
|
-
*
|
|
265
|
+
* Internal method for creating DataModel from builder.
|
|
266
|
+
* Uses Symbol key to prevent external access.
|
|
267
|
+
* @internal
|
|
268
|
+
*/
|
|
269
|
+
static [FROM_BUILDER]<S>(state: BuilderState<S>): DataModel<S>;
|
|
270
|
+
/**
|
|
271
|
+
* The latest (current) version key in the migration chain.
|
|
114
272
|
*/
|
|
115
273
|
get version(): DataVersionKey;
|
|
116
|
-
/**
|
|
274
|
+
/**
|
|
275
|
+
* Number of migration steps defined.
|
|
276
|
+
*/
|
|
117
277
|
get migrationCount(): number;
|
|
118
|
-
/**
|
|
278
|
+
/**
|
|
279
|
+
* Get a fresh copy of the initial data.
|
|
280
|
+
*/
|
|
119
281
|
initialData(): State;
|
|
120
|
-
/**
|
|
282
|
+
/**
|
|
283
|
+
* Get initial data wrapped with current version.
|
|
284
|
+
* Used when creating new blocks or resetting to defaults.
|
|
285
|
+
*/
|
|
121
286
|
getDefaultData(): DataVersioned<State>;
|
|
122
287
|
private recoverFrom;
|
|
123
288
|
/**
|
|
124
289
|
* Migrate versioned data from any version to the latest.
|
|
125
|
-
*
|
|
126
|
-
* If
|
|
290
|
+
*
|
|
291
|
+
* - If data is already at latest version, returns as-is
|
|
292
|
+
* - If version is in chain, applies needed migrations
|
|
293
|
+
* - If version is unknown, calls recover function
|
|
294
|
+
* - If migration/recovery fails, returns default data with warning
|
|
295
|
+
*
|
|
296
|
+
* @param versioned - Data with version tag
|
|
297
|
+
* @returns Migration result with data at latest version
|
|
127
298
|
*/
|
|
128
299
|
migrate(versioned: DataVersioned<unknown>): DataMigrationResult<State>;
|
|
129
300
|
/**
|
|
130
301
|
* Register callbacks for use in the VM.
|
|
131
302
|
* Called by BlockModelV3.create() to set up internal callbacks.
|
|
132
303
|
*
|
|
133
|
-
*
|
|
134
|
-
* - `__pl_data_initial`: returns initial data for new blocks
|
|
135
|
-
* - `__pl_data_migrate`: migrates versioned data from any version to latest
|
|
136
|
-
* - `__pl_storage_initial`: returns initial BlockStorage as JSON string
|
|
304
|
+
* @internal
|
|
137
305
|
*/
|
|
138
306
|
registerCallbacks(): void;
|
|
139
307
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_migrations.d.ts","sourceRoot":"","sources":["../src/block_migrations.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AACnE,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AACtC,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,KAAK,CAAC,CAAC;AAE7E
|
|
1
|
+
{"version":3,"file":"block_migrations.d.ts","sourceRoot":"","sources":["../src/block_migrations.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC;AACpC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACrD,MAAM,MAAM,aAAa,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;AACnE,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;AACtC,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,KAAK,CAAC,CAAC;AAE7E;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAA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