This release has great performance improvements, thanks to the PRs
from @ypconstante!
Most of the main functions, such as Floki.raw_html/2 and Floki.find/2 are
faster and are using less memory. It's something like twice as fast, and half
usage of memory for find/2, for example.
Fixed
Add :leex to Mix compilers. Fixes the build when running with dev version of Elixir.
Thanks @wojtekmach.
Fix Floki.raw_html/2 when a tree using attributes as maps is given.
Thanks @SupaMic.
Add a guard to Floki.find/2 so people can have a better error message when an
invalid input is given. Thanks @Hajto.
Fix parsers to consider IO data as inputs. This may change in the next version
of Floki, as I plan to drop support for IO data.
Thanks @ypconstante.
Removed
Remove outdated Gleam wrapper code. The external functions syntax in Gleam
has changed. So now
the wrapper is not needed anymore.
Besides the fix described below, this release also contains more performance
improvements, thanks to @ypconstante.
Fixed
Fix order of results for Floki.find/2. This was a regression from the
previous version - thanks @ypconstante.
[0.35.3] - 2024-01-25
This release has great performance improvements, thanks to the PRs
from @ypconstante!
Most of the main functions, such as Floki.raw_html/2 and Floki.find/2 are
faster and are using less memory. It's something like twice as fast, and half
usage of memory for find/2, for example.
Fixed
Add :leex to Mix compilers. Fixes the build when running with dev version of Elixir.
Thanks @wojtekmach.
Fix Floki.raw_html/2 when a tree using attributes as maps is given.
Thanks @SupaMic.
Add a guard to Floki.find/2 so people can have a better error message when an
invalid input is given. Thanks @Hajto.
Fix parsers to consider IO data as inputs. This may change in the next version
of Floki, as I plan to drop support for IO data.
Thanks @ypconstante.
Removed
Remove outdated Gleam wrapper code. The external functions syntax in Gleam
has changed. So now
the wrapper is not needed anymore.
Thanks @michallepicki.
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 merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show 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 from 0.35.2 to 0.35.4.
Release notes
Sourced from floki's releases.
... (truncated)
Changelog
Sourced from floki's changelog.
Commits
b66034f
Release v0.35.4 (#543)0840a05
Find with descendant selector without html tree (#537)5e7ec16
Always return find elements in the correct order (#540)dc9544e
Raw HTML code clean up (#538)c6f28eb
Optimize namespace and type selector by using pattern match (#536)b7bc377
Bump credo from 1.7.3 to 1.7.4 (#535)c688e2a
Find without build html tree (#534)712c08a
Optimize Floki.children (#533)c2c1a25
Reduce number of function call on traverse (#531)693e27b
Bump fast_html from 2.2.0 to 2.3.0 (#530)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 merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show