Version 1.0.0 of io.js was released today. This post is going to give you an overview of what io.js is, what the differences and benefits are and what the aim of the project is.
The beginning – how it started
But why did this fork happen?
In July, 2014 they started working with Joyent to ensure that the contributors and the community has the ability to help fix the problems that Node.js faces / will face.
Then in August Node Forward was started to help improve Node.js:
Due to trademark restrictions, the guys could not do a release – but luckily for the community, all those efforts are incorporated into io.js.
After this, Fedor decided to fork Node.js under the name io.js.
The main differences
As you could have already noticed, io.js introduces proper semver, starting with 1.0.0. Also, io.js comes with nightly builds too.
But what’s really great about this release is the updated V8 engine (from version 126.96.36.199 in Node.js v0.10.35 and 3.26.33 in Node.js v0.11.14 to 188.8.131.52 for io.js v1.0.0), which brings us ES6 features, without the
--harmony flag – at least those that don’t require a flag in V8 neither.
What about the staging/in-progress features?
All the new features that are considered staging/in-progress by the V8 team are available under the flags starting with
--harmony. These are not meant for production systems.
Changes in the core modules
io.js not only brings us ES6, but also new (experimental) core modules and new features/fixes to the existing ones as well.
Available ES6 features
The following list of features are available without using any flags:
- Block scoping (
- Collections (
- Binary and Octal literals
- New String methods
- Template strings
You can always check which version of V8 is used by your installed io.js simply, with:
iojs -p process.versions.v8
With this information you can check the available features. Also, you can check this ES6 compat-table as well.
io.js ships with new core modules as well, that can be used without installing from npm is a software registry that serves over 1.3 million packages. npm is used by open source developers from all around the world to share and borrow code, as well as many businesses. There are three components to npm: the website the Command Line Interface (CLI) the registry Use the website to discover and download packages, create user profiles, and.... These are:
- v8: core module for interfacing directly with the V8 engine
For the complete API Reference, check: https://iojs.org/api/
For the complete changelog, check:
To get started with io.js, visit iojs.org and download the installer for your system.
After installing it, you can simply start your application the very same way you did with Node.js:
If you are used to nvm, then we have good news for you: an io.js compatible version is coming soon!
I would encourage you to test your modules with io.js, and report to https://github.com/iojs/io.js if you find something unexpected.