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

fix(core): do not replace legacy package mentions in binary files #16547

Merged
merged 1 commit into from
Apr 25, 2023

Conversation

FrozenPandaz
Copy link
Collaborator

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 #

@vercel
Copy link

vercel bot commented Apr 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 25, 2023 7:29pm

@FrozenPandaz FrozenPandaz changed the title chore(repo): do not replace legacy package mentions in binary files fix(core): do not replace legacy package mentions in binary files Apr 25, 2023
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) April 25, 2023 18:25
'.jpx',
'.heic',
'.cur',
'.tgz',
Copy link
Member

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

Copy link
Member

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));
Copy link
Member

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

Copy link
Collaborator Author

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. 🤔

@github-actions
Copy link

github-actions bot commented May 1, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants