-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(core): do not replace legacy package mentions in binary files #16547
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
3702f1c
to
8d8bca8
Compare
8d8bca8
to
b815fb3
Compare
'.jpx', | ||
'.heic', | ||
'.cur', | ||
'.tgz', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.avif
and .dcm
extensions is missing for images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxz
and pxd
are also missing
]); | ||
|
||
export function isBinaryFile(path: string) { | ||
return binaryExtensions.has(extname(path)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to list out more extensions like .pdf
, .gz
, .zip
, etc.?
There's a long list here: https://github.com/sindresorhus/binary-extensions/blob/main/binary-extensions.json
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added these to the list.. let's see if we want to import this list differently in the future. 🤔
b815fb3
to
c6f8f9d
Compare
c6f8f9d
to
9338940
Compare
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Mentions of old packages are replaced in binary files such as images and
.jar
files.Expected Behavior
Mentions of old packages are not replaced in binary files such as images and
.jar
files.Related Issue(s)
Fixes #