@milaboratories/milaboratories.ui-examples.model 1.4.4 → 1.4.5

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.
@@ -1,16 +1,16 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.4.4 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.4.5 build /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > ts-builder build --target block-model && block-tools build-model
5
5
 
6
6
  Building block-model project...
7
7
  ↳ rollup -c /configs/rollup.block-model.config.js
8
8
  
9
9
  ./src/index.ts → dist, dist...
10
- created dist, dist in 3.3s
10
+ created dist, dist in 2.7s
11
11
  
12
12
  ./src/index.ts → dist...
13
13
  (!) Circular dependency
14
14
  ../../../../sdk/model/dist/components/PFrameForGraphs.js -> ../../../../sdk/model/dist/pframe_utils/columns.js -> ../../../../sdk/model/dist/components/PFrameForGraphs.js
15
- created dist in 4.3s
15
+ created dist in 3.6s
16
16
  Build completed successfully
@@ -1,5 +1,5 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.4.4 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.4.5 lint /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > eslint .
5
5
 
@@ -1,6 +1,6 @@
1
1
   WARN  Issue while reading "/home/runner/_work/platforma/platforma/.npmrc". Failed to replace env in config: ${NPMJS_TOKEN}
2
2
 
3
- > @milaboratories/milaboratories.ui-examples.model@1.4.4 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
3
+ > @milaboratories/milaboratories.ui-examples.model@1.4.5 type-check /home/runner/_work/platforma/platforma/etc/blocks/ui-examples/model
4
4
  > ts-builder types --target block-model
5
5
 
6
6
  ↳ tsc --noEmit --project ./tsconfig.json --customConditions ,
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @milaboratories/milaboratories.ui-examples.model
2
2
 
3
+ ## 1.4.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [57799dd]
8
+ - @platforma-sdk/model@1.53.2
9
+
3
10
  ## 1.4.4
4
11
 
5
12
  ### Patch Changes
package/dist/bundle.js CHANGED
@@ -72,7 +72,13 @@
72
72
  function normalizeBlockStorage(raw) {
73
73
  if (isBlockStorage(raw)) {
74
74
  const storage = raw;
75
- return { ...storage, __dataVersion: String(storage.__dataVersion) };
75
+ return {
76
+ ...storage,
77
+ // Fix for early released version where __dataVersion was a number
78
+ __dataVersion: typeof storage.__dataVersion === 'number'
79
+ ? DATA_MODEL_DEFAULT_VERSION
80
+ : storage.__dataVersion,
81
+ };
76
82
  }
77
83
  // Legacy format: raw is the state directly
78
84
  return createBlockStorage(raw);
@@ -7523,7 +7529,7 @@
7523
7529
  }
7524
7530
  }
7525
7531
 
7526
- var version = "1.53.1";
7532
+ var version = "1.53.2";
7527
7533
 
7528
7534
  const PlatformaSDKVersion = version;
7529
7535
 
@@ -7789,7 +7795,7 @@
7789
7795
  *
7790
7796
  * Callbacks registered by DataModel.registerCallbacks():
7791
7797
  * - `__pl_data_initial`: () => initial data
7792
- * - `__pl_data_migrate`: (versioned) => DataMigrationResult
7798
+ * - `__pl_data_upgrade`: (versioned) => DataMigrationResult
7793
7799
  * - `__pl_storage_initial`: () => initial BlockStorage as JSON string
7794
7800
  *
7795
7801
  * @module block_storage_vm
@@ -7894,7 +7900,7 @@
7894
7900
  * Runs storage migration using the DataModel's migrate callback.
7895
7901
  * This is the main entry point for the middle layer to trigger migrations.
7896
7902
  *
7897
- * Uses the '__pl_data_migrate' callback registered by DataModel.registerCallbacks() which:
7903
+ * Uses the '__pl_data_upgrade' callback registered by DataModel.registerCallbacks() which:
7898
7904
  * - Handles all migration logic internally
7899
7905
  * - Returns { version, data, warning? } - warning present if reset to initial data
7900
7906
  *
@@ -7919,9 +7925,9 @@
7919
7925
  });
7920
7926
  };
7921
7927
  // Get the migrate callback (registered by DataModel.registerCallbacks())
7922
- const migrateCallback = ctx.callbackRegistry['__pl_data_migrate'];
7928
+ const migrateCallback = ctx.callbackRegistry['__pl_data_upgrade'];
7923
7929
  if (typeof migrateCallback !== 'function') {
7924
- return { error: '__pl_data_migrate callback not found (DataModel not registered)' };
7930
+ return { error: '__pl_data_upgrade callback not found (DataModel not registered)' };
7925
7931
  }
7926
7932
  // Call the migrator's migrate function
7927
7933
  let result;