feat(unenv-preset): add native node:tty module support#12023
feat(unenv-preset): add native node:tty module support#12023petebacondarwin merged 3 commits intomainfrom
Conversation
🦋 Changeset detectedLatest commit: 8929085 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
a6ede63 to
be6cbec
Compare
be6cbec to
34c9f65
Compare
|
Claude finished @petebacondarwin's task —— View job Changeset ReviewReviewing changeset files for this PR... Todo List:
✅ All changesets look good The changeset
The changeset correctly describes adding support for the native |
34c9f65 to
56c9dc1
Compare
|
Blocked on cloudflare/workerd#6064 |
2163339 to
b231f63
Compare
b231f63 to
471c2bf
Compare
|
The workerd fix has landed cloudflare/workerd#6064 and this PR is now unblocked and the minimum peer dependency has been bumped. See v1.20260213.0 |

Devin PR requested by @petebacondarwin
Adds support for the native
node:ttymodule from workerd when theenable_nodejs_tty_moduleandexperimentalcompatibility flags are enabled. This follows the same pattern as other experimental modules (inspector, sqlite, dgram, stream_wrap, repl).The native code appears in workerd as of https://github.com/cloudflare/workerd/blob/main/src/node/tty.ts. It is currently experimental with no default enable date.
Implementation Comparison
isattyReadStreamWriteStreamImplementation Notes
Human Review Checklist
getTtyOverrides()function follows the same pattern as other experimental modules (requiresexperimentalflag)enable_nodejs_tty_module/disable_nodejs_tty_module)