@nathapp/nestjs-prisma 4.3.2 → 4.4.0
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/README.md +5 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -198,6 +198,11 @@ await prismaService.withTransaction(async (tx) => {
|
|
|
198
198
|
Both `forRoot` and `forRootAsync` provide the same context to the service and
|
|
199
199
|
transaction manager for that connection.
|
|
200
200
|
|
|
201
|
+
The context is an `AsyncLocalStorage` that lives as long as the process. This
|
|
202
|
+
package requires Node.js 24 or later, where that has no per-promise cost however
|
|
203
|
+
many applications a process boots and closes. Do not run with
|
|
204
|
+
`--no-async-context-frame`, which brings the cost back.
|
|
205
|
+
|
|
201
206
|
### Retrying a rolled-back write conflict
|
|
202
207
|
|
|
203
208
|
`await tx.run(fn, { retryOnWriteConflict: true })` lets the outer transaction
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nathapp/nestjs-prisma",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "NestJS Prisma integration with multi-database support",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rimraf dist/ .turbo/",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"author": "William Khoo",
|
|
17
17
|
"license": "ISC",
|
|
18
18
|
"engines": {
|
|
19
|
-
"node": "
|
|
19
|
+
"node": ">=24.0.0"
|
|
20
20
|
},
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"main": "dist/index.js",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@nathapp/nestjs-common": "^4.
|
|
25
|
-
"@nathapp/nestjs-data": "^4.
|
|
24
|
+
"@nathapp/nestjs-common": "^4.4.0",
|
|
25
|
+
"@nathapp/nestjs-data": "^4.4.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@nathapp/eslint-config": "1.0.1",
|