Node v8.0.0 (Current)

Posted on Posted in NodeJS

Description: The new major release of Node.js v8.0.0 has been announced. It brings a range of significant changes and additions.

Changes:

  • npm version 5.0.0
  • JavaScript V8 5.8 runtime
  • Node.js API (N-API) - will allow native addons to be compiled once on a system and used across multiple versions of Node.js.
  • Async Hooks

    • The async_hooks module has landed in core.
  • Buffer

    • Using the --pending-deprecation flag will cause Node.js to emit a
      deprecation warning when using new Buffer(num) or Buffer(num)..
    • new Buffer(num) and Buffer(num) will zero-fill new Buffer instances.
    • Many Buffer methods now accept Uint8Array as input.
  • Child Process

    • Argument and kill signal validations have been improved,.
    • Child Process methods accept Uint8Array as input.
  • Console

    • Error events emitted when using console methods are now supressed..
  • Dependencies

    • The npm client has been updated to 5.0.0.
    • V8 has been updated to 5.8 with forward ABI stability to 6.0.
  • Domains

    • Native Promise instances are now Domain aware.
  • Errors

    • We have started assigning static error codes to errors generated by Node.js.
      This has been done through multiple commits and is still a work in
      progress.
  • File System

    • The utility class fs.SyncWriteStream has been deprecated.
    • The deprecated fs.read() string interface has been removed.
  • HTTP

    • Improved support for userland implemented Agents.
    • Outgoing Cookie headers are concatenated into a single string.
    • The httpResponse.writeHeader() method has been deprecated.
    • New methods for accessing HTTP headers have been added to OutgoingMessage.
  • Lib

    • All deprecation messages have been assigned static identifiers.
    • The legacy linkedlist module has been removed.
  • N-API

    • Experimental support for the new N-API API has been added.
  • Process

    • Process warning output can be redirected to a file using the
      --redirect-warnings command-line argument.
    • Process warnings may now include additional detail.
  • REPL

    • REPL magic mode has been deprecated.
  • Src

    • NODE_MODULE_VERSION has been updated to 57.
    • Add --pending-deprecation command-line argument and
      NODE_PENDING_DEPRECATION environment variable.
    • The --debug command-line argument has been deprecated. Note that
      using --debug will enable the new Inspector-based debug protocol
      as the legacy Debugger protocol previously used by Node.js has been
      removed.
    • Throw when the -c and -e command-line arguments are used at the same
      time
    • Throw when the --use-bundled-ca and --use-openssl-ca command-line
      arguments are used at the same time..
  • Stream

    • Stream now supports destroy() and _destroy() APIs.
    • Stream now supports the _final() API.
  • TLS

    • The rejectUnauthorized option now defaults to true.
    • The tls.createSecurePair() API now emits a runtime deprecation.
    • A runtime deprecation will now be emitted when dhparam is less than
      2048 bits
  • URL

    • The WHATWG URL implementation is now a fully-supported Node.js API.
  • Util

    • Symbol keys are now displayed by default when using util.inspect().
    • toJSON errors will be thrown when formatting %j.
    • Convert inspect.styles and inspect.colors to prototype-less objects.
    • The new util.promisify() API has been added.
  • Zlib

    • Support Uint8Array in Zlib convenience methods.
    • Zlib errors now use RangeError and TypeError consistently.

Recommended action: Upgrade to the latest version

Origin URLs:

Leave a Reply

Your email address will not be published. Required fields are marked *