elit 3.6.5 → 3.6.6

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
@@ -63,6 +63,7 @@ Use this table as the import map for generated code.
63
63
  | `elit/style` | CSS generation and injection | `CreateStyle`, `styles`, `renderStyle`, `injectStyle`, `addClass`, `addTag` |
64
64
  | `elit/router` | Client-side routing | `createRouter`, `createRouterView`, `routerLink` |
65
65
  | `elit/server` | HTTP router, dev server, middleware, WebSocket endpoints, shared server state | `ServerRouter`, `createDevServer`, `cors`, `logger`, `rateLimit`, `compress`, `security`, `StateManager` |
66
+ | `elit/smtp-server` | SMTP listeners and config-friendly wrappers built on top of `smtp-server` | `SMTPServer`, `createSmtpServer`, `startSmtpServer` |
66
67
  | `elit/build` | Programmatic build API | `build` |
67
68
  | `elit/desktop` | Native desktop window APIs | `createWindow`, `createWindowServer`, `onMessage`, `windowQuit`, `windowSetTitle`, `windowEval` |
68
69
  | `elit/database` | VM-backed file database | `Database`, `create`, `read`, `save`, `update`, `rename`, `remove` |
@@ -277,6 +278,7 @@ Useful flags:
277
278
  - `elit wapk gdrive://<fileId> --google-drive-token-env GOOGLE_DRIVE_ACCESS_TOKEN --online`
278
279
  - `elit wapk run ./app.wapk --online --online-url http://localhost:4177`
279
280
  - `elit wapk pack .`
281
+ - `elit wapk patch ./app.wapk --from ./patch.wapk`
280
282
  - `elit wapk inspect ./app.wapk --password secret-123`
281
283
  - `elit wapk extract ./app.wapk`
282
284
  - `elit desktop wapk ./app.wapk --runtime node|bun|deno --watcher`
@@ -325,8 +327,10 @@ WAPK mode notes:
325
327
  - `elit wapk <file.wapk>` and `elit wapk run <file.wapk>` run packaged apps.
326
328
  - `elit desktop wapk <file.wapk>` and `elit desktop wapk run <file.wapk>` run packaged apps in desktop mode.
327
329
  - During run, the archive is expanded into a temporary work directory and changes are synced back to the same `.wapk` file.
330
+ - `elit wapk patch <target.wapk> --from <patch.wapk>` reads `.wapkpatch` from the patch archive and overlays only the matching archive-relative files into the target archive.
328
331
  - Use `--sync-interval <ms>` for polling mode, or `--watcher` / `--use-watcher` for event-driven sync.
329
332
  - Use `--password` when packing, inspecting, extracting, or running a locked archive.
333
+ - Use `--from-password` when the patch archive is locked with a different password than the target archive.
330
334
  - `inspect` without credentials still reports whether the archive is locked, but it does not print the archive contents.
331
335
  - Locked archives stay encrypted when live sync writes changes back into the same `.wapk` file.
332
336
  - Configure package metadata in `elit.config.*` under `wapk`, and use `wapk.lock` when you want password-protected archives by default.
@@ -581,6 +585,8 @@ Notes:
581
585
 
582
586
  - `dev.ws` and `preview.ws` register global WebSocket endpoints.
583
587
  - `clients[].ws` registers client-specific endpoints and prefixes each path with that client's `basePath`.
588
+ - `dev.smtp` and `preview.smtp` start SMTP listeners alongside the HTTP server.
589
+ - `clients[].smtp` starts SMTP listeners for a specific client branch, but SMTP listeners always bind to their own `host` and `port` instead of using `basePath`.
584
590
  - The internal Elit HMR and shared-state socket uses `/__elit_ws`, so do not reuse that path for custom endpoints.
585
591
 
586
592
  Important details:
package/dist/build.d.ts CHANGED
@@ -1,10 +1,13 @@
1
- import { B as BuildOptions, a as BuildResult } from './server-CcBFc2F5.js';
1
+ import { B as BuildOptions, a as BuildResult } from './server-uMQvZAll.js';
2
2
  import './http.js';
3
3
  import 'node:events';
4
4
  import './ws.js';
5
5
  import 'events';
6
6
  import 'http';
7
7
  import 'ws';
8
+ import './smtp-server.js';
9
+ import 'net';
10
+ import 'smtp-server';
8
11
 
9
12
  /**
10
13
  * Build module for bundling applications