rascal 13.1.2 → 14.1.0

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.
Files changed (67) hide show
  1. package/.husky/pre-commit +1 -1
  2. package/.prettierrc.json +4 -0
  3. package/CHANGELOG.md +214 -1
  4. package/README.md +606 -381
  5. package/examples/advanced/cluster.js +8 -8
  6. package/examples/advanced/config.js +121 -123
  7. package/examples/advanced/handlers/deleteUser.js +16 -17
  8. package/examples/advanced/handlers/saveUser.js +32 -33
  9. package/examples/advanced/index.js +85 -80
  10. package/examples/busy-publisher/config.js +19 -22
  11. package/examples/busy-publisher/index.js +11 -12
  12. package/examples/default-exchange/config.js +13 -13
  13. package/examples/default-exchange/index.js +22 -18
  14. package/examples/mocha/config.js +13 -15
  15. package/examples/mocha/test.js +34 -35
  16. package/examples/promises/config.js +15 -17
  17. package/examples/promises/index.js +14 -12
  18. package/examples/simple/config.js +21 -23
  19. package/examples/simple/index.js +20 -22
  20. package/index.js +1 -1
  21. package/lib/amqp/Broker.js +109 -84
  22. package/lib/amqp/BrokerAsPromised.js +40 -28
  23. package/lib/amqp/Publication.js +15 -14
  24. package/lib/amqp/PublicationSession.js +6 -7
  25. package/lib/amqp/SubscriberError.js +159 -124
  26. package/lib/amqp/SubscriberSession.js +87 -68
  27. package/lib/amqp/SubscriberSessionAsPromised.js +1 -3
  28. package/lib/amqp/Subscription.js +24 -22
  29. package/lib/amqp/Vhost.js +97 -71
  30. package/lib/amqp/tasks/applyBindings.js +9 -6
  31. package/lib/amqp/tasks/assertExchanges.js +9 -5
  32. package/lib/amqp/tasks/assertQueues.js +9 -5
  33. package/lib/amqp/tasks/assertVhost.js +20 -14
  34. package/lib/amqp/tasks/bounceVhost.js +1 -1
  35. package/lib/amqp/tasks/checkExchanges.js +9 -5
  36. package/lib/amqp/tasks/checkQueues.js +9 -5
  37. package/lib/amqp/tasks/checkVhost.js +20 -14
  38. package/lib/amqp/tasks/closeChannel.js +0 -1
  39. package/lib/amqp/tasks/createChannel.js +0 -1
  40. package/lib/amqp/tasks/createConnection.js +18 -15
  41. package/lib/amqp/tasks/deleteExchanges.js +9 -5
  42. package/lib/amqp/tasks/deleteQueues.js +9 -5
  43. package/lib/amqp/tasks/deleteVhost.js +19 -14
  44. package/lib/amqp/tasks/forewarnVhost.js +1 -1
  45. package/lib/amqp/tasks/initCounters.js +12 -8
  46. package/lib/amqp/tasks/initPublications.js +13 -9
  47. package/lib/amqp/tasks/initShovels.js +9 -5
  48. package/lib/amqp/tasks/initSubscriptions.js +12 -8
  49. package/lib/amqp/tasks/initVhosts.js +18 -14
  50. package/lib/amqp/tasks/nukeVhost.js +1 -1
  51. package/lib/amqp/tasks/purgeQueues.js +9 -5
  52. package/lib/amqp/tasks/purgeVhost.js +1 -1
  53. package/lib/amqp/tasks/shutdownVhost.js +1 -1
  54. package/lib/backoff/exponential.js +1 -2
  55. package/lib/backoff/index.js +1 -1
  56. package/lib/backoff/linear.js +2 -4
  57. package/lib/config/baseline.js +12 -23
  58. package/lib/config/configure.js +89 -41
  59. package/lib/config/tests.js +30 -27
  60. package/lib/config/validate.js +22 -3
  61. package/lib/counters/inMemoryCluster.js +33 -22
  62. package/lib/counters/index.js +1 -1
  63. package/lib/counters/stub.js +2 -3
  64. package/lib/management/Client.js +55 -0
  65. package/lib/utils/setTimeoutUnref.js +1 -1
  66. package/package.json +13 -4
  67. package/lib/management/client.js +0 -60
package/.husky/pre-commit CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/sh
2
2
  . "$(dirname "$0")/_/husky.sh"
3
3
 
