Repository navigation
chore: 0.2.0 had no version number or changelog entry - #133
Merged
Merged
Conversation
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.
Collaborator
|
I read the 0.1.1 entry against #128 to #132 as they stand now. I'll approve once it's rebased onto
|
Collaborator
|
A release dry run for 0.1.1. I dispatched
So the wheel side is ready for the tag once this is rebased. |
jamesconwaydev
enabled auto-merge
November 21, 2026 01:57
foothillsdigital
approved these changes
Nov 21, 2026
foothillsdigital
left a comment
Collaborator
There was a problem hiding this comment.
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 grepfinds no 0.1.x left in any manifest,package.jsonor 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:
bench/Cargo.lockstill pinsparsec-html-core,parsec-html-css,parsec-html-encodingandparsec-urlat 0.1.0.benchtakes them by path, and CI's bench job doesn't pass--locked, so nothing fails. But the committed lock goes stale, and the first localcargo run --manifest-path bench/Cargo.tomlrewrites it. It was moved to 0.1.0 at the last release, so acargo update -w --manifest-path bench/Cargo.tomlwould keep it in step.strip_tagsandunwrap_tagsnow 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.
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.
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
PARSEC_VERSIONmacros.create_elementand the attribute setters now returnResult, andMatchOptionsandMatchTimeoutgainedmax_steps.Tests
cargo test --workspace(release): 347 test groups, 0 failed.-D warningsis clean.Cargo.toml.