Changelog
1.7.0
#75 cafc705
Thanks @lameuler! - Add preCallback
page option to configure the Puppeteer Page
before navigation
#84 7bc4eee
Thanks @lameuler! - add ensurePath
page option to throw if there is a filename conflict instead of adding a suffix to the path
#79 cf1500a
Thanks @DeyLak! - Allow passing a callback for the pdf
page option to dynamically set PDFOptions
#78 5944756
Thanks @lameuler! - added page: Page
parameter to path
option callback, and allow it to return a Promise. this can be used to dynamically set the PDF output path based on the page content
#76 e699220
Thanks @lameuler! - Added isolated
page option to create a new browser context for that page which will not share cookies and cache with other pages
#83 3d07ce7
Thanks @lameuler! - added throwErrors
option to prevent astro-pdf
from causing Astro build fails. Fixed the error handling of custom servers to be consistent with the new option.
#75 cafc705
Thanks @lameuler! - Add browserCallback
option to configure the Puppeteer Browser
before any pages are processed
Changelog
1.4.0
#61 6683ed3
Thanks @lameuler! - added throwOnFail
page option to throw an error if a page fails (and cause the build to fail) instead of just logging them
#61 6683ed3
Thanks @lameuler! - added maxRetries
page options to allow retrying the loading/processing of a page if an error occurs
#61 6683ed3
Thanks @lameuler! - added navTimeout
page option to set Puppeteer's default navigation timeout for the page
#61 6683ed3
Thanks @lameuler! - added maxConcurrent
option to specify the maximum number of pages to load and process at once. this can help prevent navigation timeouts caused when trying to load too many pages at the same time.
Changelog
1.3.0
#56 3b78004
Thanks @lameuler! - Adds support for Astro v5.0. Upgrading to Astro v5.0 should have no impact on compatibility with astro-pdf
.
#56 3b78004
Thanks @lameuler! - Bumped puppeteer
to 23.10.1. Updated to use the new merged LaunchOptions
type. This should have no impact on compatibility unless you are manually defining the types of your options, in which case you may need to update to the latest version of puppeteer and replace the PuppeteerLaunchOptions
type with the LaunchOptions
type if you get type errors.
- import type { PuppeteerLaunchOptions } from 'puppeteer'
+ import type { LaunchOptions } from 'puppeteer'
Changelog
1.2.0
978eb84
Thanks @lameuler! - allow generating multiple PDFs for a location by specifiying an array of entries rather than just one entry for each location7518212
Thanks @lameuler! - improves handling of 3XX status codes which are not redirects (e.g. 304 Not Modified
)