YUI 2.4.0 has been released

As announced earlier today, YUI 2.4.0 has been released. I’ve contributed this time around in two areas.

First, I did a major overhaul of YUI Test to allow for asynchronous tests. All tests now run asynchronously, which eliminates long-running script errors that may occur with large test suites. This asynchronous behavior also allows for tests to wait before continuing, which means you can wait for an event to occur, wait for data to be returned from the server, or wait a predefined amount of time before continuing the test. You can check out the examples and documentation for information on how to get that working.

My second contribution to YUI this release is in the new profiler. The profiler allows you to specify particular functions for measurement, collecting information about the number of calls as well as average, min, and maximum execution time. There is no user interface for the profiler, but it can be really useful in doing performance testing on top of YUI Test. There are plans for a user interface in a later release.

This release was a lot of work for myself and the other YUI authors, but I think you’ll be very pleased with the results.

Understanding JavaScript Promises E-book Cover

Demystify JavaScript promises with the e-book that explains not just concepts, but also real-world uses of promises.

Download the Free E-book!

The community edition of Understanding JavaScript Promises is a free download that arrives in minutes.