qrusty-client 0.15.1 → 0.16.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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -27,6 +27,10 @@ const client = new QrustyClient("http://localhost:6784");
27
27
  (async () => {
28
28
  await client.createQueue("orders", "MaxFirst", true);
29
29
  await client.publish("orders", 100, { order_id: 123 });
30
+
31
+ // Text priorities are also supported for queues with priority_kind: "Text"
32
+ await client.createQueue("tags", "MinFirst", true, "Text");
33
+ await client.publish("tags", "alpha", { tag: "first" });
30
34
  const msg = await client.consume("orders", "worker-1");
31
35
  if (msg) {
32
36
  await client.ack("orders", msg.id, "worker-1");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qrusty-client",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "description": "Node.js client for the qrusty priority queue server API.",
5
5
  "main": "index.js",
6
6
  "author": "Gordon Greene <greeng3@obscure-reference.com>",