rascal 16.1.0 → 16.1.2

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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 16.1.2
4
+
5
+ - Add consumer tag subscription option to JSON schema
6
+
7
+ ## 16.1.1
8
+
9
+ - Updated README
10
+ - Removed debug
11
+
3
12
  ## 16.1.0
4
13
 
5
14
  - Added concurrency option for managing RabbitMQ topology. Rascal will create and use upto this number of channels when asserting/checking/deleting/purging queues, exchanges and bindings.
package/README.md CHANGED
@@ -494,6 +494,20 @@ const components = { agent };
494
494
  const broker = await Broker.create(config, components);
495
495
  ```
496
496
 
497
+ #### concurrency
498
+
499
+ If you have a high number of exchanges, queues and bindings you may wish to initialise Rascal using multiple channels to improve startup time. Do this per vhost by setting the `concurrency` attribute to the number of channels you want to create and use.
500
+
501
+ ```json
502
+ {
503
+ "vhosts": {
504
+ "v1": {
505
+ "concurrency": 10
506
+ }
507
+ }
508
+ }
509
+ ```
510
+
497
511
  #### assert
498
512
 
499
513
  When set to true, Rascal will create the vhost if one doesn't exist using the RabbitMQ management API. This requires the [management plugin](https://www.rabbitmq.com/management.html) to be installed on the broker and for the management user to have necessary permissions.
@@ -1712,10 +1726,6 @@ is equivalent to...
1712
1726
  }
1713
1727
  ```
1714
1728
 
1715
- ### Concurrency
1716
-
1717
- If you have a high number of exchanges, queues and bindings you may wish to initialise Rascal using multiple channels to improve startup time. Do this per vhost by setting the `concurrency` option to the number of channels you want to create and use.
1718
-
1719
1729
  ### Connect
1720
1730
 
1721
1731
  Rascal is a rich pub/sub wrapper and as such hides much of the amqplib [channel api](https://www.squaremobius.net/amqp.node/channel_api.html#channel). If you need to access this you can programmatically establish a connection to a vhost as follows.
@@ -22,7 +22,6 @@ function assertExchange(channel, config, next) {
22
22
  debug('Asserting exchange: %s', config.fullyQualifiedName);
23
23
  channel.assertExchange(config.fullyQualifiedName, config.type, config.options, (err) => {
24
24
  if (err) return next(err);
25
- debug('Asserted exchange: %s', config.fullyQualifiedName);
26
25
  next();
27
26
  });
28
27
  }
@@ -619,6 +619,9 @@
619
619
  },
620
620
  "arguments": {
621
621
  "type": "object"
622
+ },
623
+ "consumerTag": {
624
+ "type": "string"
622
625
  }
623
626
  }
624
627
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rascal",
3
- "version": "16.1.0",
3
+ "version": "16.1.2",
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": {