@inversifyjs/http-fastify 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-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
+
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 { InversifyFastifyHttpAdapter } from './adapter/InversifyFastifyHttpAdapter';
2
- import { FastifyMiddleware } from './models/FastifyMiddleware';
3
- export type { FastifyMiddleware };
4
- export { InversifyFastifyHttpAdapter };
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
@@ -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.InversifyFastifyHttpAdapter = void 0;
4
- const InversifyFastifyHttpAdapter_1 = require("./adapter/InversifyFastifyHttpAdapter");
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
@@ -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 { FastifyReply, FastifyRequest } from 'fastify';
3
+ export type FastifyErrorFilter<TError = unknown> = ErrorFilter<TError, FastifyRequest, FastifyReply, void>;
4
+ //# sourceMappingURL=FastifyErrorFilter.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FastifyErrorFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FastifyErrorFilter.js","sourceRoot":"","sources":["../../../src/models/FastifyErrorFilter.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Guard } from '@inversifyjs/http-core';
2
+ import { FastifyRequest } from 'fastify';
3
+ export type FastifyGuard = Guard<FastifyRequest>;
4
+ //# sourceMappingURL=FastifyGuard.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FastifyGuard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FastifyGuard.js","sourceRoot":"","sources":["../../../src/models/FastifyGuard.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { Interceptor } from '@inversifyjs/http-core';
2
+ import { FastifyReply, FastifyRequest } from 'fastify';
3
+ export type FastifyInterceptor = Interceptor<FastifyRequest, FastifyReply>;
4
+ //# sourceMappingURL=FastifyInterceptor.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FastifyInterceptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FastifyInterceptor.js","sourceRoot":"","sources":["../../../src/models/FastifyInterceptor.ts"],"names":[],"mappings":""}
@@ -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 };
@@ -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
@@ -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": "3.2.0"
10
+ "@inversifyjs/http-core": "4.0.0"
11
11
  },
12
12
  "devDependencies": {
13
- "@stryker-mutator/core": "9.2.0",
14
- "@stryker-mutator/typescript-checker": "9.2.0",
15
- "@stryker-mutator/vitest-runner": "9.2.0",
16
- "@types/node": "24.7.2",
17
- "@vitest/coverage-v8": "3.2.4",
18
- "eslint": "9.37.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
+ "eslint": "9.38.0",
19
19
  "prettier": "3.6.2",
20
- "rimraf": "6.0.1",
21
- "rollup": "4.52.4",
20
+ "rimraf": "6.1.0",
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": "3.2.4"
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.2"
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": "3.2.0",
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",