@asenajs/asena 0.6.2 → 0.6.3

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/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  # Asena
6
6
 
7
- [![Version](https://img.shields.io/badge/version-0.6.2-blue.svg)](https://asena.sh)
7
+ [![Version](https://img.shields.io/badge/version-0.6.3-blue.svg)](https://asena.sh)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
9
9
  [![Bun Version](https://img.shields.io/badge/Bun-1.3.2%2B-blueviolet)](https://bun.sh)
10
10
 
@@ -1,6 +1,27 @@
1
1
  import type { ServeOptions } from 'bun';
2
2
  import type { WSOptions } from '../../server/web/websocket';
3
- export type AsenaServerOptions = ServeOptions;
3
+ /**
4
+ * AsenaServerOptions excludes framework-managed properties from Bun's ServeOptions.
5
+ *
6
+ * Excluded properties (managed internally by AsenaJS):
7
+ * - `fetch`: Managed by HTTP adapter (e.g., HonoAdapter)
8
+ * - `routes`: Managed by AsenaJS routing decorators (@Get, @Post, etc.)
9
+ * - `websocket`: Managed by AsenaWebsocketAdapter
10
+ * - `error`: Managed through AsenaConfig.onError()
11
+ *
12
+ * Available options include:
13
+ * - Network: `hostname`, `port`, `unix`, `reusePort`, `ipv6Only`
14
+ * - Security: `tls`
15
+ * - Performance: `maxRequestBodySize`, `idleTimeout`
16
+ * - Development: `development`, `id`
17
+ */
18
+ export type AsenaServerOptions = Omit<ServeOptions, 'fetch' | 'routes' | 'websocket' | 'error'>;
19
+ /**
20
+ * Complete configuration for AsenaJS server.
21
+ *
22
+ * @property serveOptions - Bun server options (excluding framework-managed properties)
23
+ * @property wsOptions - AsenaJS WebSocket-specific options
24
+ */
4
25
  export interface AsenaServeOptions {
5
26
  serveOptions?: AsenaServerOptions;
6
27
  wsOptions?: WSOptions;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asenajs/asena",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "author": "LibirSoft",
5
5
  "repository": {
6
6
  "type": "git",