Skip to content

ElmTUI 0.4.0

Latest

Choose a tag to compare

@fkr-0 fkr-0 released this 01 Nov 04:33
· 349 commits to main since this release

Breaking release that completes the export cleanup from the API review. Every exported ElmTUI symbol now names a real binding (or a registered message/model schema), and the release gate keeps it so. Qualified by the full release gate in CI (run 41273094426).

Breaking changes

  • Curated root package. The root elmtui package exports these 13 application symbols:

    • defapplication, deftea-app
    • make-update-result, state-ref
    • key-pressed-p, quit-requested-p
    • key-event, key-event-p, key-event-key, key-event-char, key-event-modifiers
    • dark-theme, light-theme

    Until now it re-exported by name: 127 of its 128 own exports (elmtui:button, elmtui:vbox, elmtui:with-terminal-lock, …) were fresh, unbound symbols, not the framework's.

  • elmtui:dev-main removed, together with the elmtui system's program-op entry point. Use elmtui.dev:dev-main.

  • 88 never-defined exports removed from 21 packages. These include defmsg's <variant>-p names, statechangemsg, the elmtui.view.core vbox/hbox/text helpers, the elmtui.pipeline stage names and the elmtui.view.geo shapes.

Migration

  • Root package names: code that used other elmtui: names was calling unbound functions. Use the defining packages, for example elmtui.platform.backend.terminal:with-terminal-lock; their symbols are unchanged.
  • Message predicates: use <variant>-<message>-p predicates such as keyevent-appmsg-p instead of <variant>-p.
  • Simpler imports: application code can now import its whole API from the root package:
    (:import-from :elmtui #:defapplication #:make-update-result #:state-ref
                  #:key-pressed-p #:quit-requested-p)

See the README Quickstart and the CHANGELOG.