Repository navigation
First release since v0.1.6, collecting 2 changes.
Features
- Zig 0.17 is supported alongside 0.16 (#160). CI builds and tests both on Linux, macOS and Windows.
zig fmtis run with 0.16, because 0.17's fmt rewrites@intFromEnum/@enumFromIntinto builtins that 0.16 doesn't have. Program(Model).initWithModelandHarness(Model).initWithModelset the model's initial fields, such as a database pool, beforestart().Model.initstill runs and sees them (#161, #162).Modal.withBody(body)returns a copy of the modal with a per-frame body. Call it fromview()when the body is built fromctx.allocator(#162).
Fixes
- RichLog inside a Modal no longer reads freed frame memory.
RichLog.viewnow takes*const RichLog, so it can be called fromview()without@constCast. Follow mode always shows the tail, including aftersetSize(#158, #162). - Modal body lines keep the body style after embedded
\x1b[0mresets, so pre-styled content no longer dropscontent_bg(#162). Program.deinitonly callsModel.deinitafterModel.inithas run. Before, a failedstart()handed it an undefined model (#162).
Docs
- REFERENCE.md covers
withBody, allocator lifetimes and passing data into the model (#162).