@jsnw/nestjs-rabbitmq 1.2.1 → 1.2.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.
@@ -32,7 +32,21 @@ export type RabbitmqSubscribeParams = {
32
32
  queue: RabbitmqQueue;
33
33
  requeue?: boolean;
34
34
  concurrency?: number;
35
+ /** The client can request that messages be sent in advance so that when
36
+ * the client finishes processing a message, the following message is
37
+ * already held locally, rather than needing to be sent down the channel.
38
+ * Prefetching gives a performance improvement. This field specifies the
39
+ * prefetch window size in octets. The server will send a message in
40
+ * advance if it is equal to or smaller in size than the available prefetch
41
+ * size (and also falls into other prefetch limits). May be set to zero,
42
+ * meaning "no specific limit", although other prefetch limits may still
43
+ * apply. The prefetch-size is ignored if the no-ack option is set. */
35
44
  prefetchSize?: number;
45
+ /** Specifies a prefetch window in terms of whole messages. This field may
46
+ * be used in combination with the prefetch-size field; a message will only
47
+ * be sent in advance if both prefetch windows (and those at the channel
48
+ * and connection level) allow it. The prefetch-count is ignored if the
49
+ * no-ack option is set. */
36
50
  prefetchCount?: number;
37
51
  validation?: RabbitmqMessageValidation;
38
52
  autoStart?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsnw/nestjs-rabbitmq",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "NestJS module for RabbitMQ integration with decorator-based consumers, message validation, and dead-letter exchange support",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",