Skip to content

Releases: astral-sh/astral-html

astral-html v0.0.4

Choose a tag to compare

@astral-releases-bot astral-releases-bot released this 20 Oct 13:20
Immutable release. Only release title and notes can be modified.
bc88efc

Released on 2026-10-20.

Bug fixes

  • Select text modes according to SVG and HTML integration context so well-formed
    SVG no longer causes Reader or Document to consume following HTML as text
    (astral-sh/astral-html#85)
  • Honor self-closing SVG elements so they no longer remain open and incorrectly
    exhaust Document's depth limit
    (astral-sh/astral-html#85)
  • Preserve CDATA sections as text while parsing SVG content
    (astral-sh/astral-html#85)
  • Close an immediately open HTML a or option when another start tag has the
    same name, preventing sibling runs from incorrectly hitting Document's depth
    limit
    (astral-sh/astral-html#86)

Performance

  • Borrow unchanged comment text during tokenizer recovery, avoiding allocations
    unless newline or NUL normalization is required
    (astral-sh/astral-html#75)

Other changes

  • Document where Reader and Document differ from browser parsing and warn
    against using their output to approve HTML for rendering
    (astral-sh/astral-html#78)
  • Clarify that Doctype::force_quirks == false does not by itself indicate
    standards mode
    (astral-sh/astral-html#78)
  • Add README highlights for the crate's runtime dependency, unsafe-code policy,
    and html5lib tokenizer test coverage
    (astral-sh/astral-html#77)
  • Round README benchmark results to match their measurement precision
    (astral-sh/astral-html#83)

astral-html v0.0.3

Choose a tag to compare

@astral-releases-bot astral-releases-bot released this 05 Oct 19:04
Immutable release. Only release title and notes can be modified.
bb211c5

Released on 2026-10-05.

Performance

  • Speed parsing after tags with many attributes by discarding oversized
    deduplication tables instead of repeatedly clearing them
    (astral-sh/astral-html#72)

Other changes

  • Make parser performance easier to compare with benchmark tables covering link
    extraction and document construction across five workloads
    (astral-sh/astral-html#71)

astral-html v0.0.2

Choose a tag to compare

@astral-releases-bot astral-releases-bot released this 05 Oct 17:57
Immutable release. Only release title and notes can be modified.
3b84c18

Released on 2026-10-05.

Other changes

astral-html v0.0.1

Choose a tag to compare

@astral-releases-bot astral-releases-bot released this 05 Oct 17:34
Immutable release. Only release title and notes can be modified.
08321fe

Released on 2026-10-05.

This is the first release of astral-html, a high-performance HTML parser
designed for document traversal.

Enhancements

  • Add read-only document and element views with attribute lookup, descendant
    iteration, text extraction, and configurable resource limits
    (astral-sh/astral-html#8)
  • Add a streaming event reader that automatically selects the correct text mode
    for HTML elements
    (astral-sh/astral-html#7)
  • Add a UTF-8 tokenizer that borrows unchanged input and supports data, RCDATA,
    raw-text, script, plaintext, and CDATA states
    (astral-sh/astral-html#5)
  • Decode named and numeric HTML character references according to their text or
    attribute context
    (astral-sh/astral-html#3)
  • Allow documents with any number of attributes while retaining input, node, and
    nesting limits
    (astral-sh/astral-html#34)
  • Add the initial astral-html crate without unsafe code or a mandated
    allocator
    (astral-sh/astral-html#2)

Bug fixes

Performance