@ddd-ts-kit/events 0.4.1 → 0.5.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 +5 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -327,6 +327,11 @@ if (checkAsyncApiDrift(document, await readFile('docs/integration/asyncapi.json'
327
327
  }
328
328
  ```
329
329
 
330
+ `stringifyAsyncApi` writes two-space JSON. A project generated by the CLI commits
331
+ `docs/integration/asyncapi.yaml` instead, written by `stringifyContract(document, 'yaml')` of
332
+ `ddd-ts-kit/dist/contracts.js` in its `scripts/events.ts` (`openapi.format: json` of its config
333
+ keeps JSON).
334
+
330
335
  The AsyncAPI 3.0.0 document has one channel per event type (its address is the type), one
331
336
  message per version whose payload is the envelope (`id`, `type`, `version`, `occurredAt`,
332
337
  `payload`, `traceparent`, `correlationId`), and one `send` operation per channel. The catalog
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ddd-ts-kit/events",
3
- "version": "0.4.1",
3
+ "version": "0.5.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.4.1",
34
- "@ddd-ts-kit/validation": "0.4.1"
33
+ "@ddd-ts-kit/kernel": "0.5.0",
34
+ "@ddd-ts-kit/validation": "0.5.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "zod": "^4.6.5"