orez-sync-cf-host 0.12.5 → 0.12.7

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 +11 -10
  2. 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 `GET /<namespace>/wake?clientID=<id>` by
94
- default and keeps a five-minute pull as a safety check. It carries the auth token
95
- Zero already supplied in a WebSocket subprotocol. The sync worker converts that
96
- credential to the ordinary `Authorization` header before calling
97
- `authorizeWake`, so the standard setup reuses the application's existing
98
- authentication:
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. If
165
- minting or wake authorization is unavailable, the wake channel retries in the
166
- background while HTTP pulls and the safety poll continue to provide
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.5",
3
+ "version": "0.12.7",
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.5"
61
+ "orez-sync-executor": "0.12.7"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@cloudflare/workers-types": "4.20260617.1",