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

Update mathjax w/ npm auto-update #1762

Merged
merged 3 commits into from
Mar 6, 2024
Merged

Update mathjax w/ npm auto-update #1762

merged 3 commits into from
Mar 6, 2024

Conversation

Pinghigh
Copy link
Contributor

Should fix #1669, #1694

As described in #1694

MathJax 4.0.0-beta.3~4 does not have es5/ folder but the version before 4.0.0-alpha.1 has it. That caused the error.
I changed the config with es5 directory in this PR.

But 4.x is still a beta version and there is no stable 4.x release yet, so I'm not sure we should do the update now.
Please merge as appropriate, thanks

@@ -20,7 +20,14 @@
{
"basePath": "",
"files": [
"es5/**/!(node-main.js)",
"**/!(node-main.js)",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to avoid globstars, and especially open ones -- this line is now basically saying "add every file ever, except node-main.js", which I suspect is not what you want?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3.x.x has the es5 directory, if we do not need to think about it, we can apply this change, thanks for reply.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I follow what you're saying. You have changed es5/**/!(node-main.js) to be **/!(node-main.js). **/!(node-main.js) is going to match every file in the package, which is not acceptable and I will not merge such a change. Please fix the config to just match the files that're required.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I misunderstood what you said :(
I have corrected the mistake.

Copy link
Member

@MattIPv4 MattIPv4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MattIPv4 MattIPv4 merged commit 9b89a5b into cdnjs:master Mar 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update: Mathjax v4.0.0-beta.3 & v4.0.0-beta.4
2 participants