@voltro/plugin-notifications 0.69.1 → 0.71.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 (3) hide show
  1. package/CHANGELOG.md +1369 -111
  2. package/dist/index.js +1 -1
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -1078,7 +1078,7 @@ var F = class extends _.TaggedError()("PushTokenRejected", {
1078
1078
  description: "Recent delivery records (newest first) + per-channel + per-status counts.",
1079
1079
  handler: () => g.promise(async () => {
1080
1080
  let e = await b.listDeliveries({ limit: 200 }), t = {}, n = 0, r = 0;
1081
- for (let i of e) t[i.channel] = (t[i.channel] ?? 0) + 1, i.status === "sent" ? n++ : r++;
1081
+ for (let i of e) t[i.channel] = (t[i.channel] ?? 0) + 1, i.status === "sent" ? n++ : i.status === "failed" && r++;
1082
1082
  let i = e.slice(0, 100).map(({ clickToken: e, ...t }) => t);
1083
1083
  return j({
1084
1084
  deliveries: i,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-notifications",
3
- "version": "0.69.1",
3
+ "version": "0.71.0",
4
4
  "description": "One unified notification surface — email, Slack/webhook, SMS, push, in-app — with per-subject preference routing, an in-app inbox, and a delivery log. NotificationService + typed routes + useInbox/useUnreadCount hooks.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -44,9 +44,9 @@
44
44
  "node": ">=24.0.0"
45
45
  },
46
46
  "dependencies": {
47
- "@voltro/client": "0.69.1",
48
- "@voltro/database": "0.69.1",
49
- "@voltro/protocol": "0.69.1"
47
+ "@voltro/client": "0.71.0",
48
+ "@voltro/database": "0.71.0",
49
+ "@voltro/protocol": "0.71.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "effect": "^3.22.1",