@emeryld/rrroutes-server 2.4.0 → 2.4.2
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.cjs +55 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +55 -22
- package/dist/index.js.map +1 -1
- package/dist/sockets/socket.server.debug.d.ts +1 -0
- package/dist/sockets/socket.server.index.d.ts +5 -5
- package/dist/sockets/socket.server.sys.d.ts +2 -1
- package/package.json +4 -4
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { Socket } from 'socket.io';
|
|
2
1
|
import type { EventMap, Payload, SocketConnectionConfigOutput, SocketSchemaOutput } from '@emeryld/rrroutes-contract';
|
|
2
|
+
import type { Socket } from 'socket.io';
|
|
3
3
|
import type { SocketServerDebugEvent } from './socket.server.debug';
|
|
4
4
|
import type { HandlerCtxNoAck } from './socket.server.types';
|
|
5
5
|
export type SocketConnectionHelper<Events extends EventMap> = {
|
|
6
6
|
emit<K extends keyof Events & string>(event: K, payload: Payload<Events, K>, metadata?: Record<string, unknown>, onAck?: (ack: unknown) => void): void;
|
|
7
|
+
emit(event: string, payload: unknown, metadata?: Record<string, unknown>, onAck?: (ack: unknown) => void): void;
|
|
7
8
|
};
|
|
8
9
|
/** Heartbeat configuration that is not tied to payload shapes (which live in sys event schemas). */
|
|
9
10
|
export type HeartbeatServerOptions = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emeryld/rrroutes-server",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@emeryld/rrroutes-contract": "^2.5.
|
|
20
|
+
"@emeryld/rrroutes-contract": "^2.5.4",
|
|
21
21
|
"jose": "^6.1.3",
|
|
22
|
-
"socket.io": "^4.8.
|
|
23
|
-
"zod": "^4.1
|
|
22
|
+
"socket.io": "^4.8.3",
|
|
23
|
+
"zod": "^4.2.1"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"express": "^5.1.0"
|