Skip to content

Releases: purescript-node/purescript-node-readline

v8.1.1

30 Jun 10:59
cbfcfe2
Compare
Choose a tag to compare

Bugfixes:

  • Ensure that callbacks passed to question and question' are invoked (#38 by @youngnh)
  • Fixed typo in options passed to readline.createInterface (#38 by @youngnh)

v8.1.0

26 Jul 22:03
0e5f4a8
Compare
Choose a tag to compare

Bugfixes:

v8.0.0

21 Jul 23:13
0b38dfd
Compare
Choose a tag to compare

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:

v7.0.0

29 Apr 16:15
fbe80a9
Compare
Choose a tag to compare

Breaking changes:

v6.0.0

27 Apr 22:59
f424558
Compare
Choose a tag to compare

Due to implementing a breaking change incorrectly, use v7.0.0 instead.

v5.0.0

26 Feb 23:06
c59deb3
Compare
Choose a tag to compare

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)

v4.0.1

08 Jun 15:14
Compare
Choose a tag to compare
  • Relax upper bounds to allow building with 0.13. (@klntsky)

v4.0.0

29 May 22:40
72bed94
Compare
Choose a tag to compare

Updates for 0.12

v3.1.0

22 Aug 20:53
Compare
Choose a tag to compare

Add question (@dgendill)

v3.0.1

04 Aug 19:29
Compare
Choose a tag to compare

Relax the upper bound in bower.json on node-process, so that this library can be depended on together with version 5.0.0 of node-process without any hassle.