Skip to content

Bump floki from 0.38.4 to 0.38.5 - #233

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/floki-0.38.5
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/hex/floki-0.38.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 2, 2026

Copy link
Copy Markdown
Contributor

Bumps floki from 0.38.4 to 0.38.5.

Release notes

Sourced from floki's releases.

v0.38.5

Fixed

  • Fix quadratic-time parsing of unbalanced tags in the built-in "mochiweb" parser.

    For every end tag the parser scanned the entire stack of open elements, so malformed input with a deep stack of never-closed tags followed by many non-matching end tags took O(open_depth x end_tags) time. The parser now tracks the names of open elements and rejects a non-matching end tag without scanning the stack, making parsing linear again. The resulting parse tree is unchanged.

  • Optimize functional selector matching.

    Instead of generating an+b values until one matches, solve the formula directly with bounds and a remainder check. This turns each match from a stream scan into O(1) arithmetic.

Pull requests

New Contributors

Full Changelog: philss/floki@v0.38.4...v0.38.5

Changelog

Sourced from floki's changelog.

[0.38.5] - 2026-10-29

Fixed

  • Fix quadratic-time parsing of unbalanced tags in the built-in "mochiweb" parser. For every end tag the parser scanned the entire stack of open elements, so malformed input with a deep stack of never-closed tags followed by many non-matching end tags took O(open_depth x end_tags) time. The parser now tracks the names of open elements and rejects a non-matching end tag without scanning the stack, making parsing linear again. The resulting parse tree is unchanged.

  • Optimize functional selector matching. Instead of generating an+b values until one matches, solve the formula directly with bounds and a remainder check. This turns each match from a stream scan into O(1) arithmetic.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [floki](https://github.com/philss/floki) from 0.38.4 to 0.38.5.
- [Release notes](https://github.com/philss/floki/releases)
- [Changelog](https://github.com/philss/floki/blob/main/CHANGELOG.md)
- [Commits](philss/floki@v0.38.4...v0.38.5)

---
updated-dependencies:
- dependency-name: floki
  dependency-version: 0.38.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file elixir Pull requests that update Elixir code labels Nov 2, 2026

This branch has not been deployed

No deployments
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 elixir Pull requests that update Elixir code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants