Notable changes

Support function mocking on Node.js test runner

The

1
node:test

module supports mocking during testing via a top-level

1
mock

object.


1
2
3
4
5
6
7
8
9
10
11
12
test('spies on an object method', (t) => {
  const number = {
    value: 5,
    add(a) {
      return this.value + a;
    },
  };
  t.mock.method(number, 'add');

  assert.strictEqual(number.add(3), 8);
  assert.strictEqual(number.add.mock.calls.length, 1);
});

Contributed by Colin Ihrig in #45326

fs.watch recursive support on Linux

1
fs.watch

supports recursive watch using the

1
recursive: true

option.


1
2
3
const watcher = fs.watch(testDirectory, { recursive: true });
watcher.on('change', function(event, filename) {
});

Contributed by Yagiz Nizipli in #45098

Other notable changes

  • deps

    • update ICU to 72.1 (Michaël Zasso) #45068
  • doc

    • add lukekarrys to collaborators (Luke Karrys) #45180
    • add anonrig to collaborators (Yagiz Nizipli) #45002
  • lib

    • drop fetch experimental warning (Matteo Collina) #45287
  • util

    • (SEMVER-MINOR) add MIME utilities (Bradley Farias) #21128
    • improve textdecoder decode performance (Yagiz Nizipli) #45294

Commits

Windows 32-bit Installer: https://nodejs.org/dist/v19.1.0/node-v19.1.0-x86.msi
Windows 64-bit Installer: https://nodejs.org/dist/v19.1.0/node-v19.1.0-x64.msi
Windows 32-bit Binary: https://nodejs.org/dist/v19.1.0/win-x86/node.exe
Windows 64-bit Binary: https://nodejs.org/dist/v19.1.0/win-x64/node.exe
macOS 64-bit Installer: https://nodejs.org/dist/v19.1.0/node-v19.1.0.pkg
macOS Apple Silicon 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-darwin-arm64.tar.gz
macOS Intel 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-darwin-x64.tar.gz
Linux 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-linux-x64.tar.xz
Linux PPC LE 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-linux-ppc64le.tar.xz
Linux s390x 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-linux-s390x.tar.xz
AIX 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-aix-ppc64.tar.gz
ARMv7 32-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-linux-armv7l.tar.xz
ARMv8 64-bit Binary: https://nodejs.org/dist/v19.1.0/node-v19.1.0-linux-arm64.tar.xz
Source Code: https://nodejs.org/dist/v19.1.0/node-v19.1.0.tar.gz
Other release files: https://nodejs.org/dist/v19.1.0/
Documentation: https://nodejs.org/docs/v19.1.0/api/

SHASUMS


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

