@ttoss/http-server 0.5.8 → 0.5.9

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/README.md CHANGED
@@ -163,3 +163,4 @@ All exports are re-exported from established Koa ecosystem packages:
163
163
  - **`serve`** - [Koa static](https://github.com/koajs/static) for serving static files
164
164
  - **`addHealthCheck({ app, path? })`** - Adds a health endpoint (defaults to `/health`) returning `{ status: 'ok' }`
165
165
  - **`MulterFile`** (type) - File type for uploaded files
166
+ - **`RouterContext<StateT, ContextT>`** (type) - Generic Koa router context for type-safe route handlers
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ export { bodyParser } from '@koa/bodyparser';
2
2
  export { default as cors } from '@koa/cors';
3
3
  export { File as MulterFile, default as multer } from '@koa/multer';
4
4
  export * from '@koa/router';
5
- export { default as Router } from '@koa/router';
5
+ export { default as Router, RouterContext } from '@koa/router';
6
6
  import App from 'koa';
7
7
  export { default as App } from 'koa';
8
8
  export { default as serve } from 'koa-static';
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ export { bodyParser } from '@koa/bodyparser';
2
2
  export { default as cors } from '@koa/cors';
3
3
  export { File as MulterFile, default as multer } from '@koa/multer';
4
4
  export * from '@koa/router';
5
- export { default as Router } from '@koa/router';
5
+ export { default as Router, RouterContext } from '@koa/router';
6
6
  import App from 'koa';
7
7
  export { default as App } from 'koa';
8
8
  export { default as serve } from 'koa-static';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/http-server",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "HTTP Server for ttoss environment",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -37,7 +37,6 @@
37
37
  "@types/koa": "^3.0.1",
38
38
  "@types/koa__cors": "^5.0.1",
39
39
  "@types/koa__multer": "^2.0.8",
40
- "@types/koa__router": "^12.0.5",
41
40
  "@types/koa-static": "^4.0.4",
42
41
  "jest": "^30.3.0",
43
42
  "supertest": "^7.1.4",