@voidbase-cloud/voidbase 0.2.1 → 0.2.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  Entries after 0.1.0 are compiled by release-please from the Conventional Commits merged since the previous release
4
4
  (docs/releasing.md); 0.1.0 was written by hand.
5
5
 
6
+ ## [0.2.2](https://github.com/voidbase-cloud/voidbase/compare/v0.2.1...v0.2.2) (2026-09-06)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **migrations:** later pb_migrations see collections created earlier in the same run ([35b0e94](https://github.com/voidbase-cloud/voidbase/commit/35b0e9499c0862de5c5c76d1696c2104cc205b32))
12
+
13
+
14
+ ### Documentation
15
+
16
+ * **surface:** template marketplace in the control plane ([48b09ae](https://github.com/voidbase-cloud/voidbase/commit/48b09ae5d74b760fcdb64c3315b4df7d61e5ab81))
17
+
6
18
  ## [0.2.1](https://github.com/voidbase-cloud/voidbase/compare/v0.2.0...v0.2.1) (2026-09-06)
7
19
 
8
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidbase-cloud/voidbase",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "PocketBase-compatible backend on Cloudflare Workers (D1, R2, Queues, Durable Objects) via Void, or a single Bun process",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,6 +50,8 @@ async function runPending(db: D1Database, globals: Record<string, unknown>): Pro
50
50
  throw err;
51
51
  }
52
52
  invalidateCollections();
53
+ // the next migration must see what this one created (PocketBase reloads its collections cache the same way)
54
+ const store = hookStore.getStore(); if (store) { const fresh = await loadCollections(db); store.collections.clear(); for (const [k, v] of fresh) store.collections.set(k, v); }
53
55
  await stmt(db, "INSERT OR IGNORE INTO `_pbMigrations` (file, applied) VALUES (?, ?)", [m.name, Date.now()]).run();
54
56
  done.push(m.name);
55
57
  }