@amqp-contract/contract 0.20.0 → 0.21.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/README.md CHANGED
@@ -41,7 +41,7 @@ import {
41
41
  import { z } from "zod";
42
42
 
43
43
  // Event pattern: publisher broadcasts, consumers subscribe
44
- const ordersExchange = defineExchange("orders", "topic", { durable: true });
44
+ const ordersExchange = defineExchange("orders");
45
45
  const orderMessage = defineMessage(
46
46
  z.object({
47
47
  orderId: z.string(),
@@ -55,8 +55,8 @@ const orderCreatedEvent = defineEventPublisher(ordersExchange, orderMessage, {
55
55
  });
56
56
 
57
57
  // Multiple queues can consume the same event
58
- const orderQueue = defineQueue("order-processing", { durable: true });
59
- const analyticsQueue = defineQueue("analytics", { durable: true });
58
+ const orderQueue = defineQueue("order-processing");
59
+ const analyticsQueue = defineQueue("analytics");
60
60
 
61
61
  // Compose contract - exchanges, queues, bindings auto-extracted
62
62
  const contract = defineContract({