@inversifyjs/http-express-v4 3.2.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,23 @@
1
1
  # @inversifyjs/http-express-v4
2
2
 
3
+ ## 4.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Added `ExpressErrorFilter` type.
8
+ - Added `ExpressGuard` type.
9
+ - Added `ExpressInterceptor` type.
10
+ - Updated dependencies
11
+ - @inversifyjs/http-core@4.0.0
12
+
13
+ ## 3.3.0
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+ - @inversifyjs/http-core@3.3.0
19
+ - inversify@7.10.4
20
+
3
21
  ## 3.2.0
4
22
 
5
23
  ### Patch Changes
@@ -1,5 +1,6 @@
1
- import { InversifyExpressHttpAdapter } from './adapter/InversifyExpressHttpAdapter';
2
- import { ExpressMiddleware } from './models/ExpressMiddleware';
3
- export type { ExpressMiddleware };
4
- export { InversifyExpressHttpAdapter };
1
+ export { InversifyExpressHttpAdapter } from './adapter/InversifyExpressHttpAdapter';
2
+ export type { ExpressErrorFilter } from './models/ExpressErrorFilter';
3
+ export type { ExpressGuard } from './models/ExpressGuard';
4
+ export type { ExpressInterceptor } from './models/ExpressInterceptor';
5
+ export type { ExpressMiddleware } from './models/ExpressMiddleware';
5
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAEpF,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
package/lib/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InversifyExpressHttpAdapter = void 0;
4
- const InversifyExpressHttpAdapter_1 = require("./adapter/InversifyExpressHttpAdapter");
4
+ var InversifyExpressHttpAdapter_1 = require("./adapter/InversifyExpressHttpAdapter");
5
5
  Object.defineProperty(exports, "InversifyExpressHttpAdapter", { enumerable: true, get: function () { return InversifyExpressHttpAdapter_1.InversifyExpressHttpAdapter; } });
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uFAAoF;AAK3E,4GALA,yDAA2B,OAKA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qFAAoF;AAA3E,0IAAA,2BAA2B,OAAA"}
@@ -0,0 +1,4 @@
1
+ import { ErrorFilter } from '@inversifyjs/http-core';
2
+ import express from 'express';
3
+ export type ExpressErrorFilter<TError = unknown> = ErrorFilter<TError, express.Request, express.Response, void>;
4
+ //# sourceMappingURL=ExpressErrorFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressErrorFilter.d.ts","sourceRoot":"","sources":["../../../src/models/ExpressErrorFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,MAAM,kBAAkB,CAAC,MAAM,GAAG,OAAO,IAAI,WAAW,CAC5D,MAAM,EACN,OAAO,CAAC,OAAO,EACf,OAAO,CAAC,QAAQ,EAChB,IAAI,CACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ExpressErrorFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressErrorFilter.js","sourceRoot":"","sources":["../../../src/models/ExpressErrorFilter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Guard } from '@inversifyjs/http-core';
2
+ import express from 'express';
3
+ export type ExpressGuard = Guard<express.Request>;
4
+ //# sourceMappingURL=ExpressGuard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressGuard.d.ts","sourceRoot":"","sources":["../../../src/models/ExpressGuard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ExpressGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressGuard.js","sourceRoot":"","sources":["../../../src/models/ExpressGuard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Interceptor } from '@inversifyjs/http-core';
2
+ import express from 'express';
3
+ export type ExpressInterceptor = Interceptor<express.Request, express.Response>;
4
+ //# sourceMappingURL=ExpressInterceptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressInterceptor.d.ts","sourceRoot":"","sources":["../../../src/models/ExpressInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ExpressInterceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpressInterceptor.js","sourceRoot":"","sources":["../../../src/models/ExpressInterceptor.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { Readable } from 'node:stream';
2
- import { HttpAdapterOptions, InversifyHttpAdapter, RouterParams, HttpStatusCode, Middleware } from '@inversifyjs/http-core';
2
+ import { HttpAdapterOptions, InversifyHttpAdapter, RouterParams, HttpStatusCode, ErrorFilter, Guard, Interceptor, Middleware } from '@inversifyjs/http-core';
3
3
  import express, { Request, Response, NextFunction, Application } from 'express';
