@ddd-ts-kit/kafka 0.1.0 → 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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -94,7 +94,7 @@ export const messagingModule = defineContextModule({
94
94
  import { CommandBus, systemActor, type IntegrationEvent } from '@ddd-ts-kit/kernel';
95
95
  import { IntegrationEventHandler } from '@ddd-ts-kit/kernel/declarations';
96
96
 
97
- @IntegrationEventHandler(orderPlaced, { consumer: 'billing.invoice-on-order-placed' }, [CommandBus])
97
+ @IntegrationEventHandler(orderPlaced, { consumer: 'billing.invoice-on-order-placed' })
98
98
  export class InvoiceOnOrderPlacedIntegrationHandler {
99
99
  constructor(private readonly commands: CommandBus) {}
100
100
 
@@ -112,7 +112,7 @@ export class InvoiceOnOrderPlacedIntegrationHandler {
112
112
  import { contextModule, createApplication, kernelModule } from '@ddd-ts-kit/di';
113
113
  import { Clock } from '@ddd-ts-kit/kernel';
114
114
  import { OutboxRelay, OutboxStore } from '@ddd-ts-kit/events';
115
- import { aggregateOf, bus, messagingModule } from '@/platform/messaging.module.js';
115
+ import { aggregateOf, bus, messagingModule } from '@/platform/messaging.module';
116
116
 
117
117
  const app = createApplication({
118
118
  modules: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/kafka",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Kafka provider for integration events: idempotent keyed publishing for the outbox relay, one consumer group per consumer, offsets committed after handling, bounded retries and a dead-letter topic.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -26,12 +26,12 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@ddd-ts-kit/events": "0.1.0",
30
- "@ddd-ts-kit/kernel": "0.1.0"
29
+ "@ddd-ts-kit/events": "0.2.0",
30
+ "@ddd-ts-kit/kernel": "0.2.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@confluentinc/kafka-javascript": "^1.11.0",
34
- "@ddd-ts-kit/testing": "0.1.0"
34
+ "@ddd-ts-kit/testing": "0.2.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@confluentinc/kafka-javascript": ">=1.11.0 <2"