The 1.4.0 version enhances JavaScript’s asynchronous capabilities, making promises and timeouts more robust and easier to manage.
Major Features
Promise.withResolvers()
– A new method that simplifies promise management by providing direct access to resolve and reject functions.Timeout Control with AbortSignal –
setTimeout()
now integrates withAbortSignal
, allowing developers to cancel timeouts dynamically.
Performance Enhancements
Optimized Event Loop Scheduling – Ensuring smoother execution of asynchronous tasks.
Reduced Garbage Collection Impact on Animations – Making UI animations and real-time applications more fluid.
Bug Fixes
Clearer Async/Await Stack Traces – Debugging async code is now significantly easier.
Improved JSON Parsing –
JSON.parse()
now correctly handles large numbers, avoiding data loss.