@zerotal/broadcasting 1.7.4 → 1.7.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.
- package/api-surface.md +0 -14
- package/package.json +2 -2
package/api-surface.md
CHANGED
|
@@ -104,14 +104,6 @@ class BroadcastProviderNotRegisteredError = {
|
|
|
104
104
|
readonly status: number
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
class ChannelRegistry = {
|
|
108
|
-
new (): ChannelRegistry
|
|
109
|
-
all: () => { pattern: string; paramNames: string[];}[]
|
|
110
|
-
authorize: (channelName: string, user: unknown) => Promise<AuthorizeResult>
|
|
111
|
-
clear: () => void
|
|
112
|
-
register: <User = unknown>(pattern: string, callback: ChannelCallback<User>) => void
|
|
113
|
-
}
|
|
114
|
-
|
|
115
107
|
class MissingChannelParameterError = {
|
|
116
108
|
new (key: string): MissingChannelParameterError
|
|
117
109
|
readonly code: string
|
|
@@ -191,20 +183,14 @@ class TypedBroadcastManager = {
|
|
|
191
183
|
wsHandlers: { open: (ws: Bun.ServerWebSocket<WsConnectionData>) => void; message: (ws: Bun.ServerWebSocket<WsConnectionData>, msg: string | Uint8Array) => undefined; close: (ws: Bun.ServerWebSocket<WsConnectionData>) => void;}
|
|
192
184
|
}
|
|
193
185
|
|
|
194
|
-
const channelRegistry = ChannelRegistry
|
|
195
|
-
|
|
196
186
|
function broadcast = (event: BroadcastEvent) => PendingBroadcast
|
|
197
187
|
|
|
198
188
|
function BroadcastConfig = (overrides?: Partial<BroadcastConfigShape>) => BroadcastConfigShape
|
|
199
189
|
|
|
200
|
-
function broadcastOnce = (event: BroadcastEvent) => void
|
|
201
|
-
|
|
202
190
|
function broadcastsModelEvents = <M extends object>(ModelClass: ModelClassWithEvents<M>, options: BroadcastsModelEventsOptions<M>) => void
|
|
203
191
|
|
|
204
192
|
function channel = (name: string) => string
|
|
205
193
|
|
|
206
|
-
function compileChannelPattern = (pattern: string) => { regex: RegExp; paramNames: string[];}
|
|
207
|
-
|
|
208
194
|
function isPrivateChannel = (name: string) => boolean
|
|
209
195
|
|
|
210
196
|
function presenceChannel = (name: string) => string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zerotal/broadcasting",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"maturity": "stable",
|
|
6
6
|
"private": false,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typecheck": "tsc --noEmit"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@zerotal/core": "1.7.
|
|
33
|
+
"@zerotal/core": "1.7.5"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"typescript": "^5.8.0"
|