@inversifyjs/http-hono 3.3.0 → 4.0.0
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/CHANGELOG.md +10 -0
- package/lib/cjs/index.d.ts +4 -2
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/models/HonoErrorFilter.d.ts +4 -0
- package/lib/cjs/models/HonoErrorFilter.d.ts.map +1 -0
- package/lib/cjs/models/HonoErrorFilter.js +3 -0
- package/lib/cjs/models/HonoErrorFilter.js.map +1 -0
- package/lib/cjs/models/HonoGuard.d.ts +4 -0
- package/lib/cjs/models/HonoGuard.d.ts.map +1 -0
- package/lib/cjs/models/HonoGuard.js +3 -0
- package/lib/cjs/models/HonoGuard.js.map +1 -0
- package/lib/cjs/models/HonoInterceptor.d.ts +4 -0
- package/lib/cjs/models/HonoInterceptor.d.ts.map +1 -0
- package/lib/cjs/models/HonoInterceptor.js +3 -0
- package/lib/cjs/models/HonoInterceptor.js.map +1 -0
- package/lib/esm/index.d.ts +8 -2
- package/lib/esm/index.d.ts.map +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @inversifyjs/http-hono
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added `HonoErrorFilter` type.
|
|
8
|
+
- Added `HonoGuard` type.
|
|
9
|
+
- Added `HonoInterceptor` type.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
- @inversifyjs/http-core@4.0.0
|
|
12
|
+
|
|
3
13
|
## 3.3.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Response } from '@inversifyjs/http-core';
|
|
2
2
|
import { InversifyHonoHttpAdapter } from './adapter/InversifyHonoHttpAdapter';
|
|
3
3
|
import { CorsMiddleware } from './middlewares/CorsMiddleware';
|
|
4
|
-
|
|
5
|
-
export type {
|
|
4
|
+
export type { HonoErrorFilter } from './models/HonoErrorFilter';
|
|
5
|
+
export type { HonoGuard } from './models/HonoGuard';
|
|
6
|
+
export type { HonoInterceptor } from './models/HonoInterceptor';
|
|
7
|
+
export type { HonoMiddleware } from './models/HonoMiddleware';
|
|
6
8
|
export { Response as Context, CorsMiddleware, InversifyHonoHttpAdapter };
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,CAAC"}
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAU7B,wFAVZ,oBAAQ,OAUW;AAR5B,iFAA8E;AAQhC,yGARrC,mDAAwB,OAQqC;AAPtE,iEAA8D;AAOhC,+FAPrB,+BAAc,OAOqB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HonoErrorFilter.d.ts","sourceRoot":"","sources":["../../../src/models/HonoErrorFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAE5C,MAAM,MAAM,eAAe,CAAC,MAAM,GAAG,OAAO,IAAI,WAAW,CACzD,MAAM,EACN,WAAW,EACX,OAAO,EACP,QAAQ,GAAG,SAAS,CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HonoErrorFilter.js","sourceRoot":"","sources":["../../../src/models/HonoErrorFilter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HonoGuard.d.ts","sourceRoot":"","sources":["../../../src/models/HonoGuard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HonoGuard.js","sourceRoot":"","sources":["../../../src/models/HonoGuard.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HonoInterceptor.d.ts","sourceRoot":"","sources":["../../../src/models/HonoInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HonoInterceptor.js","sourceRoot":"","sources":["../../../src/models/HonoInterceptor.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InversifyHttpAdapter, HttpAdapterOptions, RouterParams, HttpStatusCode, Middleware } from '@inversifyjs/http-core';
|
|
1
|
+
import { InversifyHttpAdapter, HttpAdapterOptions, RouterParams, HttpStatusCode, Middleware, ErrorFilter, Guard, Interceptor } from '@inversifyjs/http-core';
|
|
2
2
|
export { Response as Context } from '@inversifyjs/http-core';
|
|
3
3
|
import { Readable } from 'node:stream';
|
|
4
4
|
import { HonoRequest, Context, Next, Hono } from 'hono';
|
|
@@ -31,5 +31,11 @@ declare class CorsMiddleware implements HonoMiddleware {
|
|
|
31
31
|
execute(_request: HonoRequest, response: Context, next: Next): Promise<Response | undefined>;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
type HonoErrorFilter<TError = unknown> = ErrorFilter<TError, HonoRequest, Context, Response | undefined>;
|
|
35
|
+
|
|
36
|
+
type HonoGuard = Guard<HonoRequest>;
|
|
37
|
+
|
|
38
|
+
type HonoInterceptor = Interceptor<HonoRequest, Context>;
|
|
39
|
+
|
|
34
40
|
export { CorsMiddleware, InversifyHonoHttpAdapter };
|
|
35
|
-
export type { HonoMiddleware };
|
|
41
|
+
export type { HonoErrorFilter, HonoGuard, HonoInterceptor, HonoMiddleware };
|
package/lib/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9D,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,YAAY,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE9D,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
},
|
|
6
6
|
"description": "InversifyJs http hono package",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@inversifyjs/http-core": "
|
|
8
|
+
"@inversifyjs/http-core": "4.0.0"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"@stryker-mutator/core": "9.
|
|
12
|
-
"@stryker-mutator/typescript-checker": "9.
|
|
13
|
-
"@stryker-mutator/vitest-runner": "9.
|
|
14
|
-
"@types/node": "24.9.
|
|
15
|
-
"@vitest/coverage-v8": "4.0.
|
|
11
|
+
"@stryker-mutator/core": "9.3.0",
|
|
12
|
+
"@stryker-mutator/typescript-checker": "9.3.0",
|
|
13
|
+
"@stryker-mutator/vitest-runner": "9.3.0",
|
|
14
|
+
"@types/node": "24.9.2",
|
|
15
|
+
"@vitest/coverage-v8": "4.0.6",
|
|
16
16
|
"eslint": "9.38.0",
|
|
17
17
|
"prettier": "3.6.2",
|
|
18
|
-
"rimraf": "6.0
|
|
18
|
+
"rimraf": "6.1.0",
|
|
19
19
|
"rollup": "4.52.5",
|
|
20
20
|
"ts-loader": "9.5.4",
|
|
21
21
|
"tslib": "2.8.1",
|
|
22
22
|
"typescript": "5.9.3",
|
|
23
|
-
"vitest": "4.0.
|
|
23
|
+
"vitest": "4.0.6"
|
|
24
24
|
},
|
|
25
25
|
"devEngines": {
|
|
26
26
|
"node": "^24.10.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"name": "@inversifyjs/http-hono",
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"hono": "^4.10.
|
|
52
|
-
"inversify": "^7.10.
|
|
51
|
+
"hono": "^4.10.4",
|
|
52
|
+
"inversify": "^7.10.4"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"type": "git",
|
|
59
59
|
"url": "git+https://github.com/inversify/monorepo.git"
|
|
60
60
|
},
|
|
61
|
-
"version": "
|
|
61
|
+
"version": "4.0.0",
|
|
62
62
|
"scripts": {
|
|
63
63
|
"build": "pnpm run build:cjs && pnpm run build:esm",
|
|
64
64
|
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
|