@ddd-ts-kit/nats 0.83.4 → 0.84.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.fr.md CHANGED
@@ -1,5 +1,5 @@
1
1
  [English](README.md) · **Français**
2
- <!-- translation-of: README.md sha256:bfde6b4ebfa4d955 -->
2
+ <!-- translation-of: README.md sha256:87eba9ed236712b2 -->
3
3
 
4
4
  # @ddd-ts-kit/nats
5
5
 
@@ -39,7 +39,7 @@ consommateur.
39
39
  ![Le gestionnaire de ordering écrit la commande client et un enregistrement d'outbox dans une seule transaction ; le relais de l'outbox donne l'enregistrement à NatsEventBus, qui le publie dans le flux integration-events avec l'identifiant de l'événement comme Nats-Msg-Id et attend l'acquittement ; le flux écarte un second message de même identifiant dans sa fenêtre de déduplication ; un consommateur durable par consommateur et par type d'événement tire le message et le remet aux gestionnaires de son contexte, acquitté après la validation de leur unité de travail ; ce qu'un consommateur abandonne est copié dans le flux integration-events-dead](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/nats-outbox-to-consumers.fr.svg)
40
40
 
41
41
  `init --broker nats` écrit ce câblage dans la plateforme du projet : le bus est construit par
42
- `platform/events/create-event-provider.ts`, `platform/platform.module.ts` lie à nouveau
42
+ `platform/events/create-event-provider.ts`, `platform/composition/platform.module.ts` lie à nouveau
43
43
  (`rebind`) `EventSubscribers` sur lui, et `main.ts` le donne, tracé, au relais de l'outbox. À la
44
44
  main, la même chose s'écrit :
45
45
 
package/README.md CHANGED
@@ -34,7 +34,7 @@ application as two ports of the kernel: `IntegrationEventPublisher` stays the ou
34
34
  ![The handler of ordering writes the order and an outbox record in one transaction; the outbox relay gives the record to NatsEventBus, which publishes it to the stream integration-events with the event id as Nats-Msg-Id and waits for the acknowledgement; the stream drops a second message with the same id within its duplicate window; one durable consumer per consumer and event type pulls the message and hands it to the handlers of its context, acknowledged after their unit of work committed; what a consumer gives up on is copied to the stream integration-events-dead](https://raw.githubusercontent.com/gbourgeat/ddd-ts-kit/main/docs/assets/diagrams/nats-outbox-to-consumers.svg)
35
35
 
36
36
  `init --broker nats` writes this wiring in the platform of the project: the bus is built by
37
- `platform/events/create-event-provider.ts`, `platform/platform.module.ts` rebinds
37
+ `platform/events/create-event-provider.ts`, `platform/composition/platform.module.ts` rebinds
38
38
  `EventSubscribers` on it, and `main.ts` gives it, traced, to the outbox relay. By hand, the
39
39
  same thing reads:
40
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/nats",
3
- "version": "0.83.4",
3
+ "version": "0.84.0",
4
4
  "description": "NATS JetStream provider for integration events: acknowledged publishing with message deduplication for the outbox relay, one durable consumer per consumer, explicit acknowledgement, bounded redelivery and a dead-letter subject.",
5
5
  "keywords": [
6
6
  "ddd",
@@ -38,11 +38,11 @@
38
38
  "dist"
39
39
  ],
40
40
  "dependencies": {
41
- "@ddd-ts-kit/events": "0.83.4",
42
- "@ddd-ts-kit/kernel": "0.83.4"
41
+ "@ddd-ts-kit/events": "0.84.0",
42
+ "@ddd-ts-kit/kernel": "0.84.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@ddd-ts-kit/testing": "0.83.4",
45
+ "@ddd-ts-kit/testing": "0.84.0",
46
46
  "@nats-io/jetstream": "^3.4.0",
47
47
  "@nats-io/transport-node": "^3.4.0"
48
48
  },