0.0.24
Features
- Everyday filesystem work stays static across more of the file lifecycle.
fs.rename,fs.renameSync, andfs/promises.renamelower with Node's callback, promise, replacement, and platform error behavior;fs.writeSynccovers the Buffer-window and UTF-8 string overloads with current-offset and positioned writes; andfs/promises.openreturns a nativeFileHandlewithfd,read,write,readFile,writeFile,appendFile,stat, and idempotentclose. The three-argumentfs/promises.writeFileaccepts the supported UTF-8 and creation-mode options, while filesystem stats exposeblocks,nlink, andatimeMsthrough path, promise, file-handle, and dynamic-bridge results. - Native text decoding covers the WHATWG encoding families. A statically labelled
TextDecoderrecognizes the standard aliases for the legacy single-byte, UTF-16, Chinese, Japanese, and Korean encodings, including BOM handling and malformed-input recovery matching the pinned Node runtime. Runtime-valuedBufferEncodingarguments also work inBuffer.toString, with case-insensitive aliases, optional defaults, range behavior, and Node's unknown-encoding errors. util.parseArgscompiles statically. Boolean and string options, short and clustered spellings, repeated values, defaults, negative options, positionals, token output, permissive parsing, the live defaultprocess.argv, and Node's coded validation errors lower through both backends.- Array mutation and bounded string splitting grow their static surface.
Array.prototype.unshiftandreversepreserve mutation, spread, evaluation order, and reference identity, whileString.prototype.splitaccepts JavaScript limits for string and literal-RegExp separators withToUint32semantics. process.stdout.writeandprocess.stderr.writeaccept encoding and completion arguments. String chunks honor supported encoding aliases, byte chunks retain their bytes, and successful completion callbacks join the next-tick queue in Node's order on both backends.
Performance
- Canonical typed-array loops use native integer induction. Both backends recognize semantics-safe byte loops and emit integer counters and direct byte indexes, avoiding repeated floating-point index conversion while preserving the general fallback whenever the loop shape cannot prove the rewrite.