Repository navigation
v0.14.3
A whiteboard fits and zooms out fully in a narrow pane, live boards, dashboards and films stay in step when answers and changes cross or a connection drops, the daemon says when it stops, and an Electron app is shown how to stop its daemon on quit.
Changed
- A whiteboard zooms from 5% to 800% in a view of any width. Views up to 900 px wide, and touch devices, had a minimum of 60%: there "Fit the board" stopped at 60% with part of the board out of view, "Zoom out" was disabled, and ctrl/⌘ + wheel did not zoom out.
daemon.loggetsdaemon <version> stopped (<why>)when the daemon stops by itself:SIGTERM(open-artifact daemon stop),SIGINT,SIGHUP,idle(in place ofidle: exiting), orleaving for runtime <version>. A log without it ends with a daemon that was killed.@open-artifact/motion-export/buildexportsRASTER_FRAME_ENTRYandSTANDALONE_AUDIO_ENTRYwithout a file extension (./raster/frame-entry,./standalone/audio-entry); the helper adds its own (.jsfrom npm,.tsin the repository). The declarations used to name.tsfiles the npm package does not ship. The builds themselves already worked from the installed package and are unchanged.
Fixed
- A
SIGTERM,SIGINTorSIGHUPthat reachesopen-artifact daemon runwhile it starts no longer ends the process withdaemon.jsonanddaemon.lockleft behind. The handlers are in place before the daemon takes its lock, and a signal that comes early is acted on once the daemon has started. - Whiteboards, Data dashboards and Motion films no longer lose or undo changes when the answer to a page's save and someone else's change arrive out of order. A deleted element could come back, an older change could replace a newer one, and an agent's edit to a file merged into a page's save showed only after the next change. The type server now numbers its changes (
epochandseqon eachdbevent, write answer and listing), and a page keeps, per document, only what is newer than what it has. (Replaces the approach of PR #15, which kept a deletion history per document; thanks to dunature for finding the races.) - A page whose event stream dropped (sleep, a network change, a restarted type server) shows what changed while it was away, without a reload. Every stream starts with a
dbevent saying where the store stands; a page that heard less reads the documents again in the background, and editing stays open. - A whiteboard ink added on a computer whose clock is behind lands after the inks already saved, instead of sorting before them and being the first to go when the palette is full.
- The end-to-end harness no longer stops Chrome's renderer on a page that starts a module worker. It asked its questions in workers too, and Chrome 157 fails a check of its own when
locationis read in a module worker whose script has not all arrived; that was the intermittentrenderer crashed: iframe …/whiteboard/…of the Cloudflare suites (cloudflare-linkon a first run). Workers are now watched for errors and never asked.
Integrators
- An Electron app that forks the daemon in a utility process should ask it to stop before it quits:
child.kill()(SIGTERMon macOS and Linux), then a bounded wait forexit(the daemon waits up to 6 s for its type servers; the example waits 8 s). Electron otherwise ends the process without a signal, anddaemon.jsonanddaemon.lockstay behind with the type servers cut off.docs/integrating/runtime.mdsays how, andexamples/harness-electrondoes it (stopDaemonUtilityProcessinsrc/daemon-spawn.mjs, called frombefore-quit). @open-artifact/runtime'sdbcapability gains an optionallisting(collection)({documents, epoch?, seq?}), andwritemay resolve with a receipt ({epoch, seq, documents}).DbChangeEventgains optionalepoch,seqandresync; an event stream now opens with{changes: {}, resync: true, epoch, seq}. A host or test double that sends none of these still works: pages fall back to the previous behavior. Alistingrefused asinvalidornot_granted(a Shell from 0.14.2 left open while the daemon was upgraded brokers nolisting) is asked again aslist, and the page keeps tolist.- The Harness API, the Shell and wake messages,
@open-artifact/harness-kit, the stdio bridge and the shipped profiles are unchanged.