@ddd-ts-kit/events 0.1.1 → 0.2.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 +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ never declared `phase: 'after-commit'`: the transaction that would hold its outb
|
|
|
53
53
|
import { IdGenerator, IntegrationEventPublisher } from '@ddd-ts-kit/kernel';
|
|
54
54
|
import { DomainEventHandler } from '@ddd-ts-kit/kernel/declarations';
|
|
55
55
|
|
|
56
|
-
@DomainEventHandler(OrderPlacedEvent, { name: 'ordering.order.placed' }
|
|
56
|
+
@DomainEventHandler(OrderPlacedEvent, { name: 'ordering.order.placed' })
|
|
57
57
|
export class OrderPlacedPublisher implements DomainEventHandler<OrderPlacedEvent> {
|
|
58
58
|
constructor(
|
|
59
59
|
private readonly publisher: IntegrationEventPublisher,
|
|
@@ -215,9 +215,9 @@ handler by hand:
|
|
|
215
215
|
// contexts/billing/application/integration/handlers/invoice-on-order-placed.integration-handler.ts
|
|
216
216
|
import { CommandBus, type IntegrationEvent } from '@ddd-ts-kit/kernel';
|
|
217
217
|
import { IntegrationEventHandler } from '@ddd-ts-kit/kernel/declarations';
|
|
218
|
-
import { orderPlaced, type OrderPlaced } from '@/contexts/ordering/published-language/index
|
|
218
|
+
import { orderPlaced, type OrderPlaced } from '@/contexts/ordering/published-language/index';
|
|
219
219
|
|
|
220
|
-
@IntegrationEventHandler(orderPlaced, { consumer: 'billing.invoice-on-order-placed' }
|
|
220
|
+
@IntegrationEventHandler(orderPlaced, { consumer: 'billing.invoice-on-order-placed' })
|
|
221
221
|
export class InvoiceOnOrderPlaced {
|
|
222
222
|
constructor(private readonly commands: CommandBus) {}
|
|
223
223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ddd-ts-kit/events",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Technology-agnostic integration events: typed declarations, registry, transactional outbox, AsyncAPI and catalog generation.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"dist"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ddd-ts-kit/kernel": "0.
|
|
34
|
-
"@ddd-ts-kit/validation": "0.
|
|
33
|
+
"@ddd-ts-kit/kernel": "0.2.0",
|
|
34
|
+
"@ddd-ts-kit/validation": "0.2.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"zod": "^4.6.5"
|