mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 04:55:58 +03:00
[PR #776] [MERGED] refactor: replace Bun.file usages with node:fs #1555
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1555
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/776
Author: @bienzaaron
Created: 3/4/2026
Status: ✅ Merged
Merged: 3/9/2026
Merged by: @kommander
Base:
main← Head:main📝 Commits (10+)
4df540cdocs: update AGENTS.md to remove Bun api preferences1da6c41refactor(core): replaceBun.file(...).text()withfs.readFile(...)7498032chore(core): remove unused imports and use consistentnode:prefix on builtin modules08118d1refactor(solid): replaceBun.file(...).text()withfs.readFile(...)5bc1c64refactor(core): replaceBun.file(...).arrayBuffer()withfs.readFile(...)e8d06efrefactor(core): replaceBun.file(...)usage in tree-sitter caching testd5d6512chore(core): use consistentnode:prefix on builtin module38885ecrefactor(core): replace synchronousBun.file(...).writer()usage withfs.writeFileSync0744d1brefactor(core): replaceBun.file(...).stat()withfs.stat(...)d94ed0afix: formatting📊 Changes
9 files changed (+38 additions, -57 deletions)
View changed files
📝
AGENTS.md(+1 -7)📝
packages/core/src/3d/TextureUtils.ts(+2 -1)📝
packages/core/src/benchmark/markdown-benchmark.ts(+2 -3)📝
packages/core/src/examples/build.ts(+5 -5)📝
packages/core/src/examples/text-wrap.ts(+4 -5)📝
packages/core/src/lib/tree-sitter/cache.test.ts(+5 -4)📝
packages/core/src/lib/tree-sitter/download-utils.ts(+7 -7)📝
packages/core/src/zig.ts(+8 -19)📝
packages/solid/scripts/solid-plugin.ts(+4 -6)📄 Description
see #2.
Replaces
Bun.file(...)usage withnode:fsto start working toward node.js and deno compatibility.I also updated AGENTS.md to recommend against Bun-specific APIs in generated code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.