d1b2b585c25c846bb0453313d1d5dab8e82713e72c5cb01199a6e6b545816b84  node-v19.1.0-aix-ppc64.tar.gz
d05a4a3c9f081c7fbab131f447714fa708328c5c1634c278716adfbdbae0ff26  node-v19.1.0-darwin-arm64.tar.gz
9538ce1698edad1054d313bd1065602c7d83112e77c9edc6cf46ad261ef45396  node-v19.1.0-darwin-arm64.tar.xz
63f4284fa1474b779f0e4fa93985ddc2efa227484476f33d923ae44922637080  node-v19.1.0-darwin-x64.tar.gz
18c2572cd5f993c7b293b2d1dda4b813ba64ef6a28956fee8da02c8fb92c8e7e  node-v19.1.0-darwin-x64.tar.xz
a8cf7ae3b5bb4b1c333e572026c86effda101a9ab0b1bd850fe1a8d838443fb5  node-v19.1.0-headers.tar.gz
8a4f50f89005e57a7c861658fff6e7a10258aec76d455e6a307df94c988afb81  node-v19.1.0-headers.tar.xz
476399363945b3cf441d2e0677c50ad3a257db36c2a06a8c51c46b0bc42b4d3d  node-v19.1.0-linux-arm64.tar.gz
93ef3a96ebf88988921f87ef28a21cc25776e0562afa696a59dc074fea1913c7  node-v19.1.0-linux-arm64.tar.xz
9805100325de7c8e7be258a7cb768e4fdb05398e2d9778cdf24d5d1df0b943d1  node-v19.1.0-linux-armv7l.tar.gz
8e3ae0904be5508fa2d12d1c94eb9ac4ce5fe21924b611e314a83a668ff28164  node-v19.1.0-linux-armv7l.tar.xz
b7e1ffce24820037103265604faf1e483db75d1212096cf653b41f19594109e1  node-v19.1.0-linux-ppc64le.tar.gz
bb0523d42824b2a577f4ac870d2e5caa8641d74e9c33cdeea95c8dabf1674ae0  node-v19.1.0-linux-ppc64le.tar.xz
c87bb643c6c28673962dc9c5f3948bcec466f22f97dba79425fbb7e588a5462a  node-v19.1.0-linux-s390x.tar.gz
50c583dbcec40ce09b0765bb85482b00e4cdfc8324739cc8f8a2c6416f3a2e60  node-v19.1.0-linux-s390x.tar.xz
1a42a67beb3e07289da2ad22a58717801c6ab80d09668e2da6b1c537b2a80a5e  node-v19.1.0-linux-x64.tar.gz
c4d1bcb5d5dd1fb1299c6eb38c5b6c66d1d9ff473fa007c3294ed025b67091e3  node-v19.1.0-linux-x64.tar.xz
b8554d888e42ddba78528806fea9190fa0bf7524bf548d11f1fa8e214307a003  node-v19.1.0-win-x64.7z
9ca998da2063fd5b374dc889ee1937ada5a1e1f4fb50b5f989412dda7c6bb357  node-v19.1.0-win-x64.zip
bc8a0a9150147d0c53a94c857a0a0cb7ee9125ca595cc72986cbe290eae2dfb7  node-v19.1.0-win-x86.7z
cc75dd23000c81798d58b71b3b8829729a466b253b6f090ba30806b60c544ee5  node-v19.1.0-win-x86.zip
935f9c01b135b5da7397b900c7ff5123ce154c570280efd60257ed58fd029f34  node-v19.1.0-x64.msi
416cad872df5f3ad38000c32c1ba0dd1d7f823df7a6937cc088b3393bfb68852  node-v19.1.0-x86.msi
423704bffcca4a6ed2b143bd8c80a718908845417a15e766fb18634759079f9b  node-v19.1.0.pkg
431176548d88fe7804b98635d267733c0734086456873575a2f549e115e4ef18  node-v19.1.0.tar.gz
4ea9ba1f992815fb823b022a62b61f536121f970fe88c6395c7e3af4e9cf46a0  node-v19.1.0.tar.xz
278e3fd39219f9b00009356b9eba91c0e6fc86607175866b66d0032841be7e63  win-x64/node.exe
541ea7cc0733d7803288a02d300bc4728782681711a35601e64c4b773c910d63  win-x64/node.lib
9f27677c25fe445833ddea66d9e1c68f5c6aaa03b6e42e5046dc804f0b9bc23c  win-x64/node_pdb.7z
3ab2d7e090fcb13da0ca700cbba78958678ed3d51e97709f16a21a4ccecc2153  win-x64/node_pdb.zip
3e62d730b0a9bebebb189a101424d9ac456445bc5f69d1385c3089767c072c0c  win-x86/node.exe
b2bddbd9d52af0370653e8ddb9323e059bb3f4bc5e9019639dfda295d715c383  win-x86/node.lib
6d9a68dc801f6ba08f5daddc9846a418b2ce2d31d7406d676721dea10652c73a  win-x86/node_pdb.7z
3a833adc70a8dfd4868b092850e52f8e5bea2b6872aded4b662a6df7ada66151  win-x86/node_pdb.zip
-----BEGIN PGP SIGNATURE-----

iQGzBAEBCAAdFiEEiQwI24V5Fi/uDfnbi+q0389VXvQFAmNyR5EACgkQi+q0389V
XvTQ8wwAmK7TcwmoyB6zxhFxW6eS99fm4q3l90kOHsNWoK3wBpAwXq7oGrUn55LT
/nkhKkx+CIjK12SQ1URug4NKw1y2CUIdQZZyPh8ordyxMhoOpwD5EkWVOYhh0BU3
zgVFtSOEGIMpUk7yM46qEKegOti1rSFM2sLQn33EMQlVcDSDCcnCxzf/Ac0CqqPt
5/wBR/bNaQpBT9IstXfROYzqUoYBs6TfhbV9mgpMA6lrU3bjAAJHRo9zfL4YgHA6
1nOVYuQYvlM1LcE1K/Frr8SVZ/OdPEd9KhF1yUGfRHSvCWiZBLPgSupplGGOBtg/
tzhJfkHAhBzgnjgsk8dkvFzZApFZXxXMuwL7B+6dHh61WTzlgAWkPuW/KljX2GqH
FJCJQI+uCSGovW7yyCAUVzm9yZEMZDox/WKF7U1iaiCw/7rRy8Vtk7ZbS//jbdw9
BmUjwuosM+1HqY9737lk0xmSO6zNwwr2ASkpSFue/tYZZaZnngYM1Y7LCqtftZ32
zBWGIy3V
=7M7J
-----END PGP SIGNATURE-----
Categories: NewsReleases

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *