Skip to content

fix(deps): update dependency @opentui/core to v0.9.9 - #465

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/opentui-core-0.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/opentui-core-0.x

Conversation

@renovate

@renovate renovate Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@opentui/core (source) 0.9.4 → 0.9.9 age confidence

Release Notes

anomalyco/opentui (@​opentui/core)

v0.9.9

Compare Source

In earlier releases, a Rust app that changed its theme in an App::on_theme_mode handler kept the old theme's selection colors on every widget it had already created. Widgets copied Theme::selection_bg and Theme::selection_fg when they were created, so App::set_theme reached only widgets created after the call. In 0.9.9 the default selection colors live in the native Context, and each selection reads them when it draws. Now App::set_theme recolors the selections of existing widgets too, including a selection that is on screen when you call it.

This also changes what None means in a widget's selection_colors. Before, a None color kept the text color, and SelectionColors::default() inverted the selected cells. Now a None color takes the theme's color, one color at a time. A selection inverts its cells only when neither the widget nor the theme sets a background. If your app used SelectionColors::default() to get inverted selections, those selections now draw in the theme's colors.

C hosts set the same default with ot_context_set_selection_colors. Core apps see no change: selectionBg, selectionFg, and setSelectionColors work as before. The renderer now gives their colors to the native Context.

Added

  • native: ot_context_set_selection_colors sets the default selection background and foreground of a Context. A selection that has no color of its own uses the default, and a change also restyles current selections. See C. (#​2198)

Changed

  • native: In the Rust crate, App::set_theme changes the selection colors of all widgets, including current selections. A color that selection_colors leaves None now takes the theme's color, not the text color. See Widgets and layout. (#​2198)

Fixed

  • core: MarkdownRenderable no longer throws undefined is not an object (evaluating 'c.ordinal=o++') while a list streams in. Lists now lay out after all blocks of an update are shown. OpenTUI 0.9.4 to 0.9.8 had this error. See Markdown. (#​2199)
  • core: Apps in ConEmu draw with 24-bit color again, not with the 16-color palette. ConEmu dropped bytes after the startup queries, so it did not open its alternate screen. See Terminal capabilities. (#​2200)
  • core: Mouse clicks work in ConEmu again. ConEmu sends every SGR mouse release as button 3, and such a release now releases the held button. See Interaction, focus, and selection. (#​2200)

API changes and documentation: https://opentui.com/docs/releases/0.9.9

What's Changed

Full Changelog: anomalyco/opentui@v0.9.8...v0.9.9

v0.9.8

Compare Source

Without selection colors, a selection inverts its cells. On a cell with no opaque background, inverting forces the text to black. opencode keeps the renderer background transparent and paints its own background, so on a light theme every selection showed black text on a near-black background. Until now, the only fix was to set selectionBg and selectionFg on every text renderable in the app. Now you can set them once, on the renderer:

const renderer = await createCliRenderer({ selectionBg: "#d3ddf8", selectionFg: "#​101010" })
renderer.setSelectionColors("#​23344b", "#ffffff") // for example, when the app's theme changes
renderer.setSelectionColors(undefined, undefined) // back to inverted cells

Each color falls back separately. A Textarea that sets only its own selectionBg keeps that background and uses the renderer's selectionFg. The selectionBg and selectionFg getters on a renderable still return only the values set on that renderable. An app that sets no renderer colors sees no change. ASCIIFont does not use the renderer colors, and the Rust crates do not have renderer selection colors yet.

A box with width: 10, a border, and padding: 1 has 6 columns for its content. The default, "border-box", counts the border and padding as part of the width. With boxSizing: "content-box", the width is the size of the content:

const box = new BoxRenderable(renderer, {
  width: 10,
  height: 3,
  border: true,
  padding: 1,
  boxSizing: "content-box",
})

This box is 14 columns by 7 rows, and its content is 10 by 3. Use it when the content needs an exact size and the frame around it can grow. The default is still "border-box", which is not the CSS initial value, so existing layouts do not change. To restore the default, assign null or undefined.

@opentui/solid no longer installs babel-plugin-module-resolver. Its own Solid transform now rewrites module specifiers with a small Babel plugin. The earlier Node instructions used the resolver to send solid-js to its client runtime. To move to the new setup, remove the resolver from your Babel config and start Node with the browser condition:

node --conditions=browser --experimental-ffi app.js

If your Babel config still imports the resolver, add babel-plugin-module-resolver to your own dependencies. @opentui/solid no longer installs it for you.

Breaking changes

  • solid: @opentui/solid no longer depends on babel-plugin-module-resolver, so npm audit --omit=dev no longer reports GHSA-3g3m-2fjr-6pw4 and GHSA-g3hv-75wg-m249. List the resolver in your own dependencies if your Babel config imports it, or run Node with --conditions=browser instead. See Solid bindings. (#​2182)

Added

  • core: createCliRenderer() accepts selectionBg and selectionFg, and renderer.setSelectionColors(bg, fg) changes them and repaints an active selection. Text, Code, Markdown, Diff, Textarea, Input, and TextTable use these colors when they have no selection color of their own. See Interaction, focus, and selection. (#​2196)
  • core: The boxSizing layout option accepts "content-box", which adds padding and borders to the size and its limits. getBoxSizing() returns the value, and React and Solid props also accept it. See Layout. (#​2183)
  • core: flexBasis accepts a percentage, such as "50%". Before, Core discarded a percentage value without an error. See Layout. (#​2183)
  • native: The Rust Widget trait has box_sizing and aspect_ratio layout methods. See Widgets and layout. (#​2183)

Changed

  • native: syntax_theme on Rust Markdown, Code, Diff, and Textarea accepts impl Into<Arc<SyntaxTheme>>, so views that get clones of one Arc share one theme. Passing a SyntaxTheme still compiles, and a new Diff view now makes 74 allocations instead of 607. See Code, Markdown, and highlighting. (#​2190)

Fixed

  • core: After Ctrl+Z and fg, the renderer resumes at the current terminal size, also in the Rust Host. Before, a terminal that changed size during the suspend got a frame at the old size. See Renderer. (#​2181)
  • native: A percentage flexBasis or percentage padding now updates when its parent resizes, unless the parent takes its size from its content. Before, a 50% child of a row that grew from 20 to 30 cells stayed at 10 cells. See Layout. (#​2192)
  • native: Text that you type after zero-width text, such as a combining mark or ZWJ, at a line start or after a tab now goes after that zero-width text, in Core and Rust. An insert that adds a line break at a line start goes before the zero-width text, so the line keeps it. See Editing buffers and views. (#​2193, #​2185)
  • native: A Rust ScrollBox that becomes sticky after layout now follows new rows only from the edge, as in Core. A program scroll on a box with zero rows no longer jumps to the last items when the content grows. See Widgets and layout. (#​2185)

API changes and documentation: https://opentui.com/docs/releases/0.9.8

What's Changed

Full Changelog: anomalyco/opentui@v0.9.7...v0.9.8

v0.9.7

Compare Source

Fixed

  • rust: Code that no highlight paints now uses its text color, as in Core. This includes a Markdown fence with no language, an unknown language, or display math, and a held streaming fence. Before, the color of a theme's default scope, such as in the opencode theme, replaced the text color. See Code, Markdown, and highlighting. (#​2180)

API changes and documentation: https://opentui.com/docs/releases/0.9.7

What's Changed

Full Changelog: anomalyco/opentui@v0.9.6...v0.9.7

v0.9.6

Compare Source

A Rust app on version 0.9.5 of the crates has this dependency in its Cargo.toml:

[dependencies]
opentui = { package = "anomalyco-opentui", version = "0.9.5" }

There is no 0.9.6 of that package. On crates.io, an unrelated project held the names opentui and opentui-sys, so 0.9.4 and 0.9.5 went out as anomalyco-opentui and anomalyco-opentui-sys. OpenTUI now owns the real names. This release and later ones use them, and the interim names stop at 0.9.5. To upgrade, remove the package key:

[dependencies]
opentui = "0.9.6"

Cargo commands change the same way. cargo test -p anomalyco-opentui becomes cargo test -p opentui, and --features anomalyco-opentui/tokio becomes --features opentui/tokio. The library was always named opentui, so no use line changes. opentui-ssh also kept its name. A Git dependency on tag v0.9.4 or v0.9.5 still needs package = "anomalyco-opentui", because the crates at those tags have that name. As before, use the native archive from the same release as the crates, such as opentui-native-v0.9.6-linux-x64.zip. See Install, link, and ship.

Breaking changes

  • native: The Rust crates are published as opentui and opentui-sys again, and anomalyco-opentui and anomalyco-opentui-sys stop at 0.9.5. Replace opentui = { package = "anomalyco-opentui", ... } with opentui = "0.9.6", and use opentui and opentui-sys with cargo -p and --features. See Install, link, and ship. (#​2179)

Fixed

  • native: With math on, Core and Rust Markdown now draw a $ before a held pipe, as in $|$[, as plain text while the line waits to become a table header. Before, that $ used the math style. See Markdown and Code, Markdown, and highlighting. (#​2178)
  • native: With a syntax theme, Rust Markdown now draws prose in its text color with the background and attributes of the default scope, also in quotes, as Core does. Before, prose used the foreground of the default scope and not its background. See Code, Markdown, and highlighting. (#​2177)

API changes and documentation: https://opentui.com/docs/releases/0.9.6

What's Changed

Full Changelog: anomalyco/opentui@v0.9.5...v0.9.6

v0.9.5

Compare Source

With conceal on, Markdown draws the box of a task item as ☐ or ☑. Before this release, an app could not get ASCII boxes and still conceal the rest of the document. Core apps had to patch the item's Text renderables, and Rust apps could not change the box at all. Now both bindings let you set the box text:

const markdown = new MarkdownRenderable(renderer, {
  content: "- [ ] write tests\n- [x] fix the bug",
  syntaxStyle,
  taskMarkers: { unchecked: "[ ]", checked: "[x]" },
})

In Rust, call task_markers("[ ]", "[x]") on a Markdown. The box is part of the item's marker. With [ ], the wrapped text of an item therefore continues at column 6, under its first word. When you change the option, the items already on screen update, also while the document streams. Without conceal, the option has no effect, and items show the source's [ ] or [x].

A Rust app that streams Markdown into the split-mode scrollback could already get the number of final top-level blocks from committed_block_count. It could not find which rows those blocks use. block_rows() now returns one Range<u32> for each top-level block in the latest frame. These are the same rows that ScrollbackSurface::commit_rows takes. Blocks are one row apart. To commit blocks from..to, each with the gap above it, start at rows[from - 1].end, or at rows[0].start for the first block, and end at rows[to - 1].end. Core apps read the same rows from the y and height of each child in MarkdownRenderable.getChildren(). A shared test checks that Core and Rust put the blocks of a streamed document on the same rows.

Starting with this release, the release workflow publishes the Rust crates to crates.io. cargo add anomalyco-opentui --rename opentui now gets the version of the newest release. Link the native archive from that same release. Prereleases are published too, but Cargo selects a prerelease only when you ask for one.

Added

  • core: MarkdownOptions.taskMarkers and MarkdownRenderable.taskMarkers set the text of the unchecked and checked task boxes when conceal is on. The defaults are ☐ and ☑. See Markdown. (#​2173)
  • native: Rust Markdown::task_markers(unchecked, checked) sets the task boxes when conceal is on, as Core's taskMarkers does. See Code, Markdown, and highlighting. (#​2173)
  • native: Rust Markdown::block_rows returns the rows of each top-level block in the latest frame, in the rows that ScrollbackSurface::commit_rows takes. See Time, animation, and the split footer. (#​2174)
  • native: Each release publishes the Rust crates anomalyco-opentui-sys, anomalyco-opentui, and opentui-ssh to crates.io at the release version. See Install, link, and ship. (#​2170)

API changes and documentation: https://opentui.com/docs/releases/0.9.5

What's Changed

Full Changelog: anomalyco/opentui@v0.9.4...v0.9.5


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch from d94b49b to 5718e8e Compare August 24, 2026 19:06
@renovate renovate Bot changed the title fix(deps): update dependency @opentui/core to v0.5.7 fix(deps): update dependency @opentui/core to v0.5.8 Aug 24, 2026
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 3 times, most recently from 3787cdd to 658be89 Compare August 27, 2026 06:17
@renovate renovate Bot changed the title fix(deps): update dependency @opentui/core to v0.5.8 fix(deps): update dependency @opentui/core to v0.5.9 Aug 28, 2026
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 12 times, most recently from 3f9cf28 to b75c4b8 Compare August 31, 2026 05:12
@renovate renovate Bot changed the title fix(deps): update dependency @opentui/core to v0.5.9 fix(deps): update dependency @opentui/core to v0.5.10 Sep 1, 2026
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 7 times, most recently from 9171811 to 01bcfd1 Compare September 6, 2026 06:06
@renovate renovate Bot changed the title fix(deps): update dependency @opentui/core to v0.5.10 fix(deps): update dependency @opentui/core to v0.5.11 Sep 7, 2026
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 3 times, most recently from f1e9d16 to 58804d7 Compare September 8, 2026 02:01
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 16 times, most recently from d80a780 to 24295eb Compare September 21, 2026 17:03
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 2 times, most recently from f4a813d to e075063 Compare September 22, 2026 22:43
@renovate renovate Bot changed the title fix(deps): update dependency @opentui/core to v0.5.11 fix(deps): update dependency @opentui/core to v0.5.12 Sep 22, 2026
@renovate
renovate Bot force-pushed the renovate/opentui-core-0.x branch 10 times, most recently from 70d54ba to 0354525 Compare September 29, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants