forked from arobson/rabbot
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…rum support (#56) * chore(package.json): bump version * feat(index.d.ts): Add `messageTtl`, `passive` (existing fields) and `type` (x-queue-type, for quorum support) + protocol definition for #26 * chore(docs): update docs t reflect changes * fix(integration): proper protocol (#26) and fix url encode error (#55) * chore(spec): update connection and queue options with new protocol and queue type field * refactor(connection.js): use `startsWith` instead of equal, just in case * feat(index.d.ts): Add `autoDelete` key to QueueOptions definition (it is documented and shown in examples) * feat(queue.js): Add proper support for quorum queues and silently omit incompatible fields * feat(queue.spec.js): Add test case for quorum queue type and check if call is valid * refactor(queue.js): Use ternary operation instead for omition to improve readability * feat(queue.spec.js): Add behavior test case for quorum queue type (not set) * chore(topology.md): update docs with queue type and classic queue deprecation warning * feat(connection.js): make sure `protocol` field is found and backwards compatible (#26) * docs(topology.md): Added known workaround for issue #23 using async/await example with explanation * feat(queue.js): add dead letter strategy argument (supports at least once since v3.10 for quorum) + update typing to reflect it * test(queue.spec.js): Check behavior for `x-dead-letter-strategy` and validate it is correct (only for quorum) * docs(topology.md): Add `deadLetterStrategy` and `overflow` to `addQueue` parameter description + explanation of choices * docs(topology.md): refactor example and formatting recent addition to fit norm * docs(topology.md): shorten example * docs(topology.md): update configure example to properly use promises * docs: finalized toplogy example and changes all outdated `var` variable to `const` * refactor(connection.js): Avoid duplicate error messages, use constant * test(queue.spec.js): Fix value for `x-dead-letter-strategy` and add similar test case for default options.type "classic" * feat(queue.js): Add queue version upport for classic queues + behavior test and doc entry * fix: autodelete queue in test has to be classic * chore: revert change a16ba0f (bump version) * fix(amqp/connection.js): decode URI credentials in `parseUri` to avoid double escaping --------- Co-authored-by: Martial Habimana <martial@ringring.be>
- Loading branch information
Showing
9 changed files
with
258 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
module.exports = { | ||
connection: { | ||
protocol: 'amqp', | ||
name: 'default', | ||
user: 'guest', | ||
pass: 'guest', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.