@stacksjs/orm 0.75.612 → 0.75.613

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,10 +5,11 @@ import { db } from '@stacksjs/database/runtime';
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.
8
+ * A model call made from the callback is part of the transaction, however
9
+ * many `await`s later it runs: `User.update()` rolls back with it, and the
10
+ * model and `tx` each see what the other has written but not yet committed
11
+ * (stacksjs/stacks#3269). Work the callback starts and does not wait for, if
12
+ * it runs after the callback has returned, is an ordinary write.
12
13
  *
13
14
  * It is done when it returns: BEGIN, the callback and COMMIT have happened by
14
15
  * the next line, and what the callback returned is the result. A callback that
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.612",
5
+ "version": "0.75.613",
6
6
  "description": "The Stacks ORM integration",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -63,32 +63,32 @@
63
63
  "prepublishOnly": "bun run build"
64
64
  },
65
65
  "dependencies": {
66
- "@stacksjs/cache": "0.75.612",
67
- "@stacksjs/cli": "0.75.612",
68
- "@stacksjs/config": "0.75.612",
69
- "@stacksjs/database": "0.75.612",
70
- "@stacksjs/env": "0.75.612",
71
- "@stacksjs/error-handling": "0.75.612",
72
- "@stacksjs/events": "0.75.612",
73
- "@stacksjs/logging": "0.75.612",
74
- "@stacksjs/model-meta": "0.75.612",
75
- "@stacksjs/pagination": "0.75.612",
76
- "@stacksjs/path": "0.75.612",
77
- "@stacksjs/query-builder": "0.75.612",
78
- "@stacksjs/realtime": "0.75.612",
79
- "@stacksjs/router": "0.75.612",
80
- "@stacksjs/storage": "0.75.612",
81
- "@stacksjs/strings": "0.75.612",
66
+ "@stacksjs/cache": "0.75.613",
67
+ "@stacksjs/cli": "0.75.613",
68
+ "@stacksjs/config": "0.75.613",
69
+ "@stacksjs/database": "0.75.613",
70
+ "@stacksjs/env": "0.75.613",
71
+ "@stacksjs/error-handling": "0.75.613",
72
+ "@stacksjs/events": "0.75.613",
73
+ "@stacksjs/logging": "0.75.613",
74
+ "@stacksjs/model-meta": "0.75.613",
75
+ "@stacksjs/pagination": "0.75.613",
76
+ "@stacksjs/path": "0.75.613",
77
+ "@stacksjs/query-builder": "0.75.613",
78
+ "@stacksjs/realtime": "0.75.613",
79
+ "@stacksjs/router": "0.75.613",
80
+ "@stacksjs/storage": "0.75.613",
81
+ "@stacksjs/strings": "0.75.613",
82
82
  "@stacksjs/ts-validation": "^0.5.7",
83
- "@stacksjs/validation": "0.75.612",
84
- "bun-query-builder": "^0.6.0",
83
+ "@stacksjs/validation": "0.75.613",
84
+ "bun-query-builder": "^0.6.2",
85
85
  "stripe": "23.0.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@stacksjs/auth": "0.75.612",
89
- "@stacksjs/payments": "0.75.612",
90
- "@stacksjs/queue": "0.75.612",
91
- "@stacksjs/search-engine": "0.75.612"
88
+ "@stacksjs/auth": "0.75.613",
89
+ "@stacksjs/payments": "0.75.613",
90
+ "@stacksjs/queue": "0.75.613",
91
+ "@stacksjs/search-engine": "0.75.613"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@stacksjs/auth": {
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "devDependencies": {
105
- "@stacksjs/types": "0.75.612",
105
+ "@stacksjs/types": "0.75.613",
106
106
  "better-dx": "^0.2.39"
107
107
  }
108
108
  }