Skip to content

Conversation

JAForbes
Copy link
Collaborator

@JAForbes JAForbes commented Jul 5, 2025

Release v2.3.4

Changelog

Patch Changes

Fix the error message selection condition (@dead-claudia)

The previous condition was basically "if this is non-nullish or a boolean". That "or a boolean" is very obviously redundant.

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
I have no idea how this eluded me when I first wrote this. Also, add tests to make sure the check was correct from the beginning.
Minor bit of nuance from https://docs.github.com/en/actions/reference/workflows-and-actions/expressions#literals (emphasis mine):

> You don't need to enclose strings in `${{` and `}`}. *However, if you do, you must use single quotes (`'`) around the string.* [...]

Signed-off-by: Claudia Meadows <contact@claudiameadows.dev>
@dead-claudia dead-claudia requested a review from a team as a code owner August 11, 2025 20:09
@dead-claudia dead-claudia merged commit 882bd9d into release Aug 11, 2025
7 checks 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.

3 participants