Skip to content
This repository was archived by the owner on Sep 13, 2025. It is now read-only.

Releases: clebert/sonnar

v1.0.0

Choose a tag to compare

@clebert clebert released this 20 Mar 17:56

v0.7.0

Choose a tag to compare

@clebert clebert released this 23 Mar 11:36
  • Add NodeSet.parent() as shortcut for NodeSet.node('parent')
  • Add NodeSet.self() as shortcut for NodeSet.node('self')

v0.6.0

Choose a tag to compare

@clebert clebert released this 21 Mar 23:45
  • Add NodeSet.any() as shortcut for NodeSet.node('descendant-or-self')

v0.5.0

Choose a tag to compare

@clebert clebert released this 21 Mar 21:45
  • The expression of an operation which results in a primitive is automatically enclosed in parentheses
  • Node-sets are now selected by node type
  • There are no more static method exports on module level

v0.4.0

Choose a tag to compare

@clebert clebert released this 18 Mar 22:36
  • Replace the select method of class NodeSet with the more flexible path method

v0.3.0

Choose a tag to compare

@clebert clebert released this 18 Mar 15:18
  • Sonnar is now a TypeScript API for constructing XPath 1.0 expressions
    • To write maintainable E2E tests, I'm a fan of an abstraction along the lines of the PageObject design pattern. The main point is to decouple the E2E tests from the implementation details of the HTML. My first approach was to create an object-oriented API around string-based CSS selectors. Unfortunately CSS selectors are not powerful enough to allow the kind of modeling I had in mind. Fortunately, there is an alternative called XPath 1.0, which is supported by all major browsers and also by common E2E testing frameworks like Playwright or Puppeteer.

v0.2.0

Choose a tag to compare

@clebert clebert released this 10 Mar 19:41
  • Eliminate opportunities for accidental misuse of the API

v0.1.0

Choose a tag to compare

@clebert clebert released this 09 Mar 19:46
  • Initial release