diff --git a/CHANGELOG.md b/CHANGELOG.md index ba785f77..e0f09493 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased][unreleased] +## [0.32.0] - 2021-10-18 + +### Added + +- Add an HTML tokenizer written in Elixir - this still experimental and it's not stable API yet. +- Add support for HTML IDs containing periods in the selectors - thanks [@Hugo-Hache](https://github.com/Hugo-Hache) +- Add support for case-insensitive CSS attribute selectors - thanks [@fcapovilla](https://github.com/fcapovilla) +- Add the `:root` pseudo-class selector - thanks [@fcapovilla](https://github.com/fcapovilla) + ## [0.31.0] - 2021-06-11 ### Changed @@ -581,7 +590,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.31.0...HEAD +[unreleased]: https://github.com/philss/floki/compare/v0.32.0...HEAD +[0.32.0]: https://github.com/philss/floki/compare/v0.31.0...v0.32.0 [0.31.0]: https://github.com/philss/floki/compare/v0.30.1...v0.31.0 [0.30.1]: https://github.com/philss/floki/compare/v0.30.0...v0.30.1 [0.30.0]: https://github.com/philss/floki/compare/v0.29.0...v0.30.0 diff --git a/README.md b/README.md index 6137f3d3..d6d62d55 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ Add Floki to your `mix.exs`: ```elixir defp deps do [ - {:floki, "~> 0.31.0"} + {:floki, "~> 0.32.0"} ] end ``` @@ -120,8 +120,8 @@ After Rust is set up, you need to add `html5ever` NIF to your dependency list: ```elixir defp deps do [ - {:floki, "~> 0.31.0"}, - {:html5ever, "~> 0.8.0"} + {:floki, "~> 0.32.0"}, + {:html5ever, "~> 0.9.0"} ] end ``` @@ -148,7 +148,7 @@ First, add `fast_html` to your dependencies: ```elixir defp deps do [ - {:floki, "~> 0.31.0"}, + {:floki, "~> 0.32.0"}, {:fast_html, "~> 2.0"} ] end diff --git a/mix.exs b/mix.exs index a78ad84b..7d2b2d0f 100644 --- a/mix.exs +++ b/mix.exs @@ -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.31.0" + @version "0.32.0" def project do [ @@ -127,6 +127,6 @@ defmodule Floki.Mixfile do end # Specifies which paths to compile per environment. - defp elixirc_paths(env) when env in [:test], do: ["test/support", "lib"] + defp elixirc_paths(:test), do: ["test/support", "lib"] defp elixirc_paths(_), do: ["lib"] end