Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Releases: jpwilliams/remit

v2.1.0

04 Dec 11:36
Compare
Choose a tag to compare

Overview

Fixed a critical bug regarding Remit connection attempts throwing but the error being swallowed. Also added in disabling Nagle's algorithm (useful for connecting to remote Debian-based RabbitMQ).

Handlers can also now be straight values. If a handler is a value, it'll be returned as success immediately upon being reached.

remit
  .endpoint('foo bar')
  .handler('foobar')
  .start()

Notable commits:

New features

Bug fixes

  • 🚑 Catch errors in Remit connection and throw as exception on next tick: e091ed9
  • 🔀 Merge pull request #64 from jpwilliams/nodelay: 3365962

Generic changes

  • 📦 fix(package): update eventemitter3 to version 3.0.0 (#60): 250143a
  • ⚡️ Set TCP_NODELAY (disable Nagle's algorithm): 5659e69
  • 🔀 Merge pull request #65 from jpwilliams/amqps: e8655c4
  • ⚡️ Delete fallback when unsetting rather than setting to undefined: b837532
  • ✅ Pad out request testing: 31e2fd6
  • ✅ Add endpoint tests for .start() and .options(): 14ac537

v2.0.4

04 Dec 11:47
Compare
Choose a tag to compare

Generic changes

  • 📦 fix(package): update ulid to version 2.2.0 (#56): 6005900

v2.0.3

04 Dec 11:44
Compare
Choose a tag to compare

Overview

Fixes for silly testing failures (managed to set a "custom" registry somehow). Also updated package.json to recommend the correct version of Node via engine.

Bug fixes

  • 🐛 Use _mocha instead of mocha when generating reports for coveralls: b587d56
  • 🐛 Fix bad npm registry setting: 609cb39

Generic changes

v2.0.2

04 Dec 11:42
Compare
Choose a tag to compare

Overview

Added the ability to customise prefetch limits on listeners and endpoints. Also added more client properties to RabbitMQ connections so they can be more easily identified in the UI.

New features

  • ✨ Add adjustable prefetch limit to listeners and endpoints: 01cba9b

Generic changes

  • 💬 Add 'username@hostname' to client properties on RabbitMQ connection: 70ea11d

v2.0.1

04 Dec 11:40
Compare
Choose a tag to compare

Overview

Amongst some package upgrades, the main fix here was catching errors that were being swallowed by Promises across the system. Errors such as key channels dying or the RabbitMQ connection dying are now thrown synchronously instead of as UnhandledPromiseRejections, meaning they properly halt execution.

Bug fixes

  • 😬 Add new throwAsException utility that throws any exception synchronously: 3848963
  • 😬 Catch nasty errors and throw them synchronously across Remit: 30e1e8f

Generic changes

  • 💬 Add more client properties for help tracking rogue consumers: f0c42b1
  • 📦 Upgrade ulid to ^1.0.0: 9758f61
  • 📦 Upgrade coveralls to ^3.0.0: 30ab7d2
  • 📦 Upgrade mocha to ^4.0.0: 67e8d94

v2.0.0

04 Sep 09:36
Compare
Choose a tag to compare
🚀 Release v2.0.0 (#44)

* 🚀 Overhaul

* ⚡️ No need to be passing these values around

* 📦 #44 Add `callsite` package in view of  adding stack traces to requests/emissions

* ✨ #44 Add new utility to get request callsites excepting callable-instance calls

* ✨ #44 Add stack trace line to requests and emissions

* ⚡️ Parse JSON for emitted event _after_ sending to RabbitMQ in requests

* ✨ Add `isCustom` to `parseEvent`, allowing us to mark when we need `started` date setting

* ⚡️ Don't map or serialise data in endpoint replies if we don't need to

* 💬 Make 'unparsable data' warning for requests and emissions be clear as to what has happened

* 🔨 Make Emitter instantiation work the same as Request - just opts/event name

* 🐛 Properly set `scheduled` headers when demitting a message via a schedule

* 💬 Mini punctuation fix

* ⚡️ Parse JSON for emitted events _after_ sending to RabbitMQ

* 📦 Adding new dependencies chai, mocha and nyc for testing

* 🔧 Update .gitignore to include new .nyc_output directory (new version of istanbul)

* ✅ Add new test scripts

* ✅ Add test bootstrap

* ✅ Adding initial tests for basic types/usage

* ✅ Add placeholders for utils testing

* ✅ More of a test skeleton for endpoints

* 💬 Fix thrown error being scoped to wrong type

* 🐛 Safely fall back to an empty options object when parsing endpoint options for the first time

* 🐛 Include `utils` folder in npm releases

* 🔖 Release v2.0.0-beta.15

* 🐛 Fix incompatibility between Remit 1 and 2

We now check for the message's correlationId rather than relying on the new event style in Remit 2.

* 🔖 Release v2.0.0-beta.16

* ✅ Making test throw checks for emissions more specific

* ✅ Adding some tests for endpoints

* 🚧 Add .eslintrc config file for Codacy etc

* ✅ Add basic Remit tests

* ✅ Add basic remit.listen tests

* ✅ Pad out endpoint middleware testing

* 🐛 Correctly merge query string options when parsing AMQP urls

* ✅ Add testing to parseAmqpUrl utility

* ✅ Add travis testing

* ✅ Stick with latest Node 8 - no harmony for nw

* ✅ Add coveralls token

* 📦 Add new coveralls dev dependency

* ✅ Add new `travis` script for testing and pushing coverage reports

* 📝 Add badges to README

* 🐛 Add proper timeout error object when requests time out

* 🔖 Release v2.0.0-beta-17

* :zap: Only internally set one listener for request data/timeout

* 💬 Swallow worker channel errors; we should manually log these in the relevant areas

* 🐛 Do not consistently redefine differing queue expirations when scheduling emissions

* 🔖 Release v2.0.0-beta.18

* ⚡️ No need to wait for an emitter to be ready before sending

* 🐛 Fix demission 'schedule' dates not properly being checked for validity

* 🔖 Release v2.0.0-beta.19

* 🐛 Fixes #48 - only time to not pass fallback if it's declared is if it's undefined

* 🔧 Updating package-lock.json (late)

* 🔖 Release v2.0.0-beta.20

* 🔖 Release v2.0.0-beta.21

* 🚿 Cleaning up test linting

* 🔖 Bump version to 2.0.0, ready to release

Release v2.0.0-beta.13

03 Aug 09:26
Compare
Choose a tag to compare
Pre-release

Bug fixes

  • 🐛 Fix #37 - use proper callback arrays for listeners: 22ec1d1

Generic changes

  • 📋 Example tweaks for #37 testing: cb51ac3
  • 🚿 Cleaning up unneeded libs: 3ff65d4

Release v2.0.0-beta.12

02 Aug 11:28
Compare
Choose a tag to compare
Pre-release

New features

  • ✨ Potential #30 implementation - returning promises in response callbacks: 4eb6409

Generic changes

  • 📋 New examples for endpoint promises for #30: e64199a

Release v2.0.0-beta.11

18 Jul 12:43
Compare
Choose a tag to compare
Pre-release

New features

  • ✨ Add timeout property to request options, allowing clients the ability to specify a particular timeout for their call: 4d1b605

Bug fixes

  • 🐛 Do not try to require non-existant files: 3ea3d4b

Generic changes

  • 🚿 Pull alias assignment out of a separate JSON file and do it in-file for clarity: 545093d
  • ♿ Add publish and requestOne aliases to emissions and requests respectively so as to make an easy transition from NATS: ee1d15e
  • 🔧 Add package-lock.json file for locked-in npm modules: bad3927

Release v2.0.0-beta.10

17 Jul 16:42
Compare
Choose a tag to compare
Pre-release

Bug fixes / generic changes

  • 🚿 Clean up worker channel creation: d4b7328
  • 🐛 Try closing dead channels in case they're being leaked: cafc102