Notable changes to readability will be documented in this file.
The format is based on Keep a Changelog, and this project attempts to adhere to Semantic Versioning.
For the purposes of Semantic Versioning, the readability output object for a given input document is not considered a stable API. That is, minor version increments may change this output. Patch version increments will only do so in ways that are strict improvements (e.g. from empty strings or exceptions to something more reasonable).
- Fixed
aria-modal
cookie dialogs interfering with readability - Fixed lists of images not showing
- Updated type information for TypeScript
- Simplify
script
andnoscript
removal - Updated dependencies
- Added allowedVideoRegex option to override the default
- Fix compatibility with DOM implementations where the
childNodes
property is not live (x2). - Lazily-loaded image references will no longer use the
alt
attribute to find images. parse()
provides the root element'slang
attributeisProbablyReadable
includes article tags- Improvements to JSON-LD support
- Typescript type definition file (
.d.ts
).
-
isProbablyReaderable
can now take an optional options object to configure it, allowing you to specify the minimum content length, minimum score, and how to check if nodes are visible. -
Better support for deeply-nested content.
-
Readability is now more likely to keep tables of content.
-
Better support for content in
<code>
tags. -
Readability (finally) no longer throws away all
<h1>
tags.
-
JSON-LD support for multiple authors was improved.
-
Elements with roles
menu
,menubar
,complementary
,navigation
,alert
,alertdialog
,dialog
will all be removed.
The first version that was published on NPM.
Previously, we did not consistently version anything, nor did we publish to NPM.
At some point, we may wish to expand this changelog into the past.