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

latest releases: @eventcatalog/linter@1.0.27, @eventcatalog/language-server@0.8.19
4 hours 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.