Skip to content

chore: 0.2.0 had no version number or changelog entry - #133

Merged
jamesconwaydev merged 4 commits into
mainfrom
release-0.1.1
Nov 21, 2026
Merged

jamesconwaydev merged 4 commits into
mainfrom
release-0.1.1

Conversation

@jamesconwaydev

@jamesconwaydev jamesconwaydev commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The fixes since 0.1.0 had no version number or changelog entry. 0.1.0 can crash on a page with a few thousand nested <template>s, so they need a release.

Change

Tests

  • cargo test --workspace (release): 347 test groups, 0 failed.
  • Clippy -D warnings is clean.
  • Both bindings build.
  • The header is regenerated with cbindgen 0.29.4.
  • The C test checks the macros against Cargo.toml.

Encoding and decoding a label take time that grows with the square of
its length, and nothing bounded it: a host of tens of thousands of
distinct characters, or a long `xn--` label, took several seconds. A
label over punycode::MAX_LABEL (4,000 code points) now fails, as one
whose arithmetic overflows does. DNS labels are 63 bytes at most.

The WPT URL suites pass as before, all 4,565 cases.
parsec_parse reads bytes that aren't UTF-8 as U+FFFD, which takes three
bytes where the bad byte took one, and spans and error offsets counted
in that copy. They could point at the wrong bytes, or past the end of
the caller's buffer. With PARSEC_SPANS or PARSEC_ERRORS the document now
keeps offsets back to the bytes passed in, as parsec_parse_bytes does,
from Offsets::lossy_utf8, which counts a byte order mark as text.

Offsets::to_source and to_decoded overflowed on an offset near SIZE_MAX,
a panic in debug builds and a wrong answer in release; they saturate.

A parsec_select callback could change or free the document it was
walking. A change from there now fails with the new PARSEC_ERR_BUSY,
and parsec_document_free from there frees it when parsec_select
returns.

The header says that freeing a borrowed string, or one twice, is
undefined behaviour, and that running out of stack or memory ends the
process; and it defines PARSEC_VERSION and its parts, which a test
keeps in step with Cargo.toml.
Every crate, the Python and WebAssembly packages, and the C header's
PARSEC_VERSION macros go to 0.1.1, with the lock files, and
CHANGELOG.md gets the release's entry.
@foothillsdigital

Copy link
Copy Markdown
Collaborator

I read the 0.1.1 entry against #128 to #132 as they stand now. I'll approve once it's rebased onto main after those merge, since approving now would be dismissed by the rebase.

  • Accurate: each item matches its PR, including the limits as fix(css): deep or self-multiplying stylesheets ran out of stack or time #128 now has them (MAX_NESTING 256, cascade 128). The four additions it names are public where it says they are: parsec_css::MAX_NESTING, parsec_url::punycode::MAX_LABEL, Offsets::lossy_utf8 and PARSEC_ERR_BUSY.
  • "All 4,565 WPT URL cases still pass": that's right on this branch. It's toascii 261 + setters 284 + urltestdata 904 + its origins 421 + IdnaTestV2 2,675 + IdnaTestV2-removed 20, with 0 failed.
  • One suggestion: Node.strip_tags() and Node.unwrap_tags() now also remove a matching node itself. That's the one change in this release that existing code could notice, since a call that used to leave the node now removes it. It's listed, but the opening says nothing is "changed in shape", so a reader skimming for breaking changes may miss it. A clause there, "one behaviour change: …", would catch them.

@foothillsdigital

Copy link
Copy Markdown
Collaborator

A release dry run for 0.1.1. I dispatched release-python.yml on main after #132 merged (run 44800514357). publish is gated on a v* tag, so it was skipped and nothing went to PyPI.

  • Result: all nine wheel jobs and the sdist succeeded, and each job's "Every wheel is there" check passed.
  • Windows (x64): find-pythons.py found all nine interpreters as distinct ones. 3.9 to 3.15 are in …\x64\python.exe, and 3.14t and 3.15t in …\x64-freethreaded\python.exe. So the free-threaded folders do have a python.exe, which answers the doubt I raised on fix(python): a node's strip_tags and unwrap_tags skipped the node #132.
  • Windows on ARM: it built its seven.

So the wheel side is ready for the tag once this is rebased.

@jamesconwaydev jamesconwaydev changed the title chore: 0.1.1 had no version number or changelog entry yet chore: 0.2.0 had no version number or changelog entry Nov 21, 2026

@foothillsdigital foothillsdigital left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Checked 63bd6f1. 0.2.0 is right: #136 changed signatures, and Parsec's rule makes that a minor release.

  • The template claim holds. "<template>".repeat(100_000) parses on a 256 KiB thread in both debug and release, as the Parser section says. On upstream/main before #136, the same program aborted with a stack overflow at 512 KiB.
  • The version is everywhere it should be. git grep finds no 0.1.x left in any manifest, package.json or the header, apart from one thing below. The opening says plainly who should upgrade, and Changed gives each API change with what calling code must do, ..Default::default() included.

Two notes, neither blocking:

  1. bench/Cargo.lock still pins parsec-html-core, parsec-html-css, parsec-html-encoding and parsec-url at 0.1.0. bench takes them by path, and CI's bench job doesn't pass --locked, so nothing fails. But the committed lock goes stale, and the first local cargo run --manifest-path bench/Cargo.toml rewrites it. It was moved to 0.1.0 at the last release, so a cargo update -w --manifest-path bench/Cargo.toml would keep it in step.
  2. strip_tags and unwrap_tags now also remove a matching node itself. That's under Python, but it's a change existing code can notice, so a line under Changed would reach the people scanning for breaking changes, which is what I suggested before there was a Changed section.

Approving.

@jamesconwaydev
jamesconwaydev added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit c2d09da Nov 21, 2026
31 of 39 checks passed
@jamesconwaydev
jamesconwaydev deleted the release-0.1.1 branch November 21, 2026 02:21
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