scalpel v0.6.0 Release Notes
Release Date: 2019-02-18 // over 4 years ago-
๐ฅ 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).