@milaboratories/pl-middle-layer 1.48.5 → 1.48.7
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/package.json +16 -16
- package/src/mutator/project-v3.test.ts +2 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@milaboratories/pl-middle-layer",
|
|
3
|
-
"version": "1.48.
|
|
3
|
+
"version": "1.48.7",
|
|
4
4
|
"description": "Pl Middle Layer",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
"yaml": "^2.8.0",
|
|
31
31
|
"zod": "~3.23.8",
|
|
32
32
|
"@milaboratories/computable": "2.8.5",
|
|
33
|
-
"@milaboratories/pf-driver": "1.0.
|
|
34
|
-
"@milaboratories/pl-
|
|
35
|
-
"@milaboratories/pl-
|
|
36
|
-
"@milaboratories/pl-drivers": "1.11.
|
|
33
|
+
"@milaboratories/pf-driver": "1.0.59",
|
|
34
|
+
"@milaboratories/pl-client": "2.17.7",
|
|
35
|
+
"@milaboratories/pl-deployments": "2.15.17",
|
|
36
|
+
"@milaboratories/pl-drivers": "1.11.57",
|
|
37
|
+
"@milaboratories/pl-errors": "1.1.69",
|
|
37
38
|
"@milaboratories/pl-http": "1.2.3",
|
|
38
|
-
"@milaboratories/pl-
|
|
39
|
-
"@milaboratories/pl-model-
|
|
40
|
-
"@milaboratories/pl-model-common": "1.25.0",
|
|
41
|
-
"@milaboratories/pl-model-middle-layer": "1.12.4",
|
|
42
|
-
"@milaboratories/pl-tree": "1.8.44",
|
|
39
|
+
"@milaboratories/pl-model-common": "1.25.1",
|
|
40
|
+
"@milaboratories/pl-model-middle-layer": "1.12.6",
|
|
43
41
|
"@milaboratories/resolve-helper": "1.1.2",
|
|
44
|
-
"@platforma-sdk/block-tools": "2.6.59",
|
|
45
42
|
"@milaboratories/ts-helpers": "1.7.2",
|
|
43
|
+
"@milaboratories/pl-model-backend": "1.1.54",
|
|
44
|
+
"@milaboratories/pl-tree": "1.8.45",
|
|
45
|
+
"@platforma-sdk/block-tools": "2.6.61",
|
|
46
46
|
"@platforma-sdk/workflow-tengo": "5.9.0",
|
|
47
|
-
"@platforma-sdk/model": "1.58.
|
|
47
|
+
"@platforma-sdk/model": "1.58.2"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/node": "~24.5.2",
|
|
51
51
|
"@types/semver": "^7.7.0",
|
|
52
|
-
"@vitest/coverage-istanbul": "^4.0.
|
|
52
|
+
"@vitest/coverage-istanbul": "^4.0.18",
|
|
53
53
|
"semver": "^7.7.2",
|
|
54
54
|
"typescript": "~5.6.3",
|
|
55
|
-
"vitest": "^4.0.
|
|
55
|
+
"vitest": "^4.0.18",
|
|
56
|
+
"@milaboratories/build-configs": "1.5.0",
|
|
56
57
|
"@milaboratories/ts-builder": "1.2.11",
|
|
57
|
-
"@milaboratories/ts-configs": "1.2.1"
|
|
58
|
-
"@milaboratories/build-configs": "1.5.0"
|
|
58
|
+
"@milaboratories/ts-configs": "1.2.1"
|
|
59
59
|
},
|
|
60
60
|
"engines": {
|
|
61
61
|
"node": ">=22.19.0"
|
|
@@ -7,6 +7,7 @@ import { blockArgsAuthorKey, projectFieldName } from "../model/project_model";
|
|
|
7
7
|
import { TestBPPreparer } from "../test/block_packs";
|
|
8
8
|
import { createProject, ProjectMutator } from "./project";
|
|
9
9
|
import type { AuthorMarker, BlockPackSpec } from "@milaboratories/pl-model-middle-layer";
|
|
10
|
+
import { createBlockStorage } from "@platforma-sdk/model";
|
|
10
11
|
import path from "node:path";
|
|
11
12
|
|
|
12
13
|
// V3 block specs - using dev-v2 type with local folders
|
|
@@ -391,11 +392,7 @@ test("v3 blocks: migrateBlockPack with storage migration re-derives args and pre
|
|
|
391
392
|
// Overwrite blockStorage with v1-format data (simulating old block version)
|
|
392
393
|
await pl.withWriteTx("DowngradeStorage", async (tx) => {
|
|
393
394
|
const mut = await ProjectMutator.load(new ProjectHelper(quickJs), tx, prj);
|
|
394
|
-
const v1Storage = JSON.stringify({
|
|
395
|
-
__pl_a7f3e2b9__: "v1",
|
|
396
|
-
__dataVersion: "v1",
|
|
397
|
-
__data: { numbers: [3, 1, 5] },
|
|
398
|
-
});
|
|
395
|
+
const v1Storage = JSON.stringify(createBlockStorage({ numbers: [3, 1, 5] }, "v1"));
|
|
399
396
|
mut.setBlockStorageRaw("enter1", v1Storage);
|
|
400
397
|
mut.save();
|
|
401
398
|
await tx.commit();
|