@oh-my-pi/pi-utils 8.4.5 → 8.6.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/stream.ts +0 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oh-my-pi/pi-utils",
3
- "version": "8.4.5",
3
+ "version": "8.6.0",
4
4
  "description": "Shared utilities for pi packages",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
package/src/stream.ts CHANGED
@@ -6,7 +6,6 @@ import stripAnsi from "strip-ansi";
6
6
  * Removes characters that crash string-width or cause display issues:
7
7
  * - Control characters (except tab, newline, carriage return)
8
8
  * - Lone surrogates
9
- * - Unicode Format characters (crash string-width due to a bug)
10
9
  * - Characters with undefined code points
11
10
  */
12
11
  export function sanitizeBinaryOutput(str: string): string {
@@ -17,7 +16,6 @@ export function sanitizeBinaryOutput(str: string): string {
17
16
  .filter(char => {
18
17
  // Filter out characters that cause string-width to crash
19
18
  // This includes:
20
- // - Unicode format characters
21
19
  // - Lone surrogates (already filtered by Array.from)
22
20
  // - Control chars except \t \n \r
23
21
  // - Characters with undefined code points
@@ -33,9 +31,6 @@ export function sanitizeBinaryOutput(str: string): string {
33
31
  // Filter out control characters (0x00-0x1F, except 0x09, 0x0a, 0x0x0d)
34
32
  if (code <= 0x1f) return false;
35
33
 
36
- // Filter out Unicode format characters
37
- if (code >= 0xfff9 && code <= 0xfffb) return false;
38
-
39
34
  return true;
40
35
  })
41
36
  .join("");