New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

astro-pdf

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-pdf - npm Package Versions

2

1.7.2

Diff

Changelog

Source

1.7.2

Patch Changes

lameuler
published 1.7.1 •

Changelog

Source

1.7.1

Patch Changes

  • #86 2654d81 Thanks @lameuler! - delete PDF files which failed to generate fully (e.g. timed out). this allows subsequent retries to still use the same output path.
lameuler
published 1.7.0 •

Changelog

Source

1.7.0

Minor Changes

  • #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

Patch Changes

  • #73 1f0e8b0 Thanks @lameuler! - Ensure that all pages and the browser are closed properly when errors are encountered

  • #81 0dcbd2b Thanks @lameuler! - throw an error if the output path is a directory (i.e. has a trailing slash)

lameuler
published 1.6.0 •

Changelog

Source

1.6.0

Minor Changes

lameuler
published 1.5.0 •

Changelog

Source

1.5.0

Minor Changes

  • #66 890360d Thanks @lameuler! - added runBefore and runAfter hooks to run a callback before or after astro-pdf runs
lameuler
published 1.4.1 •

Changelog

Source

1.4.1

Patch Changes

  • #63 46c10df Thanks @lameuler! - log current and max attempts for retries and error message for pdf write errors
lameuler
published 1.4.0 •

Changelog

Source

1.4.0

Minor Changes

  • #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.

lameuler
published 1.3.0 •

Changelog

Source

1.3.0

Minor Changes

  • #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'
    

Patch Changes

  • #56 3b78004 Thanks @lameuler! - Fixes check for default browser executable when using Puppeteer ^23.10.0
lameuler
published 1.2.0 •

Changelog

Source

1.2.0

Minor Changes

  • #52 978eb84 Thanks @lameuler! - allow generating multiple PDFs for a location by specifiying an array of entries rather than just one entry for each location

Patch Changes

lameuler
published 1.1.1 •

Changelog

Source

1.1.1

Patch Changes

2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc