elit 3.6.6 → 3.6.8

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.
Files changed (155) hide show
  1. package/Cargo.lock +1 -1
  2. package/Cargo.toml +1 -1
  3. package/README.md +20 -1
  4. package/dist/build.cjs +421 -331
  5. package/dist/build.d.ts +1 -19
  6. package/dist/build.js +420 -330
  7. package/dist/build.mjs +420 -330
  8. package/dist/chokidar.cjs +219 -182
  9. package/dist/chokidar.d.ts +25 -10
  10. package/dist/chokidar.js +217 -182
  11. package/dist/chokidar.mjs +218 -183
  12. package/dist/cli.cjs +25197 -22128
  13. package/dist/cli.d.ts +19 -37
  14. package/dist/cli.mjs +26668 -23614
  15. package/dist/config.cjs +357 -350
  16. package/dist/config.d.ts +17 -245
  17. package/dist/config.js +520 -515
  18. package/dist/config.mjs +346 -341
  19. package/dist/contracts-D7KIS-TK.d.ts +36 -0
  20. package/dist/contracts-_0p1-15U.d.ts +54 -0
  21. package/dist/coverage.cjs +448 -485
  22. package/dist/coverage.d.ts +13 -62
  23. package/dist/coverage.js +447 -484
  24. package/dist/coverage.mjs +447 -484
  25. package/dist/database.cjs +819 -828
  26. package/dist/database.d.ts +8 -24
  27. package/dist/database.js +818 -829
  28. package/dist/database.mjs +818 -829
  29. package/dist/desktop-auto-render.cjs +1700 -1523
  30. package/dist/desktop-auto-render.d.ts +4 -12
  31. package/dist/desktop-auto-render.js +1695 -1518
  32. package/dist/desktop-auto-render.mjs +1696 -1519
  33. package/dist/desktop.cjs +3 -1
  34. package/dist/desktop.d.ts +4 -1
  35. package/dist/desktop.js +1 -1
  36. package/dist/desktop.mjs +1 -1
  37. package/dist/dev-build.cjs +830 -0
  38. package/dist/dev-build.d.ts +53 -0
  39. package/dist/dev-build.js +3318 -0
  40. package/dist/dev-build.mjs +797 -0
  41. package/dist/dom.cjs +717 -591
  42. package/dist/dom.d.ts +2 -17
  43. package/dist/dom.js +714 -588
  44. package/dist/dom.mjs +716 -590
  45. package/dist/el.cjs +62 -52
  46. package/dist/el.d.ts +5 -12
  47. package/dist/el.js +60 -52
  48. package/dist/el.mjs +60 -52
  49. package/dist/fs.cjs +72 -63
  50. package/dist/fs.d.ts +22 -19
  51. package/dist/fs.js +71 -62
  52. package/dist/fs.mjs +71 -62
  53. package/dist/hmr.cjs +40 -14
  54. package/dist/hmr.d.ts +11 -23
  55. package/dist/hmr.js +38 -14
  56. package/dist/hmr.mjs +38 -14
  57. package/dist/http.cjs +411 -140
  58. package/dist/http.d.ts +40 -112
  59. package/dist/http.js +409 -140
  60. package/dist/http.mjs +409 -140
  61. package/dist/https.cjs +716 -272
  62. package/dist/https.d.ts +46 -41
  63. package/dist/https.js +712 -270
  64. package/dist/https.mjs +714 -272
  65. package/dist/index.cjs +7502 -7691
  66. package/dist/index.d.ts +6 -3
  67. package/dist/index.js +7486 -7677
  68. package/dist/index.mjs +7497 -7687
  69. package/dist/mime-types.cjs +10 -4
  70. package/dist/mime-types.d.ts +8 -11
  71. package/dist/mime-types.js +9 -3
  72. package/dist/mime-types.mjs +9 -3
  73. package/dist/native.cjs +8616 -8870
  74. package/dist/native.d.ts +7 -10
  75. package/dist/native.js +8682 -8936
  76. package/dist/native.mjs +8615 -8869
  77. package/dist/path.cjs +83 -77
  78. package/dist/path.d.ts +29 -29
  79. package/dist/path.js +82 -76
  80. package/dist/path.mjs +82 -76
  81. package/dist/pm-node-shared-listener-bootstrap.cjs +75 -0
  82. package/dist/pm.cjs +5267 -0
  83. package/dist/pm.d.ts +331 -0
  84. package/dist/pm.js +7575 -0
  85. package/dist/pm.mjs +5148 -0
  86. package/dist/preview-build.cjs +712 -0
  87. package/dist/preview-build.d.ts +59 -0
  88. package/dist/preview-build.js +3194 -0
  89. package/dist/preview-build.mjs +676 -0
  90. package/dist/render-context.cjs +13 -2
  91. package/dist/render-context.d.ts +9 -34
  92. package/dist/render-context.js +11 -2
  93. package/dist/render-context.mjs +11 -2
  94. package/dist/router.cjs +787 -646
  95. package/dist/router.d.ts +8 -14
  96. package/dist/router.js +786 -645
  97. package/dist/router.mjs +786 -645
  98. package/dist/runtime.cjs +1 -1
  99. package/dist/runtime.js +1 -1
  100. package/dist/runtime.mjs +1 -1
  101. package/dist/server.cjs +3702 -2883
  102. package/dist/server.d.ts +47 -5
  103. package/dist/server.js +4007 -3165
  104. package/dist/server.mjs +3665 -2848
  105. package/dist/smtp-server.cjs +16 -3
  106. package/dist/smtp-server.d.ts +12 -26
  107. package/dist/smtp-server.js +55 -17
  108. package/dist/smtp-server.mjs +16 -3
  109. package/dist/state.cjs +768 -659
  110. package/dist/state.d.ts +11 -71
  111. package/dist/state.js +760 -651
  112. package/dist/state.mjs +767 -658
  113. package/dist/style.cjs +1011 -968
  114. package/dist/style.d.ts +13 -127
  115. package/dist/style.js +1009 -970
  116. package/dist/style.mjs +1011 -971
  117. package/dist/test-reporter.cjs +332 -316
  118. package/dist/test-reporter.d.ts +28 -33
  119. package/dist/test-reporter.js +328 -312
  120. package/dist/test-reporter.mjs +328 -312
  121. package/dist/test-runtime.cjs +927 -968
  122. package/dist/test-runtime.d.ts +24 -99
  123. package/dist/test-runtime.js +922 -965
  124. package/dist/test-runtime.mjs +922 -965
  125. package/dist/test.cjs +4428 -4273
  126. package/dist/test.d.ts +2 -8
  127. package/dist/test.js +4307 -4154
  128. package/dist/test.mjs +4419 -4267
  129. package/dist/types-BONVzPtp.d.ts +59 -0
  130. package/dist/types-BR4wMiVx.d.ts +32 -0
  131. package/dist/types-BayMVo_k.d.ts +278 -0
  132. package/dist/types-C4gKykuG.d.ts +23 -0
  133. package/dist/types-C70T-42Z.d.ts +64 -0
  134. package/dist/types-Ckj8md_j.d.ts +84 -0
  135. package/dist/types-CpjQTAkX.d.ts +24 -0
  136. package/dist/types-D0LjrYjS.d.ts +14 -0
  137. package/dist/types-DPOgoGs-.d.ts +81 -0
  138. package/dist/types-fiLday0L.d.ts +199 -0
  139. package/dist/types.d.ts +54 -237
  140. package/dist/universal.cjs +1 -1
  141. package/dist/universal.d.ts +1 -7
  142. package/dist/universal.js +1 -1
  143. package/dist/universal.mjs +1 -1
  144. package/dist/websocket-BLBEAnhp.d.ts +119 -0
  145. package/dist/ws.cjs +129 -108
  146. package/dist/ws.d.ts +21 -131
  147. package/dist/ws.js +128 -109
  148. package/dist/ws.mjs +128 -109
  149. package/dist/wss.cjs +938 -512
  150. package/dist/wss.d.ts +31 -28
  151. package/dist/wss.js +932 -508
  152. package/dist/wss.mjs +936 -512
  153. package/package.json +18 -6
  154. package/vendor/epaint-0.31.1/src/image.rs +418 -0
  155. package/dist/server-uMQvZAll.d.ts +0 -458
package/dist/http.d.ts CHANGED
@@ -1,75 +1,44 @@
1
1
  import { EventEmitter } from 'node:events';
2
+ import { R as RequestOptions, I as IncomingMessage, a as RequestListener, S as ServerListenOptions, b as ServerOptions, c as ServerResponse } from './types-DPOgoGs-.js';
3
+ export { d as IncomingHttpHeaders, O as OutgoingHttpHeaders } from './types-DPOgoGs-.js';
2
4
 
3
5
  /**
4
- * HTTP module with unified API across runtimes
5
- * Ultra-optimized for maximum performance across Node.js, Bun, and Deno
6
- *
7
- * Performance optimizations:
8
- * - Bun fast path: Zero class instantiation (object literals only)
9
- * - Eliminated EventEmitter overhead for Bun/Deno
10
- * - Zero-copy headers conversion
11
- * - Inline response creation
12
- * - Reduced object allocations
13
- * - Direct closure capture (no resolver indirection)
6
+ * HTTP Agent
14
7
  */
8
+ declare class Agent {
9
+ options?: any | undefined;
10
+ constructor(options?: any | undefined);
11
+ }
15
12
 
16
13
  /**
17
- * HTTP Methods
18
- */
19
- declare const METHODS: readonly ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE"];
20
- /**
21
- * HTTP Status Codes (compact object)
14
+ * Client request - lightweight wrapper
22
15
  */
