v24.9.0
📦 node-jsView on GitHub →
✨ 8 features🐛 8 fixes⚡ 1 deprecations🔧 9 symbols
Summary
This release introduces a new HTTP upgrade callback, expands SQLite functionality with a Session class and tagged templates, and adds a heap profile API for workers.
Migration Steps
- Review usage of fs.Dir to ensure manual closing, as closing on garbage collection is now deprecated.
✨ New Features
- http: add shouldUpgradeCallback to let servers control HTTP upgrades.
- sqlite: cleanup ERM support and export Session class.
- sqlite: add tagged template support.
- worker: add heap profile API.
- crypto: expose signatureAlgorithm on X509Certificate.
- lib: update isDeepStrictEqual to support options.
- lib: add source map support for assert messages.
- node-api: added SharedArrayBuffer api.
🐛 Bug Fixes
- dgram: restore buffer optimization in fixBufferList.
- diagnostics_channel: fix race condition with GC.
- fs,win: do not add a second trailing slash in readdir.
- http,https: handle IPv6 with proxies.
- http2: fix allowHttp1+Upgrade, broken by shouldUpgradeCallback.
- inspector: ensure adequate memory allocation for Binary::toBase64.
- module: only put directly require-d ESM into require.cache.
- esm: make hasAsyncGraph non-enumerable.
Affected Symbols
⚡ Deprecations
- Deprecate closing fs.Dir on garbage collection.