Releases: danburzo/percollate
Releases · danburzo/percollate
v2.2.2
Bug fixes
- Duplicate file names are now given a numeric suffix to avoid one overwriting the other (#144)
v2.2.1
Bug fixes
- Improves Windows compatibility of some generated path names (#139)
- Fixes some images not showing up on Wikipedia article pages (#141)
v2.2.0
New features
Adds the -w, --wait=<sec>
option to process URLs sequentially, and pause for a number of seconds between URLs. If unspecified, URLs are processed in parallel as before. (#133)
v2.1.0
New features
Add support for the --inline
flag. This fetches the images and embeds them into the document as Base64-encoded data
URIs, so that you can use percollate html
to obtain self-contained HTML files.
v2.0.0
⚠️ Breaking change: Percollate 2.x is ESM only. As such:
- It requires Node.js 12.20.0, Node.js 14.10.0, or Node 16.0 or later to run.
- It can no longer be
require()
d into your project. You must either import
it statically, or import()
it dynamically.
You can continue to use Percollate 1.x on Node.js 10, and as a CommonJS dependency:
npm install -g percollate@1
(Please note that while 1.x version is perfectly usable, it will no longer receive updates going forward.)
Additionally, the default Git branch has been renamed to main
.
v1.2.6
This release includes some fixes to make articles on acoup.blog work better in epub
, thanks @Akuukis!
Bug fixes
- When fetching images for bundling in the EPUB, include URLs that use query parameters (e.g.
image.png?w=1024
)
- When an
<img>
or <source>
element contains a src
attribute and a srcset
attribute, discard the srcset
to keep the EPUB size down. (Previously, several versions of an image would have be bundled in the EPUB, to the detriment of disk space.)
v1.2.5
Upgraded to puppeteer@9
which fixes installation on Node.js on Apple Silicon.
v1.2.4
Bug fixes:
- Adds
uuid
as an explicit direct dependency in package.json
(#127, thanks @Jackymancs4!)
v1.2.3
Bug fixes:
- EPUB: Don't bundle images that have been stripped out by Readability (see #124)
- EPUB: Fixes XHTML generation to avoid putting a
<body>
element inside the article's content (see #124)
New features:
- Programmatic API: Return something useful — in the shape of
{ items, options }
— from the pdf()
/ epub()
/ html()
methods (see #122, thanks @yashha)