Node.js 13, the latest version of the popular JavaScript runtime, was released this week, emphasizing worker threads, programming enhancements, and internationalization capabilities.
Node.js 13 replaces Node.js 12 as the “current” release but Node.js 12 remains the long-term support (LTS) release. Thus Node.js 13 is not recommended for production use. Nevertheless, Node.js 13 will be useful for building and testing the latest features. Developers can use Node.js 13 to ensure that their packages and applications will be compatible with future versions.
These are the key new capabilities in Node.js 13:
assert.throws()
or assert.rejects()
returns a value besides true
, an assertion error will be thrown instead of the original error. This will highlight the programming mistake. Also, if a constructor function is passed to validate the instance of errors thrown in assert.throw()
or assert.reject()
, an assertion will be thrown instead of the original error.request.connection
and response.connection
properties have been runtime deprecated. The equivalent request.socket
and response.socket
should be used instead.You can download Node.js from the project website.
#node-js #nodejs #node #javascript #web-development