v8.0.0
Breaking changes:
-
Removed
setLineHandler
andLineHandler
type alias (#34 by @JordanMartinez)setLineHandler
was previously implemented asreadline.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 aswriteData
andwriteKey
line
,cursor
getCursorPos
,clearLine
variants,clearScreenDown
variantscursorTo
variants,moveCursor
variantsemitKeyPressEvents
-
Added
Aff
-based convenience methods (#36 by @JordanMartinez)question
question'
countLines
blockUntilClosed
-
Added bindings for
AbortController
/AbortSignal
(#36 by @JordanMartinez)
Bugfixes:
Other improvements:
- Update CI
node
version tolts/*
(#31, #32 by @JordanMartinez) - Update CI actions to
v3
(#31, #32 by @JordanMartinez) - Format code via
purs-tidy
; enforce formatting in CI (#31, #32 by @JordanMartinez) - Update FFI to use uncurried functions (#33 by @JordanMartinez)
- Reordered export list (#35 by @JordanMartinez)