@protobase/cli 0.133.9 → 0.133.10

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.
@@ -1,4 +1,4 @@
1
1
  //#region package.json
2
- var version = "0.133.9";
2
+ var version = "0.133.10";
3
3
  //#endregion
4
4
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/cli",
3
- "version": "0.133.9",
3
+ "version": "0.133.10",
4
4
  "description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -43,13 +43,13 @@
43
43
  "dependencies": {
44
44
  "@better-auth/core": "^1.7.12",
45
45
  "@hono/node-server": "^2.1.3",
46
- "@protobase/config": "0.133.9",
47
- "@protobase/layout": "0.133.9",
48
- "@protobase/query": "0.133.9",
49
- "@protobase/schema": "0.133.9",
50
- "@protobase/server": "0.133.9",
51
- "@protobase/ui": "0.133.9",
52
- "@protobase/workflows": "0.133.9",
46
+ "@protobase/config": "0.133.10",
47
+ "@protobase/layout": "0.133.10",
48
+ "@protobase/query": "0.133.10",
49
+ "@protobase/schema": "0.133.10",
50
+ "@protobase/server": "0.133.10",
51
+ "@protobase/ui": "0.133.10",
52
+ "@protobase/workflows": "0.133.10",
53
53
  "@react-email/render": "^2.1.0",
54
54
  "@scalar/hono-api-reference": "^0.12.10",
55
55
  "@sentry/vite-plugin": "^11.10.0",
@@ -24,5 +24,6 @@ The changes of each record, comments on it, and pages that refresh as records ch
24
24
  - [Organization-wide relay channels](../reference/realtime-relay.md#organization-wide-channels) (in development): One channel resource holds channels for the whole organization beside channels for the people they list, such as a chat's public and private channels: a record whose members field is null reaches everyone in its organization, and people who join or leave the organization join or leave its channels on their open sockets.
25
25
  - [Relay presence](../reference/realtime-relay.md#presence) (in development): The relay reports who comes online, goes away and goes offline; the app keeps it in a resource of its own, raises that resource's events, so workflows can act when someone goes offline, and tells the people who share a conversation with them, whose sidebar and members page show them online, away or offline.
26
26
  - [Relay in pages](../reference/realtime-relay.md#pages) (in development): Pages follow the relay on one socket: open views stay current from its notices and read again once after a reconnect, conversations show who types, sidebar groups say "typing…" and count unread messages without reading per message, also of a conversation the person was just added to, all by configuration; `client.relay` gives the same from code.
27
+ - [Relay over server-sent events](../reference/realtime-relay.md#pages) (in development): On a network that blocks WebSockets, pages connect to the relay over server-sent events by themselves and keep live updates, events and presence.
27
28
  - [Relay client events](../reference/realtime-relay.md#client-events) (in development): Each channel resource declares in the config the events its clients may send each other, such as typing, with a schema, a size and a rate.
28
29
  - [Broadcasts](../reference/channels.md#broadcasts) (beta): Apps on a record send each other short-lived events, such as typing, which are never stored, as JSON or as bytes, such as a chunk of audio or a drawing stroke; the app's own code sends them too, from an API function, over HTTP or [from SQL](../reference/channels.md#from-sql) with `channels.send()`.
@@ -192,7 +192,7 @@ client.relay.presence('away')
192
192
 
193
193
  | | |
194
194
  | --- | --- |
195
- | `follow(handlers)` | Hears every notice and event until the returned function is called. The first follower opens the socket and the last closes it. The socket connects with a fresh ticket each time, joins the relay's own topic and every channel the ticket lists, and each channel a `joined` event names, telling `onJoined` once it joined it, and connects again after a pause that grows with each failure, up to 30 seconds; an app that refuses a ticket with a client error, such as for a session that ended, ends it (`ended`). |
195
+ | `follow(handlers)` | Hears every notice and event until the returned function is called. The first follower opens the socket and the last closes it. The socket connects with a fresh ticket each time, joins the relay's own topic and every channel the ticket lists, and each channel a `joined` event names, telling `onJoined` once it joined it, and connects again after a pause that grows with each failure, up to 30 seconds; an app that refuses a ticket with a client error, such as for a session that ended, ends it (`ended`), as does a relay that closes it with code 1000. It tries a WebSocket first: when that fails before it opened, or does not open within 2.5 seconds, as on a network that blocks WebSockets, and none opened before, it connects over the relay's server-sent events at once instead, and stays on them until the page loads again. <gap>The relay protobase dev runs cannot take server-sent event connections because pinning a release of it that serves them is not implemented.</gap> |
196
196
  | `send(channel, event, payload)` | Sends a declared event to the channel's other sockets. Rejects with a `RelayRefusal` and the relay's reason, such as `rate_limited` or `event_not_allowed`, or `not_joined`. |
197
197
  | `direct(to, event, payload)` | Sends a declared direct event to every device of a person who shares a channel with the sender. |
198
198
  | `join(channel)` | Joins a channel the ticket did not list, such as one the person joined since, and again after each reconnect until the returned function is called. The socket stays in the channel until it next connects. |