All Versions
59
Latest Version
Avg Release Cycle
64 days
Latest Release
9 days ago

Changelog History
Page 1

  • v0.32.0 Changes

    October 18, 2021

    ➕ 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
    • ➕ Add support for case-insensitive CSS attribute selectors - thanks @fcapovilla
    • ➕ Add the :root pseudo-class selector - thanks @fcapovilla
  • v0.31.0 Changes

    June 11, 2021

    🔄 Changed

    • 💅 Treat style and title tags as plaintext in Mochiweb - thanks @SweetMNM
  • v0.30.1 Changes

    March 29, 2021

    🛠 Fixed

    • Fix typespecs of Floki.traverse_and_update/2 to make clear that it does not accept text nodes directly.
  • v0.30.0 Changes

    February 06, 2021

    ➕ Added

    • ➕ Add ":disabled" pseudo selector - thanks @vnegrisolo
    • ➕ Add Gleam adapter - thanks @CrowdHailer
    • ➕ Add pretty option to Floki.raw_html/2 - thanks @evaldobratti
    • 📜 Add html_parser option to parse_ functions. This enables a more dynamic and functional 🔧 configuration of the HTML parser in use.

    🔄 Changed

    • ✂ Remove support for Elixir 1.7 - thanks @carlosfrodrigues
    • 🗄 Replace IO.warn by Logger.info for deprecation warnings - thanks @juulSme

    🛠 Fixed

    • 🛠 Fix typespecs for find, attr and attribute functions - thanks @mtarnovan
    • 📚 Documentation Improvements - thanks @kianmeng
  • v0.29.0 Changes

    October 02, 2020

    ➕ Added

    • Add Floki.find_and_update/3 that updates nodes inside a tree, like traverse and update but without allowing changes in the children nodes. There for the tree cannot grow in size, 🚚 but can have nodes removed.

    🔄 Changed

    • Deprecate Floki.map/2 because we have now Floki.find_and_update/3 and Floki.traverse_and_update/2 that are powerful APIs. Floki.map/2 can be replaced by Enum.map/2 as well - thanks @josevalim for the idea!
    • ⚡️ Update optional dependency fast_html to v2.0.4

    🛠 Fixed

    • 🛠 Fix a bug when parsing a HTML with a XML inside using Mochiweb's parser

    👌 Improvements

    • ➕ Add more typespecs
  • v0.28.0 Changes

    August 26, 2020

    ➕ Added

    • ➕ Add support for :checked pseudo-class selector - thanks @wojtekmach

    🔄 Changed

    • ⬇️ Drop support for Elixir 1.6
    • ⚡️ Update version of fast_html to 2.0 in docs and CI - thanks @rinpatch

    🛠 Fixed

    • Fix docs by mentioning HTML nodes supported for traverse_and_update - thanks @hubertlepicki
  • v0.27.0 Changes

    July 07, 2020

    ➕ Added

    • Floki.filter_out/2 now can filter text nodes - thanks @ckruse
    • 👌 Support more enconding entities in Floki.raw_html/1 - thanks @ntenczar

    🛠 Fixed

    • 🛠 Fix Floki.attribute/2 when there is only text nodes in the document - thanks @ckruse

    👌 Improvements

    • 🐎 Performance improvements of Floki.raw_html/1 function - thanks @josevalim
    • Improvements in the docs and specs of Floki.traverse_and_update/2 and Floki.children/1 - thanks @josevalim
    • Improvements in the spec of Floki.traverse_and_update/2 - thanks @Dalgona
    • 👌 Improve the CI setup to run the formatter correctly - thanks @Cleidiano
  • v0.26.0 Changes

    February 17, 2020

    ➕ Added

    • ➕ Add support for the pseudo-class selectors :nth-last-child and :nth-last-of-type

    🛠 Fixed

    • Fix the typespecs of Floki.traverse_and_update/3 - thanks @RichMorin

    🔄 Changed

    • ⚡️ Update optional dependency fast_html to v1.0.3
  • v0.25.0 Changes

    January 26, 2020

    ➕ Added

    • 📜 Add Floki.parse_fragment!/1 and Floki.parse_document!/1 that has the same functionality of the functions without the bang, but they return the document or fragment without the either tuple 👻 and will raise exception in case of errors - thanks @schneiderderek
    • Add Floki.traverse_and_update/3 which accepts an accumulator which is useful to keep the state while traversing the HTML tree - thanks @Dalgona

    🔄 Changed

    • ⚡️ Update the html_entities dependency from v0.5.0 to v0.5.1
  • v0.24.0 Changes

    January 01, 2020

    ➕ Added

    • Add support for fast_html, which is a "C Node" wrapping Lexborisov's myhtml - thanks @rinpatch
    • ➕ Add setup to run our test suite against all parsers on CI - thanks @rinpatch
    • 📜 Add Floki.parse_document/1 and Floki.parse_fragment/1 in order to correct parse documents 📜 and fragments of documents - it also prevents the confusion and inconsistency of parse/1.
    • 🔧 Configure dialyxir in order to run Dializer easily.

    🔄 Changed

    • 🗄 Deprecate Floki.parse/1 and all the functions that uses it underneath. This means that all 🗄 the functions that accepted HTML as binary are deprecated as well. This includes find/2, attr/4, filter_out/2, text/2 and attribute/2. The recommendation is to use those functions with an 📜 already parsed document or fragment.
    • ✂ Remove support for Elixir 1.5.