Skip to content

Commit 5cc8fcf

Browse files
petebacondarwindevin-ai-integration[bot]vicb
authored
[unenv] Use the native workerd perf_hooks modules when available (#10618)
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Victor Berchet <victor@suumit.com>
1 parent a5eb9c4 commit 5cc8fcf

File tree

6 files changed

+211
-281
lines changed

6 files changed

+211
-281
lines changed

.changeset/loud-taxis-tie.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@cloudflare/unenv-preset": minor
3+
---
4+
5+
Use the native workerd `node:perf_hooks` module and `Performance` global classes when available
6+
7+
They are enabled when the `enable_nodejs_perf_hooks_module` compatibility flag is set. This feature is currently experimental and requires the above flag and `experimental` compatibility flag to be set.

packages/unenv-preset/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"peerDependencies": {
5151
"unenv": "2.0.0-rc.24",
52-
"workerd": "^1.20260218.0"
52+
"workerd": "1.20260301.1 || ~1.20260302.1 || ~1.20260303.1 || ~1.20260304.1 || >1.20260305.0 <2.0.0-0"
5353
},
5454
"peerDependenciesMeta": {
5555
"workerd": {

0 commit comments

Comments
 (0)