orez 0.16.0 → 0.16.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.
Files changed (2) hide show
  1. package/README.md +26 -0
  2. package/package.json +4 -5
package/README.md CHANGED
@@ -51,6 +51,32 @@ Lite Sync owns namespace routing, schema readiness and coalescing, change-feed
51
51
  projection, write budgets, and optional streaming backups. Applications add
52
52
  only product routes, telemetry, cron work, and namespace inventory.
53
53
 
54
+ Applications whose JavaScript mutation executor uses the application SQL
55
+ client can move the whole push into the owning Durable Object with the
56
+ `applicationPush` option. A custom route calls `executeApplicationPush` once;
57
+ inside the callback, `applicationSql()` is a local client for that object, while
58
+ an explicitly selected different namespace still uses ordinary Durable Object
59
+ RPC:
60
+
61
+ ```ts
62
+ const orez = createOrezDataWorker({
63
+ name: 'example',
64
+ schema: orezAppSchema,
65
+ applicationPush: ({ input, applicationSql }) => executePush(input, applicationSql()),
66
+ routes: async ({ request, executeApplicationPush }) => {
67
+ const match = new URL(request.url).pathname.match(
68
+ /^\/(proj-[A-Za-z0-9_-]+)\/api\/push$/
69
+ )
70
+ return match ? executeApplicationPush(await readPush(request), match[1]) : null
71
+ },
72
+ })
73
+ ```
74
+
75
+ The callback does not change transaction or response semantics and adds no
76
+ Orez-owned SQLite rows. It removes the begin/query/exec/commit RPCs inside the
77
+ push; application code is still responsible for keeping mutation transactions
78
+ free of network and other long-running work.
79
+
54
80
  Node-side migration, bundling, Wrangler configuration, pruning, and readiness
55
81
  helpers live at `orez-lite/cloudflare/build`.
56
82
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orez",
3
- "version": "0.16.0",
3
+ "version": "0.16.1",
4
4
  "description": "PGlite-powered zero-sync development backend. No Docker required.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -75,7 +75,6 @@
75
75
  "test:chat": "bun scripts/test-chat-integration.ts",
76
76
  "test:chat:smoke": "bun scripts/test-chat-integration.ts --smoke",
77
77
  "release": "bun scripts/release.ts",
78
- "release:native:prepare": "bun scripts/set-sync-native-version.ts",
79
78
  "release:native:bootstrap": "bun scripts/bootstrap-sync-native-packages.ts",
80
79
  "perf:load": "bun run perf/load/harness.ts",
81
80
  "perf:memory": "bun run perf/memory/profile.ts",
@@ -92,7 +91,7 @@
92
91
  "dependencies": {
93
92
  "@electric-sql/pglite": "0.4.1",
94
93
  "@electric-sql/pglite-tools": "^0.3.1",
95
- "bedrock-sqlite": "0.16.0",
94
+ "bedrock-sqlite": "0.16.1",
96
95
  "citty": "^0.2.0",
97
96
  "pg-gateway": "0.3.0-beta.4",
98
97
  "pgsql-parser": "^17.9.11",
@@ -119,8 +118,8 @@
119
118
  "embedded-postgres": "17.10.0-beta.17",
120
119
  "oxfmt": "latest",
121
120
  "oxlint": "latest",
122
- "orez-lite": "0.16.0",
123
- "orez-sync-executor": "0.16.0",
121
+ "orez-lite": "0.16.1",
122
+ "orez-sync-executor": "0.16.1",
124
123
  "pg": "8.22.0",
125
124
  "typescript": "^5.7.0",
126
125
  "vitest": "^3.0.0",