@duraflows/nestjs 5.0.0 → 5.1.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 +9 -0
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -33,6 +33,15 @@ You will also need a persistence adapter such as [`@duraflows/pg`](https://www.n
|
|
|
33
33
|
pnpm add @duraflows/pg pg
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
### Compatibility
|
|
37
|
+
|
|
38
|
+
| NestJS | Supported | Notes |
|
|
39
|
+
| ------ | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
40
|
+
| 12.x | ✅ | NestJS 12 ships ESM-only. CommonJS apps load it through `require(esm)`, which needs **Node.js ≥ 20.19 or ≥ 22.12** (a NestJS requirement, not a duraflows one). |
|
|
41
|
+
| 11.x | ✅ | From `11.0.0`. |
|
|
42
|
+
|
|
43
|
+
The same `@duraflows/nestjs` release works on both majors, from both CommonJS and ESM apps. No duraflows changes are needed when you upgrade an app from NestJS 11 to 12.
|
|
44
|
+
|
|
36
45
|
## Quick Start
|
|
37
46
|
|
|
38
47
|
### Module Registration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duraflows/nestjs",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "NestJS integration for duraflows: dependency injection, services, optional REST controllers, and @WorkflowCommand decorator for DI-backed command handlers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"duraflows",
|
|
@@ -54,17 +54,18 @@
|
|
|
54
54
|
"class-validator": "^0.15.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@duraflows/core": "^5.
|
|
58
|
-
"@nestjs/common": "^11.0.0",
|
|
59
|
-
"@nestjs/core": "^11.0.0",
|
|
57
|
+
"@duraflows/core": "^5.1.0",
|
|
58
|
+
"@nestjs/common": "^11.0.0 || ^12.0.0",
|
|
59
|
+
"@nestjs/core": "^11.0.0 || ^12.0.0",
|
|
60
60
|
"reflect-metadata": "^0.2.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@nestjs/common": "^
|
|
64
|
-
"@nestjs/core": "^
|
|
65
|
-
"@nestjs/
|
|
63
|
+
"@nestjs/common": "^12.1.0",
|
|
64
|
+
"@nestjs/core": "^12.1.0",
|
|
65
|
+
"@nestjs/platform-express": "^12.1.0",
|
|
66
|
+
"@nestjs/testing": "^12.1.0",
|
|
66
67
|
"reflect-metadata": "^0.2.2",
|
|
67
|
-
"@duraflows/core": "5.
|
|
68
|
+
"@duraflows/core": "5.1.0"
|
|
68
69
|
},
|
|
69
70
|
"scripts": {
|
|
70
71
|
"build": "tsc --build"
|