3 Breaking changes between v4 and v5
Jeremiah Senkpiel edited this page 2016-04-26 18:46:52 -04:00

API changes between v4 and v5

When editing this page please be as detailed as possible.

For older breaking changes, please see our v0.10 to v4 page.

By Subsystem

console

[Docs]

repl

[Docs]

  • The repl's 'close' event now waits for the 'flushHistory' event if the repl is set to write history to disk while closing.
    • For consistency, the 'close' event is now always asynchronous in the repl only.
    • Refs: ecab7a6, #3435

tls

[Docs]

  • The minimum key length for tls.connect()'s dhparam option is now 1024 bits.
    • This a security consideration to prevent logjam attacks.
    • Refs: 0140e1b, #1831

util

[Docs]

  • util.p() was deprecated for years, and has been removed.

zlib

[Docs]

  • Decompression now throws on truncated input, such as if there is an unexpected end-of-file.

Native Modules (Addons)

  • The NODE_MODULE_VERSION is now 47.

Dependencies

npm

[Repo]

2.14.7 --> 3.3.6

This is a major version bump for npm and it has seen a significant amount of change. Please see the npm v3.0.0 release notes.

Note that npm minor and patch versions are pulled into io.js and node at an almost-weekly rate.

v8

v4.5.103.35 --> v4.6.85.x + floating patches