orez-sync-cf-host 0.12.5 → 0.12.6
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/README.md +11 -10
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -90,12 +90,13 @@ must not run the Vite loader.
|
|
|
90
90
|
|
|
91
91
|
## Wake channel and eviction
|
|
92
92
|
|
|
93
|
-
`createZeroClientTransport()` opens
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
93
|
+
`createZeroClientTransport({ wake: true })` opens
|
|
94
|
+
`GET /<namespace>/wake?clientID=<id>` and keeps a five-minute pull as a safety
|
|
95
|
+
check. Wake is opt-in because the client cannot know whether its host deployed
|
|
96
|
+
the route. When enabled, it carries the auth token Zero already supplied in a
|
|
97
|
+
WebSocket subprotocol. The sync worker converts that credential to the ordinary
|
|
98
|
+
`Authorization` header before calling `authorizeWake`, so the standard setup
|
|
99
|
+
reuses the application's existing authentication:
|
|
99
100
|
|
|
100
101
|
```ts
|
|
101
102
|
authorizeWake: async (request, env) => {
|
|
@@ -161,10 +162,10 @@ authorizeWake(request, env) {
|
|
|
161
162
|
}
|
|
162
163
|
```
|
|
163
164
|
|
|
164
|
-
Treat the URL token as a narrowly scoped capability and avoid logging it.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
convergence.
|
|
165
|
+
Treat the URL token as a narrowly scoped capability and avoid logging it. Enable
|
|
166
|
+
wake only when minting and authorization are deployed together. When an enabled
|
|
167
|
+
channel disconnects, it retries in the background while the safety poll
|
|
168
|
+
continues to provide convergence.
|
|
168
169
|
|
|
169
170
|
`/admin/status` reports a boot ID, hibernation simulation count, connected wake
|
|
170
171
|
sockets, durable database size, engine watermark/floor, and aggregate counters.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orez-sync-cf-host",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.6",
|
|
4
4
|
"description": "Internal orez Cloudflare sync host. Do not import directly: consumers use orez-lite/cloudflare/sync.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"test:large-data": "bun run build:dist && bun large-data-test.mjs"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"orez-sync-executor": "0.12.
|
|
61
|
+
"orez-sync-executor": "0.12.6"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@cloudflare/workers-types": "4.20260617.1",
|