1
2## 2.0.6
3
4Version 2.0.4 adds support for React Native by clarifying in package.json that
5the browser environment does not support Node.js domains.
6Why this is necessary, we leave as an exercise for the user.
7
8## 2.0.3
9
10Version 2.0.3 fixes a bug when adjusting the capacity of the task queue.
11
12## 2.0.1-2.02
13
14Version 2.0.1 fixes a bug in the way redirects were expressed that affected the
15function of Browserify, but which Mr would tolerate.
16
17## 2.0.0
18
19Version 2 of ASAP is a full rewrite with a few salient changes.
20First, the ASAP source is CommonJS only and designed with [Browserify][] and
21[Browserify-compatible][Mr] module loaders in mind.
22
23[Browserify]: https://github.com/substack/node-browserify
24[Mr]: https://github.com/montagejs/mr
25
26The new version has been refactored in two dimensions.
27Support for Node.js and browsers have been separated, using Browserify
28redirects and ASAP has been divided into two modules.
29The "raw" layer depends on the tasks to catch thrown exceptions and unravel
30Node.js domains.
31
32The full implementation of ASAP is loadable as `require("asap")` in both Node.js
33and browsers.
34
35The raw layer that lacks exception handling overhead is loadable as
36`require("asap/raw")`.
37The interface is the same for both layers.
38
39Tasks are no longer required to be functions, but can rather be any object that
40implements `task.call()`.
41With this feature you can recycle task objects to avoid garbage collector churn
42and avoid closures in general.
43
44The implementation has been rigorously documented so that our successors can
45understand the scope of the problem that this module solves and all of its
46nuances, ensuring that the next generation of implementations know what details
47are essential.
48
49-   [asap.js](https://github.com/kriskowal/asap/blob/master/asap.js)
50-   [raw.js](https://github.com/kriskowal/asap/blob/master/raw.js)
51-   [browser-asap.js](https://github.com/kriskowal/asap/blob/master/browser-asap.js)
52-   [browser-raw.js](https://github.com/kriskowal/asap/blob/master/browser-raw.js)
53
54The new version has also been rigorously tested across a broad spectrum of
55browsers, in both the window and worker context.
56The following charts capture the browser test results for the most recent
57release.
58The first chart shows test results for ASAP running in the main window context.
59The second chart shows test results for ASAP running in a web worker context.
60Test results are inconclusive (grey) on browsers that do not support web
61workers.
62These data are captured automatically by [Continuous
63Integration][].
64
65![Browser Compatibility](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-results-matrix.svg)
66
67![Compatibility in Web Workers](http://kriskowal-asap.s3-website-us-west-2.amazonaws.com/train/integration-2/saucelabs-worker-results-matrix.svg)
68
69[Continuous Integration]: https://github.com/kriskowal/asap/blob/master/CONTRIBUTING.md
70
71