@silkweave/fastify 5.2.1 → 6.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/build/index.d.mts CHANGED
@@ -3,15 +3,13 @@ import { AdapterFactory } from "@silkweave/core";
3
3
  import { FastifyBaseLogger, FastifyHttpOptions } from "fastify";
4
4
  import { FastifyCorsOptions, FastifyCorsOptions as FastifyCorsOptions$1 } from "@fastify/cors";
5
5
  import { Server } from "http";
6
- //#region src/adapter/fastify.d.ts
7
- interface FastifyAdapterOptions extends FastifyHttpOptions<Server, FastifyBaseLogger> {
6
+ export interface FastifyAdapterOptions extends FastifyHttpOptions<Server, FastifyBaseLogger> {
8
7
  host?: string;
9
8
  port?: number;
10
9
  auth?: AuthConfig;
11
10
  /** CORS configuration. `false` to disable, `true`/`undefined` for permissive defaults, or a FastifyCorsOptions object. */
12
11
  cors?: FastifyCorsOptions$1 | boolean;
13
12
  }
14
- declare const fastify: AdapterFactory<FastifyAdapterOptions>;
15
- //#endregion
16
- export { FastifyAdapterOptions, type FastifyCorsOptions, fastify };
13
+ export declare const fastify: AdapterFactory<FastifyAdapterOptions>;
14
+ export type { FastifyCorsOptions };
17
15
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/adapter/fastify.ts"],"mappings":";;;;;;UA4DiB,8BAA8B,mBAAmB,QAAQ;EACxE;EACA;EACA,OAAO;;EAEP,OAAO;;cA2WI,SAAS,eAAe"}
1
+ {"version":3,"file":"index.d.mts","names":["FastifyCorsOptions"],"sources":["../src/adapter/fastify.ts"],"mappings":";;;;;iBA4DiB,8BAA8B,mBAAmB,QAAQ;EACxE;EACA;EACA,OAAO;;EAEP,OAAOA;;qBA2WI,SAAS,eAAe"}
package/build/index.mjs CHANGED
@@ -3,7 +3,7 @@ import { SilkweaveError, actionMethod, binarySchemaMeta, buildLogLevels, isBinar
3
3
  import { once } from "events";
4
4
  import { fastify as fastify$1 } from "fastify";
5
5
  import z from "zod/v4";
6
- //#region src/adapter/fastify.ts
6
+ // src/adapter/fastify.ts
7
7
  const PINO_LEVEL_MAP = {
8
8
  emergency: "fatal",
9
9
  alert: "fatal",
@@ -338,7 +338,6 @@ const fastify = ({ host, port, auth, cors: corsConfig, ...fastifyOptions }) => {
338
338
  };
339
339
  };
340
340
  };
341
- //#endregion
342
341
  export { fastify };
343
342
 
344
343
  //# sourceMappingURL=index.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@silkweave/fastify",
3
- "version": "5.2.1",
3
+ "version": "6.0.0",
4
4
  "description": "Silkweave Fastify REST Adapter",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.silkweave.dev",
@@ -30,8 +30,8 @@
30
30
  "@fastify/swagger": "^9.8.1",
31
31
  "fastify": "^5.11.3",
32
32
  "zod": "^3.25.0 || ^4.0.0",
33
- "@silkweave/auth": "5.2.1",
34
- "@silkweave/core": "5.2.1"
33
+ "@silkweave/auth": "6.0.0",
34
+ "@silkweave/core": "6.0.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@scalar/fastify-api-reference": "^1.49.0"
@@ -42,11 +42,11 @@
42
42
  }
43
43
  },
44
44
  "devDependencies": {
45
- "@scalar/fastify-api-reference": "^1.64.1",
46
- "@types/node": "^26.2.0",
47
- "rimraf": "^6.1.3",
48
- "tsdown": "^0.22.14",
49
- "tsx": "^4.23.12",
45
+ "@scalar/fastify-api-reference": "^1.77.0",
46
+ "@types/node": "^26.6.6",
47
+ "rimraf": "^6.1.4",
48
+ "tsdown": "^0.23.7",
49
+ "tsx": "^4.23.15",
50
50
  "typescript": "^7.0.2"
51
51
  },
52
52
  "scripts": {