@avocadostudio-ai/site-sdk 0.3.1 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +9 -4
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -602,10 +602,15 @@ that guesses writes a URL where a reference belongs.
602
602
 
603
603
  If you did not embed your own source snapshot in block props, `onPublish`'s
604
604
  third argument carries `context.published` — the pages as your adapter last
605
- reported them. It is the copy taken at bootstrap, not a fresh read, so it is
606
- absent after a restart that reloaded the draft from storage. Treat `undefined`
607
- as "no baseline available", never as "the site was empty": publishing every
608
- field on that assumption is the overwrite all of this exists to prevent.
605
+ reported them. It is the copy taken at bootstrap, not a fresh read, and it
606
+ survives a restart that reloads the draft from storage: the orchestrator
607
+ re-reads it on the next request, which is sound because nothing was published in
608
+ between, so the CMS still holds exactly the content the lost copy was a copy of.
609
+
610
+ It can still be `undefined` — the adapter read can fail, and baselines are
611
+ evicted once enough sessions accumulate. Treat that as "no baseline available",
612
+ never as "the site was empty": publishing every field on that assumption is the
613
+ overwrite all of this exists to prevent.
609
614
 
610
615
  ## Registering your own block schemas
611
616
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avocadostudio-ai/site-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -107,16 +107,16 @@
107
107
  ],
108
108
  "dependencies": {
109
109
  "zod": "^4.3.6",
110
- "@avocadostudio-ai/blocks": "^0.3.1",
111
- "@avocadostudio-ai/preview-adapter": "^0.3.1",
112
- "@avocadostudio-ai/shared": "^0.3.1"
110
+ "@avocadostudio-ai/blocks": "^0.3.2",
111
+ "@avocadostudio-ai/preview-adapter": "^0.3.2",
112
+ "@avocadostudio-ai/shared": "^0.3.2"
113
113
  },
114
114
  "peerDependencies": {
115
115
  "next": ">=15.0.0",
116
116
  "react": ">=19.0.0",
117
117
  "react-dom": ">=19.0.0",
118
118
  "better-sqlite3": ">=12.0.0",
119
- "@avocadostudio-ai/orchestrator-core": "^0.3.1"
119
+ "@avocadostudio-ai/orchestrator-core": "^0.3.2"
120
120
  },
121
121
  "peerDependenciesMeta": {
122
122
  "@avocadostudio-ai/orchestrator-core": {