Skip to content

Releases

0.6.1

Choose a tag to compare

@cuihtlauac cuihtlauac released this 08 Nov 17:28
1e55c4f
  • Raise the OCaml lower bound to 4.11
  • Fix post descriptions (#22):
    • summary no longer runs words together across block elements (e.g. list
      items) and collapses whitespace, including non-breaking spaces; scripts
      and styles are dropped, and Atom type="xhtml" summaries keep their
      block boundaries.
    • meta_description now finds the standard <meta name="description">
      tag (case-insensitively), keeping property="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), summary is None, and
      meta_description fetches the post's page to read its meta tags.

0.6

0.6

Choose a tag to compare

@cuihtlauac cuihtlauac released this 02 Sep 06:43
55b9950
  • Add an opt-in ?repair flag to River.fetch (and a new River.of_string) that recovers feeds which are valid Atom/RSS apart from unclosed HTML void elements (e.g. <img>) in type="xhtml" content, by self-closing them before parsing. Off by default, so well-formed feeds are never modified. Also exposes River.sanitize_void_elements.
  • Extend ?repair to 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 exposes River.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 a summary accessor and make meta_description prefer it over scraping the origin HTML page (#12).

0.5

0.5

Choose a tag to compare

@cuihtlauac cuihtlauac released this 25 Aug 13:54
28281fe

CHANGES:

  • Expose timeout and user-agent in the public API (#16)
  • Remove unused ocamlnet dependency

0.4

0.4

Choose a tag to compare

@tmattio tmattio released this 08 Nov 10:30

CHANGES:

  • Replace ocamlnet HTML parser with Lambda Soup (#15, @aantron)

0.3

0.3

Choose a tag to compare

@tmattio tmattio released this 21 Nov 16:31

CHANGES:

  • Fall back to entry id if entry links doesn't exist (#11, @sabine)

0.2

0.2

Choose a tag to compare

@tmattio tmattio released this 14 Apr 10:28

CHANGES:

  • Build with dune.
  • Make the types abstract and add accessor functions.
  • Support fetching meta description and SEO image from the posts links.