4
- npm run lint && npm run test
4
+ npm run lint-staged && npm run test
@@ -0,0 +1,4 @@
1
+ {
2
+ "singleQuote": true,
3
+ "printWidth": 300
4
+ }
package/CHANGELOG.md CHANGED
@@ -1,454 +1,667 @@
1
1
  # Change Log
2
2
 
3
+ ## 14.1.0
4
+
5
+ - Adds support for custom user agents - See https://github.com/guidesmiths/rascal/issues/170
6
+
7
+ ## 14.0.1
8
+
9
+ - Fixes https://github.com/guidesmiths/rascal/issues/178
10
+
11
+ ## 14.0.0
12
+
13
+ - Rather than waiting an arbitrary time for channels to close when cancelling a subscription, Rascal now waits until any outstanding messages have been acknowledged. By default, Rascal will wait indefinitely, but this behaviour can be overriden by specifying a subscription.closeTimeout. If the timeout is exceeded following a direct call to `broker.unsubscribeAll` or `subscription.cancel` then an error will be yielded. If the timeout is exceeded following an indirect call to `subscription.cancel` (e.g. by `broker.shutdown`) then an error will be emitted but the operation will be allowed to continue.
14
+ - Messages which cannot be recovered by the republish or forward strategies are nacked resulting in message loss unless a dead letter is configured.
15
+
16
+ ## 13.1.4
17
+
18
+ - Fixed potential for returned messages cause the forward error strategy to yield twice
19
+ - Report returned messages from republish error strategy
20
+ - Tweak prettier rules
21
+
22
+ ## 13.1.3
23
+
24
+ - Fixed minor memory leak in recovery strategy loop
25
+ - Move to prettier
26
+ - Remove unnecessary eslint install from github
27
+
3
28
  ## 13.1.2
29
+
4
30
  - Fixed various issues when queue names contained period characters. Reported in https://github.com/guidesmiths/rascal/issues/166
5
31
 
6
32
  ## 13.1.1
33
+
7
34
  - Moved setMaxListeners to createConnection task to suppress misleading 'Possible EventEmitter memory leak detected' warning. See https://github.com/guidesmiths/rascal/issues/164 for more details.
8
35
 
9
36
  ## 13.1.0
37
+
10
38
  - Fixed bug where Rascal could wait indefinitely for channels to be destroyed if shutdown was called following a heartbeat timeout. See https://github.com/guidesmiths/rascal/issues/158 for more details.
11
39
 
12
40
  ## 13.0.6
41
+
13
42
  - Fixed bug where Rascal attempted to remove a listener from a nulled connection and crashed.
14
43
 
15
44
  ## 13.0.5
45
+
16
46
  - Set channel pool acquireTimeoutMillis in default configuration - thanks @matej-prokop
17
47
  - Add snyk package health badge
18
48
 
19
49
  ## 13.0.4
50
+
20
51
  - Fixed https://github.com/guidesmiths/rascal/issues/156
21
52
 
22
53
  ## 13.0.3
54
+
23
55
  - Bump dev deps
24
56
 
25
57
  ## 13.0.2
58
+
26
59
  - Fixed https://github.com/guidesmiths/rascal/issues/150
27
60
 
28
61
  ## 13.0.1
62
+
29
63
  - Improved readme
30
64
  - Update zUnit
31
65
 
32
66
  ## 13.0.0
67
+
33
68
  - Switched to eslint-config-esnext and updated style
34
69
  - Update production dependencies
35
70
  - Fix vhost management cluster support
36
71
 
37
72
  ## 12.0.4
73
+
38
74
  - Bump dev dependencies
39
75
  - Upgraded to husky 5
40
76
 
41
77
  ## 12.0.3
78
+
42
79
  - Fix https://github.com/guidesmiths/rascal/issues/141
43
80
  - Fix error message typos
44
81
  - Bump lodash
45
82
 
46
83
  ## 12.0.2
84
+
47
85
  - Exclude various files (including the 12M cc-test-reporter binary) from the npm package.
48
86
 
49
87
  ## 12.0.1
88
+
50
89
  - Moved from travis to github actions
