@ultimat3/notify 31.31.0 → 31.33.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/notify",
3
- "version": "31.31.0",
3
+ "version": "31.33.0",
4
4
  "description": "Notifications: one declaration, many channels — fan-out, preference gate, digest window, delivery ledger, in-app inbox",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -46,12 +46,12 @@
46
46
  "test": "bun test"
47
47
  },
48
48
  "dependencies": {
49
- "@ultimat3/action": "31.31.0",
50
- "@ultimat3/core": "31.31.0",
51
- "@ultimat3/i18n": "31.31.0",
52
- "@ultimat3/jobs": "31.31.0",
53
- "@ultimat3/policy": "31.31.0",
54
- "@ultimat3/schema": "31.31.0",
55
- "@ultimat3/time": "31.31.0"
49
+ "@ultimat3/action": "31.33.0",
50
+ "@ultimat3/core": "31.33.0",
51
+ "@ultimat3/i18n": "31.33.0",
52
+ "@ultimat3/jobs": "31.33.0",
53
+ "@ultimat3/policy": "31.33.0",
54
+ "@ultimat3/schema": "31.33.0",
55
+ "@ultimat3/time": "31.33.0"
56
56
  }
57
57
  }
@@ -102,6 +102,7 @@ async function eachDevice(
102
102
  }
103
103
  if (error.code === 'X_NOTIFY_PUSH_DEVICE_GONE') {
104
104
  await devices.remove(device.platform, device.token);
105
+ // info: a rare outcome — the provider retired this device and its row was deleted; the only record of why.
105
106
  logger.info('notify.push.gone', { code: error.code, cause: error.cause });
106
107
  continue;
107
108
  }
@@ -118,6 +119,7 @@ async function eachDevice(
118
119
  (await devices.noteBadToken(device.platform, device.token)) >= PUSH_BAD_TOKEN_LIMIT
119
120
  ) {
120
121
  await devices.remove(device.platform, device.token);
122
+ // info: a rare outcome — a token refused PUSH_BAD_TOKEN_LIMIT times was deleted; the only record of why.
121
123
  logger.info('notify.push.bad_token_removed', { code: error.code, cause: error.cause });
122
124
  }
123
125
  }
@@ -18,8 +18,12 @@ export interface NativeTransportDeps {
18
18
  readonly deadlineMs: number;
19
19
  }
20
20
 
21
- /** The platform's `fetch`, read per call so a test's sealed network sees it. */
22
- export const platformFetch: OutboundFetch = (url, init) => fetch(url, init);
21
+ /**
22
+ * The platform's `fetch`, read per call so a test's sealed network sees it. `outbound()` hands every
23
+ * hop its deadline signal in `init`; it is forwarded by name so the hop cannot outlive the call.
24
+ */
25
+ export const platformFetch: OutboundFetch = (url, init) =>
26
+ fetch(url, { ...init, signal: init.signal ?? null });
23
27
 
24
28
  /**
25
29
  * APNs speaks HTTP/2 only; an HTTP/1.1 request is a malformed response. Bun's `fetch` negotiates it