Skip to content

Releases: distsys-labs/topic-dispatch

topic-dispatch: v4.0.0

Choose a tag to compare

@arobson arobson released this 30 Aug 03:21
90c3783

4.0.0 (2026-08-30)

⚠ BREAKING CHANGES

  • '' now matches exactly one topic segment and '#' now matches zero or more segments (catch-all) in compound dotted patterns, correcting a swapped-token bug. Any consumer relying on the previous (incorrect) behavior for a pattern like 'foo.' or 'foo.#' will see different matches after upgrading.

Features

  • add support for once (078ea36)
  • adds callback for delivery verification (fbf6570)
  • major release (cb4661e)
  • return results from handlers via promises, return subscription object from 'on' call (ac7d54a)
  • rework api to align with event emitter (6fcb4d5)

Bug Fixes

  • correct error in removeAll (d0af785)
  • correct issues with iteration over collection include one time bindings (04ff5db)
  • correct missing require in subscription module (dfdbcc5)
  • correct swapped wildcard tokens, once() return value, and an unhandled-rejection leak (f8f4628)
  • improve removeAll to eliminate all topic bindings when none is specified (2686809)
  • prevent binding non-functions to events (8c61a6f)
  • upgrade npm before publish so OIDC trusted publishing actually authenticates (6d088e3)