Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: remove find-up dependency, upgrade file-type dependency #8195

Merged
merged 6 commits into from
Sep 15, 2024

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Sep 12, 2024

Fixes #8111 and #8113

Before: 132 dependencies
After: 123 dependencies

This PR also contains a small performance optimization during telemetry startup: By using the async fs.promises.readFile instead of readFileSync we're not blocking the entire thread anymore and are allowing other stuff to happen while the file is being read.
Also, in our dependency checker, this moves some variables out of loops, to the module scope, as they only need to be calculated once.

We have to pin file-type to 19.3.0 and cannot upgrade it further (latest is 19.5.0). See reasoning in #8111 (comment)

@AlessioGr AlessioGr enabled auto-merge (squash) September 15, 2024 16:47
@AlessioGr AlessioGr merged commit 6d1a287 into beta Sep 15, 2024
48 checks passed
@AlessioGr AlessioGr deleted the perf/find-up-and-file-type branch September 15, 2024 16:53
This was referenced Sep 15, 2024
Copy link
Contributor

🚀 This is included in version v3.0.0-beta.107

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants