Skip to content

Releases: ajalt/mordant

2.1.0

29 Jul 18:36
Compare
Choose a tag to compare

Added

  • Added ConfirmationPrompt that asks the user to enter the same value twice, which is commonly used for password inputs.

2.0.1

14 Jul 16:32
Compare
Choose a tag to compare

Added

  • Include metadata in JVM jars to support GraalVM native-image.

Fixed

  • Fix animations printing an extra frame after stop is called when running in the IntelliJ console. (#105)

2.0.0

04 Jul 17:54
Compare
Choose a tag to compare

Mordant 2.0.0 is stable and future releases will follow Semantic Versioning.

Changes from 2.0.0-beta14

Deprecated

  • Deprecated TerminalColors is favor of TextColors and Terminal.theme

2.0.0-beta14

27 Jun 19:21
Compare
Choose a tag to compare

Added

  • Terminal.rawPrint which allows you to print ANSI codes manually. (#91)
  • Option to disable trailing line breaks on animations.
  • Terminal.print, println, and rawPrint now accept a stderr parameter that will print to stderr (if available).

Changed

  • Fix typo in enum name: renamed Borders.TOM_BOTTOM to Borders.TOP_BOTTOM. (#100)
  • The terminal cursor will now be hidden when progressAnimation is running.

Removed

  • Removed TerminalRecorder.currentContent. Use stdout(), stderr() or output() instead.
  • Removed Terminal.forStdErr() and TerminalInterface.forStdErr(). Use Terminal.println(stderr=true) instead.

2.0.0-beta13

09 Apr 18:46
Compare
Choose a tag to compare

Added

  • Add Animation.stop() to stop an animation without clearing it. (#95)
  • Animations now support resuming after a call to stop or clear. (#94)
  • TextStyles.reset, TextStyles.resetForeground, and TextStyles.resetBackground to clear existing styles.

Fixed

  • Fix TerminalInfo.interactive not including outputInteractive
  • Fix prompts on JS targets that were broken by KT-55817

Changed

  • Source-incompatible change: All boolean fields on TextStyle are now nullable. A null field indicates no change to the previous value when adding or nesting styles.
  • verticalLayout{} now defaults TextAlign.NONE, meaning it won't add any trailing whitespace to lines. You can return to the old behavior with align = TextAlign.LEFT.
  • When nesting styles, the outer style will now override inner styles at the start of a string. (e.g. red(blue("x")) == red("x"))
  • Definition List terms and entries can now be empty

2.0.0-beta12

25 Mar 16:26
Compare
Choose a tag to compare

Fixed

  • Switch back to calling stty for detectTerminalSize on macOS. (#86)
  • OverflowWrap is now properly ignored when using a non-wrapping Whitespace value.
  • Fix exception in ProgressBar when its width is 1 character (#75)

2.0.0-beta11

27 Jan 06:04
Compare
Choose a tag to compare

Added

  • Tables and other layouts can now be completely empty (#82)

Changed

  • Update Kotlin to 1.8.0

Removed

  • Removed JS/Legacy publication. The JS target only publishes artifact build with the IR compiler.

2.0.0-beta10

18 Dec 21:25
4ee6adc
Compare
Choose a tag to compare
2.0.0-beta10 Pre-release
Pre-release

Changed

  • JVM: terminal detection now uses JNA to call kernel functions directly.
  • Interactive state of stdin and stdout are now detected separately.
  • Terminal size detection is now fast since it does not need a subprocess. Terminal size is detected automatically at startup.

Fixed

  • Detect terminal correctly when running in the IntelliJ terminal tab, but not through a run action. (#76)

Deprecated

  • timeoutMs parameter to TerminalDetection.updateTerminalSize. This function is now fast on all platforms.

2.0.0-beta9

26 Nov 20:00
Compare
Choose a tag to compare
2.0.0-beta9 Pre-release
Pre-release

Changed

  • Stop stripping trailing newline from text when using Whitespace.PRE (#75)

2.0.0-beta8

16 Oct 19:59
Compare
Choose a tag to compare
2.0.0-beta8 Pre-release
Pre-release

Added

  • Implemented hideInput for prompts on native targets (#63)
  • Improve cell-width calculation for emoji sequences like skin tone modifiers (#64)
  • Added Theme.plus to combine two themes
  • Added Padding.plus to combine two padding values

Changed

  • Replaced most of the Padding constructor and Widget.withPadding overloads with a unified builder interface
  • Renamed the top level row and column builders to horizonalLayout and verticalLayout, respectively
  • Update Kotlin to 1.7.20
  • Kotlin/Native: use new default memory manager. Objects are no longer frozen.

Removed

  • Removed buildWidget. Use horizonalLayout and verticalLayout instead.