Change8

v25.2.0

Breaking Changes
📦 node-jsView on GitHub →
1 breaking7 features🐛 4 fixes🔧 8 symbols

Summary

This release stabilizes type stripping, introduces new Node-API and V8 statistics methods, and improves performance for Buffer and console operations. It also includes a breaking change where localStorage throws on missing storage paths.

⚠️ Breaking Changes

  • The localStorage getter now throws an error if the storage path is missing.

Migration Steps

  1. Ensure a storage path is configured when using localStorage to avoid new throw behavior.
  2. If using type stripping, you can now rely on it as a stable feature rather than experimental.

✨ New Features

  • Added options to util.deprecate for more granular control.
  • Marked type stripping as a stable feature in the module system.
  • Increased network family autoselection timeout to 500ms in the net module.
  • Added napi_create_object_with_properties to Node-API.
  • Added total_allocated_bytes to HeapStatistics in the v8 module.
  • Optimized console logging for single-string inputs.
  • Improved Buffer.concat performance using TypedArray#set.

🐛 Bug Fixes

  • Fixed argument validation in crypto.timingSafeEqual fast path.
  • Fixed an event listener leak in the debugger's run command.
  • Fixed a memory leak by calling OPENSSL_free after ANS1_STRING_to_UTF8.
  • Reverted a specific nghttp2 commit to resolve regressions.

Affected Symbols