meshpad:0.1.1 - #5727
Merged
Merged
Conversation
13Stokes31
temporarily deployed
to
Package Check
August 31, 2026 12:18 — with
GitHub Actions
Inactive
13Stokes31
temporarily deployed
to
Package Check
August 31, 2026 12:21 — with
GitHub Actions
Inactive
Member
|
Thank you. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds meshpad 0.1.1 — a patch release that validates the numeric arguments of
grid-paper. No change to what it draws.Until now only
kindandlineswere checked.step: 0failed with Typst's"cannot divide by zero" pointing inside the package,
major-every: 0with"divisor must not be zero", and a negative
step, a negative or fractionalmajor-every, and a zero or negativesizeall compiled in silence and drewnonsense. Each of those now raises a
meshpad:message that says what wasexpected and what it got, before anything is drawn.
Two details worth noting, since
sizeandstepaccept both plain numbers andTypst lengths. Positivity is tested against the zero of the value's own type, as
a length and an integer cannot be compared. And the type check is "all lengths
or all plain numbers" rather than "all the same type", so the documented
size: (6, 4)withstep: 0.5— an int/float mix — keeps working; what isrejected is mixing a length with a plain number, which used to fail deep inside
CeTZ with "cannot add length and float".
The must-fail cases are now an actual battery (
tests/errors.sh, 10 cases eachasserting its own message); they previously sat commented out and never ran.
>= 0.14.0.0.1.0 is untouched; this adds
packages/preview/meshpad/0.1.1/.I have read the submission guidelines; the package compiles, has a README with
examples, a LICENSE, and a valid
typst.toml.