Skip to content

v8.0.0

Compare
Choose a tag to compare
@JordanMartinez JordanMartinez released this 21 Jul 23:13
· 3 commits to master since this release
0b38dfd

Breaking changes:

  • Removed setLineHandler and LineHandler type alias (#34 by @JordanMartinez)

    setLineHandler was previously implemented as

    readline.removeAllListeners("line");
    readline.on("line", cb);
    
    With the addition of bindings from `EventEmitter`,
    this can be done using `on`
    ```purs
    example = do
      removeListener <- interface # on lineH \line -> do
        ...
      ...
      removeListener

New features:

  • Added missing createInterface options (#35 by @JordanMartinez)

    • history
    • removeHistoryDuplicates
    • prompt
    • crlfDelay
    • escapeCodeTimeout
    • tabSize
  • Added missing APIs (#35, #36 by @JordanMartinez)

    • pause/resume
    • question'
    • getPrompt
    • write exposed as writeData and writeKey
    • line, cursor
    • getCursorPos, clearLine variants, clearScreenDown variants
    • cursorTo variants, moveCursor variants
    • emitKeyPressEvents
  • Added Aff-based convenience methods (#36 by @JordanMartinez)

    • question
    • question'
    • countLines
    • blockUntilClosed
  • Added bindings for AbortController/AbortSignal (#36 by @JordanMartinez)

Bugfixes:

Other improvements: