A Gentle Reintroduction to the Reactive Extensions for JavaScript

One of the things that I’ve been doing since I last blogged has been working on the Reactive Extensions for JavaScript (RxJS).  Since I last blogged, we have had two releases, a version 1.0.10621 SP1 which we released back in December of last year and version 2.0 Beta which was just released a couple of weeks ago.  You can check out the release notes for each version, v1.0.10621 SP1 and v2.0.20327 Beta respectively.  Along with these releases, we’ve also put the packages up on NuGet, create Visual Studio style documentation/intellisense, and put the bindings for third-party libraries and runtimes such as Node.js, jQuery, Dojo, ExtJS, MooTools and others on GitHub.

With the release of version 1.1, it was a complete re-engineering effort to not only maintain parity with the .NET version, which had changed quite a bit since the Reactive Extensions for JavaScript was first released.  Not only did we maintain parity with the .NET APIs, we also made an effort to make it feel more like JavaScript, but camel-casing the names to be more inline with JavaScript itself. For example, the old way of doing things with version 1.0 with C# style API calls:

Becomes camel cased to fit more in line with JavaScript norms.  This move made us rename some of the methods which collide with JavaScript reserved words such as Return => returnvalue, Catch => catchException.

The Reactive Extensions for JavaScript V2 Beta once again tries for parity with the Reactive Extensions for .NET V2 Beta in terms of APIs, but differs as with the current release, we still support the old schedulers of Immediate, CurrentThread and Timeout.  We’ve also added new experimental operators such as imperative operators as if, case, for, while and do while, as well as others such as fork join.  I’ll go over more in detail in subsequent posts.


In the coming posts, I’ll go over in detail, reintroducing the Reactive Extensions for JavaScript, why it’s useful and where you can take advantage of it.  Check us out on GitHub, download us via NuGet or the MSDN Data Developer Center, and give feedback on the forum!

This entry was posted in JavaScript, Reactive Framework and tagged , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post.

Comments are closed.