rascal 14.2.1 → 14.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 14.3.0
4
+
5
+ - Clone config instead of freezing it so buffers will work - See https://github.com/guidesmiths/rascal/issues/92
6
+
3
7
  ## 14.2.1
4
8
 
5
9
  - Fix schema bug
@@ -47,7 +47,7 @@ function Broker(config, components) {
47
47
  const shutdownVhost = tasks.shutdownVhost;
48
48
  const bounceVhost = tasks.bounceVhost;
49
49
 
50
- this.config = config;
50
+ this.config = _.cloneDeep(config);
51
51
  this.promises = false;
52
52
 
53
53
  this._init = function (next) {
@@ -6,7 +6,6 @@ const uuid = require('uuid').v4;
6
6
  const baseline = require('./baseline');
7
7
  const fqn = require('./fqn');
8
8
  const XRegExp = require('xregexp');
9
- const freeze = require('deep-freeze');
10
9
 
11
10
  module.exports = _.curry((rascalConfig, next) => {
12
11
  rascalConfig = _.defaultsDeep(rascalConfig, baseline);
@@ -24,7 +23,7 @@ module.exports = _.curry((rascalConfig, next) => {
24
23
  err = _err;
25
24
  }
26
25
 
27
- return err ? next(err) : next(null, freeze(rascalConfig));
26
+ return err ? next(err) : next(null, rascalConfig);
28
27
 
29
28
  function configureVhosts(vhosts) {
30
29
  _.each(vhosts, (vhostConfig, name) => {
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "rascal",
3
- "version": "14.2.1",
3
+ "version": "14.3.0",
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
7
  "async": "^3.2.1",
8
8
  "debug": "^4.1.1",
9
- "deep-freeze": "0.0.1",
10
9
  "forward-emitter": "^0.1.1",
11
10
  "generic-pool": "^3.7.1",
12
11
  "lodash": "^4.17.21",