Opened 7 months ago

Closed 7 months ago

#20259 closed enhancement (fixed)

node.js-20.17.0

Reported by: Bruce Dubbs Owned by: Bruce Dubbs
Priority: normal Milestone: 12.3
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

New minor version.

Change History (3)

comment:1 by Bruce Dubbs, 7 months ago

Owner: changed from blfs-book to Bruce Dubbs
Status: newassigned

comment:2 by Bruce Dubbs, 7 months ago

2024-08-21, Version 20.17.0 (LTS)

### module: support require()ing synchronous ESM graphs

This release adds require() support for synchronous ESM graphs under the flag --experimental-require-module.

If --experimental-require-module is enabled, and the ECMAScript module being loaded by require() meets the following requirements:

  • Explicitly marked as an ES module with a "type": "module" field in the closest package.json or a .mjs extension.
  • Fully synchronous (contains no top-level await).

require() will load the requested module as an ES Module, and return the module name space object. In this case it is similar to dynamic import() but is run synchronously and returns the name space object directly.

### path: add matchesGlob method

Glob patterns can now be tested against individual paths via the path.matchesGlob(path, pattern) method.

### stream: expose DuplexPair API

The function duplexPair returns an array with two items, each being a Duplex stream connected to the other side:

`js const [ sideA, sideB ] = duplexPair(); `

Whatever is written to one stream is made readable on the other. It provides behavior analogous to a network connection, where the data written by the client becomes readable by the server, and vice-versa.

### Other Notable Changes

  • (SEMVER-MINOR) http: add diagnostics channel http.client.request.error
  • (SEMVER-MINOR) stream: implement min option for ReadableStreamBYOBReader.read

There were about 175 commits for this release.

comment:3 by Bruce Dubbs, 7 months ago

Resolution: fixed
Status: assignedclosed

Fixed at commits

12dbf77af Update to mesa-24.2.1.
aeb0a9c897 Update to rust-bindgen-0.70.1.
f295379438 Update to node-20.17.0.
7ad1d4e8e2 Update to apr-1.7.5.
Note: See TracTickets for help on using tickets.