@emeryld/rrroutes-server 2.6.3 → 2.6.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.
@@ -0,0 +1,27 @@
1
+ import { type AnyLeafLowProfile, type HttpMethod } from '@emeryld/rrroutes-contract';
2
+ import type * as express from 'express';
3
+ import type { RouteServer } from './routesV3.server';
4
+ type BodyFilesMap = Record<string, express.Multer.File[] | undefined>;
5
+ export type BatchLeafEntryInput = {
6
+ encodedLeaf: string;
7
+ params?: unknown;
8
+ query?: unknown;
9
+ body?: unknown;
10
+ bodyFiles?: BodyFilesMap | undefined;
11
+ };
12
+ export type BatchLeafRequestBody = Record<string, BatchLeafEntryInput>;
13
+ export type BatchLeafOptions = {
14
+ method?: HttpMethod | Uppercase<HttpMethod>;
15
+ };
16
+ /**
17
+ * Register a batch endpoint that dispatches to existing registered route controllers.
18
+ * Request body shape:
19
+ * {
20
+ * [alias]: { encodedLeaf, params?, query?, body?, bodyFiles? }
21
+ * }
22
+ */
23
+ export declare function batchLeaf<R extends {
24
+ all: readonly AnyLeafLowProfile[];
25
+ byKey: Record<string, AnyLeafLowProfile>;
26
+ }, Ctx = unknown, Names extends string = string>(server: RouteServer<Ctx, Names>, path: string, registry: R, options?: BatchLeafOptions): express.Router;
27
+ export {};
@@ -302,28 +302,7 @@ export declare function bindAll<R extends {
302
302
  }, Ctx = unknown, Names extends string = string>(router: Router, registry: R, controllers: {
303
303
  [K in KeysOfRegistry<R>]: RouteDef<LeafFromKey<R, K>, Ctx, Names>;
304
304
  }, config: RouteServerConfig<Ctx, Names>): express.Router;
305
- export type BatchLeafEntryInput = {
306
- encodedLeaf: string;
307
- params?: unknown;
308
- query?: unknown;
309
- body?: unknown;
310
- bodyFiles?: BodyFilesMap | undefined;
311
- };
312
- export type BatchLeafRequestBody = Record<string, BatchLeafEntryInput>;
313
- export type BatchLeafOptions = {
314
- method?: HttpMethod | Uppercase<HttpMethod>;
315
- };
316
- /**
317
- * Register a batch endpoint that dispatches to existing registered route controllers.
318
- * Request body shape:
319
- * {
320
- * [alias]: { encodedLeaf, params?, query?, body?, bodyFiles? }
321
- * }
322
- */
323
- export declare function batchLeaf<R extends {
324
- all: readonly AnyLeafLowProfile[];
325
- byKey: Record<string, AnyLeafLowProfile>;
326
- }, Ctx = unknown, Names extends string = string>(server: RouteServer<Ctx, Names>, path: string, registry: R, options?: BatchLeafOptions): express.Router;
305
+ export { batchLeaf, type BatchLeafEntryInput, type BatchLeafOptions, type BatchLeafRequestBody, } from './routesV3.server.batch';
327
306
  /**
328
307
  * Helper for great IntelliSense when authoring controller maps.
329
308
  * @returns Function that enforces key names while preserving partial flexibility.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeryld/rrroutes-server",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -17,8 +17,8 @@
17
17
  "dist"
18
18
  ],
19
19
  "dependencies": {
20
- "@emeryld/rrroutes-contract": "^2.6.0",
21
- "jose": "^6.1.3",
20
+ "@emeryld/rrroutes-contract": "^2.6.4",
21
+ "jose": "^6.2.1",
22
22
  "multer": "1.4.5-lts.2",
23
23
  "socket.io": "^4.8.3",
24
24
  "zod": "^4.3.6"
@@ -27,8 +27,8 @@
27
27
  "express": "^5.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@jest/globals": "^30.2.0",
31
- "@types/multer": "^2.0.0"
30
+ "@jest/globals": "^30.3.0",
31
+ "@types/multer": "^2.1.0"
32
32
  },
33
33
  "repository": {
34
34
  "type": "git",