@jskit-ai/realtime 0.2.46 → 0.2.47
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
- The realtime application pattern asks whether staging or production needs a Redis backplane, where it said the deployment.
|
|
5
6
|
- **Breaking.** The Redis backplane's address is read from `REALTIME_REDIS_URL`, the name the realtime guide, the `realtime/realtime-application` pattern and its `.env.example` give. It was read from `REDIS_URL`, so an app that set the documented name stayed on the in-process adapter, and each of its copies behind a load balancer delivered events only to the browsers connected to that copy. An app that set `REDIS_URL` for realtime sets `REALTIME_REDIS_URL` instead; `REDIS_NAMESPACE` is unchanged. The pattern's test now reads the name from the runtime, so the two cannot drift apart again.
|
|
6
7
|
- A publish to a user or workspace room no longer reads the memberships of every online actor. It asks each audience contributor about the actors of the sockets outside its target rooms only for those rooms' scopes, `resolveActorsScopes(actorIds, { scopes })`, and keeps only those rooms of the answer, while the actors already inside are looked up in full for their checks. A contributor that ignores `scopes` still answers correctly. Before, every write action read the memberships of every signed-in socket's actor, so the cost grew with everyone online, also for an event to one user.
|
|
7
8
|
- Since 0.2.20, an event a background job publishes (an action run with no request, so no request workspace) no longer reads its audience's `audienceUsers` in the `workspaceId` its payload names: with no workspace or user in its scope it reads with no context, so an audience over an owned table reaches nobody. Run the job's action with the workspace in its context (`context.workspace`, or a visibility scope naming it) so its audience reads there.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/realtime",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.47",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jskit test"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"socket.io-client": "^4.8.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@jskit-ai/kernel": "0.2.
|
|
27
|
+
"@jskit-ai/kernel": "0.2.28",
|
|
28
28
|
"vue": "^3.5.13"
|
|
29
29
|
},
|
|
30
30
|
"description": "Thin, generic realtime runtime wrappers for socket.io server and client.",
|
|
@@ -22,8 +22,8 @@ delivery semantics are clear. A single-process application does not need Redis.
|
|
|
22
22
|
## Product decisions
|
|
23
23
|
|
|
24
24
|
Decide which events are public contracts, their scopes and payloads, reconnect
|
|
25
|
-
behavior, whether a connection indicator belongs in the UI, and whether
|
|
26
|
-
|
|
25
|
+
behavior, whether a connection indicator belongs in the UI, and whether
|
|
26
|
+
staging or production needs a Redis backplane.
|
|
27
27
|
|
|
28
28
|
## Invariants
|
|
29
29
|
|