akanjs 3.3.0-rc.50 → 3.3.0-rc.52
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/CHANGELOG.md +11 -0
- package/index.ts +2 -0
- package/package.json +1 -1
- package/types/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -329,6 +329,17 @@
|
|
|
329
329
|
|
|
330
330
|
The api report lists additions only: `Device.keyboardAnimationMs`, `Device.keyboardHeight` and `Device.subscribeKeyboard`, the optional `KeyboardFrameState.avoidsContent` and `isPageKeyboardAvoidance` from `akanjs/webkit`; no upgrade step is needed. An iOS app gets the new behavior once it is built with this shell; a page that lifted its own composer by the keyboard's height under the old pan should drop that lift.
|
|
331
331
|
|
|
332
|
+
- 9c2a5d9: A lib's `akan.config.ts` takes `workers`, so a lib that spawns a worker declares it once.
|
|
333
|
+
|
|
334
|
+
Until now only an app's config took `workers`, and a lib whose adapter called `AppWorker.spawn("vision")` made every app that mounts it repeat `workers: { vision: "../../libs/<lib>/…" }`; an app without the line failed at run time with `workerNotDeclared`.
|
|
335
|
+
|
|
336
|
+
- **A lib declares its own workers.** `workers: { vision: "srvkit/vision.worker.ts" }` in `libs/<lib>/akan.config.ts`, the path relative to that config. Every app that depends on the lib builds `workers/vision.js` and resolves the name in `akan start` and `akan test`, with nothing in the app's config.
|
|
337
|
+
- **An app's own entry of the same name wins**, as with `bin`. Two libs an app depends on that name different files for one worker stop the start, the test run or the build, naming both configs, until the app's config picks one.
|
|
338
|
+
- **`akan test <lib>` knows the lib's workers** and those of the libs it depends on. A lib's own test run had no worker sources before.
|
|
339
|
+
- **A build carries only the workers of the libs the app depends on**, not those of every lib in the workspace.
|
|
340
|
+
|
|
341
|
+
Upgrade: an app that repeats a lib's worker can drop the line once the lib declares it; leaving it changes nothing. `LibConfigResult` gains a required `workers` field, which matters only to code that builds that object by hand. In `@akanjs/devkit`, `AkanWorkers.declare` is replaced by `AkanWorkers.select` and `AkanWorkers.publish`. The runtime guide's reference grows to five parts (`runtimeRule-5.md` is new, the budgets of `runtimeRule-4.md` and the `akan-runtime` `SKILL.md` are raised) because the new paragraph moved a part past the 28,000-character split.
|
|
342
|
+
|
|
332
343
|
- b6f1838: An operator can graph and alert on the number of live rooms: `/_akan/app/metrics` now carries the `akan_live_rooms` gauge next to `akan_room_replay_bytes` and `akan_pubsub_buffered_messages`, and the metrics report carries it as `roomCount`.
|
|
333
344
|
|
|
334
345
|
It counts the live-query rooms one process holds, one per room id however many sockets share it. Behind a gateway each replica reports its own and the scrape adds them up per `role`, so a room that sockets on two replicas share counts once on each; the gateway's `rooms` field in the status still gives the distinct count.
|
package/index.ts
CHANGED
|
@@ -492,6 +492,8 @@ export interface LibConfigResult {
|
|
|
492
492
|
trustedDependencies: string[];
|
|
493
493
|
/** Carried by the desktop app of every app that depends on this lib; an app's own entry of the same name wins. */
|
|
494
494
|
bin: AkanBinConfig;
|
|
495
|
+
/** Built and spawned by name in every app that depends on this lib; an app's own entry of the same name wins. */
|
|
496
|
+
workers: AkanWorkersConfig;
|
|
495
497
|
/** Image steps every app that mounts this lib inherits, unless that app declares a whole Dockerfile. */
|
|
496
498
|
docker: LibDockerConfig;
|
|
497
499
|
/** Which of this lib's own public fonts every app that mounts it must keep. */
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -499,6 +499,8 @@ export interface LibConfigResult {
|
|
|
499
499
|
trustedDependencies: string[];
|
|
500
500
|
/** Carried by the desktop app of every app that depends on this lib; an app's own entry of the same name wins. */
|
|
501
501
|
bin: AkanBinConfig;
|
|
502
|
+
/** Built and spawned by name in every app that depends on this lib; an app's own entry of the same name wins. */
|
|
503
|
+
workers: AkanWorkersConfig;
|
|
502
504
|
/** Image steps every app that mounts this lib inherits, unless that app declares a whole Dockerfile. */
|
|
503
505
|
docker: LibDockerConfig;
|
|
504
506
|
/** Which of this lib's own public fonts every app that mounts it must keep. */
|