Releases: jpwilliams/remit
v2.1.0
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
v2.0.3
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
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
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 UnhandledPromiseRejection
s, 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
v2.0.0
🚀 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