Node v6.0.0 released
This new major version of Node.js delivers significant improvements in performance, reliability, usability and security. Module loading is nearly four times faster than in Node.js v4, tests and documentation have seen significant improvements, usability of the Buffer and File System APIs have been improved, and Node.js now supports 93% of ES6 language features, thanks to V8 version 5.0.
The following significant changes have been made since the previous Node.js v5.0.0 release.
- Buffer
- New Buffer constructors have been added #4682 and #5833.
- Existing
Buffer()
andSlowBuffer()
constructors have been deprecated in docs #4682 and #5833. - Previously deprecated Buffer APIs are removed #5048, #4594.
- Improved error handling #4514.
- The
Buffer.prototype.lastIndexOf()
method has been added #4846.
- Cluster
- Console
- Calling
console.timeEnd()
with an unknown label now emits a process warning rather than throwing#5901.
- Calling
- Crypto
- Dependencies
- DNS
- Add
dns.resolvePtr()
API to query plain DNS PTR records #4921.
- Add
- Domains
- Clear stack when no error handler #4659.
- Events
- File System
- The
fs.realpath()
andfs.realpathSync()
methods have been updated to use a more efficient libuv-based implementation. This change includes the removal of thecache
argument and the method can throw new errors #3594. - FS apis can now accept and return paths as Buffers #5616.
- Error handling and type checking improvements #5616, #5590, #4518, #3917.
- fs.read’s string interface is deprecated #4525.
- The
- HTTP
- ‘clientError’ can now be used to return custom errors from an HTTP server #4557.
- Modules
- Net
- OS X
- MACOSX_DEPLOYMENT_TARGET has been bumped up to 10.7 #6402.
- Path
- Improved type checking #5348.
- Process
- Querystring
- The object returned by
querystring.parse()
no longer inherits from Object.prototype #6055.
- The object returned by
- Readline
- REPL
- Timers
- Fail early when callback is not a function #4362.
- Streams
null
is now an invalid chunk to write in object mode #6170.
- TLS
- TTY
- Previously deprecated setRawMode wrapper is removed #2528.
- URL
- Username and password will be dropped by
url.resolve()
if the host changes #1480.
- Username and password will be dropped by
- Util
- Windows
- Windows XP and Vista are no longer supported #5167.
- Zlib