Releases: fimad/scalpel
Releases · fimad/scalpel
0.6.2.1
0.6.2
0.6.1
0.6.0
Breaking Changes
anySelector
now captures text nodes. This causes different results when used
with a plural scraper (e.g.chroots
). Usage with a singular scraper (e.g.
chroot
) should be unaffected.- The dependency on
curl
has been replaced withhttp-client
and
http-client-tls
. This has the following observable changes.scrapeURLWithOpts
is removed.- The
Config
type used withscrapeURLWithConfig
no longer contains a list
of curl options. Instead it now takes aMaybe Manager
fromhttp-client
. - The
Decoder
function type now takes in aResponse
type from
http-client
. scrapeURL
will now throw an exception if there is a problem connecting to
a URL.
Other Changes
- Remove
Ord
constraint from public APIs. - Add
atDepth
operator which allows for selecting nodes at a specified depth
in relation to another node (#21). - Fix issue selecting malformed HTML where
"a" // "c"
would not match
<a><b><c></c></a></b>
. - Add
textSelector
for selecting text nodes. - Add
SerialScraper
type and associated primitives (#48).
0.5.1
0.5.0
0.4.1
0.4.0
- Add the
chroot
tricks (#23 and #25) to README.md and added examples.- Fix backtracking that occurs when using
guard
andchroot
. - Fix bug where the same tag may appear in the result set multiple times.
- Fix backtracking that occurs when using
- Performance optimizations when using the (//) operator.
- Make Scraper an instance of MonadFail. Practically this means that failed
pattern matches in<-
expressions within a do block will evaluate to mzero
instead of throwing an error and bringing down the entire script. - Pluralized scrapers will now return the empty list instead mzero when there
are no matches. - Add the
position
scraper which provides the index of the current sub-tree
within the context of achroots
's do-block.