Skip to content

Commit eba19d7

Browse files
authored
doc: update notable changes in v21.1.0
PR-URL: #50388 Refs: nodejs/nodejs.org#6045 Reviewed-By: Tierney Cyren <hello@bnb.im> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 5fab505 commit eba19d7

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

doc/changelogs/CHANGELOG_V21.md

+16-3
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,29 @@ such as `.mjs` or `.cjs`, will opt out of detection.
6060

6161
Contributed by Geoffrey Booth in [#50096](https://github.com/nodejs/node/pull/50096).
6262

63+
### vm: fix V8 compilation cache support for vm.Script
64+
65+
Previously repeated compilation of the same source code using `vm.Script`
66+
stopped hitting the V8 compilation cache after v16.x when support for
67+
`importModuleDynamically` was added to `vm.Script`, resulting in a performance
68+
regression that blocked users (in particular Jest users) from upgrading from
69+
v16.x.
70+
71+
The recent fixes landed in v21.1.0 allow the compilation cache to be hit again
72+
for `vm.Script` when `--experimental-vm-modules` is not used even in the
73+
presence of the `importModuleDynamically` option, so that users affected by the
74+
performance regression can now upgrade. Ongoing work is also being done to
75+
enable compilation cache support for `vm.CompileFunction`.
76+
77+
Contributed by Joyee Cheung in [#50137](https://github.com/nodejs/node/pull/50137).
78+
6379
#### Other Notable Changes
6480

6581
* \[[`3729e33358`](https://github.com/nodejs/node/commit/3729e33358)] - **doc**: add H4ad to collaborators (Vinícius Lourenço) [#50217](https://github.com/nodejs/node/pull/50217)
6682
* \[[`18862e4d5d`](https://github.com/nodejs/node/commit/18862e4d5d)] - **(SEMVER-MINOR)** **fs**: add `flush` option to `appendFile()` functions (Colin Ihrig) [#50095](https://github.com/nodejs/node/pull/50095)
6783
* \[[`5a52c518ef`](https://github.com/nodejs/node/commit/5a52c518ef)] - **(SEMVER-MINOR)** **lib**: add `navigator.userAgent` (Yagiz Nizipli) [#50200](https://github.com/nodejs/node/pull/50200)
6884
* \[[`789372a072`](https://github.com/nodejs/node/commit/789372a072)] - **(SEMVER-MINOR)** **stream**: allow pass stream class to `stream.compose` (Alex Yang) [#50187](https://github.com/nodejs/node/pull/50187)
6985
* \[[`f3a9ea0bc4`](https://github.com/nodejs/node/commit/f3a9ea0bc4)] - **stream**: improve performance of readable stream reads (Raz Luvaton) [#50173](https://github.com/nodejs/node/pull/50173)
70-
* \[[`dda33c2bf1`](https://github.com/nodejs/node/commit/dda33c2bf1)] - **vm**: reject in importModuleDynamically without --experimental-vm-modules (Joyee Cheung) [#50137](https://github.com/nodejs/node/pull/50137)
71-
* \[[`3999362c59`](https://github.com/nodejs/node/commit/3999362c59)] - **vm**: use internal versions of compileFunction and Script (Joyee Cheung) [#50137](https://github.com/nodejs/node/pull/50137)
72-
* \[[`a54179f0e0`](https://github.com/nodejs/node/commit/a54179f0e0)] - **vm**: unify host-defined option generation in vm.compileFunction (Joyee Cheung) [#50137](https://github.com/nodejs/node/pull/50137)
7386

7487
### Commits
7588

0 commit comments

Comments
 (0)