The latest Node.js news, articles, tools, and projects.
Node 10 and npm 6.0 Have Been Released | It's a big week for the Node world with the final release of Node 10. It's not an LTS release (that happens in October) or intended for your production servers yet, but 10.x takes some vital steps forward to help Node continue to grow, so get testing on it ASAP. | The Official Node 10 Release Post — This is essentially just a changelog and links to the release downloads, so if you want to learn more about what Node 10 is above, keep scrolling. James M Snell | Some more on what's new in Node 10: - It uses V8 6.6 which improves `Function.prototype.toString()`, caches code after execution, compiles bytecode on a background thread, offer async performance improvements for promises, Arrays, and more.
- the N-API 'Native API' is now stable/non-experimental - this makes it easier to build native addons that can target Node generally rather than have to worry about V8 or version concerns, and essentially Node core can become 'neutral' to the engine behind it - more here.
- there's also a Node-Chakracore release that uses Microsoft's JavaScript engine instead of V8
- The Buffer constructor has been deprecated (mostly)
- It adopts of standardized 'error codes'
- OpenSSL 1.1 support - which means TLS 1.3 support soon
- Experimental promisified versions of `fs` functions in `fs/promises`
- Node 10 supports lots of new regex features
- HTTP/2 support, which will continue to be extended as 10.x progresses
- We can now use async interation natively
- It comes with npm 5.6, but 6.0 is available if you want to try it (see below)
| | npm@6 Announced: Another Major Update to npm — npm 6.0 isn't included with Node 10 yet, but you can play with it today. Beyond the usual performance improvements (up to 17x faster than npm a year ago), npm 6 focuses heavily on security and soon "every user of the npm Registry will begin receiving automatic warnings if you try to use code with a known security issue." A new npm audit command will also soon let you recursively analyze dependencies for security issues. The npm Blog | ๐ Articles and Tutorials | P.S. Stop using Node 4 ASAP. It's not going to get any more security updates from next Monday onward. | |
No comments:
Post a Comment