Skip to content

Commit 145e743

Browse files
chore: version packages
1 parent d8f2a24 commit 145e743

4 files changed

Lines changed: 28 additions & 28 deletions

File tree

‎.changeset/cooper-approved-132.md‎

Lines changed: 0 additions & 22 deletions
This file was deleted.

‎.changeset/grumpy-grapheme-fix.md‎

Lines changed: 0 additions & 5 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# @bomb.sh/tty
22

3+
## 0.10.0
4+
5+
### Minor Changes
6+
7+
- [#132](https://github.com/bombshell-dev/tty/pull/132) [`d8f2a24`](https://github.com/bombshell-dev/tty/commit/d8f2a247b2607f783d8d00790725ff954b3d7410) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Adds `CapabilityEvent` to `InputEvent` and changes `InputOptions.terminfo` to accept a `TerminalInfo`.
8+
9+
`scan()` now parses terminal probe responses — OSC 10/11/12 theme colors, OSC 21 kitty color protocol, OSC 22 pointer shape, XTGETTCAP (`DCS`), kitty graphics (`APC`), kitty keyboard (`CSI ?…u`), synchronized output (`DECRPM`), and DA1 — and surfaces them as typed `CapabilityEvent` objects with keys `foreground-color`, `background-color`, `cursor-color`, `colordepth`, `sync-output`, `kitty-keyboard`, `kitty-graphics`, and `pointer-shape`.
10+
11+
**Breaking:** `InputOptions.terminfo` now takes the `TerminalInfo` returned by `detectTerminal()` instead of raw compiled terminfo bytes. It seeds the key-sequence trie from `terminfo.keys` and uses `terminfo.capabilities.colors` to resolve colordepth denial events to the correct tier (`"16"` vs `"256"`). Raw bytes now go to `detectTerminal({ entry })`.
12+
13+
#### Migration
14+
15+
```diff
16+
- import { createInput } from "@bomb.sh/tty";
17+
+ import { createInput, detectTerminal } from "@bomb.sh/tty";
18+
19+
- const input = await createInput({ terminfo: myTerminfoBinary });
20+
+ const terminfo = await detectTerminal({ env: process.env, entry: myTerminfoBinary });
21+
+ const input = await createInput({ terminfo });
22+
```
23+
24+
Omit `terminfo` entirely to keep the xterm default key sequences.
25+
26+
### Patch Changes
27+
28+
- [#114](https://github.com/bombshell-dev/tty/pull/114) [`666546e`](https://github.com/bombshell-dev/tty/commit/666546e88a54885eb18c5fd5d288f3844483c58b) Thanks [@natemoo-re](https://github.com/natemoo-re)! - Fixes combining marks (accents, ZWJ, variation selectors, kitty-graphics placeholder diacritics) being silently dropped from rendered output instead of attaching to their base character's cell. Cells that overflow the 8-mark-per-cell limit now also surface a `COMBINING_MARKS_EXCEEDED` render error instead of truncating silently.
29+
330
## 0.9.0
431

532
### Minor Changes

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bomb.sh/tty",
3-
"version": "0.9.0",
3+
"version": "0.10.0",
44
"type": "module",
55
"private": true,
66
"scripts": {

0 commit comments

Comments
 (0)