Hasty Briefsbeta

Bilingual

What's new in JavaScript (and what's coming next)

4 hours ago
  • #JavaScript
  • #ES2026
  • #ES2025
  • JavaScript features are governed by the ECMAScript specification, maintained by the TC39 committee through a stage process (0-4) for proposals.
  • ES2025 introduces iterator helpers (.map, .filter, .take, etc.) for lazy iteration, set methods (union, intersection, etc.), JSON modules with import attributes, Promise.try, RegExp.escape, Float16Array, and Intl enhancements.
  • ES2026 features include the 'using' keyword for resource cleanup, Temporal as a replacement for Date, import defer for lazy module evaluation, Math.sumPrecise for accurate summation, Uint8Array base64/hex methods, Error.isError, Iterator.concat, Map.getOrInsert, and Array.fromAsync.
  • Notable proposals not yet in JavaScript include decorators (Stage 3), records and tuples (stalled), pipeline operator (debated), pattern matching (Stage 1), async iterator helpers (Stage 2), and AsyncContext (Stage 2).
  • AI coding assistants may generate outdated code pre-ES2025; users can apply a skill or instructions to modernize suggestions, preferring features like Temporal, iterator helpers, and using keyword.