Repository navigation
v0.5.0
Changes that can affect existing scripts
- Steps return nothing. They only ever queued, and
say(),zoom.to(),zoom.out()andmockAPI()already returned nothing while every other step returned a promise; now none does, andrender()is the one call to await.awaiton a step still works, so scripts don't need changing; a step's own mistake, like a misspelt option, now throws at its line rather than rejecting. The README and examples drop the awaits. - An option a step can't use fails at its line, as
menubaron thebaretheme has since 0.4.3:outputwithevents(outputwas dropped);cwd,untilorexitCodeon a run given its output (they're forrecord); text passed toprint()withevents(it wasn't shown);print()where the terminal shows a prompt, which wrote after it as if typed (end the run before withprompt: false, or open the terminal withprompt: ""); andaddressor a terminaltitleon thebaretheme, which draws neither. - A point target follows the rules a selector does. A click at
{ x, y }fails when the point is outside its window, or behind another window, where it clicked the desktop or that window;zoom.to()a point outside its window fails too. The cursor may still go anywhere, out of the shot, say. demo.check()gives way todemo.render(), whichreelscript checkalready checks. It still works underreelscript checkuntil 1.0, with a warning at its line; underrender,previeworrecordit fails at once, where it ran the whole check before failing.
Fixes
- A refitted window's warning says why: the smallest size a window can be (200x120, now in the README), the menu bar (
menubar: falseremoves it), or the desktop's size. It blamed the desktop's size for all three. - MCP's
preview_frameno longer names the temporary file it wrote the frame to, which it deletes before answering; the frame is the image it returns.