Skip to content

Releases: boringnode/bus

Handle binary buffers

17 May 18:15
Compare
Choose a tag to compare

Changes

Added support for binary buffers.

Breaking Change: The encoder signature has changed. The decode function should now accepts a string or a Buffer.

See #3 for more details.

Commits

  • feat: handle binary buffers with messageBuffer (16df254)
  • chore: remove useless packages (9550307)
  • chore: update dependencies (c197793)
  • refactor: debug prefix (d3782ab)
  • test: fix flakky test (f4d2d1a)
  • ci: disable windows tests (3949d15)

v0.5.0

07 Apr 21:15
Compare
Choose a tag to compare

Changes

Rename package from @rlanz/bus to @boringnode/bus

Commits

  • style: lint files (adcbcc4)
  • chore: add typecheck script (5596db0)
  • chore: fix readme links (e7d6a54)
  • ci: use org ci jobs (9657d62)
  • chore: update scope readme (6311b9b)
  • chore: update copyright scope (e68d952)
  • chore: update package scope (d290e17)
  • ci: remove repo ci (5ecd1ad)
  • fix: retry queue dequeue only if publish succeeded (5fd905f)

Full Changelog: v0.4.0...v0.5.0

Remove "transport" suffit on transport files

07 Apr 14:32
f7ba886
Compare
Choose a tag to compare

Breaking

We change the file name of the transports files.
Now files are named with the _transport suffix.

Commits

  • chore: rename files in tests too (98f34a7)
  • chore: improve description and keywords (1fdde21)
  • chore: rename transport files (22839f8)

Full Changelog: v0.3.0...v0.4.0

Exports transports and helpers classes

07 Apr 12:02
Compare
Choose a tag to compare

Breaking

We renamed the exports drivers to transports.
Instead of importing from the drivers subpath, use transports.

-import { redis } from '@rlanz/bus/drivers/redis'
-import { memory } from '@rlanz/bus/drivers/memory'
+import { redis } from '@rlanz/bus/transports/redis'
+import { memory } from '@rlanz/bus/transports/memory'

Features

You can now use the ChaosTransport helpers to test the resilience of your code.

import { Bus } from '@rlanz/bus'
import { ChaosTransport } from '@rlanz/bus/test_helpers'

const buggyTransport = new ChaosTransport(new MemoryTransport())
const bus = new Bus(buggyTransport)

/**
 * Now, every time you will try to publish a message, the transport 
 * will throw an error.
 */
buggyTransport.alwaysThrow()

Commits

  • refactor: re-export transport classes + rename "drivers" to "transports" (#2) (f9ab6cb)
  • chore: update the readme (7c345f0)
  • ci: remove windows test (1213316)
  • ci: update test version (7e4d4dc)
  • ci: update test version (2a3966d)
  • ci: add test workflow (c09d8b9)

Full Changelog: v0.2.0...v0.3.0

New Contributors

Allow to retry the queue at interval

16 Mar 17:09
Compare
Choose a tag to compare
  • test(manager): improve test coverage (4978d23)
  • feat(bus): allow to process retry queue externally (bc9db42)
  • feat(bus): add retry interval settings (0d58398)
  • test(drivers): fix timeout (94edd97)
  • test(helpers): rename the chaos transport (357234d)
  • test(drivers): rename redis testing group (160d332)
  • test(drivers): add memory transport tests (cbc9989)
  • chore(package): increase required node version to match LTS (17e92fa)

Full Changelog: v0.1.1...v0.2.0

Fix RetryQueue size call

08 Mar 21:12
Compare
Choose a tag to compare
  • fix(retry_queue): size is a function (98b3ad9)

Full Changelog: v0.1.0...v0.1.1

Improve debug experience & first usable release

08 Mar 19:55
Compare
Choose a tag to compare
  • feat: improve debug experience (42ef3e0)

Correct message being composed twice

08 Mar 19:02
Compare
Choose a tag to compare
  • fix(bus): do not compose the message here (8aa192a)
  • refactor: move the entrypoint at the root (cd0c393)

A few changes required to make the package work

08 Mar 17:24
Compare
Choose a tag to compare
  • fix: add back null type for Serializable (f4c632c)
  • refactor: remove the needs to wrap payload in an object (e0337eb)
  • feat: send only the payload to the message handler (0cbfef5)
  • fix: correct typing export (567f42b)

Export Bus class

29 Feb 22:52
Compare
Choose a tag to compare
  • feat(package): also export bus class (3e58e71)

Full Changelog: v0.0.2...v0.0.3