Skip to content

Commit 4e11dfc

Browse files
committed
content: mention legacy date libraries in Temporal section
Adds a short paragraph acknowledging Moment.js, Luxon, and date-fns as the libraries we used to reach for, and frames Temporal as one less dependency to worry about. https://claude.ai/code/session_01AQihcJjkxeokR9LrdeYuZY
1 parent c1acb20 commit 4e11dfc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • src/content/blog/whats-new-in-nodejs-26

src/content/blog/whats-new-in-nodejs-26/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ Working with dates in JavaScript has been famously painful. The legacy `Date` ob
5757

5858
Temporal is immutable, type-safe (you cannot accidentally mix a date with a date-and-time), and time-zone-aware by design.
5959

60+
For years I reached for external libraries whenever I had to do anything non-trivial with dates, times, or time zones. Back in the day it was [Moment.js](https://momentjs.com/) (and `moment-timezone` for IANA support), and more recently [Luxon](https://moment.github.io/luxon/) or [date-fns](https://date-fns.org/) for a leaner, immutable-friendly API. They are all genuinely good libraries and they served me well over the years, but I am always happy to drop a dependency, and you should be too.
61+
6062
### Today, tomorrow, and a month from now
6163

6264
```javascript

0 commit comments

Comments
 (0)