@nathapp/nestjs-typeorm 4.1.0 → 4.2.1

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.
Files changed (2) hide show
  1. package/CLAUDE.md +6 -5
  2. package/package.json +3 -3
package/CLAUDE.md CHANGED
@@ -13,7 +13,7 @@ DO NOT EDIT MANUALLY — run `nax generate` to regenerate.
13
13
 
14
14
  **Language:** TypeScript
15
15
 
16
- **Key dependencies:** @nathapp/typescript-config, typescript
16
+ **Key dependencies:** @nestjs/common, @nathapp/typescript-config, typescript
17
17
 
18
18
  ---
19
19
  # @nathapp/nestjs-typeorm
@@ -39,7 +39,9 @@ TypeORM-specific methods (e.g. `createQueryBuilder`) on top — they are
39
39
  automatically transaction-aware via the protected `repo` getter.
40
40
 
41
41
  For ORM-specific power that does not need the portable contract, keep using
42
- `BaseRepository` / `BaseSpRepository` — they are unrelated and remain unchanged.
42
+ `BaseRepository` / `BaseSpRepository`. Stored procedure calls use the active
43
+ transaction runner for their own DataSource, including transactions started by
44
+ the transaction manager, `@Transactional`, or `TransactionService`.
43
45
 
44
46
  ### Wiring via `forCustomRepository`
45
47
 
@@ -121,9 +123,8 @@ export class AnalyticsModule {}
121
123
  - The `AbstractTypeOrmRepository` branch instantiates with `(tx, entity)` only.
122
124
  Subclasses that need to inject additional providers (e.g. a logger) must
123
125
  register manually via `providers: [...]` instead of `forCustomRepository`.
124
- - Legacy `@Transactional` method decorator and `BaseSpRepository.callQuery` use a
125
- separate `transactionContext` ALS that is not unified with `TypeOrmTransactionManager`.
126
- Out of scope; tracked as a follow-up.
126
+ - Transaction context is shared per DataSource. Named connections remain
127
+ isolated, including when their transactions are nested or run concurrently.
127
128
 
128
129
  ## Multi-DB
129
130
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-typeorm",
3
- "version": "4.1.0",
3
+ "version": "4.2.1",
4
4
  "description": "@nathapp/nestjs-typeorm",
5
5
  "scripts": {
6
6
  "clean": "rimraf dist/ .turbo/",
@@ -26,8 +26,8 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@nathapp/common": "^0.1.14",
29
- "@nathapp/nestjs-common": "^4.1.0",
30
- "@nathapp/nestjs-data": "^4.1.0",
29
+ "@nathapp/nestjs-common": "^4.2.1",
30
+ "@nathapp/nestjs-data": "^4.2.1",
31
31
  "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
32
32
  "class-transformer": "*",
33
33
  "dayjs": "^1.11.13"