GitHub / purescript-node / purescript-node-readline
A low-level PureScript interface to the Node readline API
JSON API: http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/purescript-node%2Fpurescript-node-readline
PURL: pkg:github/purescript-node/purescript-node-readline
Stars: 9
Forks: 11
Open issues: 1
License: mit
Language: PureScript
Size: 79.1 KB
Dependencies parsed at: Pending
Created at: over 11 years ago
Updated at: over 1 year ago
Pushed at: over 1 year ago
Last synced at: 17 days ago
Commit Stats
Commits: 50
Authors: 18
Mean commits per author: 2.78
Development Distribution Score: 0.78
More commit stats: https://commits.ecosyste.ms/hosts/GitHub/repositories/purescript-node/purescript-node-readline
v8.0.0
v8.0.0
Breaking changes:
-
Removed
setLineHandlerandLineHandlertype alias (#34 by @JordanMartinez)setLineHandlerwas 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
createInterfaceoptions (#35 by @JordanMartinez)- history
- removeHistoryDuplicates
- prompt
- crlfDelay
- escapeCodeTimeout
- tabSize
-
Added missing APIs (#35, #36 by @JordanMartinez)
pause/resumequestion'getPromptwriteexposed aswriteDataandwriteKeyline,cursorgetCursorPos,clearLinevariants,clearScreenDownvariantscursorTovariants,moveCursorvariantsemitKeyPressEvents
-
Added
Aff-based convenience methods (#36 by @JordanMartinez)questionquestion'countLinesblockUntilClosed
-
Added bindings for
AbortController/AbortSignal(#36 by @JordanMartinez)
Bugfixes:
Other improvements:
- Update CI
nodeversion 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)
Download
v5.0.0
v5.0.0
Breaking changes:
- Added support for PureScript 0.14 and dropped support for all previous versions (#20)
- Removed length parameter for
setPrompt(#21) - Ensured a consistent argument position for functions using
Interface(#23)
Other improvements:
- Migrated CI to GitHub Actions and updated installation instructions to use Spago (#19)
- Added a changelog and pull request template (#22)
Download