51
90
  - Fix broker waiting indefinitely when shutdown is called after losing a connection. See [#126](https://github.com/guidesmiths/rascal/issues/126)
52
91
 
53
92
  ## 12.0.0
93
+
54
94
  - Removed node 8 support
55
95
 
56
96
  ## 11.0.1
97
+
57
98
  - Replaced mocha with zunit
58
99
 
59
100
  ## 11.0.0
101
+
60
102
  - Reworked tests to remove mocha --exit flag
61
103
  - Exposed partially initialied brokerAsPromised on the rejected error via a symbol
62
104
  - clear keep active interval on broker nuke
63
105
  - Updated engine >= 8.0.0
64
106
 
65
107
  ## 10.2.6
108
+
66
109
  ### Updated
110
+
67
111
  - Dependencies
68
112
  - Removing Synk
69
113
 
70
114
  ## 10.2.5
115
+
71
116
  ### Updated
117
+
72
118
  - Improved readme as per issue [#111](https://github.com/guidesmiths/rascal/issues/111)
73
119
 
74
120
  ### Fixed
121
+
75
122
  - Fixed issue [#123](https://github.com/guidesmiths/rascal/issues/123), where a race condition was causing channels to be closed twice. Thanks @cinnq346.
76
123
 
77
124
  ## 10.2.4
125
+
78
126
  ### Fixed
127
+
79
128
  - Fixed issue [#122](https://github.com/guidesmiths/rascal/issues/122), where error listeners were registered once, so repeated errors could bubble up and crash node
80
129
 
81
130
  ## 10.2.3
131
+
82
132
  ### Fixed
133
+
83
134
  - Fixed second part of issue [#121](https://github.com/guidesmiths/rascal/issues/121), where the generic-pool could cause tight loops and memory leaks
84
135
 
85
136
  ## 10.2.2
137
+
86
138
  ### Fixed
139
+
87
140
  - Fixed issue [#121](https://github.com/guidesmiths/rascal/issues/121), which caused rascals connection index to permanently increment rather than cycling back to 0. Consequently if all nodes in a cluster failed, Rascal could crash the application.
88
141
 
89
142
  ## 10.2.1
143
+
90
144
  ### Updated
145
+
91
146
  - Support amqplib 0.6.0
92
147
 
93
148
  ## 10.2.0
149
+
94
150
  ### Added
151
+
95
152
  - Added broker.getConnections()
96
153
 
97
154
  ### Updated
155
+
98
156
  - Updated dependencies
99
157
 
100
158
  ## 10.1.0
159
+
101
160
  ### Added
161
+
102
162
  - Added publication statistics
103
163
  - Support for node 14
104
164
 
105
165
  ## 10.0.1
166
+
106
167
  ### Updated
168
+
107
169
  - Set vhost max event listeners to inifinity (see https://github.com/guidesmiths/rascal/issues/99)
108
170
 
109
171
  ## 10.0.0
172
+
110
173
  ### Updated
174
+
111
175
  - Using rascal to consume messages published with broker.forward no longer restores original routing headers by default, unless used in the context of a recovery strategy. See the broker.forward section of the readme for more information.
112
176
 
113
177
  ## 9.4.0
178
+
114
179
  ### Added
180
+
115
181
  - vhost_initialised event
116
182
  - publication paused notifications
117
183
  - publication.abort
118
184
 
119
185
  ### Updated
186
+
120
187
  - broker error events now include vhost connection details
121
188
 
122
189
  ## 9.3.0
190
+
123
191
  ### Updated
192
+
124
193
  - [Fixed #78](https://github.com/guidesmiths/rascal/issues/78) by using a baseline config, and only laying connection options via withDefaultConfig
125
194
 
126
195
  ## 9.2.0
196
+
127
197
  ### Added
198
+
128
199
  - [Fixed #93](https://github.com/guidesmiths/rascal/issues/93) through use of setInterval to keep node process active in the event of broker restart.
129
200
 
130
201
  ### Updated
202
+
131
203
  - Dependencies
132
204
  - Patched lodash
133
205
  - Added snyk
134
206
 
135
207
  ## 9.1.3
208
+
136
209
  ### Updated
210
+
137
211
  - Fixed bug where channels were destroyed instead of returned to the pool
138
212
 
139
213
  ## 9.1.2
214
+
140
215
  ### Updated
216
+
141
217
  - Test to see whether setTimeout.unref is available before calling it
142
218
 
143
219
  ## 9.1.1
220
+
144
221
  ### Added
222
+
145
223
  - Expose cloned subscription config on session
146
224
 
147
225
  ## 9.1.0
226
+
148
227
  ### Added
228
+
149
229
  - Optionally promisify ackOrNack
150
230
 
151
231
  ## 9.0.0
232
+
152
233
  ### Updated
234
+
153
235
  - Broker functions (publish, forward, nuke, etc) no longer return the broker.
154
236
 
155
237
  ### Added
238
+
156
239
  - Added broker.subscribeAll
157
240
 
158
241
  ## 8.2.0
242
+
159
243
  ### Added
244
+
160
245
  - Publication timeouts (default value is 10 seconds).
161
246
 
162
247
  ## 8.1.0
248
+
163
249
  ### Updated
250
+
164
251
  - Fixed [#86](https://github.com/guidesmiths/rascal/issues/85)
165
252
  - Fixed [#84](https://github.com/guidesmiths/rascal/issues/84). Thanks @huikaihoo
166
253
 
167
254
  ### Added
255
+
168
256
  - Added a new subscription `subscribed` event
169
257
 
170
258
  ## 8.0.1
259
+
171
260
  ### Updated
261
+
172
262
  - emit error when publishFn err Channel closed as oer https://github.com/guidesmiths/rascal/pull/81. Thanks @zijin-m
173
263
 
174
264
  ## 8.0.0
265
+
175
266
  ### Updated
267
+
176
268
  - Drop support for Node 6
177
269
  - Updated dependencies as per https://github.com/guidesmiths/rascal/pull/75. Thanks @ravihara
178
270
 
179
271
  ## 7.0.0
272
+
180
273
  ### Updated
274
+
181
275
  - Rascal attempts to resubscribe following a consumer cancel. See the README for more details
182
276
  - Undocumented SubscriberSession.close function has been removed (Use .cancel instead)
183
277
 
184
278
  ## 6.0.3
279
+
185
280
  ### Fixed
281
+
186
282
  - Fixed [#72](https://github.com/guidesmiths/rascal/issues/72) which meant published messages waiting for a channel would be lost on connection error
187
283
 
188
284
  ## 6.0.2
285
+
189
286
  ### Fixed
287
+
190
288
  - Fixed bug that caused management credentials to be ignored. Thanks @juliendangers
191
289
 
192
290
  ## 6.0.1
291
+
193
292
  ### Updated
194
293
 
195
294
  ## 6.0.0
295
+
196
296
  - Improved channel pool management (includes a breaking config change - see https://github.com/guidesmiths/rascal#channel-pooling).
197
297
 
198
298
  ## 5.1.0
299
+
199
300
  ### Added
301
+
200
302
  - Added potential for flow control / throttling via broker 'busy' and 'ready' events.
201
303
 
202
304
  ## 5.0.0
305
+
203
306
  ### Updated
307
+
204
308
  - Wait for subscriber channels to be closed before shutting down the broker
205
309
  - Reduced default close channel deferral from 1 minute to 10 seconds in default config and from 1 minute to 100ms in test config
206
310
 
207
311
  ## 4.7.0
312
+
208
313
  ### Updated
314
+
209
315
  - Dependencies
210
316
 
211
317
  ### Added
318
+
212
319
  - Support for active/passive connection management
213
320
 
214
321
  ## 4.6.2
322
+
215
323
  ### Fixed
324
+
216
325
  - Fixed a bug where you could not re-initialise a vhost
217
326
 
218
327
  ## 4.6.1
328
+
219
329
  ### Added
330
+
220
331
  - Automated codeclimate reporting
221
332
 
222
333
  ### Fixed
334
+
223
335
  - Fixed a bug where the connection index could be undefined
224
336
 
225
337
  ## 4.6.0
338
+
226
339
  ### Updated
340
+
227
341
  - Fixes for #60 and #61. Thanks @rossj.
228
342
  - Depend on amqplib ^0.5.5
229
343
 
230
344
  ## 4.5.2
345
+
231
346
  ### Updated
347
+
232
348
  - Depend on version 0.5.3 of amqplib (peer) until https://github.com/squaremo/amqp.node/issues/534 is fixed
233
349
 
234
350
  ## 4.5.1
351
+
235
352
  ### Updated
353
+
236
354
  - Depend on version 0.5.3 of amqplib until https://github.com/squaremo/amqp.node/issues/534 is fixed
237
355
  - Update dependencies
238
356
 
239
357
  ## 4.5.0
358
+
240
359
  ### Updated
360
+
241
361
  - Replaced request with superagent. Thanks @ksnll
242
362
  - Updated dependencies
243
363
  - Added node 12 to travis config
244
364
 
245
365
  ## 4.4.0
366
+
246
367
  ### Updated
368
+
247
369
  - Throw error when using cluster based redeliveries counter outside of a cluster
248
370
 
249
371
  ## 4.3.1
372
+
250
373
  ### Updated
374
+
251
375
  - Dependencies
252
376
  - Moved amqplib to peer dependency
253
377
 
254
378
  ## Added
379
+
255
380
  - broker.connect(vhost)
256
381
 
257
382
  ## 4.2.1
383
+
258
384
  ### Updated
385
+
259
386
  - Dependencies
260
387
  - Fixed vararg related bug in Broker.create
261
388
 
262
389
  ## 4.2.2
390
+
263
391
  ### Updated
392
+
264
393
  - Updated various dev dependencies
265
394
  - Readme
266
395
  - Switched from istanbul to nyc
267
396
  - Fix flakey travis tests
268
397
 
269
398
  ## 4.2.1
399
+
270
400
  ### Updated
401
+
271
402
  - Updated lodash
272
403
 
273
404
  ## 4.2.0
405
+
274
406
  ### Added
407
+
275
408
  - Support for RabbitMQs default exchange
276
409
 
277
410
  ## 4.1.0
411
+
278
412
  ### Added
413
+
279
414
  - Publisher error events are passed the messageId where possible
280
415
 
281
416
  ## 4.0.0
417
+
282
418
  ### Updated
419
+
283
420
  - Improved connection failure error message
284
421
  - It is possible to go async between broker.subscribe and subscription.on('message'). This unlocks the possibility of promise support.
285
422
  - Support promises
286
423
  - Discourage use of broker.init
287
424
 
288
425
  ## 3.2.3
426
+
289
427
  ### Updated
428
+
290
429
  - Fix connection handler leak caused by re-subscription
291
430
  - Fix channel leak when channel.consume fails
292
431
  - amqplib version to 0.5.3
293
432
  - test on Node 11
294
433
 
295
434
  ## 3.2.2
435
+
296
436
  ### Added
437
+
297
438
  - Some additional debug
298
439
 
299
440
  ## 3.2.1
441
+
300
442
  ### Fixed
443
+
301
444
  - Catch and return encryption errors via publish callback
445
+
302
446
  ### Added
447
+
303
448
  - Assert vhosts into exhistence using the RabbitMQ management API
304
449
 
305
450
  ### Updated
451
+
306
452
  - Changed new Buffer() to Buffer.from to silence Node 10 deprecation warning
307
453
 
308
454
  ## 3.2.0
455
+
309
456
  ### Added
457
+
310
458
  - Transparent encryption / decryption
311
459
 
312
460
  ## 3.1.3
461
+
313
462
  ### Updated
463
+
314
464
  - Modernise code style
315
465
 
316
466
  ## 3.1.2
467
+
317
468
  ### Updated
469
+
318
470
  - Fix redelivery counter defaults
319
471
 
320
472
  ## 3.1.1
473
+
321
474
  ### Updated
475
+
322
476
  - Fix channelMax default
323
477
 
324
478
  ## 3.1.0
325
- ### Added
479
+
480
+ ### Added
481
+
326
482
  - Handling of redelivery counter errors and timeouts
327
483
 
328
484
  ## 3.0.0
485
+
329
486
  ### Updated
487
+
330
488
  - Using lodash defaultsDeep instead of merge-defaults (fixes hoek vulnerability). The behaviour seems consistent but releasing as a breaking change as a precaution.
331
489
  - Unqualified default publications and subscriptions are no longer supported. See https://github.com/guidesmiths/rascal/issues/20
332
490
  - Testing on node 10
333
491
 
334
492
  ## 2.12.2
493
+
335
494
  ### Updated
495
+
336
496
  - Update dependencies (fixes hoek vulnerability)
337
497
 
338
498
  ## 2.12.1
499
+
339
500
  ### Updated
501
+
340
502
  - Fixed bug that prevented publication from emitting channel errors
341
503
 
342
504
  ## 2.12.0
505
+
343
506
  ### Updated
507
+
344
508
  - Update dependencies
345
509
  - Update dev dependencies
346
510
 
347
511
  ## 2.11.3
512
+
348
513
  ### Updated
514
+
349
515
  - npm issue
350
516
 
351
517
  ## 2.11.2
518
+
352
519
  ### Updated
520
+
353
521
  - npm issue
354
522
 
355
523
  ## 2.11.1
524
+
356
525
  ### Fixed
526
+
357
527
  - Fixed undefined error in Vhost.bounce
358
528
 
359
529
  ## 2.11.0
530
+
360
531
  ### Fixed
532
+
361
533
  - Support for queue and exchange names containeing period and hyphens
362
534
 
363
535
  ## 2.10.0
536
+
364
537
  ### Fixed
538
+
365
539
  - Workaround for non deterministic amqplib channel handling, see https://github.com/squaremo/amqp.node/issues/388
366
540
 
367
541
  ## 2.9.0
542
+
368
543
  ### Fixed
544
+
369
545
  - Randomising vhost connections on startup rather than on each connection request
370
546
 
371
547
  ## 2.8.0
548
+
372
549
  ### Fixed
550
+
373
551
  - Workaround for non deterministic amqplib connection handling, see https://github.com/squaremo/amqp.node/issues/388
374
552
 
375
553
  ## 2.7.0
554
+
376
555
  ### Added
556
+
377
557
  - AckOrNack emits/returns an error if an attempt was made to ack/nack a message using a closed channel
378
558
  - Adjusting default connection_timeout and channel_max url parameters
379
559
 
380
560
  ## 2.6.0
561
+
381
562
  ### Added
563
+
382
564
  - Exponential backoff for re-connections and channel re-subscriptions
383
565
  - Fixed typo in deprecation warning
384
566
 
385
567
  ## 2.5.0
568
+
386
569
  ### Fixed
570
+
387
571
  - Subscriber session could attempt to ack/nack messages using a closed channel. Leaving the channel open for 1 minute after cancelling subscription.
388
572
 
389
573
  ## 2.4.0
574
+
390
575
  ### Added
576
+
391
577
  - Socket options can be specified in the vhost connection configuration. Connection timeout defaults to 1 minute.
392
578
 
393
579
  ## 2.3.2
580
+
394
581
  ### Updated
582
+
395
583
  - Use self instead of this for code which called broker.nuke without binding context
396
584
 
397
585
  ## 2.3.1
586
+
398
587
  ### Updated
588
+
399
589
  - Updated dependences
400
590
 
401
591
  ## 2.3.0
592
+
402
593
  ### Added
594
+
403
595
  - Broker.unsubscribeAll to remove subscriptons. Mostly useful for automated tests
404
596
 
405
597
  ## 2.2.0
598
+
406
599
  ### Added
600
+
407
601
  - Decorate inbound messages with originalVhost header
408
602
 
409
603
  ## 2.1.0
604
+
410
605
  ### Added
606
+
411
607
  - Default publications and subscriptions are marked with an autoCreated flag
412
608
 
413
609
  ### Changed
610
+
414
611
  - Default publications and subscriptions are are qualified with the vhost
415
612
 
416
613
  ### Deprecated
614
+
417
615
  - Unqualified publications and subscriptions have been deprecated. A console.warn is logged once per subscription and publication but can be disabled by setting RASCAL_DISABLE_ALL_DEPRECATION_WARNINGS=true or RASCAL_DISABLE_UNQUALIFIED_NAME_DEPRECATION_WARNING=true
418
616
 
419
617
  ## 2.0.0
618
+
420
619
  ### Fixed
620
+
421
621
  - Connection pool was leaking connections following a connection error. With a pool size of 1, this locked up all publishers
422
622
  - Listening to close and error events caused multiple channels to be created which appears to result in an unknown delivery tag error. See https://github.com/squaremo/amqp.node/issues/271
423
623
  - Incorrect documenation said to listen for invalid_content, but in reality the event was invalid_message. Now emitting invalid_message only if invalid_content is not handled.
424
624
  - Fixed examples
425
625
 
426
626
  ## 1.4.1
627
+
427
628
  ### Fixed
629
+
428
630
  - confirmPoolSize option as per https://github.com/guidesmiths/rascal/pull/19
429
631
 
430
632
  ## 1.4.0
633
+
431
634
  ### Added
635
+
432
636
  - Listing to connection close events as per #18
433
637
  - Fixed bug with configuration which caused vhost config errors to be masked
434
638
 
435
639
  ## 1.3.1
640
+
436
641
  ### Added
642
+
437
643
  - Channel pooling (makes publishing much faster)
438
644
 
439
645
  ### Updated
646
+
440
647
  - Dependencies
441
648
 
442
649
  ## 1.2.1
650
+
443
651
  ### Updated
652
+
444
653
  - Used wrong argument in callback
445
654
 
446
655
  ## 1.2.0
656
+
447
657
  ### Added
658
+
448
659
  - Workaround for https://github.com/guidesmiths/rascal/issues/17
449
660
 
450
661
  ## 1.1.0
662
+
451
663
  ### Added
664
+
452
665
  - This changelog
453
666
  - License
454
667
  - Badges