@nestjs-transactional/cqrs 1.0.0 → 2.0.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 +14 -0
- package/dist/decorators/integration-events-handler.decorator.js +9 -14
- package/dist/decorators/integration-events-handler.decorator.js.map +1 -1
- package/dist/decorators/transactional-events-handler.decorator.d.ts +1 -1
- package/dist/decorators/transactional-events-handler.decorator.js +12 -17
- package/dist/decorators/transactional-events-handler.decorator.js.map +1 -1
- package/dist/event-dispatcher/event-dispatcher.d.ts +1 -1
- package/dist/event-dispatcher/event-dispatcher.js +15 -19
- package/dist/event-dispatcher/event-dispatcher.js.map +1 -1
- package/dist/event-publisher/hybrid-event-publisher.d.ts +1 -1
- package/dist/event-publisher/hybrid-event-publisher.js +9 -12
- package/dist/event-publisher/hybrid-event-publisher.js.map +1 -1
- package/dist/event-publisher/transactional-event-publisher-adapter.d.ts +15 -4
- package/dist/event-publisher/transactional-event-publisher-adapter.js +20 -12
- package/dist/event-publisher/transactional-event-publisher-adapter.js.map +1 -1
- package/dist/event-publisher/transactional-event-publisher.d.ts +1 -1
- package/dist/event-publisher/transactional-event-publisher.js +6 -9
- package/dist/event-publisher/transactional-event-publisher.js.map +1 -1
- package/dist/handlers/bootstrap.d.ts +1 -1
- package/dist/handlers/bootstrap.js +6 -9
- package/dist/handlers/bootstrap.js.map +1 -1
- package/dist/handlers/handler-wrapper.js +16 -19
- package/dist/handlers/handler-wrapper.js.map +1 -1
- package/dist/handlers/integration-events-handler-scanner.d.ts +2 -2
- package/dist/handlers/integration-events-handler-scanner.js +19 -22
- package/dist/handlers/integration-events-handler-scanner.js.map +1 -1
- package/dist/handlers/listener-scanner.d.ts +1 -1
- package/dist/handlers/listener-scanner.js +11 -14
- package/dist/handlers/listener-scanner.js.map +1 -1
- package/dist/handlers/outbox-listener-registrar.js +1 -4
- package/dist/handlers/outbox-listener-registrar.js.map +1 -1
- package/dist/index.d.ts +15 -15
- package/dist/index.js +13 -36
- package/dist/index.js.map +1 -1
- package/dist/interfaces/integration-event-handler.interface.js +1 -2
- package/dist/interfaces/transactional-event-handler.interface.js +1 -2
- package/dist/module/cqrs-transactional.module.d.ts +1 -1
- package/dist/module/cqrs-transactional.module.js +33 -36
- package/dist/module/cqrs-transactional.module.js.map +1 -1
- package/dist/types/transactional-listener.types.js +2 -5
- package/dist/types/transactional-listener.types.js.map +1 -1
- package/package.json +22 -19
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TransactionPhase = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* Transaction lifecycle phase at which a `@TransactionalEventsHandler`
|
|
6
3
|
* runs. Mirrors Spring's `TransactionPhase` — see the package README
|
|
@@ -15,11 +12,11 @@ exports.TransactionPhase = void 0;
|
|
|
15
12
|
* - {@link AFTER_COMPLETION}: handler runs on any completion (commit
|
|
16
13
|
* or rollback).
|
|
17
14
|
*/
|
|
18
|
-
var TransactionPhase;
|
|
15
|
+
export var TransactionPhase;
|
|
19
16
|
(function (TransactionPhase) {
|
|
20
17
|
TransactionPhase["BEFORE_COMMIT"] = "BEFORE_COMMIT";
|
|
21
18
|
TransactionPhase["AFTER_COMMIT"] = "AFTER_COMMIT";
|
|
22
19
|
TransactionPhase["AFTER_ROLLBACK"] = "AFTER_ROLLBACK";
|
|
23
20
|
TransactionPhase["AFTER_COMPLETION"] = "AFTER_COMPLETION";
|
|
24
|
-
})(TransactionPhase || (
|
|
21
|
+
})(TransactionPhase || (TransactionPhase = {}));
|
|
25
22
|
//# sourceMappingURL=transactional-listener.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactional-listener.types.js","sourceRoot":"","sources":["../../src/types/transactional-listener.types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transactional-listener.types.js","sourceRoot":"","sources":["../../src/types/transactional-listener.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAN,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,mDAA+B,CAAA;IAC/B,iDAA6B,CAAA;IAC7B,qDAAiC,CAAA;IACjC,yDAAqC,CAAA;AACvC,CAAC,EALW,gBAAgB,KAAhB,gBAAgB,QAK3B"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs-transactional/cqrs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "@nestjs/cqrs integration for @nestjs-transactional/core — transactional event listeners with phases, handler wrapping, AggregateRoot integration",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"type": "
|
|
6
|
+
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"author": "Igor Golovanov",
|
|
9
9
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"after-commit"
|
|
27
27
|
],
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": ">=22.
|
|
29
|
+
"node": ">=22.13.0"
|
|
30
30
|
},
|
|
31
31
|
"main": "dist/index.js",
|
|
32
32
|
"types": "dist/index.d.ts",
|
|
@@ -47,36 +47,39 @@
|
|
|
47
47
|
"provenance": true
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
51
|
-
"@nestjs/core": "^10.0.0 || ^11.0.0",
|
|
52
|
-
"@nestjs/cqrs": "^11.0.0",
|
|
50
|
+
"@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
51
|
+
"@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
52
|
+
"@nestjs/cqrs": "^11.0.0 || ^12.0.0",
|
|
53
53
|
"reflect-metadata": "^0.1.13 || ^0.2.0",
|
|
54
54
|
"rxjs": "^7.0.0",
|
|
55
|
-
"@nestjs-transactional/core": "^
|
|
55
|
+
"@nestjs-transactional/core": "^2.0.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@
|
|
59
|
-
"@nestjs/
|
|
58
|
+
"@jest/globals": "^30.4.2",
|
|
59
|
+
"@nestjs/common": "^11.2.3",
|
|
60
|
+
"@nestjs/core": "^11.2.3",
|
|
60
61
|
"@nestjs/cqrs": "^11.0.0",
|
|
61
|
-
"@nestjs/testing": "^11.
|
|
62
|
-
"@nestjs/typeorm": "^11.0.
|
|
62
|
+
"@nestjs/testing": "^11.2.3",
|
|
63
|
+
"@nestjs/typeorm": "^11.0.3",
|
|
64
|
+
"@types/jest": "^30.0.0",
|
|
65
|
+
"@types/node": "^22.20.1",
|
|
63
66
|
"reflect-metadata": "^0.2.2",
|
|
64
67
|
"rxjs": "^7.8.1",
|
|
65
68
|
"typeorm": "^1.1.0",
|
|
66
|
-
"@nestjs-transactional/
|
|
67
|
-
"@nestjs-transactional/outbox": "
|
|
68
|
-
"@nestjs-transactional/
|
|
69
|
+
"@nestjs-transactional/typeorm": "2.0.0",
|
|
70
|
+
"@nestjs-transactional/outbox": "2.0.0",
|
|
71
|
+
"@nestjs-transactional/core": "2.0.0"
|
|
69
72
|
},
|
|
70
73
|
"scripts": {
|
|
71
74
|
"build": "tsc -p tsconfig.build.json",
|
|
72
75
|
"clean": "rimraf dist *.tsbuildinfo coverage",
|
|
73
|
-
"test": "jest",
|
|
74
|
-
"test:watch": "jest --watch",
|
|
75
|
-
"test:cov": "jest --coverage",
|
|
76
|
+
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
|
|
77
|
+
"test:watch": "NODE_OPTIONS=--experimental-vm-modules jest --watch",
|
|
78
|
+
"test:cov": "NODE_OPTIONS=--experimental-vm-modules jest --coverage",
|
|
76
79
|
"type-check": "tsc --noEmit",
|
|
77
|
-
"lint": "eslint
|
|
80
|
+
"lint": "eslint .",
|
|
78
81
|
"api:check": "api-extractor run",
|
|
79
82
|
"api:update": "api-extractor run --local",
|
|
80
|
-
"publish:check": "publint && attw --pack ."
|
|
83
|
+
"publish:check": "publint && attw --pack . --profile esm-only"
|
|
81
84
|
}
|
|
82
85
|
}
|