Skip to content

Commit 6fc70d4

Browse files
committed
Release v0.36.0
1 parent c479644 commit 6fc70d4

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

CHANGELOG.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased][unreleased]
99

10+
## [0.36.0] - 2024-03-01
11+
12+
### Added
13+
14+
- Add `Floki.get_by_id/1` that returns one element by ID or `nil`.
15+
Thanks [@SteffenDE](https://github.com/SteffenDE).
16+
17+
### Changed
18+
19+
- Improve options validation with `Keyword.validate!/2`.
20+
This is not a change in APIs, but the error messages and opts validation
21+
should be standardized now.
22+
Thanks [@vittoriabitton](https://github.com/vittoriabitton).
23+
24+
### Removed
25+
26+
- Drop support for Elixir v1.12.
27+
1028
## [0.35.4] - 2024-02-19
1129

1230
Besides the fix described below, this release also contains more performance
@@ -746,7 +764,8 @@ of the parent element inside HTML.
746764

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

749-
[unreleased]: https://github.com/philss/floki/compare/v0.35.4...HEAD
767+
[unreleased]: https://github.com/philss/floki/compare/v0.36.0...HEAD
768+
[0.36.0]: https://github.com/philss/floki/compare/v0.35.4...v0.36.0
750769
[0.35.4]: https://github.com/philss/floki/compare/v0.35.3...v0.35.4
751770
[0.35.3]: https://github.com/philss/floki/compare/v0.35.2...v0.35.3
752771
[0.35.2]: https://github.com/philss/floki/compare/v0.35.1...v0.35.2

README.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,21 @@ Add Floki to your `mix.exs`:
6161
```elixir
6262
defp deps do
6363
[
64-
{:floki, "~> 0.35.0"}
64+
{:floki, "~> 0.36.0"}
6565
]
6666
end
6767
```
6868

6969
After that, run `mix deps.get`.
7070

71+
If you are running on [Livebook](https://livebook.dev) or a script, you can install with `Mix.install/2`:
72+
73+
```elixir
74+
Mix.install([
75+
{:floki, "~> 0.36.0"}
76+
])
77+
```
78+
7179
You can check the [changelog](CHANGELOG.md) for changes.
7280

7381
## Dependencies
@@ -118,7 +126,7 @@ you don't need to install anything to compile it thanks to [RustlerPrecompiled](
118126
```elixir
119127
defp deps do
120128
[
121-
{:floki, "~> 0.35.0"},
129+
{:floki, "~> 0.36.0"},
122130
{:html5ever, "~> 0.15.0"}
123131
]
124132
end
@@ -146,7 +154,7 @@ First, add `fast_html` to your dependencies:
146154
```elixir
147155
defp deps do
148156
[
149-
{:floki, "~> 0.35.0"},
157+
{:floki, "~> 0.36.0"},
150158
{:fast_html, "~> 2.0"}
151159
]
152160
end

mix.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule Floki.Mixfile do
33

44
@description "Floki is a simple HTML parser that enables search for nodes using CSS selectors."
55
@source_url "https://github.com/philss/floki"
6-
@version "0.35.4"
6+
@version "0.36.0"
77

88
def project do
99
[

0 commit comments

Comments
 (0)