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