23
- declare const STATUS_CODES: Record<number, string>;
16
+ declare class ClientRequest extends EventEmitter {
17
+ private _nativeRequest?;
18
+ private _bodyChunks;
19
+ private _executor?;
20
+ private _ended;
21
+ constructor(_url: string | URL, _options?: RequestOptions);
22
+ _setNativeRequest(nativeRequest: any): void;
23
+ _setExecutor(executor: (body: BodyInit | undefined) => Promise<void> | void): void;
24
+ write(chunk: any, encoding?: BufferEncoding | (() => void), callback?: () => void): boolean;
25
+ end(chunk?: any, encoding?: BufferEncoding | (() => void), callback?: () => void): void;
26
+ }
27
+
24
28
  /**
25
- * HTTP Headers type
29
+ * Make HTTP request - optimized per runtime
26
30
  */
27
- type IncomingHttpHeaders = Record<string, string | string[] | undefined>;
28
- type OutgoingHttpHeaders = Record<string, string | string[] | number>;
31
+ declare function request(url: string | URL, options?: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
29
32
  /**
30
- * IncomingMessage - Ultra-optimized for zero-copy operations
33
+ * Make HTTP GET request
31
34
  */
32
- declare class IncomingMessage extends EventEmitter {
33
- method: string;
34
- url: string;
35
- headers: IncomingHttpHeaders;
36
- statusCode?: number;
37
- statusMessage?: string;
38
- httpVersion: string;
39
- rawHeaders: string[];
40
- socket: any;
41
- private _req;
42
- constructor(req: any);
43
- text(): Promise<string>;
44
- json(): Promise<any>;
45
- }
35
+ declare function get(url: string | URL, options?: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
36
+
46
37
  /**
47
- * ServerResponse - Ultra-optimized write operations
38
+ * Get current runtime
48
39
  */
49
- declare class ServerResponse extends EventEmitter {
50
- statusCode: number;
51
- statusMessage: string;
52
- headersSent: boolean;
53
- private _headers;
54
- private _body;
55
- private _resolve?;
56
- private _finished;
57
- private _nodeRes?;
58
- constructor(_req?: IncomingMessage, nodeRes?: any);
59
- setHeader(name: string, value: string | string[] | number): this;
60
- getHeader(name: string): string | string[] | number | undefined;
61
- getHeaders(): OutgoingHttpHeaders;
62
- getHeaderNames(): string[];
63
- hasHeader(name: string): boolean;
64
- removeHeader(name: string): void;
65
- writeHead(statusCode: number, statusMessage?: string | OutgoingHttpHeaders, headers?: OutgoingHttpHeaders): this;
66
- write(chunk: any, encoding?: BufferEncoding | (() => void), callback?: () => void): boolean;
67
- end(chunk?: any, encoding?: BufferEncoding | (() => void), callback?: () => void): this;
68
- _setResolver(resolve: (response: Response) => void): void;
69
- json(data: any, statusCode?: number): this;
70
- send(data: any): this;
71
- status(code: number): this;
72
- }
40
+ declare function getRuntime(): 'node' | 'bun' | 'deno';
41
+
73
42
  /**
74
43
  * Server - Optimized for each runtime
75
44
  */
@@ -81,14 +50,11 @@ declare class Server extends EventEmitter {
81
50
  constructor(requestListener?: RequestListener);
82
51
  registerWebSocketServer(wsServer: any): void;
83
52
  unregisterWebSocketServer(wsServer: any): void;
53
+ private resolvePmInheritedFd;
84
54
  listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this;
85
55
  listen(port?: number, hostname?: string, listeningListener?: () => void): this;
86
56
  listen(port?: number, listeningListener?: () => void): this;
87
- listen(options?: {
88
- port?: number;
89
- hostname?: string;
90
- backlog?: number;
91
- }, listeningListener?: () => void): this;
57
+ listen(options?: ServerListenOptions, listeningListener?: () => void): this;
92
58
  close(callback?: (err?: Error) => void): this;
93
59
  address(): {
94
60
  port: number;
@@ -97,61 +63,23 @@ declare class Server extends EventEmitter {
97
63
  } | null;
98
64
  get listening(): boolean;
99
65
  }
100
- /**
101
- * Request listener type
102
- */
103
- type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
104
- /**
105
- * Request options
106
- */
107
- interface RequestOptions {
108
- method?: string;
109
- headers?: OutgoingHttpHeaders;
110
- timeout?: number;
111
- signal?: AbortSignal;
112
- }
113
- /**
114
- * Server options
115
- */
116
- interface ServerOptions {
117
- IncomingMessage?: typeof IncomingMessage;
118
- ServerResponse?: typeof ServerResponse;
119
- }
120
- /**
121
- * Client request - lightweight wrapper
122
- */
123
- declare class ClientRequest extends EventEmitter {
124
- constructor(_url: string | URL, _options?: RequestOptions);
125
- write(_chunk: any): boolean;
126
- end(callback?: () => void): void;
127
- }
128
- /**
129
- * HTTP Agent
130
- */
131
- declare class Agent {
132
- options?: any | undefined;
133
- constructor(options?: any | undefined);
134
- }
135
- /**
136
- * Create HTTP server
137
- */
138
66
  declare function createServer(requestListener?: RequestListener): Server;
139
67
  declare function createServer(options: ServerOptions, requestListener?: RequestListener): Server;
68
+
140
69
  /**
141
- * Make HTTP request - optimized per runtime
142
- */
143
- declare function request(url: string | URL, options?: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
144
- /**
145
- * Make HTTP GET request
70
+ * HTTP Methods
146
71
  */
147
- declare function get(url: string | URL, options?: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
72
+ declare const METHODS: readonly ["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS", "CONNECT", "TRACE"];
148
73
  /**
149
- * Get current runtime
74
+ * HTTP Status Codes (compact object)
150
75
  */
151
- declare function getRuntime(): 'node' | 'bun' | 'deno';
76
+ declare const STATUS_CODES: Record<number, string>;
77
+
152
78
  /**
153
- * Default export
79
+ * HTTP module with unified API across runtimes
80
+ * Ultra-optimized for maximum performance across Node.js, Bun, and Deno
154
81
  */
82
+
155
83
  declare const _default: {
156
84
  createServer: typeof createServer;
157
85
  request: typeof request;
@@ -166,4 +94,4 @@ declare const _default: {
166
94
  getRuntime: typeof getRuntime;
167
95
  };
168
96
 
169
- export { Agent, ClientRequest, type IncomingHttpHeaders, IncomingMessage, METHODS, type OutgoingHttpHeaders, type RequestListener, type RequestOptions, STATUS_CODES, Server, type ServerOptions, ServerResponse, createServer, _default as default, get, getRuntime, request };
97
+ export { Agent, ClientRequest, IncomingMessage, METHODS, RequestListener, RequestOptions, STATUS_CODES, Server, ServerListenOptions, ServerOptions, ServerResponse, createServer, _default as default, get, getRuntime, request };