github event-catalog/eventcatalog @eventcatalog/sdk@2.23.1

latest releases: @eventcatalog/core@3.47.3, @eventcatalog/core@3.47.2, @eventcatalog/core@3.47.1...
21 days ago

Patch Changes

  • 2801b3e: Fix addMessageToChannel (and its addEventToChannel / addCommandToChannel / addQueryToChannel bindings) corrupting catalog layout.

    The function previously split the existing resource path with a template string`/[\\/]+${collection}` — instead of a real RegExp. The literal substring never matched real paths, so .split() returned the input unchanged and the resource was rewritten under <catalog>/<collection>/<id>/index.mdx/<collection>/<id>/index.mdx, with index.mdx becoming a directory.

    The fix mirrors the regex form already used in services.ts (new RegExp('[\\\\/]+' + collection)), so the split matches both POSIX and Windows path separators. A regression test under addEventToChannel asserts that the canonical event path stays a file and the duplicate nested path does not exist.

Don't miss a new eventcatalog release

NewReleases is sending notifications on new releases.