-------------------------------------------------------------------------------- Fedora Update Notification FEDORA-2023-b285cd8ba8 2023-07-19 04:20:09.560036 -------------------------------------------------------------------------------- Name : nodejs20 Product : Fedora 37 Version : 20.4.0 Release : 2.fc37 URL : http://nodejs.org/ Summary : JavaScript runtime Description : Node.js is a platform built on Chrome's JavaScript runtime \ for easily building fast, scalable network applications. \ Node.js uses an event-driven, non-blocking I/O model that \ makes it lightweight and efficient, perfect for data-intensive \ real-time applications that run across distributed devices.} -------------------------------------------------------------------------------- Update Information: ## 2023-07-05, Version 20.4.0 (Current), @RafaelGSS ### Notable Changes #### Mock Timers The new feature allows developers to write more reliable and predictable tests for time-dependent functionality. It includes `MockTimers` with the ability to mock `setTimeout`, `setInterval` from `globals`, `node:timers`, and `node:timers/promises`. The feature provides a simple API to advance time, enable specific timers, and release all timers. ```mjs import assert from 'node:assert'; import { test } from 'node:test'; test('mocks setTimeout to be executed synchronously without having to actually wait for it', (context) => { const fn = context.mock.fn(); // Optionally choose what to mock context.mock.timers.enable(['setTimeout']); const nineSecs = 9000; setTimeout(fn, nineSecs); const threeSeconds = 3000; context.mock.timers.tick(threeSeconds); context.mock.timers.tick(threeSeconds); context.mock.timers.tick(threeSeconds); assert.strictEqual(fn.mock.callCount(), 1); }); ``` This feature was contributed by Erick Wendel in [#47775](https://github.com/nodejs/node/pull/47775). #### Support to the explicit resource management proposal Node is adding support to the [explicit resource management](https://github.com/tc39/proposal-explicit-resource- management) proposal to its resources allowing users of TypeScript/babel to use `using`/`await using` with V8 support for everyone else on the way. This feature was contributed by Moshe Atlow and Benjamin Gruenbaum in [#48518](https://github.com/nodejs/node/pull/48518). #### Other notable changes * \[[`fe333d2584`](https://github.com/nodejs/node/commit/fe333d2584)] - **crypto**: update root certificates to NSS 3.90 (Node.js GitHub Bot) [#48416](https://github.com/nodejs/node/pull/48416) * \[[`60c2ea4e79`](https://github.com/nodejs/node/commit/60c2ea4e79)] - **doc**: add vmoroz to collaborators (Vladimir Morozov) [#48527](https://github.com/nodejs/node/pull/48527) * \[[`5cacdf9e6b`](https://github.com/nodejs/node/commit/5cacdf9e6b)] - **doc**: add kvakil to collaborators (Keyhan Vakil) [#48449](https://github.com/nodejs/node/pull/48449) * \[[`504d1d7bdc`](https://github.com/nodejs/node/commit/504d1d7bdc)] - **(SEMVER- MINOR)** **tls**: add ALPNCallback server option for dynamic ALPN negotiation (Tim Perry) [#45190](https://github.com/nodejs/node/pull/45190) -------------------------------------------------------------------------------- ChangeLog: * Wed Jul 12 2023 Stephen Gallagher <sgallagh@xxxxxxxxxx> - 1:20.4.0-2 - sources: Check for node binary * Wed Jul 12 2023 Stephen Gallagher <sgallagh@xxxxxxxxxx> - 1:20.4.0-1 - Release 20.4.0 * Thu Jun 22 2023 Stephen Gallagher <sgallagh@xxxxxxxxxx> - 1:20.3.1-1 - Update to security release 20.3.1 - https://nodejs.org/en/blog/vulnerability/june-2023-security-releases - https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md# 20.3.1 * Wed Jun 21 2023 Stephen Gallagher <sgallagh@xxxxxxxxxx> - 1:20.2.0-3 - sources: install jinja2 if needed * Wed Jun 21 2023 Stephen Gallagher <sgallagh@xxxxxxxxxx> - 1:20.2.0-2 - sources: Fix indentation -------------------------------------------------------------------------------- This update can be installed with the "dnf" update program. Use su -c 'dnf upgrade --advisory FEDORA-2023-b285cd8ba8' at the command line. For more information, refer to the dnf documentation available at http://dnf.readthedocs.io/en/latest/command_ref.html#upgrade-command-label All packages are signed with the Fedora Project GPG key. More details on the GPG keys used by the Fedora Project can be found at https://fedoraproject.org/keys -------------------------------------------------------------------------------- _______________________________________________ package-announce mailing list -- package-announce@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to package-announce-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/package-announce@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue