Node.js 7.0.0 has been released. Meet async / await without babel

    File: Node.js logo 2015.svg

    The 7th note has become yellow, cheers! What's new:

    • The V8 engine has been updated to version 5.4.500.36, which provides support for 98% of the JavaScript features defined in the ES2015 specification (ES6) and, in part, the future ES2017 standard.
    • A new URL parser complies with the URL design standard prepared by the WHATWG community.
    • Improved work with Buffer, Child Process, Cluster, file system, promises
    • Full list of changes

    This is a long-awaited release for me, as it became possible to use the async / await construct without the babel transpiler. This is all turned on by the key --harmony .

    Now you can without babel like this:

    (async function() {
        let content = await require("request-promise")
                           .get("http://example.com/");
        console.log(content);
    })()
    

    A week ago, the Node.js 6.x branch received LTS status, updates for which will be released within 30 months. The release of Node.js 8 is scheduled for April 2017.

    I collected the 7th node for


    Also popular now: