Changelog

nodejs/node · · 7 commits

Package maps land; Buffer.copy gets faster

Node adds experimental package-map resolution and speeds up Buffer.copy via new V8 byte-copy APIs.

Experimental package maps for module resolution (arcanis2f2b810) Node now supports --experimental-package-map, letting bare specifier resolution consult a JSON package map to control which packages may import which dependencies. The change adds new docs, error codes, CLI flag plumbing, resolver logic, and extensive tests, so it’s a significant new module-resolution feature.

Buffer.prototype.copy now uses V8 byte-copy APIs (ronag4383f67) Buffer copies are routed through V8’s new CopyArrayBufferBytes APIs instead of manually materializing views and memmove-ing bytes in Node. This should improve partial-copy performance and also makes copies correctly return 0 when the target backing store is detached or immutable.

Other misc changes

  • Added V8 CopyArrayBufferBytes APIs and bumped the embedder patch version (ronagd66c3a6).
  • Removed a redundant AIX shared-library intermediate target from the build (legendecas11390b5).
  • Hardened a few GitHub Actions shell invocations and PR-url linting (aduh95144f795).
  • Fixed two documentation typos (watilde20fda56, watilde8c43981).