@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 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
@@ -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
- import { HonoMiddleware } from './models/HonoMiddleware';
5
- export type { HonoMiddleware };
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
@@ -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;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,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"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAQ7B,wFARZ,oBAAQ,OAQW;AAN5B,iFAA8E;AAMhC,yGANrC,mDAAwB,OAMqC;AALtE,iEAA8D;AAKhC,+FALrB,+BAAc,OAKqB"}
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,4 @@
1
+ import { ErrorFilter } from '@inversifyjs/http-core';
2
+ import { Context, HonoRequest } from 'hono';
3
+ export type HonoErrorFilter<TError = unknown> = ErrorFilter<TError, HonoRequest, Context, Response | undefined>;
4
+ //# sourceMappingURL=HonoErrorFilter.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=HonoErrorFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HonoErrorFilter.js","sourceRoot":"","sources":["../../../src/models/HonoErrorFilter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Guard } from '@inversifyjs/http-core';
2
+ import { HonoRequest } from 'hono';
3
+ export type HonoGuard = Guard<HonoRequest>;
4
+ //# sourceMappingURL=HonoGuard.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=HonoGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HonoGuard.js","sourceRoot":"","sources":["../../../src/models/HonoGuard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Interceptor } from '@inversifyjs/http-core';
2
+ import { Context, HonoRequest } from 'hono';
3
+ export type HonoInterceptor = Interceptor<HonoRequest, Context>;
4
+ //# sourceMappingURL=HonoInterceptor.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=HonoInterceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HonoInterceptor.js","sourceRoot":"","sources":["../../../src/models/HonoInterceptor.ts"],"names":[],"mappings":""}
@@ -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 };
@@ -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;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,QAAQ,IAAI,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,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": "3.3.0"
8
+ "@inversifyjs/http-core": "4.0.0"
9
9
  },
10
10
  "devDependencies": {
11
- "@stryker-mutator/core": "9.2.0",
12
- "@stryker-mutator/typescript-checker": "9.2.0",
13
- "@stryker-mutator/vitest-runner": "9.2.0",
14
- "@types/node": "24.9.1",
15
- "@vitest/coverage-v8": "4.0.4",
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.1",
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.4"
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.3",
52
- "inversify": "^7.10.3"
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": "3.3.0",
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",