Skip to content

Commit

Permalink
Release v0.34.3
Browse files Browse the repository at this point in the history
  • Loading branch information
philss committed Jun 2, 2023
1 parent c8850a7 commit fc07c14
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
21 changes: 20 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased][unreleased]

## [0.34.3] - 2023-06-02

### Added

- Add boolean option `:include_inputs` to `Floki.text/2` that changes the result
of this function to include the values of inputs. So if there is any input with
a "value" attribute, we now include that value if this option is set to `true`.
Thanks [@viniciusmuller](https://github.com/viniciusmuller).

### Fixed

- Fix find of elements by classes that contain colons. This is useful for when
people are trying to find elements that contain Tailwind classes.
Thanks [@viniciusmuller](https://github.com/viniciusmuller).

- Fix some typespecs that were using types from private modules. This is a fix
to the documentation.

## [0.34.2] - 2023-02-24

### Added
Expand Down Expand Up @@ -654,7 +672,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.34.2...HEAD
[unreleased]: https://github.com/philss/floki/compare/v0.34.3...HEAD
[0.34.3]: https://github.com/philss/floki/compare/v0.34.2...v0.34.3
[0.34.2]: https://github.com/philss/floki/compare/v0.34.1...v0.34.2
[0.34.1]: https://github.com/philss/floki/compare/v0.34.0...v0.34.1
[0.34.0]: https://github.com/philss/floki/compare/v0.33.1...v0.34.0
Expand Down
4 changes: 2 additions & 2 deletions lib/floki.ex
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ defmodule Floki do
html_tag() | html_comment() | html_doctype() | html_declaration() | html_text()
@type html_tree :: [html_node()]

@type css_selector :: String.t() | Floki.Selector.t() | [Floki.Selector.t()]
@type css_selector :: String.t() | %Floki.Selector{} | [%Floki.Selector{}]

@doc """
Parses a HTML Document from a String.
Expand Down Expand Up @@ -684,7 +684,7 @@ defmodule Floki do
"""

@spec filter_out(html_node() | html_tree() | binary(), FilterOut.selector()) ::
@spec filter_out(html_node() | html_tree() | binary(), :comment | :text | css_selector()) ::
html_node() | html_tree()

def filter_out(html, selector) when is_binary(html) do
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.34.2"
@version "0.34.3"

def project do
[
Expand Down

0 comments on commit fc07c14

Please sign in to comment.