@lunora/server 1.0.0-alpha.175 → 1.0.0-alpha.176

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/dist/types.d.mts CHANGED
@@ -2643,9 +2643,10 @@ interface MutationCtx {
2643
2643
  * Compose a submutation in-process, reusing this mutation's `db` writer.
2644
2644
  * Executes the referenced mutation's handler directly — no fresh DO RPC —
2645
2645
  * so its writes apply through the same shard invocation as the enclosing
2646
- * mutation. Note: writes are not wrapped in a SQL transaction, so a partial
2647
- * failure does not roll back earlier writes (the same as a top-level
2648
- * mutation). Mirrors Convex's `ctx.runMutation`.
2646
+ * mutation. The submutation joins the enclosing mutation's transaction
2647
+ * (SQLite in a Durable Object has no savepoints, so it rides the open span):
2648
+ * its writes commit or roll back together with the caller's, and a throw that
2649
+ * escapes the outer handler rolls back both. Mirrors Convex's `ctx.runMutation`.
2649
2650
  */
2650
2651
  readonly runMutation: RunMutation;
2651
2652
  /**
package/dist/types.d.ts CHANGED
@@ -2643,9 +2643,10 @@ interface MutationCtx {
2643
2643
  * Compose a submutation in-process, reusing this mutation's `db` writer.
2644
2644
  * Executes the referenced mutation's handler directly — no fresh DO RPC —
2645
2645
  * so its writes apply through the same shard invocation as the enclosing
2646
- * mutation. Note: writes are not wrapped in a SQL transaction, so a partial
2647
- * failure does not roll back earlier writes (the same as a top-level
2648
- * mutation). Mirrors Convex's `ctx.runMutation`.
2646
+ * mutation. The submutation joins the enclosing mutation's transaction
2647
+ * (SQLite in a Durable Object has no savepoints, so it rides the open span):
2648
+ * its writes commit or roll back together with the caller's, and a throw that
2649
+ * escapes the outer handler rolls back both. Mirrors Convex's `ctx.runMutation`.
2649
2650
  */
2650
2651
  readonly runMutation: RunMutation;
2651
2652
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/server",
3
- "version": "1.0.0-alpha.175",
3
+ "version": "1.0.0-alpha.176",
4
4
  "description": "Server primitives for Lunora: defineSchema, defineTable, query, mutation, and action",
5
5
  "keywords": [
6
6
  "backend",