$ the-wire · showcase
ShadowRealm support removed, a real sendingHeaders event for HTTP responses
By RepoJournal · Filed · About Node.js · Composed from the cited sources · methodology
Node.js dropped experimental ShadowRealm because no browser ever implemented it, and added an HTTP response event meant to replace the monkey-patching on-headers package.
src: remove experimental ShadowRealm support nodejs/node
The PR removes the --experimental-shadow-realm flag and the --harmony-shadow-realm V8 option alias, along with the node_shadow_realm host integration, isolate callback, and bootstrap code. The justification is implementer support: the TC39 proposal remains unimplemented by browsers, and WPT dropped its ShadowRealm coverage because the tests added significant noise without implementers. Any code...
http: add 'sendingHeaders' event for response header manipulation nodejs/node
A 'sendingHeaders' event on the HTTP response lets middlewares such as compression or express-session modify headers at send time, positioned as a replacement for on-headers, which the author describes as a package that does monkey-patching. The author notes compression could also transform the response into a gzip stream and send the data, and that two more events are still needed.
url: add experimental URLPatternList nodejs/node
url.URLPatternList arrives as an experimental implementation of the URLPatternList interface proposed in whatwg/urlpattern, built on the ada::url_pattern_list API from the Ada 4.1.1 update, with credit to @FranciscoThiesen for the C++ implementation contributed to Ada.
@doc-kit/generator-react@0.6.0 nodejs/doc-kit
by github-actions[bot]
@doc-kit/generator-react 0.6.0 moves all.html out of the html generator into a new html-all generator in @node-core/doc-kit 2.1.0, and removes html's generateAllPage option. html-all is spliced between jsx-ast and html, so downstream generator pipelines need that new step to keep producing all.html.
http: remove prototype primordial from server nodejs/node
On the small side: the ArrayPrototypeSlice use introduced with the sendingHeaders event failed the JS linter on main, since lib/internal/http/*.js must not use prototype primordials, so it was swapped out. Tests also began preferring tmpdir.resolve() over path.join(tmpdir.path, ...), with a linter rule to enforce it planned in a follow-up, and undici's only change was a docs typo fix.