Deno TUI 2.0.0-RC
Pre-release
Pre-release
Release 2.0.0-RC
Changelog
This major change breaks almost all of the older code.
It is easy to migrate older code to new one.
Most important changes include:
- Huge performance improvements
- Canvas now tracks drawn objects and calculates what cells need to get rerendered each frame
- This can be further optimized in consecutive updates
- Canvas now tracks drawn objects and calculates what cells need to get rerendered each frame
- Components no longer have
Component
suffix, e.g.BoxComponent
is now just aBox
Signal
's are now used to smoothen development of reactive UI- Components no longer have
update()
method, instead they calculate changes usingSignal
's key_reader.ts
is split to multiple modules inside `input_reader/``.input_reader/decoders
contains logic for decoding given buffer/character code to events.- Replaced
readKeypresses()
withemitInputEvents()
which directly emits input from given stdin with parsed events. key_reader.ts
related types have been moved fromsrc/types.ts
tosrc/input_reader/types.ts
."mousePress"
event has been split to three different events: "mouseEvent", "mousePress", "mouseScroll".- mouse and keyboard decoders now re-use objects instead of creating new ones constantly
Full Changelog: 1.3.4...2.0.0-RC