Repository navigation
Releases
Releases · tarides/river
0.6.1
- Raise the OCaml lower bound to 4.11
- Fix post descriptions (#22):
summaryno longer runs words together across block elements (e.g. list
items) and collapses whitespace, including non-breaking spaces; scripts
and styles are dropped, and Atomtype="xhtml"summaries keep their
block boundaries.meta_descriptionnow finds the standard<meta name="description">
tag (case-insensitively), keepingproperty="description"as a fallback,
and skips empty tags.- Behaviour change: an RSS2
<description>is only treated as a summary
when the item also has a non-blank<content:encoded>. Otherwise it is the
post content (often the whole article),summaryisNone, and
meta_descriptionfetches the post's page to read its meta tags.
0.6
- Add an opt-in
?repairflag toRiver.fetch(and a newRiver.of_string) that recovers feeds which are valid Atom/RSS apart from unclosed HTML void elements (e.g.<img>) intype="xhtml"content, by self-closing them before parsing. Off by default, so well-formed feeds are never modified. Also exposesRiver.sanitize_void_elements. - Extend
?repairto also recover well-formed Atom feeds that Syndic rejects because an<entry>is missing the mandatory<updated>element: it is defaulted to the entry's<published>, else the feed-level<updated>(#20). Also exposesRiver.repair_missing_updated. - Respect the feed's own entry identity (Atom
<id>, RSS2 guid) when generating Atom entries, resolve relative entry links to absolute URLs, and deduplicate merged posts (#13). - Use the feed's own
<summary>(Atom) /<description>(RSS2) when available: add asummaryaccessor and makemeta_descriptionprefer it over scraping the origin HTML page (#12).
0.5
CHANGES:
- Expose timeout and user-agent in the public API (#16)
- Remove unused ocamlnet dependency