Change8

v22.14.0

📦 node-jsView on GitHub →
13 features🐛 7 fixes1 deprecations🔧 11 symbols

Summary

This release introduces TypeScript support for STDIN and workers, adds new process control methods, and enhances the test runner and SQLite modules. It also includes critical bug fixes for crypto and child_process modules.

✨ New Features

  • fs: allow 'exclude' option in globs to accept glob patterns.
  • lib: add TypeScript support to STDIN eval.
  • module: add ERR_UNSUPPORTED_TYPESCRIPT_SYNTAX error code.
  • module: add findPackageJSON utility.
  • process: add process.ref() and process.unref() methods.
  • sqlite: support TypedArray and DataView in StatementSync.
  • src: add --disable-sigusr1 flag to prevent signal i/o thread.
  • src,worker: add isInternalWorker.
  • test_runner: add TestContext.prototype.waitFor().
  • test_runner: add t.assert.fileSnapshot().
  • test_runner: add assert.register() API.
  • worker: add support for evaluating TypeScript input.
  • diagnostics_channel: capture console messages.

🐛 Bug Fixes

  • child_process: fix parsing messages with splitted length field.
  • crypto: fix checkPrime crash with large buffers.
  • crypto: make generatePrime/checkPrime interruptible.
  • assert: make partialDeepStrictEqual work with URLs and File prototypes.
  • assert: make partialDeepStrictEqual throw when comparing [0] with [-0].
  • build: fix GN build for ngtcp2.
  • crypto: add missing return value checks and fix warnings.

Affected Symbols

⚡ Deprecations

  • The ENODATA macro is deprecated in libc++.