@super-line/server 0.10.0 → 0.10.1

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.cts CHANGED
@@ -273,8 +273,10 @@ interface ServerStoreHandle {
273
273
  type HandlersFor<S extends Directional> = {
274
274
  [K in keyof CtsOf<S>]: (input: ServerInput<CtsOf<S>[K]>, ctx: unknown, conn: Conn) => Awaitable<Output<CtsOf<S>[K]>>;
275
275
  };
276
+ /** Keys one plugin handles; a naked param so a multi-plugin `P[number]` union distributes per-plugin. */
277
+ type PluginHandledKeys<U> = U extends SuperLinePlugin<infer S> ? keyof CtsOf<S> & string : never;
276
278
  /** Union of the `clientToServer` keys handled across a plugin tuple `P` (subtracted from `implement`). */
277
- type HandledKeys<P extends readonly SuperLinePlugin<any>[]> = P[number] extends SuperLinePlugin<infer S> ? keyof CtsOf<S> & string : never;
279
+ type HandledKeys<P extends readonly SuperLinePlugin<any>[]> = PluginHandledKeys<P[number]>;
278
280
  /** Remove the plugin-handled keys `HK` from every block (each role + `shared`) of a {@link Handlers} map. */
279
281
  type SubtractHandlers<H, HK extends string> = {
280
282
  [B in keyof H]: Omit<H[B], HK>;
package/dist/index.d.ts CHANGED
@@ -273,8 +273,10 @@ interface ServerStoreHandle {
273
273
  type HandlersFor<S extends Directional> = {
274
274
  [K in keyof CtsOf<S>]: (input: ServerInput<CtsOf<S>[K]>, ctx: unknown, conn: Conn) => Awaitable<Output<CtsOf<S>[K]>>;
275
275
  };
276
+ /** Keys one plugin handles; a naked param so a multi-plugin `P[number]` union distributes per-plugin. */
277
+ type PluginHandledKeys<U> = U extends SuperLinePlugin<infer S> ? keyof CtsOf<S> & string : never;
276
278
  /** Union of the `clientToServer` keys handled across a plugin tuple `P` (subtracted from `implement`). */
277
- type HandledKeys<P extends readonly SuperLinePlugin<any>[]> = P[number] extends SuperLinePlugin<infer S> ? keyof CtsOf<S> & string : never;
279
+ type HandledKeys<P extends readonly SuperLinePlugin<any>[]> = PluginHandledKeys<P[number]>;
278
280
  /** Remove the plugin-handled keys `HK` from every block (each role + `shared`) of a {@link Handlers} map. */
279
281
  type SubtractHandlers<H, HK extends string> = {
280
282
  [B in keyof H]: Omit<H[B], HK>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-line/server",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "type": "module",
5
5
  "description": "Realtime data-bus server for super-line — requests, events, rooms, topics, stores, pluggable transports & adapters.",
6
6
  "license": "MIT",
@@ -68,15 +68,15 @@
68
68
  "zeromq": "^6.0.0",
69
69
  "zod": "^3.24.1",
70
70
  "zod-to-json-schema": "^3.25.2",
71
+ "@super-line/client": "0.8.0",
71
72
  "@super-line/adapter-zeromq": "0.5.0",
72
- "@super-line/plugin-inspector": "0.1.0",
73
73
  "@super-line/adapter-rabbitmq": "0.5.0",
74
- "@super-line/client": "0.8.0",
75
74
  "@super-line/adapter-redis": "0.5.0",
76
- "@super-line/adapter-libp2p": "0.6.0",
77
- "@super-line/transport-loopback": "0.5.0",
75
+ "@super-line/plugin-inspector": "0.1.0",
78
76
  "@super-line/transport-http": "0.5.0",
79
- "@super-line/transport-websocket": "0.6.0"
77
+ "@super-line/transport-websocket": "0.6.0",
78
+ "@super-line/transport-loopback": "0.5.0",
79
+ "@super-line/adapter-libp2p": "0.6.0"
80
80
  },
81
81
  "optionalDependencies": {
82
82
  "@standard-community/standard-json": "^0.3.5"