@stacksjs/orm 0.70.355 → 0.70.357

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.
@@ -5,6 +5,11 @@ import { db } from '@stacksjs/database';
5
5
  * The transaction will automatically commit if the callback succeeds,
6
6
  * or rollback if an error is thrown.
7
7
  *
8
+ * Every query that belongs to the transaction must execute through the `tx`
9
+ * callback handle. The model executor is a separate execution surface and is
10
+ * not rebound to this handle, so `User.find()` or an instance relation call
11
+ * inside the callback cannot be assumed to observe uncommitted `tx` writes.
12
+ *
8
13
  * @example
9
14
  * ```ts
10
15
  * await transaction(async (tx) => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.355",
5
+ "version": "0.70.357",
6
6
  "description": "The Stacks ORM integration",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -66,9 +66,9 @@
66
66
  "bun-query-builder": "^0.2.25"
67
67
  },
68
68
  "devDependencies": {
69
- "@stacksjs/config": "0.70.355",
69
+ "@stacksjs/config": "0.70.357",
70
70
  "better-dx": "^0.2.17",
71
- "@stacksjs/query-builder": "0.70.355",
72
- "@stacksjs/types": "0.70.355"
71
+ "@stacksjs/query-builder": "0.70.357",
72
+ "@stacksjs/types": "0.70.357"
73
73
  }
74
74
  }