@cplieger/web-terminal-engine 5.0.8 → 5.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/web-terminal-engine",
3
- "version": "5.0.8",
3
+ "version": "5.0.9",
4
4
  "license": "MPL-2.0",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cplieger/web-terminal-engine",
3
- "version": "5.0.8",
3
+ "version": "5.0.9",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "typecheck": "tsc -p tsconfig.json",
@@ -17,15 +17,17 @@
17
17
  "@stryker-mutator/vitest-runner": "10.0.0",
18
18
  "@types/pngjs": "6.0.5",
19
19
  "@typescript/native": "npm:typescript@7.0.2",
20
+ "@vitest/browser": "4.1.11",
21
+ "@vitest/browser-playwright": "4.1.11",
20
22
  "@vitest/coverage-v8": "4.1.11",
21
23
  "esbuild": "0.28.2",
22
- "eslint": "10.8.1",
24
+ "eslint": "10.9.1",
23
25
  "fast-check": "4.9.0",
24
- "happy-dom": "20.11.6",
26
+ "playwright": "1.62.1",
25
27
  "pngjs": "7.0.0",
26
28
  "prettier": "3.9.6",
27
29
  "typescript": "npm:@typescript/typescript6@6.0.2",
28
- "typescript-eslint": "8.67.0",
30
+ "typescript-eslint": "8.68.0",
29
31
  "vitest": "4.1.11"
30
32
  },
31
33
  "overrides": {
package/src/connection.ts CHANGED
@@ -700,10 +700,6 @@ export function sendResize(): void {
700
700
  sendControl({ type: "resize", cols, rows });
701
701
  }
702
702
 
703
- // resetLedger drops a session's reliable-input accounting. Called when the
704
- // server's boot epoch changes (restart) or when the server no longer recognizes
705
- // the session -- both invalidate the local bytesSent/bytesAcked/outbox state.
706
- // The three entry points below differ only in whether the UI hears about it.
707
703
  // resetLedger drops a session's reliable-input accounting. Called whenever the
708
704
  // server no longer holds the ledger these counters were keyed to (a restart, an
709
705
  // idle-GC'd resume key, a session the server does not recognize): its
package/src/render.ts CHANGED
@@ -1355,9 +1355,7 @@ function flushRender(): void {
1355
1355
  const anchor = captureReadAnchor();
1356
1356
  try {
1357
1357
  flushRenderInner();
1358
- // A clean pass means the error condition (if any) has cleared, so give a
1359
- // later transient error its full retry budget again. Any backlog reschedule
1360
- // was already issued from flushRenderInner's own end-of-body.
1358
+ // Clean pass: give a later transient error its full retry budget again.
1361
1359
  renderNoProgressStreak = 0;
1362
1360
  } catch (err) {
1363
1361
  console.error("vterm: render error", err);
@@ -1525,7 +1523,6 @@ function flushRenderInner(): void {
1525
1523
  }
1526
1524
  }
1527
1525
 
1528
- // Refresh cursor state from the window.
1529
1526
  const win = store.getWindow();
1530
1527
  const newCursorAbs = win.base + win.cursorRow;
1531
1528
  cursorAbs = newCursorAbs;
@@ -1538,11 +1535,9 @@ function flushRenderInner(): void {
1538
1535
  // resulting mode is unchanged.
1539
1536
  syncCursorBlink();
1540
1537
 
1541
- // Alt screen: render the ephemeral grid instead of the absolute buffer.
1542
- // Returning here skips the dirtyLines queueing below — safe by invariant:
1543
- // main-buffer rows never repaint while alt is active, and the alt-exit
1544
- // branch below rebuilds EVERYTHING via queueRowsViewportFirst, so any line
1545
- // dirtied during the alt session is repainted at exit.
1538
+ // Skips the dirtyLines queueing below — safe: main-buffer rows never
1539
+ // repaint while alt is active, and alt-exit rebuilds via
1540
+ // queueRowsViewportFirst, repainting any line dirtied during the alt session.
1546
1541
  if (store.isAlt()) {
1547
1542
  const altRows = store.getAltRows();
1548
1543
  renderAlt(altRows);
@@ -1570,7 +1565,6 @@ function flushRenderInner(): void {
1570
1565
  queueRowsViewportFirst();
1571
1566
  }
1572
1567
 
1573
- // Queue this frame's changed rows for building.
1574
1568
  for (const abs of ch.dirtyLines) {
1575
1569
  renderQueue.add(abs);
1576
1570
  }