Skip to content

Releases: mischov/meeseeks

v0.5.0

13 May 06:12
Compare
Choose a tag to compare

Breaking

  • [Select] Change the Selector.match?/3 callback to Selector.match/4, which now takes a context and can return a {boolean, context} tuple in addition to returning a boolean.

Enhancements

  • [Select] Add XPath selector support (see Meeseeks.XPath)
  • [Select] Add Selector.filters/1 callback to the Selector behaviour and update selection to allow for filtering matches before proceeding
  • [Select] Add Meeseeks.Context to allow selectors and the selection process to store state
  • [Select] Add Meeseeks.Accumulator behaviour and update Accumulator.{All, One} to use it
  • [Select] Add Node and Root selectors
  • [Select] Add Ancestors, AncestorsOrSelf, Children, Descendants, DescendantsOrSelf, NextSiblings, Parent, PreviousSiblings, and Self selector combinators
  • [Select] Add parent, ancestors, and previous_siblings queries to Document

Fixes

  • [Parse] Update to meeseeks_html5ever v0.4.6, which correctly parses namespaced elements and doesn't try to bring in html5ever 0.16.0
  • [Extract] Fix html extractor to add namespaces to elements
  • [Usability] Improve Document and Result opaque inspected values

v0.4.1

10 Apr 21:12
Compare
Choose a tag to compare

Enhancements

  • [Meta] Add CI via Travis CI

Fixes

  • [Parse] Update to meeseeks_html5ever v0.4.4, which permits Elixir 1.3
  • [Select] Fix CSS tokenization bug involving wildcard or pseudo-class descendants

v0.4.0

08 Apr 22:39
Compare
Choose a tag to compare

Enhancements

  • [Parse] Replace html5ever_elixir with meeseeks_html5ever
  • [Select] Allow CSS selector :not() to accept multiple selectors

Fixes

  • [Parse] Move Document.new/1 to Parser.parse_tuple_tree/1
  • [Select] Fix ordering in Document.get_nodes/1 and Accumulator.return/1 (for Accumulator.All)

v0.3.1

03 Apr 23:37
Compare
Choose a tag to compare

Enhancements

  • [Extract] Add new dataset extractor that mimics the HTMLElement.dataset API
  • [Usability] Raise a better error when trying to select with a string instead of selectors

v0.3.0

26 Mar 03:27
Compare
Choose a tag to compare
Release v0.3.0

v0.2.1

21 Mar 00:20
Compare
Choose a tag to compare
Release v0.2.1

v0.2.0

18 Mar 04:06
Compare
Choose a tag to compare
Improve selectors

  - Replace tokenizer with .xrl tokenizer, and expand to handle new selectors
  - Update parser to work with xrl tokens, and expand to handle new selectors
  - Add ~= and |= attribute selectors
  - Add :first-of-type, :last-of-type, :not, :nth-last-child, :nth-last-of-type, and :nth-of-type pseudo class selectors
  - Support an+b formulas in :nth* pseudo class selectors

v0.1.0

18 Mar 04:06
Compare
Choose a tag to compare
Init at 0.1.0