4
4
  import { Container } from 'inversify';
5
5
 
@@ -25,7 +25,13 @@ declare class InversifyExpressHttpAdapter extends InversifyHttpAdapter<Request,
25
25
  protected _getCookies(request: Request, _response: Response, parameterName?: string): unknown;
26
26
  }
27
27
 
28
+ type ExpressErrorFilter<TError = unknown> = ErrorFilter<TError, express.Request, express.Response, void>;
29
+
30
+ type ExpressGuard = Guard<express.Request>;
31
+
32
+ type ExpressInterceptor = Interceptor<express.Request, express.Response>;
33
+
28
34
  type ExpressMiddleware = Middleware<express.Request, express.Response, express.NextFunction, void>;
29
35
 
30
36
  export { InversifyExpressHttpAdapter };
31
- export type { ExpressMiddleware };
37
+ export type { ExpressErrorFilter, ExpressGuard, ExpressInterceptor, ExpressMiddleware };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,YAAY,EAAE,iBAAiB,EAAE,CAAC;AAElC,OAAO,EAAE,2BAA2B,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,uCAAuC,CAAC;AAEpF,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -6,24 +6,24 @@
6
6
  "description": "InversifyJs http express4 package",
7
7
  "dependencies": {
8
8
  "cookie-parser": "^1.4.7",
9
- "@inversifyjs/http-core": "3.2.0"
9
+ "@inversifyjs/http-core": "4.0.0"
10
10
  },
11
11
  "devDependencies": {
12
- "@stryker-mutator/core": "9.2.0",
13
- "@stryker-mutator/vitest-runner": "9.2.0",
14
- "@stryker-mutator/typescript-checker": "9.2.0",
15
- "@types/cookie-parser": "^1.4.9",
16
- "@types/express": "^4.17.23",
17
- "@types/node": "24.7.2",
18
- "@vitest/coverage-v8": "3.2.4",
19
- "eslint": "9.37.0",
12
+ "@stryker-mutator/core": "9.3.0",
13
+ "@stryker-mutator/vitest-runner": "9.3.0",
14
+ "@stryker-mutator/typescript-checker": "9.3.0",
15
+ "@types/cookie-parser": "^1.4.10",
16
+ "@types/express": "^4.17.25",
17
+ "@types/node": "24.9.2",
18
+ "@vitest/coverage-v8": "4.0.6",
19
+ "eslint": "9.38.0",
20
20
  "prettier": "3.6.2",
21
- "rimraf": "6.0.1",
22
- "rollup": "4.52.4",
21
+ "rimraf": "6.1.0",
22
+ "rollup": "4.52.5",
23
23
  "ts-loader": "9.5.4",
24
24
  "tslib": "2.8.1",
25
25
  "typescript": "5.9.3",
26
- "vitest": "3.2.4"
26
+ "vitest": "4.0.6"
27
27
  },
28
28
  "devEngines": {
29
29
  "node": "^24.10.0",
@@ -52,7 +52,7 @@
52
52
  "name": "@inversifyjs/http-express-v4",
53
53
  "peerDependencies": {
54
54
  "express": "^4.21.2",
55
- "inversify": "^7.10.2"
55
+ "inversify": "^7.10.4"
56
56
  },
57
57
  "publishConfig": {
58
58
  "access": "public"
@@ -61,7 +61,7 @@
61
61
  "type": "git",
62
62
  "url": "git+https://github.com/inversify/monorepo.git"
63
63
  },
64
- "version": "3.2.0",
64
+ "version": "4.0.0",
65
65
  "scripts": {
66
66
  "build": "pnpm run build:cjs && pnpm run build:esm",
67
67
  "build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",