Node.js 26.0.0 (Now with Temporal)
Node.js 26.0.0 has landed, bringing the much-anticipated Temporal API enabled by default, along with updates to V8 and Undici. This release marks a significant step in modernizing JavaScript's date and time handling, a move met with developer enthusiasm. However, the discussion also veers into comparisons with competitors like Bun, sparking debate over performance and compatibility.
The Lowdown
Node.js has officially released version 26.0.0, designated as a "Current" release for the next six months before transitioning to Long Term Support (LTS) in October. This update focuses on core platform improvements and modernizing key aspects of JavaScript development.
- Temporal API Default Enablement: The most significant highlight is the Temporal API, now enabled by default. This modern date/time API aims to provide a more robust and feature-rich alternative to the legacy
Dateobject, addressing long-standing frustrations with JavaScript's native date handling. - V8 Engine Update: The V8 JavaScript engine has been updated to version 14.6.202.33, bringing new language features such as
[Weak]Map.prototype.getOrInsert()andIterator.concat(). - Undici 8: The built-in HTTP client, Undici, has been upgraded to version 8.0.2, promising further enhancements to network operations.
- Deprecations and Removals: Several older APIs and experimental features have been deprecated or removed, including
http.Server.prototype.writeHeader(), legacy_stream_*modules, and the--experimental-transform-typesflag, signaling a continued effort to streamline the platform. - Build System Updates: The release also includes changes to build requirements, such as bumping the GCC requirement to 13.2 and dropping support for Python 3.9.
Overall, Node.js 26.0.0 represents a forward-looking update, especially in bringing a long-desired native solution for complex date and time operations to the forefront.
The Gossip
Timely Temporal Triumphs
Commenters express widespread excitement for the default inclusion of the Temporal API, viewing it as a long-overdue, robust solution for date and time handling in JavaScript. They highlight its superiority over the problematic legacy `Date` object and even established libraries like Moment.js, anticipating an end to common date-time pitfalls.
Bun's Blazing Battle
The discussion frequently pivots to Bun, with users urging Node.js to adopt Bun's performance and feature set. While some claim Bun offers significant advantages and compatibility, others argue it's not a direct drop-in replacement for existing projects, leading to a debate about the practical migration effort versus perceived upsides.
Release Notes Remarks
Minor criticisms emerged regarding the release notes and the accuracy of the submission. One commenter noted that the post linked to Node.js 26.0.0 when 26.2.0 was already available, a point the submitter acknowledged. Another expressed disappointment that a built-in SQLite feature wasn't prominently featured as stable, indicating a desire for clarity on anticipated features.