-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade dependencies, require Node 14+, add experimental Firefox supp…
…ort (#148) * Upgrade dependencies, minimum Node version 14 * Add support for Firefox PDF rendering via the `--browser=firefox` option * Default style: improve formatting of code blocks * WIP support for Firefox page size * update node-fetch@2 * Use 'node:' prefixes for importing built-in modules. Use 'node:crypto' instead of 'uuid' package. * Passing the content as ArrayBuffer from 'node-fetch' to 'jsdom' performs encoding sniffing. Fixes #149. See: https://github.com/jsdom/jsdom#encoding-sniffing This allows us to get rid of encoding sniffing at the 'node-fetch' level, and lets us upgrade to 'node-fetch' v3.x without any issues. * Remove encoding test referencing external url * In Firefox, provide explicit page size to Puppeteer, extracted from "@page/src" CSS property. * Fix integration test: .originalContent is now an ArrayBuffer * fetchContent() should return { buffer, contentType } in all cases (url, file, stdin) * Linting; add test for slurp * Display header & footer only in chrome
- Loading branch information
Showing
22 changed files
with
1,320 additions
and
556 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.