Skip to content

build(deps): bump @opentui/core from 0.5.14 to 0.6.1 - #202

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/opentui/core-0.6.0
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/opentui/core-0.6.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @opentui/core from 0.5.14 to 0.6.1.

Release notes

Sourced from @​opentui/core's releases.

Release v0.6.1

In 0.6.0, EditBuffer.setText("a\fb") throws NativeError. The editor places its cursor by display cell, and a control character took no cells, so the cursor could not move past it or delete it. In 0.5.14, which accepted controls, the cursor in "a\fb" could not reach column 0, Backspace stopped at "a\f", and rendering "A\x07B\x1bC\fD" wrote raw BEL and ESC bytes to the terminal. Rejecting the text stopped that, but every application then had to remove these characters before it could edit a string.

In 0.6.1, editors keep control characters and show them the way Vim and Neovim do. The text "a\fb\0c\x1bd\x85e\x7ff" shows as a^Lb^@c^[d<85>e^?f. A C0 control or DEL is caret notation in two cells, and a C1 control is lowercase hex in four cells. The notation changes only how the text looks. The cursor stops before each control, one Backspace deletes it, and getText(), undo, and selection copy return the original characters. Tab, carriage return, and line feed work as before. Read-only text, such as TextRenderable, still gives controls no cells.

This has one cost. An editor offset is no longer the same as a JavaScript string width. Bun.stringWidth("\f") is 0, but ^L takes two cells. Code that calculates editor offsets from string widths, such as code that places an extmark after a match, must ask the buffer instead. measureText() measures text the way the buffer lays it out, and getTextRange() converts an offset back to a string index:

buffer.setText("\f@file")
const text = buffer.getText()
const offset = buffer.measureText(text.slice(0, text.indexOf("@"))) // 2: ^L takes two cells
buffer.getTextRange(0, offset).length // 1: the index of "@"

Added

  • core: EditBuffer.measureText(text) returns the display offset at the end of text as the buffer would lay it out. It counts each line break as one. See Editing buffers and views. (#1636)
  • native: ot_edit_buffer_measure_text() gives the same measurement through the C interface. See Editing buffers and views. (#1636)

Changed

  • core: EditBuffer.setText(), insertText(), and replaceText(), Textarea initialValue, Input.value, and placeholders accept control characters and do not throw NativeError. An editor shows C0 controls and DEL as ^@ to ^_ and ^? in two cells, and C1 controls as <80> to <9f> in four cells. See Editing buffers and views.

... (truncated)

Commits
  • 8213fe8 Release v0.6.1
  • 542275a editor: show control characters as notation (#1636)
  • dfbb61f Release v0.6.0
  • 786d423 native: keep TERM and COLORTERM color depth in auto remote sessions (#1624)
  • e449ad6 core: add input parser conformance vectors (#1623)
  • 78ca1ed native: grow the object handle table instead of failing at object_capacity (#...
  • c20c30f docs: add versioned release history (#1625)
  • af187ab core: evaluate #lua-match? predicates in tree-sitter queries (#1620)
  • e4eb894 native: keep Down on the empty buffer while a placeholder is shown (#1619)
  • 7221adc native: keep split-footer output off the footer when fewer than two rows rema...
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 14, 2026
@socket-security

socket-security Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​opentui/​core@​0.6.1981009498100

View full report

Bumps [@opentui/core](https://github.com/anomalyco/opentui/tree/HEAD/packages/core) from 0.5.14 to 0.6.1.
- [Release notes](https://github.com/anomalyco/opentui/releases)
- [Commits](https://github.com/anomalyco/opentui/commits/v0.6.1/packages/core)

---
updated-dependencies:
- dependency-name: "@opentui/core"
  dependency-version: 0.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title build(deps): bump @opentui/core from 0.5.14 to 0.6.0 build(deps): bump @opentui/core from 0.5.14 to 0.6.1 Oct 15, 2026
@dependabot
dependabot Bot force-pushed the dependabot/bun/opentui/core-0.6.0 branch from 2498fd7 to a52ffe4 Compare October 15, 2026 00:15
@dependabot @github

dependabot Bot commented on behalf of github Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Looks like @opentui/core is up-to-date now, so this is no longer needed.

@dependabot dependabot Bot closed this Oct 15, 2026
@dependabot
dependabot Bot deleted the dependabot/bun/opentui/core-0.6.0 branch October 15, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants