-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Upgrade file-type
#8111
Comments
I'll upgrade this to file-type 19.3.0. Cannot upgrade to the latest (file-type 19.4.0 and higher) because of the following:
Damn I wish there was a way to add comments to package.json's to document these decisions |
that's awesome!! thank you!
there is, but it's really hacky...
|
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)
Fixed by #8195
Yeea that might be a bit too hacky - I'm hoping for jsonc support or something like that to be added in the future! |
🚀 This is included in version v3.0.0-beta.107 |
This issue has been automatically locked. |
Link to reproduction
payload/packages/payload/package.json
Line 97 in 08fdbca
Environment Info
Describe the Bug
payload 3 currently uses file-type 17 while the latest is file-type 19. The newer version is smaller and would remove a couple of transitive dependencies
Reproduction Steps
See
payload/packages/payload/package.json
Line 97 in 08fdbca
Adapters and Plugins
No response
The text was updated successfully, but these errors were encountered: