v23.7.0
📦 node-jsView on GitHub →
✨ 10 features🐛 5 fixes⚡ 1 deprecations🔧 10 symbols
Summary
This release introduces several new features to the test_runner and sqlite modules, updates root certificates to NSS 3.107, and adds support for glob patterns in fs exclude options. It also includes performance improvements for assertions and various bug fixes in crypto and child_process.
Migration Steps
- If using custom signal handling, evaluate if the new --disable-sigusr1 flag is required to prevent the signal i/o thread.
- Update any TypeScript-related logic to handle the new ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX error code.
✨ New Features
- fs: allow 'exclude' option in globs to accept glob patterns.
- module: add ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX for better TypeScript error handling.
- sqlite: support TypedArray and DataView in StatementSync.
- src: add --disable-sigusr1 flag to prevent signal i/o thread.
- worker: add isInternalWorker to identify internal Node.js workers.
- test_runner: add TestContext.prototype.waitFor().
- test_runner: add t.assert.fileSnapshot() for file-based assertion testing.
- test_runner: add assert.register() API for custom assertions.
- diagnostics_channel: added capability to capture console messages.
- assert: show diff when performing partial comparisons.
🐛 Bug Fixes
- child_process: fix parsing messages with splitted length field.
- crypto: fix checkPrime crash when using large buffers.
- crypto: make generatePrime and checkPrime interruptible.
- assert: make partialDeepStrictEqual work correctly with URLs and File prototypes.
- crypto: fix various missing return value checks and warnings.
Affected Symbols
⚡ Deprecations
- The ENODATA macro is deprecated in libc++.