File tree 3 files changed +32
-5
lines changed
3 files changed +32
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ Unreleased] [ unreleased ]
9
9
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
+
10
28
## [ 0.35.4] - 2024-02-19
11
29
12
30
Besides the fix described below, this release also contains more performance
@@ -746,7 +764,8 @@ of the parent element inside HTML.
746
764
747
765
- Elixir version requirement from "~ > 1.0.0" to ">= 1.0.0".
748
766
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
750
769
[ 0.35.4 ] : https://github.com/philss/floki/compare/v0.35.3...v0.35.4
751
770
[ 0.35.3 ] : https://github.com/philss/floki/compare/v0.35.2...v0.35.3
752
771
[ 0.35.2 ] : https://github.com/philss/floki/compare/v0.35.1...v0.35.2
Original file line number Diff line number Diff line change @@ -61,13 +61,21 @@ Add Floki to your `mix.exs`:
61
61
``` elixir
62
62
defp deps do
63
63
[
64
- {:floki , " ~> 0.35 .0" }
64
+ {:floki , " ~> 0.36 .0" }
65
65
]
66
66
end
67
67
```
68
68
69
69
After that, run ` mix deps.get ` .
70
70
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
+
71
79
You can check the [ changelog] ( CHANGELOG.md ) for changes.
72
80
73
81
## Dependencies
@@ -118,7 +126,7 @@ you don't need to install anything to compile it thanks to [RustlerPrecompiled](
118
126
``` elixir
119
127
defp deps do
120
128
[
121
- {:floki , " ~> 0.35 .0" },
129
+ {:floki , " ~> 0.36 .0" },
122
130
{:html5ever , " ~> 0.15.0" }
123
131
]
124
132
end
@@ -146,7 +154,7 @@ First, add `fast_html` to your dependencies:
146
154
``` elixir
147
155
defp deps do
148
156
[
149
- {:floki , " ~> 0.35 .0" },
157
+ {:floki , " ~> 0.36 .0" },
150
158
{:fast_html , " ~> 2.0" }
151
159
]
152
160
end
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ defmodule Floki.Mixfile do
3
3
4
4
@ description "Floki is a simple HTML parser that enables search for nodes using CSS selectors."
5
5
@ source_url "https://github.com/philss/floki"
6
- @ version "0.35.4 "
6
+ @ version "0.36.0 "
7
7
8
8
def project do
9
9
[
You can’t perform that action at this time.
0 commit comments