Skip to content

Release - v2.3.4 #3033

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

Open
wants to merge 3 commits into
base: release
Choose a base branch
from
Open

Release - v2.3.4 #3033

wants to merge 3 commits into from

Conversation

JAForbes
Copy link
Collaborator

@JAForbes JAForbes commented Jul 5, 2025

Release v2.3.4

Changelog

Patch Changes

bundler: fix mangled comments and double suffixes (@kfule)

This PR removes unnecessary suffixes from comments in the bundle file. It also fixes the strange double suffix (mountRedraw00).

kfule added 3 commits July 5, 2025 11:22
…mment lines

This removes the mysterious suffixes in the comments and improves the readability of the bundled mithril.js. There is no impact on the code other than comments, as the processing is limited to lines containing only comments.
Trailing comments are not subject to this processing, but there are few trailing comments, and mangling does not seem to occur so far.
For some modules that are imported multiple times, it seems that the suffix count may be reset to 0. As a result, the suffix count does not increase, and a suffix may be added to the suffix, such as `mountRedraw00`. These double suffixes are annoying to fix, and it seems that `mountRedraw00` in the comments is corrected to `mountRedraw0`.
This commit prevents double suffixes by preventing the suffix count reset. Some suffixes in the bundled mithril.js will change, but this is because the suffixes are correctly incremented, and the code will not be broken (i.e., mithril.min.js will remain unchanged).
The double suffix test reproduces the current file structure for `mountRedraw00`.
@JAForbes JAForbes requested a review from a team as a code owner July 5, 2025 18:24
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.

2 participants