Yash Singh
bd2176ffb0
fix: format specifier without characters in between ( #9209 )
...
* fix: format specifier without spaces in between, resolves #9208
* chore: test in console-log.test.ts
2024-03-04 17:46:19 -08:00
Meghan Denny
ed339b367d
improve Bun.stringWidth's algorithm ( #9022 )
...
* improve Bun.stringWidth's algorithm
* add a bunch more tests from string-width package
* make typescript happy
* undo typescript changes
* use better #define check for debug mode
* properly handle latin1 width tests
* support grapheme clusters
* fix trailing newline
* visibleUTF16WidthFn- add fast path for leading ascii
* add firstNonASCII16IgnoreMin
* fix firstNonASCII16CheckMin
* vectorize visibleUTF16WidthFn
* support emoji variation selector
* expose stringWidth in release mode too
* vectorize visibleLatin1Width
* support ambiguousIsNarrow option
* add typescript definition for stringWidth
2024-02-22 19:16:17 -08:00
dave caruso
44f7ddd2ff
fix: ConsoleObject handles proxy better ( #9042 )
...
* fix: ConsoleObject handles proxy better
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-02-21 18:33:54 -08:00
argosphil
c920919c42
fix: distinguish getters and setters in Bun.inspect() ( #8858 )
...
* Bun.inspect: distinguish [Getter], [Setter], [Getter/Setter]
fixes #8853
NOTE: this modifies files which were auto-generated at one point, but
which are now maintained as part of the Bun sources.
* test for #8853
---------
Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com >
2024-02-15 13:09:13 -08:00
dave caruso
345a061d3b
fix(windows): make process.env case-insensitive ( #8578 )
...
* yay!!!!!!
* [autofix.ci] apply automated fixes
* ok
* do not use reflect here
* ok
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-31 21:52:50 -08:00
Jarred Sumner
b82656d9fc
Introduce Bun.stringWidth ( #8327 )
...
* Introduce `Bun.stringWidth`
* [autofix.ci] apply automated fixes
* Update utils.md
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-21 04:47:36 -08:00
Lukas Kastern
5a6ef045aa
fix: Hang when recursively logging via ConsoleObject.messageWithTypeAndLevel ( #8213 )
...
* Avoid deadlock in messageWithTypeAndLevel by adding a recursion counter
* Add test for recursive logs
* Do not rely on output of console-recursive.test.js
* [autofix.ci] apply automated fixes
---------
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-16 15:26:23 -08:00
Jarred Sumner
317998fdd6
Make toBunString increment the reference count ( #8146 )
...
* Make `toBunString` increment the reference count
* Fix WASI
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-14 05:36:31 -08:00
Jarred Sumner
7e787d2a5a
Move console methods from exports.zig to ConsoleObject.zig ( #8145 )
...
* ZigConsoleClient -> ConsoleObject
* Rename more
* Rename more
* ZigConsoleClientFormatter -> ConsoleObject
* More renaming
* Wire up console.profile?
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2024-01-12 23:15:36 -08:00