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