@inversifyjs/http-fastify 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 +5 -4
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/models/FastifyErrorFilter.d.ts +4 -0
- package/lib/cjs/models/FastifyErrorFilter.d.ts.map +1 -0
- package/lib/cjs/models/FastifyErrorFilter.js +3 -0
- package/lib/cjs/models/FastifyErrorFilter.js.map +1 -0
- package/lib/cjs/models/FastifyGuard.d.ts +4 -0
- package/lib/cjs/models/FastifyGuard.d.ts.map +1 -0
- package/lib/cjs/models/FastifyGuard.js +3 -0
- package/lib/cjs/models/FastifyGuard.js.map +1 -0
- package/lib/cjs/models/FastifyInterceptor.d.ts +4 -0
- package/lib/cjs/models/FastifyInterceptor.d.ts.map +1 -0
- package/lib/cjs/models/FastifyInterceptor.js +3 -0
- package/lib/cjs/models/FastifyInterceptor.js.map +1 -0
- package/lib/esm/index.d.ts +8 -2
- package/lib/esm/index.d.ts.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @inversifyjs/http-fastify
|
|
2
2
|
|
|
3
|
+
## 4.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added `FastifyErrorFilter` type.
|
|
8
|
+
- Added `FastifyGuard` type.
|
|
9
|
+
- Added `FastifyInterceptor` 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,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export type {
|
|
4
|
-
export {
|
|
1
|
+
export { InversifyFastifyHttpAdapter } from './adapter/InversifyFastifyHttpAdapter';
|
|
2
|
+
export type { FastifyErrorFilter } from './models/FastifyErrorFilter';
|
|
3
|
+
export type { FastifyGuard } from './models/FastifyGuard';
|
|
4
|
+
export type { FastifyInterceptor } from './models/FastifyInterceptor';
|
|
5
|
+
export type { FastifyMiddleware } from './models/FastifyMiddleware';
|
|
5
6
|
//# 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,2BAA2B,EAAE,MAAM,uCAAuC,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.InversifyFastifyHttpAdapter = void 0;
|
|
4
|
-
|
|
4
|
+
var InversifyFastifyHttpAdapter_1 = require("./adapter/InversifyFastifyHttpAdapter");
|
|
5
5
|
Object.defineProperty(exports, "InversifyFastifyHttpAdapter", { enumerable: true, get: function () { return InversifyFastifyHttpAdapter_1.InversifyFastifyHttpAdapter; } });
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,qFAAoF;AAA3E,0IAAA,2BAA2B,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FastifyErrorFilter.d.ts","sourceRoot":"","sources":["../../../src/models/FastifyErrorFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,kBAAkB,CAAC,MAAM,GAAG,OAAO,IAAI,WAAW,CAC5D,MAAM,EACN,cAAc,EACd,YAAY,EACZ,IAAI,CACL,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FastifyErrorFilter.js","sourceRoot":"","sources":["../../../src/models/FastifyErrorFilter.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FastifyGuard.d.ts","sourceRoot":"","sources":["../../../src/models/FastifyGuard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FastifyGuard.js","sourceRoot":"","sources":["../../../src/models/FastifyGuard.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FastifyInterceptor.d.ts","sourceRoot":"","sources":["../../../src/models/FastifyInterceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,cAAc,EAAE,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FastifyInterceptor.js","sourceRoot":"","sources":["../../../src/models/FastifyInterceptor.ts"],"names":[],"mappings":""}
|
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Readable } from 'node:stream';
|
|
2
|
-
import { HttpAdapterOptions, InversifyHttpAdapter, HttpStatusCode, RouterParams, Middleware } from '@inversifyjs/http-core';
|
|
2
|
+
import { HttpAdapterOptions, InversifyHttpAdapter, HttpStatusCode, RouterParams, ErrorFilter, Guard, Interceptor, Middleware } from '@inversifyjs/http-core';
|
|
3
3
|
import { FastifyRequest, FastifyReply, HookHandlerDoneFunction, FastifyInstance } from 'fastify';
|
|
4
4
|
import { Container } from 'inversify';
|
|
5
5
|
|
|
@@ -25,7 +25,13 @@ declare class InversifyFastifyHttpAdapter extends InversifyHttpAdapter<FastifyRe
|
|
|
25
25
|
protected _buildRouter(routerParams: RouterParams<FastifyRequest, FastifyReply, (err?: Error) => void, void>): void;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
type FastifyErrorFilter<TError = unknown> = ErrorFilter<TError, FastifyRequest, FastifyReply, void>;
|
|
29
|
+
|
|
30
|
+
type FastifyGuard = Guard<FastifyRequest>;
|
|
31
|
+
|
|
32
|
+
type FastifyInterceptor = Interceptor<FastifyRequest, FastifyReply>;
|
|
33
|
+
|
|
28
34
|
type FastifyMiddleware = Middleware<FastifyRequest, FastifyReply, HookHandlerDoneFunction, void>;
|
|
29
35
|
|
|
30
36
|
export { InversifyFastifyHttpAdapter };
|
|
31
|
-
export type { FastifyMiddleware };
|
|
37
|
+
export type { FastifyErrorFilter, FastifyGuard, FastifyInterceptor, FastifyMiddleware };
|
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,2BAA2B,EAAE,MAAM,uCAAuC,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
|
@@ -7,22 +7,22 @@
|
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@fastify/cookie": "11.0.2",
|
|
9
9
|
"@fastify/formbody": "8.0.2",
|
|
10
|
-
"@inversifyjs/http-core": "
|
|
10
|
+
"@inversifyjs/http-core": "4.0.0"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@stryker-mutator/core": "9.
|
|
14
|
-
"@stryker-mutator/typescript-checker": "9.
|
|
15
|
-
"@stryker-mutator/vitest-runner": "9.
|
|
16
|
-
"@types/node": "24.9.
|
|
17
|
-
"@vitest/coverage-v8": "4.0.
|
|
13
|
+
"@stryker-mutator/core": "9.3.0",
|
|
14
|
+
"@stryker-mutator/typescript-checker": "9.3.0",
|
|
15
|
+
"@stryker-mutator/vitest-runner": "9.3.0",
|
|
16
|
+
"@types/node": "24.9.2",
|
|
17
|
+
"@vitest/coverage-v8": "4.0.6",
|
|
18
18
|
"eslint": "9.38.0",
|
|
19
19
|
"prettier": "3.6.2",
|
|
20
|
-
"rimraf": "6.0
|
|
20
|
+
"rimraf": "6.1.0",
|
|
21
21
|
"rollup": "4.52.5",
|
|
22
22
|
"ts-loader": "9.5.4",
|
|
23
23
|
"tslib": "2.8.1",
|
|
24
24
|
"typescript": "5.9.3",
|
|
25
|
-
"vitest": "4.0.
|
|
25
|
+
"vitest": "4.0.6"
|
|
26
26
|
},
|
|
27
27
|
"devEngines": {
|
|
28
28
|
"node": "^24.10.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"name": "@inversifyjs/http-fastify",
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"fastify": "^5.6.1",
|
|
54
|
-
"inversify": "^7.10.
|
|
54
|
+
"inversify": "^7.10.4"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"type": "git",
|
|
61
61
|
"url": "git+https://github.com/inversify/monorepo.git"
|
|
62
62
|
},
|
|
63
|
-
"version": "
|
|
63
|
+
"version": "4.0.0",
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "pnpm run build:cjs && pnpm run build:esm",
|
|
66
66
|
"build:cjs": "tsc --build tsconfig.cjs.json && pnpm exec foundation-ts-package-cjs ./lib/cjs",
|