@lunora/server 1.0.0-alpha.215 → 1.0.0-alpha.216

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/dist/index.d.mts CHANGED
@@ -1966,9 +1966,10 @@ interface LivePublishOptions {
1966
1966
  stream: string;
1967
1967
  }
1968
1968
  /**
1969
- * `ctx.live` — publish an arbitrary event to a named topic. The event fans out
1970
- * to the SSE subscribers of `options.stream` on the shard. WebSocket whisper
1971
- * members never receive it (see the live-stream docblock).
1969
+ * `ctx.live` — publish an arbitrary event to a named topic. The event reaches
1970
+ * the SSE subscribers of `options.stream` that followed the topic, and the
1971
+ * WebSocket whisper members that hold a live grant for that stream and topic
1972
+ * (see the live-stream docblock).
1972
1973
  *
1973
1974
  * Reachable from an HTTP-action ctx; an action (a scheduled job) publishes
1974
1975
  * through the same surface in-process (see the live-stream docblock).
@@ -1976,9 +1977,11 @@ interface LivePublishOptions {
1976
1977
  interface LivePublisher {
1977
1978
  /**
1978
1979
  * Publish `payload` to `topic` on `options.stream`. Best-effort — a topic
1979
- * with no subscribers is a no-op. Rejects when the shard refuses the publish
1980
- * (an oversized payload, or a room or route topic), so a silent drop is not
1981
- * possible.
1980
+ * with no subscribers is a no-op. Rejects when the shard refuses the publish:
1981
+ * a `room:` topic (403), a topic over the control-key bound (400), or a
1982
+ * payload over the publish cap (413), so a refused publish is not silently
1983
+ * dropped. On a target that does not serve live streams it rejects with
1984
+ * `LIVE_STREAMS_UNSUPPORTED`.
1982
1985
  */
1983
1986
  publish: (topic: string, payload: unknown, options: LivePublishOptions) => Promise<void>;
1984
1987
  }
package/dist/index.d.ts CHANGED
@@ -1966,9 +1966,10 @@ interface LivePublishOptions {
1966
1966
  stream: string;
1967
1967
  }
1968
1968
  /**
1969
- * `ctx.live` — publish an arbitrary event to a named topic. The event fans out
1970
- * to the SSE subscribers of `options.stream` on the shard. WebSocket whisper
1971
- * members never receive it (see the live-stream docblock).
1969
+ * `ctx.live` — publish an arbitrary event to a named topic. The event reaches
1970
+ * the SSE subscribers of `options.stream` that followed the topic, and the
1971
+ * WebSocket whisper members that hold a live grant for that stream and topic
1972
+ * (see the live-stream docblock).
1972
1973
  *
1973
1974
  * Reachable from an HTTP-action ctx; an action (a scheduled job) publishes
1974
1975
  * through the same surface in-process (see the live-stream docblock).
@@ -1976,9 +1977,11 @@ interface LivePublishOptions {
1976
1977
  interface LivePublisher {
1977
1978
  /**
1978
1979
  * Publish `payload` to `topic` on `options.stream`. Best-effort — a topic
1979
- * with no subscribers is a no-op. Rejects when the shard refuses the publish
1980
- * (an oversized payload, or a room or route topic), so a silent drop is not
1981
- * possible.
1980
+ * with no subscribers is a no-op. Rejects when the shard refuses the publish:
1981
+ * a `room:` topic (403), a topic over the control-key bound (400), or a
1982
+ * payload over the publish cap (413), so a refused publish is not silently
1983
+ * dropped. On a target that does not serve live streams it rejects with
1984
+ * `LIVE_STREAMS_UNSUPPORTED`.
1982
1985
  */
1983
1986
  publish: (topic: string, payload: unknown, options: LivePublishOptions) => Promise<void>;
1984
1987
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/server",
3
- "version": "1.0.0-alpha.215",
3
+ "version": "1.0.0-alpha.216",
4
4
  "description": "Server primitives for Lunora: defineSchema, defineTable, query, mutation, and action",
5
5
  "keywords": [
6
6
  "backend",
@@ -71,9 +71,9 @@
71
71
  },
72
72
  "dependencies": {
73
73
  "@lunora/errors": ">=1.0.0-alpha.51 <2.0.0-0",
74
- "@lunora/scheduler": "1.0.0-alpha.135",
75
- "@lunora/shard-engine": "1.0.0-alpha.138",
76
- "@lunora/values": "1.0.0-alpha.70",
74
+ "@lunora/scheduler": "1.0.0-alpha.136",
75
+ "@lunora/shard-engine": "1.0.0-alpha.139",
76
+ "@lunora/values": "1.0.0-alpha.71",
77
77
  "@lunora/wire": "1.0.0-alpha.1",
78
78
  "drizzle-orm": "^0.45.3",
79
79
  "hono": "^4.13.13"