Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,24 @@ On failure:

---


## v0.5.0: Node.js Ecosystem Compatibility Extended

**Status:** πŸ—“οΈ Planned

**Goal:** Enable natural Node.js development patterns and improve npm package compatibility in WASM.

**Polyfills needed:**

- [ ] **path:** Use `path-browserify` and alias `import path from 'path'`.
- [ ] **os:** Custom minimal polyfill for `import os from 'os'`.
- [ ] **Global process:** Comprehensive `process` polyfill (env, argv, cwd, exit, nextTick) injected as a global via esbuild.
- [ ] **url:** Alias Node's `import { URL } from 'url'` to native Web `URL` class.
- [ ] **buffer:** Use `buffer` package to polyfill Node.js `Buffer` class β†’ `Uint8Array`.
- [ ] **events:** Use `events` package to polyfill `EventEmitter`.
- [ ] **stream:** Use `readable-stream` for Node.js stream compatibility.
- [ ] **fs:** Map `import fs from 'fs'` to WASI file operations:
- `fs.readFile()` β†’ Capsule's `readText()`/`readBytes()`
- `fs.writeFile()` β†’ Capsule's `writeText()`/`writeBytes()`
- `fs.readdir()` β†’ Capsule's `list()`
- Document supported subset vs. full Node.js `fs` API
---