@milaboratories/milaboratories.monetization-test.model 1.0.51 → 1.0.53

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.monetization-test.model@1.0.51 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.53 build /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/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.4s
10
+ created dist, dist in 3.1s
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.5s
15
+ created dist in 3.4s
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.monetization-test.model@1.0.51 lint /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.53 lint /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/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.monetization-test.model@1.0.51 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/model
3
+ > @milaboratories/milaboratories.monetization-test.model@1.0.53 type-check /home/runner/_work/platforma/platforma/etc/blocks/monetization-test/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,19 @@
1
1
  # @milaboratories/milaboratories.monetization-test.model
2
2
 
3
+ ## 1.0.53
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [f459e5a]
8
+ - @platforma-sdk/model@1.53.3
9
+
10
+ ## 1.0.52
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [57799dd]
15
+ - @platforma-sdk/model@1.53.2
16
+
3
17
  ## 1.0.51
4
18
 
5
19
  ### 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);
@@ -7506,7 +7512,7 @@
7506
7512
  }
7507
7513
  }
7508
7514
 
7509
- var version = "1.53.1";
7515
+ var version = "1.53.3";
7510
7516
 
7511
7517
  const PlatformaSDKVersion = version;
7512
7518
 
@@ -7772,7 +7778,7 @@
7772
7778
  *
7773
7779
  * Callbacks registered by DataModel.registerCallbacks():
7774
7780
  * - `__pl_data_initial`: () => initial data
7775
- * - `__pl_data_migrate`: (versioned) => DataMigrationResult
7781
+ * - `__pl_data_upgrade`: (versioned) => DataMigrationResult
7776
7782
  * - `__pl_storage_initial`: () => initial BlockStorage as JSON string
7777
7783
  *
7778
7784
  * @module block_storage_vm
@@ -7877,7 +7883,7 @@
7877
7883
  * Runs storage migration using the DataModel's migrate callback.
7878
7884
  * This is the main entry point for the middle layer to trigger migrations.
7879
7885
  *
7880
- * Uses the '__pl_data_migrate' callback registered by DataModel.registerCallbacks() which:
7886
+ * Uses the '__pl_data_upgrade' callback registered by DataModel.registerCallbacks() which:
7881
7887
  * - Handles all migration logic internally
7882
7888
  * - Returns { version, data, warning? } - warning present if reset to initial data
7883
7889
  *
@@ -7902,9 +7908,9 @@
7902
7908
  });
7903
7909
  };
7904
7910
  // Get the migrate callback (registered by DataModel.registerCallbacks())
7905
- const migrateCallback = ctx.callbackRegistry['__pl_data_migrate'];
7911
+ const migrateCallback = ctx.callbackRegistry['__pl_data_upgrade'];
7906
7912
  if (typeof migrateCallback !== 'function') {
7907
- return { error: '__pl_data_migrate callback not found (DataModel not registered)' };
7913
+ return { error: '__pl_data_upgrade callback not found (DataModel not registered)' };
7908
7914
  }
7909
7915
  // Call the migrator's migrate function
7910
7916
  let result;