rascal 14.4.0 → 14.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +3 -3
- package/examples/busy-publisher/config.json +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 14.4.1
|
|
4
|
+
|
|
5
|
+
- Bump dependencies / fix audit warnings
|
|
6
|
+
- Fix busy publisher example to consistenly use regular channels - See https://github.com/guidesmiths/rascal/issues/194
|
|
7
|
+
|
|
3
8
|
## 14.4.0
|
|
4
9
|
|
|
5
10
|
- Report validation error when no vhosts are specified - See https://github.com/guidesmiths/rascal/issues/181
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ A **publication** is a named configuration for publishing a message, including t
|
|
|
49
49
|
|
|
50
50
|
### Breaking Changes in Rascal@14
|
|
51
51
|
|
|
52
|
-
Rascal@
|
|
52
|
+
Rascal@14 waits for inflight messages to be acknowledged before closing subscriber channels. Prior to this version Rascal just waited an arbitary amount of time. If your application does not acknowledge a message for some reason (quite likely in tests) calling `subscription.cancel`, `broker.unsubscribeAll`, `broker.bounce`, `broker.shutdown` or `broker.nuke` will wait indefinitely. You can specify a `closeTimeout` in your subscription config, however if this is exceeded the `subscription.cancel` and `broker.unsubscribeAll` methods will yield an error via callback or rejection, while the `broker.bounce`, `broker.shutdown` and `broker.nuke` methods will emit an error event, but attempt to continue. In both cases the error will have a code of `ETIMEDOUT`.
|
|
53
53
|
|
|
54
54
|
### Special Note
|
|
55
55
|
|
|
@@ -696,7 +696,7 @@ Define any further configuration in an options block
|
|
|
696
696
|
}
|
|
697
697
|
```
|
|
698
698
|
|
|
699
|
-
To define a queue with
|
|
699
|
+
To define a queue with extensions such as `x-queue-type` add arguments to the options block, e.g.
|
|
700
700
|
|
|
701
701
|
```json
|
|
702
702
|
{
|
|
@@ -875,7 +875,7 @@ await broker.publish('p1', 'some message', {
|
|
|
875
875
|
|
|
876
876
|
The callback parameters are err (indicating the publication could not be found) and publication. Listen to the publication's "success" event to obtain confirmation that the message was successfully published (when using confirm channels) and the "error" event to handle errors. The "return" event will be emitted when the message was successfully published but not routed. It is possible to access the messageId from all handlers, either via the supplied messageId or the returned message itself (see below)
|
|
877
877
|
|
|
878
|
-
If you specify the "mandatory" option (or use Rascal's defaults) you can also listen for returned messages (i.e. messages that were not delivered to any queues)
|
|
878
|
+
If you specify the "mandatory" option (or use Rascal's defaults) you can also listen for returned messages (i.e. messages that were not delivered to any queues). Before a message is returned, you will still get the "success" event, since the message was successfully published. A common mistake is to resolve a promise from the "success" event handler and reject from the "return" event handler, since the latter would have no effect.
|
|
879
879
|
|
|
880
880
|
```js
|
|
881
881
|
broker.publish('p1', 'some message', (err, publication) => {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rascal",
|
|
3
|
-
"version": "14.4.
|
|
3
|
+
"version": "14.4.1",
|
|
4
4
|
"description": "A config driven wrapper for amqplib supporting multi-host connections, automatic error recovery, redelivery flood protection, transparent encryption / decryption, channel pooling and publication timeouts",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"async": "^3.2.
|
|
7
|
+
"async": "^3.2.3",
|
|
8
8
|
"debug": "^4.1.1",
|
|
9
9
|
"forward-emitter": "^0.1.1",
|
|
10
10
|
"generic-pool": "^3.7.1",
|