refactor: move PerfLogger from core to @docusaurus/logger#10480
refactor: move PerfLogger from core to @docusaurus/logger#10480
Conversation
| ): string { | ||
| let res = ''; | ||
| values.forEach((value, idx) => { | ||
| const flag = msgs[idx]!.match(/[a-z]+=$/); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
| let res = ''; | ||
| values.forEach((value, idx) => { | ||
| const flag = msgs[idx]!.match(/[a-z]+=$/); | ||
| res += msgs[idx]!.replace(/[a-z]+=$/, ''); |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
⚡️ Lighthouse report for the deploy preview of this PR
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
Size Change: +271 B (0%) Total Size: 11.5 MB ℹ️ View Unchanged
|
|
Hi, I am trying to upgrade my website to Docusaurus V3, after update to v3.7. The following error occurs
Then I add the config, async_hooks: false. Another similar issue occurs After checking the code, I found this PR has something related to my issue. Currently I do not have a better solution but can only stay at 3.5.2. Do you have other suggestion? |
|
I doubt this PR is the problem, it works fine for many others It's not possible to help without a repro and your env. It could be a Node.js bug for example |
|
Thanks for the response. Currently I fixed the issue by manually add a mock file src/mocks/async_hooks.js, during development. In production, I removed the use of logger and above. |

Motivation
This is a useful tool that I'd like to use in other places of Docusaurus and it looks cleaner to expose it as
@docusaurus/loggerAPI rather than@docusaurus/coreTest Plan
CI
Test links
https://deploy-preview-10480--docusaurus-2.netlify.app/