0.1.2
Features
- CommonJS module graphs compile statically.
require,module.exports,exports, module metadata, caching, cycles, resolution, and failure eviction now follow Node semantics across compiled CommonJS graphs. - Async iteration parity expands. Async generators support queued
next/return/throwrequests, promised yields, cleanup, and class, object, and private methods;for awaitcloses custom async iterators and WHATWG readable streams correctly. - Explicit resource management compiles natively.
using,await using,for using, disposable Node handles, and suppressed disposal errors preserve JavaScript cleanup ordering. - Node module resolution introspection is supported.
import.meta.resolve,require.resolve,require.resolve.paths, andmodule.createRequirehandle supported static requests with Node-compatible resolution and errors. - Static npm declarations preserve overloads.
--npm-statickeeps overload groups from shipped declaration files while compiling package implementations, including Commander command actions. - Unknown values preserve native handles. Class and child handles can round-trip through
unknownwhile private fields remain hidden.
Fixes
- TypeScript compatibility is more faithful. Branded primitive types, leading BOM literals, TypeScript 7 project resolution, and Node type-link behavior now retain their expected semantics.
- Dynamic operations and runtime arguments are more reliable. Dynamic
any-local operators lower correctly, executable-path arguments remain intact, and URLSearchParams sorting scales without quadratic behavior.