Skip to content

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 19 Oct 16:06
· 77 commits to main since this release

What's changed

Node compatibility

  • CJS module semantics match Node: module.id is "." for the entry file, full path for dependencies. module.loaded set to true after execution. process.mainModule points to the entry module (CJS only; undefined for ESM entries).
  • require.cache is a plain object: keyed by absolute filename, same as Node. Deleting an entry forces the next require() to reload the module — hot-reload tools and test runners work correctly.
  • No global require in ESM: reverted to match Node 22+ behavior. typeof require is undefined in .mjs files. Use createRequire(import.meta.url) when needed.
  • EPIPE on stdout/stderr: broken pipes now produce { code: "EPIPE", errno: -32, syscall: "write" } instead of "Uncaught (in promise) undefined". console.log silently swallows pipe errors, same as Node.
  • Target Node v26.12.0: process.version, process.versions.node, and CLI --version updated.

Stability

  • HTTP client disconnect no longer crashes the server: a client closing the connection mid-response is handled gracefully — no unhandled promise rejection, no server restart needed.
  • Windows path handling: require.resolve and dynamic require() now produce correct paths on Windows (drive letter handling in __filenameOf).
  • Windows CI: connection error assertions relaxed for platform differences.

Platform

  • Linux builds target glibc 2.28+ for broader distro compatibility.
  • Version string sourced from Cargo.toml in one place.