Skip to content

Update Rust crate lol_html to v3 - #53

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/lol_html-3.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/lol_html-3.x

Conversation

@renovate

@renovate renovate Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
lol_html dependencies major 2.0.0 → 3.0.0

Release Notes

cloudflare/lol-html (lol_html)

v3.0.2

Compare Source

  • Improved performance of parsing tags with many attributes split across many input chunks.

v3.0.1

Compare Source

  • Improved performance of selector matching on deeply nested elements and on stray end tags.
  • Fixed element handlers never running for SVG and MathML integration-point elements when
    the preceding tag matched no selector.
  • Fixed attribute selectors with an uppercase attribute name: [HREF] silently matched
    nothing and [HREF=x] was rejected as a namespaced selector.
  • Fixed :nth-of-type() counting custom elements spelled with different ASCII case as
    distinct types.

v3.0.0

Compare Source

  • Added MemorySettings::with_graceful_bail_out_on_memory_limit_exceeded(): when set, the
    rewriter flushes every input byte it has received but not yet emitted to the sink (as-is)
    before returning MemoryLimitExceededError, so callers can continue the response by
    writing subsequent bytes directly to their downstream sink instead of breaking it.
  • Added Settings::with_graceful_bail_out_on_content_handler_error(): symmetric to the
    memory setting above, but for RewritingError::ContentHandlerError. When set, the
    rewriter flushes remaining input bytes before propagating a handler error, preserving
    the response. Currently exposed via the Rust API only; the C API still uses the original
    behavior.
  • Added Settings::append_bail_out_handler() and the matching bail_out! macro,
    BailOut rewritable unit, and BailOutHandler / BailOutHandlerSend type aliases.
    Bail-out handlers fire immediately before the raw flush of remaining unparsed input on a
    graceful bail-out (memory or content-handler error). Handlers receive the
    RewritingError and a BailOut through which they can append final bytes to the sink
    via BailOut::append(content, content_type). Intended for handlers that buffer state
    across the document (e.g. text-buffering handlers that defer emission) and need to
    flush that state on bail-out.
  • Marked RewritingError #[non_exhaustive] so future error variants can be added without
    a major version bump. External callers can still match on it, but must include a
    catch-all _ => arm.
  • Reworked Settings, MemorySettings and RewriteStrSettings to use a consuming-builder
    API. Fields are now private; construction is via ::new() plus chained with_* setters
    and append_* methods for the content-handler vectors. This makes future field additions
    non-breaking. Migration:
    // before
    Settings {
        element_content_handlers: vec![element!("div", |el| { /* ... */ Ok(()) })],
        strict: false,
        ..Settings::new()
    }
    // after
    Settings::new()
        .with_strict(false)
        .append_element_content_handler(element!("div", |el| { /* ... */ Ok(()) }))
  • Renamed the internal-use feature integration_test to _integration_test. The leading
    underscore signals to cargo-semver-checks and similar tools that the feature is not
    part of the public API.
  • Comment::set_text now also rejects --!>, a leading >, and a leading ->, which
    WHATWG-conformant browsers treat as comment terminators. Previously only --> was
    rejected, so a caller passing attacker-influenced data could let an attacker break out
    of the comment and inject HTML (security fix).

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies Pull requests that update a dependency file label Jun 8, 2026
@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from 476ad52 to f7f42ca Compare July 21, 2026 00:06
@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from f7f42ca to bd5c90c Compare August 1, 2026 18:51
@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from bd5c90c to e772b85 Compare August 12, 2026 04:53
@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from e772b85 to 66e0610 Compare September 3, 2026 00:57
@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from 66e0610 to f4d470f Compare October 1, 2026 00:15
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: af55e775-5602-4ca2-9f45-77927a29cc95

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from f4d470f to 9c0615a Compare October 24, 2026 12:49
@renovate
renovate Bot force-pushed the renovate/lol_html-3.x branch from 9c0615a to 2d220e4 Compare October 26, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants