@byscott-io/where-is-waldo 0.1.3 → 0.1.5

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 +10 -0
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -120,6 +120,16 @@ WhereIsWaldo.configure do |config|
120
120
  config.roster_org = ->(user) { user.account }
121
121
  config.roster_members = ->(org) { org.users.active }
122
122
 
123
+ # Optional: skip presence registration for specific connections while
124
+ # keeping them subscribed for broadcasts. Return truthy to suppress. The
125
+ # subscriber still streams from where_is_waldo:subject:<id> and receives
126
+ # WhereIsWaldo.broadcast_to messages — they just don't count as present.
127
+ # Typical use: support-user impersonation tabs shouldn't light up as the
128
+ # impersonated user in teammates' rosters.
129
+ config.suppress_presence_proc = ->(connection) {
130
+ connection.request.session[:su_user].present?
131
+ }
132
+
123
133
  # Redis adapter
124
134
  # config.redis_client = Redis.new(url: ENV["REDIS_URL"])
125
135
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byscott-io/where-is-waldo",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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",
@@ -40,8 +40,8 @@
40
40
  "eslint-plugin-react": "^7.33.0",
41
41
  "eslint-plugin-react-hooks": "^7.1.1",
42
42
  "jsdom": "^29.1.1",
43
- "react": "^19.2.7",
44
- "react-dom": "^19.2.7",
43
+ "react": "^19.2.8",
44
+ "react-dom": "^19.2.8",
45
45
  "rollup": "^4.62.2",
46
46
  "rollup-plugin-esbuild": "^6.2.1",
47
47
  "start-server-and-test": "^3.0.11",