@byscott-io/where-is-waldo 0.1.7 → 0.1.9

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 +7 -1
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -238,7 +238,8 @@ See `docs/PRESENCE_ROSTER_PLAN.md` for the full mode matrix and tradeoffs.
238
238
  their live sessions (multiple browser tabs, mobile, etc.):
239
239
 
240
240
  ```
241
- { id: 7, status: "active", devices: { web: "idle", mobile: "active" } }
241
+ { id: 7, status: "active", devices: { web: "idle", mobile: "active" },
242
+ last_activity: "2026-07-27T15:23:04Z" }
242
243
  ```
243
244
 
244
245
  - `status` — highest activity across devices (the "active anywhere?" answer):
@@ -248,6 +249,11 @@ their live sessions (multiple browser tabs, mobile, etc.):
248
249
  - `offline` — no live sessions
249
250
  - `devices[platform]` — that platform's own status (answers "active on
250
251
  **mobile**?" vs. "active at all?").
252
+ - `last_activity` — ISO8601 timestamp of the most recent input across **all**
253
+ the subject's live sessions (`null` when offline). The roster only
254
+ broadcasts on `status` transitions, so subtract against your own clock to
255
+ derive seconds-idle and apply client-side thresholds without a server
256
+ `timeout` change: `(Date.now() - new Date(m.last_activity)) / 1000`.
251
257
 
252
258
  #### Configure
253
259
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byscott-io/where-is-waldo",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Real-time presence tracking for ActionCable with React hooks",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -42,7 +42,7 @@
42
42
  "jsdom": "^29.1.1",
43
43
  "react": "^19.2.8",
44
44
  "react-dom": "^19.2.8",
45
- "rollup": "^4.62.2",
45
+ "rollup": "^4.62.3",
46
46
  "rollup-plugin-esbuild": "^6.2.1",
47
47
  "start-server-and-test": "^3.0.11",
48
48
  "vitest": "^4.1.10"
@@ -72,7 +72,10 @@
72
72
  "resolutions": {
73
73
  "axios": "^1.18.0",
74
74
  "eslint/**/brace-expansion": "^1.1.16",
75
+ "js-yaml": "^4.3.1",
76
+ "postcss": "^8.5.26",
75
77
  "qs": "^6.15.2",
78
+ "undici": "^7.29.0",
76
79
  "systeminformation": "^5.31.17"
77
80
  }
78
81
  }