| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 913e4b9 commit 0b11bf1
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -60,16 +60,29 @@ such as `.mjs` or `.cjs`, will opt out of detection. | |||
| 60 | 60 | ||
| 61 | 61 | Contributed by Geoffrey Booth in [#50096](https://github.com/nodejs/node/pull/50096). | |
| 62 | 62 | ||
| 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 | + | ||
| 63 | 79 | #### Other Notable Changes | |
| 64 | 80 | ||
| 65 | 81 | * \[[`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) | |
| 66 | 82 | * \[[`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) | |
| 67 | 83 | * \[[`5a52c518ef`](https://github.com/nodejs/node/commit/5a52c518ef)] - **(SEMVER-MINOR)** **lib**: add `navigator.userAgent` (Yagiz Nizipli) [#50200](https://github.com/nodejs/node/pull/50200) | |
| 68 | 84 | * \[[`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) | |
| 69 | 85 | * \[[`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) | ||
| 73 | 86 | ||
| 74 | 87 | ### Commits | |
| 75 | 88 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments