@nathapp/nestjs-typeorm 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
|
@@ -24,6 +24,11 @@ repositories, `BaseSpRepository.callQuery`, `@Transactional`, and
|
|
|
24
24
|
DataSource. Each connection has an independent context, including during nested
|
|
25
25
|
and concurrent work.
|
|
26
26
|
|
|
27
|
+
Each context is an `AsyncLocalStorage` that lives as long as its DataSource is
|
|
28
|
+
referenced. This package requires Node.js 24 or later, where that has no
|
|
29
|
+
per-promise cost however many applications a process boots and closes. Do not run
|
|
30
|
+
with `--no-async-context-frame`, which brings the cost back.
|
|
31
|
+
|
|
27
32
|
### Independent transactions (`requiresNew`)
|
|
28
33
|
|
|
29
34
|
By default `run` joins an active transaction. `await tx.run(fn, { propagation: 'requiresNew' })`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nathapp/nestjs-typeorm",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
4
4
|
"description": "@nathapp/nestjs-typeorm",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rimraf dist/ .turbo/",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"author": "William Khoo",
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": "
|
|
20
|
+
"node": ">=24.0.0"
|
|
21
21
|
},
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
23
|
"main": "dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@nathapp/common": "^0.1.14",
|
|
29
|
-
"@nathapp/nestjs-common": "^4.
|
|
30
|
-
"@nathapp/nestjs-data": "^4.
|
|
29
|
+
"@nathapp/nestjs-common": "^4.4.0",
|
|
30
|
+
"@nathapp/nestjs-data": "^4.4.0",
|
|
31
31
|
"@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
32
32
|
"class-transformer": "*",
|
|
33
33
|
"dayjs": "^1.11.13"
|