Skip to content

chore: version packages - #167

Open
bombshell-bot[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

bombshell-bot[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@bombshell-bot

@bombshell-bot bombshell-bot Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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.11.0

Minor Changes

  • #146 3a7eab2 Thanks @natemoo-re! - Adds CSS color string support to every color field in @bomb.sh/tty.

    open(id, { bg }), border.color, border.bg, per-side color/bg, and
    text(content, { color, bg }) now accept CSS Color 4 strings in addition to
    packed ARGB numbers from rgba().

    Accepted forms

    • Hex — #rgb, #rgba, #rrggbb, #rrggbbaa
    • Named colors — rebeccapurple, transparent, all CSS named color
      keywords
    • Functions — rgb(), rgba(), hsl(), hsla(), hwb(), lab(),
      lch(), oklab(), oklch()

    Colors are resolved to packed sRGB ARGB values when directives are encoded for
    the renderer. Out-of-gamut colors (common with lab()/oklch()) clip per
    channel. Invalid strings are rejected by validate() and cause render() to
    throw a TypeError before returning output.

    String literals assigned to color fields are also checked at compile time in
    TypeScript: invalid hex digit counts, misspelled named colors, and unsupported
    function names are type errors.

    Migration

    Color fields were previously typed number; they are now typed
    number | string. Existing rgba() calls and numeric color values are
    unaffected.

    -open("box", { bg: rgba(255, 136, 0) });
    +open("box", { bg: "#ff8800" });          // CSS string — new
    +open("box", { bg: rgba(255, 136, 0) }); // packed number — still valid
  • #171 869521b Thanks @cowboyd! - Adds result.info.get(id).replay to reuse an entire rendered element, including
    its descendants, in the next render() call without rebuilding or repacking its
    directives. Layout, pointer handling, caret placement, and transitions use the
    new render's context and options.

    Breaking: removes snapshot(). Give the reusable subtree a named root,
    render its directives once, then obtain its replay from the result:

    let result = term.render([
      open("sidebar"),
      text("Navigation"),
      close(),
    ]);
    
    result = term.render([result.info.get("sidebar")!.replay]);

    Each completed render expires previous replays, even if it emits no output.
    Obtain a fresh replay from each new result. update() calls, including resizes
    and capability changes, and renders that throw preserve existing replays. An
    older result's info.get() returns undefined after another render completes.

    validate() and assert() now reject unbalanced open()/close() directives.
    The optional validated(term) wrapper also rejects expired replays obtained
    through the wrapper.

  • #166 5c61c14 Thanks @cowboyd! - Breaking: term.update(events) returns void instead of a Uint8Array.
    Dimension and capability changes apply synchronously; call term.render() and
    write its output to display them. Multiple updates accumulate in call order
    for the next render.

    Replace writes of the return value from update() with a render in your
    application's render loop:

    -let output = term.update(events);
    -if (output.length) stdout.write(output);
    +term.update(events);
    +let { output } = term.render(ops);
    +stdout.write(output);

    Disabling pointer shape support no longer resets the terminal's pointer shape.
    While support is disabled, renders emit no pointer shape changes and retain the
    last emitted shape for comparison when support is re-enabled. To reset the
    pointer to default, render without a pointer option while support is enabled
    and write the result's output.

Patch Changes

  • #161 cc738ed Thanks @dreyfus92! - Fixes pointer events and pointer shape on a cell where two elements meet. The pointer at that cell is now over only the element that draws it, so clicking a row in a list no longer also clicks the row above it.

  • #169 326f86e Thanks @cowboyd! - Fixes result.info.get(id) returning stale bounds for elements omitted from the
    latest render, including an empty render. These lookups return undefined.

    Fixes a visible caret remaining on screen after a resize when the next render in
    the default mode has no text() directive declaring a caret.

@bombshell-cooper

bombshell-cooper Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Changeset review

  • warning: Changeset should start with an approved active present-tense verb.
  • warning: Changeset package scope does not match the affected packages confidently.

@pkg-pr-new

pkg-pr-new Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@bomb.sh/tty@167

commit: 8eb9cf5

@bombshell-bot
bombshell-bot Bot force-pushed the changeset-release/main branch from e10e053 to 63d0591 Compare October 29, 2026 03:31
@bombshell-bot
bombshell-bot Bot force-pushed the changeset-release/main branch 6 times, most recently from b91c9ba to af66ce7 Compare December 1, 2026 04:10
@bombshell-bot
bombshell-bot Bot force-pushed the changeset-release/main branch from af66ce7 to 8eb9cf5 Compare December 1, 2026 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants