Skip to content

v0.12.1

Latest

Choose a tag to compare

@github-actions github-actions released this 12 Nov 03:01

Repl 0.12.1 adds first-class .NET 11 support. Every package now ships for net10.0 and net11.0, a handler can return a C# 15 union, and Repl honours FORCE_COLOR the way .NET 11 does. No public API changed, but the colour and terminal-control rules changed observable behaviour in a few places: read Behaviour changes before upgrading, and upgrade Repl.Spectre together with Repl.Core.

Highlights

  • .NET 11. All packages target net10.0 and net11.0, validated against the 0.12.0 packages; the repository builds and tests with the .NET 11 SDK on both runtimes (#196, #197). Running on .NET 11 covers C# 15, FORCE_COLOR, dotnet watch, dotnet run -e, and dotnetup per-user installs seen from MCP agent hosts (#203).
  • C# 15 union results. On net11.0, a handler can return a union; Repl processes the active case as if the handler had returned it directly: exit codes, IReplResult classification, every output format, middleware and Repl.Testing all see the case (#199). See Union return values.
  • FORCE_COLOR. Any non-empty value, even 0, turns colour on, ahead of NO_COLOR, as .NET 11 does in its console logger, so one variable colours both (#198).
  • Colour and terminal control are decided separately. Colour forced onto a file or a pipe no longer brings screen clearing, arrow-key menus, shell-integration marks or progress sequences with it (#198). See ANSI Detection.

Behaviour changes

All from #198:

  • With FORCE_COLOR and NO_COLOR both set, output used to be plain and is now coloured.
  • CLICOLOR_FORCE=1 on redirected output no longer clears the screen or enables arrow-key menus there; under AnsiMode.Always, the screen clear now needs a terminal.
  • A hosted client that advertises ANSI only through capability flags now gets the screen clear and the full-screen pager.
  • ITerminalInfo.IsAnsiSupported now answers "may the handler drive the terminal": it is false on redirected output under CLICOLOR_FORCE=1. Test Palette is not null to decide on colour. See ITerminalInfo.
  • A Spectre console that is coloured where the terminal may not be driven is no longer interactive: live displays print static lines, Repl's text prompts replace Spectre's, and a prompt on an injected IAnsiConsole fails there. Upgrade Repl.Spectre together with Repl.Core: Repl.Spectre 0.12.0 takes forced colour from the new core but not the rule that keeps its live displays out of a redirected output.

Other changes

  • Docs: setting up shell completion through dotnet myapp.dll writes a PowerShell completer that does not answer; set it up from the app's own executable (#203). Union results are labelled C# 15, and the System.Console behaviour under FORCE_COLOR is described per platform (#206).
  • CI and tests: the release job installs the .NET 11 SDK (#201); one cause of a flaky hosting-shutdown test on net11.0 is fixed (#205).

What's Changed

Full Changelog: v0.12.0...v0.12.1