The Wire · Showcase
NODE.JS STRIPS DEPRECATED API CALLS, FIXES FFI BOOL REGRESSION
By RepoJournal · Filed · About Node.js
Antoine du Hamel landed two critical cleanups in core this cycle, removing deprecated function calls and custom DOM polyfills while the FFI layer gets a precision fix that restores uint8 semantics.
Node.js is tightening its internal APIs. The stream module ditched its custom `CloneableDOMException` implementation [1], a workaround that's outlived its usefulness now that the platform's native `DOMException` supports cloning natively. The DNS module followed suit, stopping use of deprecated functions in `SetServers` [2], keeping the codebase aligned with modern patterns. On the FFI front, a subtle but important regression got fixed: the `bool` type in fast calls was incorrectly mapped to V8's JavaScript Boolean after JIT optimization, changing return values from numbers to Booleans and accepting true/false as arguments when it shouldn't [3]. The fix normalizes `bool` to `kUint8` semantics, restoring documented behavior. Documentation also got attention, with broken links cleaned up during backport work to v24.x [4]. Meanwhile, undici tightened Windows compatibility by ignoring auto-generated .npmrc files [5], and the nightly snapshots continue rolling [6].
One email a day. Unsubscribe in one click.
What actually shipped in Node.js, written up every day — commits, pull requests, releases, and security advisories.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
- → Review FFI bool calls in your native bindings before next Node.js upgrade nodejs/node [plan]
- → Check backport-ready commits for broken doc links in v24.x-staging nodejs/node [plan]
- → Update undici if you ship Windows CI with auto-generated .npmrc nodejs/undici [monitor]
References
- [1] stream: remove custom `CloneableDOMException` implementation nodejs/node
- [2] dns: stop using deprecated functions in `SetServers` nodejs/node
- [3] ffi: preserve uint8 semantics for bool fast calls ↗ nodejs/node
- [4] doc: fix broken links and clean up type map ↗ nodejs/node
- [5] Ignore auto-generated .npmrc on Windows ↗ nodejs/undici
- [6] snap: (auto) updated to 27.0.0-nightly202607230992f6b87e nodejs/snap