@lobb-js/lobb-ext-storage 0.15.0 → 0.15.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.
@@ -1,5 +1,4 @@
1
- import type { Migrations } from "@lobb-js/core";
2
- import { Lobb } from "@lobb-js/core";
1
+ import type { Lobb, Migrations } from "@lobb-js/core";
3
2
 
4
3
  /**
5
4
  * Backfill `parent_id` for any row in storage_fs that still has it null.
@@ -53,15 +52,8 @@ export async function backfillStorageFsParentId(lobb: Lobb): Promise<void> {
53
52
  }
54
53
  }
55
54
 
56
- export const migrations: Migrations = {
57
- // The storage_fs schema gained `parent_id` (FK storage_fs.id). It is now
58
- // the source of truth for the hierarchy; `path` is a derived cache. For
59
- // existing rows, walk the old path strings and stamp each row's parent_id
60
- // with the directory that already represents its parent path. Rows whose
61
- // path is "/" stay at parent_id = null (root entries).
62
- "backfill_storage_fs_parent_id": {
63
- up: async () => {
64
- await backfillStorageFsParentId(Lobb.instance);
65
- },
66
- },
67
- };
55
+ // No built-in migrations for the storage extension. The `parent_id` column
56
+ // is set on every new write by the service; existing rows from environments
57
+ // that predate parent_id can be reconciled by calling
58
+ // `backfillStorageFsParentId` from a host-app migration when needed.
59
+ export const migrations: Migrations = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobb-js/lobb-ext-storage",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -32,14 +32,14 @@
32
32
  "package": "svelte-package --input extensions/storage/studio"
33
33
  },
34
34
  "dependencies": {
35
- "@lobb-js/core": "^0.38.1",
35
+ "@lobb-js/core": "^0.40.0",
36
36
  "browser-fs-access": "^0.35.0",
37
37
  "hono": "^4.7.0",
38
38
  "openapi-types": "^12.1.3",
39
39
  "path-browserify": "^1.0.1"
40
40
  },
41
41
  "devDependencies": {
42
- "@lobb-js/studio": "^0.44.1",
42
+ "@lobb-js/studio": "^0.46.0",
43
43
  "@lucide/svelte": "^0.563.1",
44
44
  "@sveltejs/adapter-node": "^5.5.4",
45
45
  "@sveltejs/kit": "^2.60.1",