Repository navigation
chore: version packages - #181
Merged
Merged
Conversation
commit: |
bombshell-bot
Bot
force-pushed
the
changeset-release/main
branch
from
December 3, 2026 05:55
ecb4e00 to
3789b3e
Compare
bombshell-bot
Bot
force-pushed
the
changeset-release/main
branch
from
December 3, 2026 18:08
3789b3e to
a33e250
Compare
natemoo-re
approved these changes
Dec 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@bomb.sh/tty@0.12.0
Minor Changes
#148
6cbbaf4Thanks @natemoo-re! - Adds capability-aware SGR color encoding to the renderer.The renderer now derives its color encoding from terminal capability evidence instead of always emitting 24-bit truecolor. Terminals with truecolor evidence (
RGB/Tc,COLORTERM, direct-colormax_colors, or acolordepthprobe folded throughterm.update()) continue to receive byte-identical truecolor output. Without truecolor evidence, cells emit 256-color SGR (\x1b[38;5;Nm) whencolors > 16, or 4-bit SGR (\x1b[31m) at or below 16. Colors are downmapped deterministically. In 256-color output, RGB colors map onto the 6×6×6 cube and grayscale ramp (rgba(255, 0, 0)→\x1b[38;5;196m), never onto indices 0–15, which follow the terminal's theme. In 16-color output, they map to the nearest standard palette entry. Use the-ansi-*keywords when you want the terminal's own palette colors. A tier change between frames forces a complete redraw.The baseline — no capability evidence — now resolves to 256-color rather than truecolor. Pass
detectTerminal()output tocreateTermto restore truecolor output on terminals that support it.Migration
import { createTerm } from "@bomb.sh/tty"; + import { detectTerminal } from "@bomb.sh/tty"; - const term = await createTerm({ width, height }); + const terminfo = await detectTerminal(); + const term = await createTerm({ width, height, terminfo });#158
836f8e0Thanks @natemoo-re! -open()accepts acolorfield: the element's own foreground color, inheritedby every descendant that doesn't set its own.
currentcoloris now a validcolor string everywhere, including
coloritself, where it means "inherit"(the same as omitting the field). Used in any other color field —
open({ bg }),text({ bg }),border.color,border.bg, or a structuredborder side's
color/bg— it resolves to the directive's own resolvedcolor (its explicit
color, or the color it inherits), then follows the samefield resolution as any other color, so it probes the terminal theme and
transitions normally when that resolved color is an sRGB value.
border.coloris now optional and defaults to
currentcolor, matching CSS; a border with nocolorset anywhere picks up the element's own foreground, same as beforethis feature existed.
Inheritance,
currentcolor, and system colors resolve where the element sitsin the frame being rendered, so a replayed element inherits from wherever its
replay appears, and system colors in it pick up a theme report on the next
render.
#157
d9b19c2Thanks @natemoo-re! - Color fields accept colors that follow the user's terminal theme instead of afixed RGB value, so output matches their light or dark theme.
The sixteen ANSI palette entries are named with
-ansi-keywords:-ansi-black,-ansi-red,-ansi-green,-ansi-yellow,-ansi-blue,-ansi-magenta,-ansi-cyan, and-ansi-whitefor entries 0–7, and-ansi-bright-blackthrough-ansi-bright-whitefor entries 8–15. They renderas SGR 30–37/90–97 (or 40–47/100–107 as a background) and match
case-insensitively. CSS named colors are unchanged:
redis still#ff0000,while
-ansi-redis whatever red the terminal's theme uses.The CSS system colors
CanvasandCanvasTextname the terminal's defaultbackground and foreground.
text({ bg: "Canvas" })paints the terminal defaultbackground over any enclosing element background, while an omitted
bgstillkeeps it. Named in the other field, they paint the terminal's actual default
color once it's known:
text({ bg: "CanvasText" })renders the terminal's realdefault foreground color as an opaque truecolor background, learned from the
terminal's OSC 10/11 theme report, falling back to the default background until
that report arrives. Other CSS system colors are not supported. Packed
rgba()colors and other color strings render exactly as before.
Patch Changes
#84
9c2354fThanks @natemoo-re! - Fixes width measurement and rendering of emoji with variation selector-16 (U+FE0F)#86
43c8915Thanks @natemoo-re! - Fixes rendering whenfloatingelements overlap the trailing column of wide characters#179
1585d55Thanks @natemoo-re! - Improvesterm.render()andresult.info.get()memory use by encoding element ids and text directly into the transfer buffer instead of allocating per string#168
0813fa4Thanks @dreyfus92! - Fixes how elements at fractional positions map to cells. An element now draws on, and receives the pointer for, exactly the cells whose centers its bounding box covers. Elements sliding in past the top edge no longer pile onto row 0, and two elements that meet halfway through a cell no longer both receive the pointer there.