Skip to content

Prepare release v0.35.3 #529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased][unreleased]

## [0.35.3] - 2024-01-25

This release has great performance improvements, thanks to the PRs
from [@ypconstante](https://github.com/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](https://github.com/wojtekmach).

- Fix `Floki.raw_html/2` when a tree using attributes as maps is given.
Thanks [@SupaMic](https://github.com/SupaMic).

- Add a guard to `Floki.find/2` so people can have a better error message when an
invalid input is given. Thanks [@Hajto](https://github.com/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](https://github.com/ypconstante).

### Removed

- Remove outdated Gleam wrapper code. The external functions syntax in Gleam
has [changed](https://gleam.run/book/tour/external-functions.html). So now
the wrapper is not needed anymore.
Thanks [@michallepicki](https://github.com/michallepicki).

## [0.35.2] - 2023-10-25

### Fixed
Expand Down Expand Up @@ -705,7 +736,8 @@ of the parent element inside HTML.

- Elixir version requirement from "~> 1.0.0" to ">= 1.0.0".

[unreleased]: https://github.com/philss/floki/compare/v0.35.2...HEAD
[unreleased]: https://github.com/philss/floki/compare/v0.35.3...HEAD
[0.35.3]: https://github.com/philss/floki/compare/v0.35.2...v0.35.3
[0.35.2]: https://github.com/philss/floki/compare/v0.35.1...v0.35.2
[0.35.1]: https://github.com/philss/floki/compare/v0.35.0...v0.35.1
[0.35.0]: https://github.com/philss/floki/compare/v0.34.3...v0.35.0
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defmodule Floki.Mixfile do

@description "Floki is a simple HTML parser that enables search for nodes using CSS selectors."
@source_url "https://github.com/philss/floki"
@version "0.35.2"
@version "0.35.3"

def project do
[
Expand Down