foldkit-sync 0.5.3 → 0.5.4

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -171,7 +171,7 @@ const TodoSync = Sync.forApplication(App).make({
171
171
  // This slice of Model is replicated.
172
172
  // The writable Projection lets Sync install checkpoints/reconciled state back
173
173
  // into the application Model without owning a second copy of the schema.
174
- shared: Projection.pick(App.fields.todos),
174
+ shared: Projection.pick(App.model.todos),
175
175
 
176
176
  // Only these existing Messages become durable operations.
177
177
  durable: MessageSet.make(App, [
@@ -625,7 +625,7 @@ fragments and compose them into one document:
625
625
  const AppSync = Sync.forApplication(App)
626
626
 
627
627
  const Todos = AppSync.fragment({
628
- shared: Projection.pick(App.fields.todos),
628
+ shared: Projection.pick(App.model.todos),
629
629
  durable: MessageSet.make(App, [
630
630
  Message.CreatedTodo,
631
631
  Message.RenamedTodo,
@@ -633,7 +633,7 @@ const Todos = AppSync.fragment({
633
633
  })
634
634
 
635
635
  const Members = AppSync.fragment({
636
- shared: Projection.pick(App.fields.members),
636
+ shared: Projection.pick(App.model.members),
637
637
  durable: MessageSet.make(App, [Message.Invited]),
638
638
  })
639
639
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foldkit-sync",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "A local-first replica of a shared Foldkit projection: offline outbox, optimistic updates, and reconciliation.",
5
5
  "keywords": [
6
6
  "foldkit",
@@ -38,7 +38,7 @@
38
38
  "LICENSE"
39
39
  ],
40
40
  "dependencies": {
41
- "foldkit-surface": "0.4.0"
41
+ "foldkit-surface": "0.4.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "effect": "^4.0.0-rc.112",
@@ -50,7 +50,7 @@
50
50
  "jsdom": "26.1.0",
51
51
  "tsdown": "^0.23.0",
52
52
  "typescript": "5.9.3",
53
- "foldkit-agent": "0.3.2"
53
+ "foldkit-agent": "0.3.3"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "tsdown",