@tinycld/bootstrap 3.1.0 → 3.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tinycld/bootstrap",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Scaffolder for @tinycld feature packages",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -1,8 +1,8 @@
1
1
  module {{GO_MODULE}}
2
2
 
3
- go 1.26.3
3
+ go 1.27.1
4
4
 
5
5
  require (
6
- github.com/pocketbase/pocketbase v0.37.5
6
+ github.com/pocketbase/pocketbase v0.40.4
7
7
  tinycld.org/core v0.0.0
8
8
  )
@@ -9,6 +9,12 @@ import type { {{PKG_PASCAL}}Schema } from './types'
9
9
  // field-wise, letting a generated `any` absorb any typed override.
10
10
  type MergedSchema = Omit<Schema, keyof {{PKG_PASCAL}}Schema> & {{PKG_PASCAL}}Schema
11
11
 
12
+ // Every collection syncs on demand and subscribes per query (pbtsdb 0.10):
13
+ // only the rows a live query asks for enter the store, and realtime covers
14
+ // exactly those rows. The server emits a delete to a subscription a row
15
+ // leaves, so a filtered view stays correct across updates.
16
+ const onDemand = { syncMode: 'on-demand', realtime: 'query' } as const
17
+
12
18
  // Collections contributed by this package. Core calls this during pbtsdb
13
19
  // bootstrap; the returned object's keys become top-level keys on the app's
14
20
  // MergedSchema (accessible via `useStore('...')`).
@@ -34,6 +40,7 @@ export function registerCollections(
34
40
  // use `collection.fetchRelations('owner')` instead.
35
41
  const {{PKG_SNAKE}}_items = newCollection('{{PKG_SNAKE}}_items', {
36
42
  omitOnInsert: ['created', 'updated'] as const,
43
+ ...onDemand,
37
44
  collectionOptions: indexing,
38
45
  })
39
46
 
@@ -41,7 +41,7 @@ jobs:
41
41
  node-version-file: ws/.node-version
42
42
  - uses: actions/setup-go@v6
43
43
  with:
44
- go-version-file: ws/.go-version
44
+ go-version-file: ws/tinycld/core/server/go.mod
45
45
  # 5. Enable corepack so the pnpm version pinned in the workspace root's
46
46
  # package.json "packageManager" field is used. pnpm discovers members
47
47
  # from pnpm-workspace.yaml; node-linker=hoisted (set there) gives an
@@ -76,7 +76,7 @@ jobs:
76
76
  node-version-file: ws/.node-version
77
77
  - uses: actions/setup-go@v6
78
78
  with:
79
- go-version-file: ws/.go-version
79
+ go-version-file: ws/tinycld/core/server/go.mod
80
80
  - name: Enable corepack (pnpm)
81
81
  run: corepack enable
82
82
  - name: Install (workspace root)
@@ -1 +1 @@
1
- 1.26.3
1
+ 1.27.1