@natsail/effect 0.2.0 → 0.2.1

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 +2 -1
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -147,12 +147,13 @@ const worker = runJetStreamProcessor(
147
147
  start: 'all',
148
148
  codec: emailJobCodec,
149
149
  maxAckPending: 32,
150
+ recovery: { delayMs: 500 },
150
151
  },
151
152
  (delivery) => sendEmail(delivery.value)
152
153
  )
153
154
  ```
154
155
 
155
- The package waits for the handler Effect before the underlying processor acknowledges the message. Typed application failures remain typed Effect failures; connection, consumer-contract, and processor lifecycle failures use `NatsailJetStreamError`.
156
+ The package waits for the handler Effect before the underlying processor acknowledges the message. Package-owned recovery reopens the named consumer after infrastructure failures while preserving its acknowledgement floor. Typed application failures remain terminal typed Effect failures; consumer-contract and final processor lifecycle failures use `NatsailJetStreamError`.
156
157
 
157
158
  ## Service and request/reply
158
159
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natsail/effect",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Scoped Effect v4 Streams for Core NATS, JetStream, and shared sessions.",
5
5
  "keywords": [
6
6
  "nats",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@natsail/session": "^0.3.0",
43
- "@natsail/jetstream": "^0.3.0",
44
- "@natsail/core": "^0.2.1"
43
+ "@natsail/core": "^0.2.1",
44
+ "@natsail/jetstream": "^0.4.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "effect": "4.0.0-rc.112"