@krisanalfa/bunest-adapter 0.3.0 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krisanalfa/bunest-adapter",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "High-performance Bun adapter for NestJS framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,10 +17,14 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "scripts": {
20
- "prebuild": "bun test",
20
+ "lint": "eslint",
21
+ "preknip": "bun run lint",
22
+ "knip": "knip",
23
+ "pretest": "bun run knip",
24
+ "test": "bun test",
25
+ "prebuild": "bun run test",
21
26
  "build": "bun run build.ts",
22
- "prepublishOnly": "bun run build",
23
- "test": "bun test"
27
+ "prepublishOnly": "bun run build"
24
28
  },
25
29
  "keywords": [
26
30
  "nestjs",
@@ -45,8 +49,8 @@
45
49
  "homepage": "https://github.com/krisanalfa/bunest#readme",
46
50
  "peerDependencies": {
47
51
  "@nestjs/common": "^11.1.11",
48
- "@nestjs/websockets": "^11.1.11",
49
- "@nestjs/core": "^11.1.11"
52
+ "@nestjs/core": "^11.1.11",
53
+ "@nestjs/websockets": "^11.1.11"
50
54
  },
51
55
  "dependencies": {
52
56
  "cors": "^2.8.5",
@@ -57,11 +61,15 @@
57
61
  "@thallesp/nestjs-better-auth": "^2.2.0",
58
62
  "@types/cors": "^2.8.19",
59
63
  "@types/helmet": "^4.0.0",
64
+ "@types/node": "^25.0.3",
60
65
  "@types/qs": "^6.14.0",
61
66
  "class-transformer": "^0.5.1",
62
67
  "class-validator": "^0.14.3",
68
+ "eventsource": "^4.1.0",
63
69
  "helmet": "^8.1.0",
64
- "rxjs": "^7.8.2"
70
+ "knip": "^5.79.0",
71
+ "rxjs": "^7.8.2",
72
+ "typescript": "^5.9.3"
65
73
  },
66
74
  "engines": {
67
75
  "bun": ">=1.3.0"
@@ -1,8 +0,0 @@
1
- import { CorsOptionsDelegate, CorsOptions as NestCorsOptions } from '@nestjs/common/interfaces/external/cors-options.interface.js';
2
- import { Serve, WebSocketHandler } from 'bun';
3
- import { BunRequest } from './bun.request.js';
4
- export interface WsOptions extends Pick<WebSocketHandler<unknown>, 'maxPayloadLength' | 'idleTimeout' | 'backpressureLimit' | 'closeOnBackpressureLimit' | 'sendPings' | 'publishToSelf' | 'perMessageDeflate'> {
5
- cors?: true | NestCorsOptions | CorsOptionsDelegate<BunRequest>;
6
- clientDataFactory?: (req: BunRequest) => unknown;
7
- }
8
- export type ServerOptions = Pick<Serve.Options<unknown>, 'development' | 'maxRequestBodySize' | 'idleTimeout' | 'id' | 'tls' | 'websocket' | 'port' | 'hostname'>;