Skip to content

v2.0.0

Compare
Choose a tag to compare
@rmehner rmehner released this 26 Jan 14:49
· 290 commits to main since this release

Major Changes

Breaking Changes

  • We don't allow options in the payload anymore. Those are pdfOptions now. To adapt your code, rename options to pdfOptions and you should be good to go.
    This change was needed to allow more options for other methods we're using (like timeout for goto).

  • We have stricter validation now and don't allow unknown keys in the option objects now. Previously we've ignored them, but we've now opted to bail out with an validation error so the user gets notified on typos and such.

  • 484b197: Return an error if page could not be loaded

Previously we've ignored if the page could not be loaded and tried to create a PDF anyway. However, this lead to PDFs with random error messages on them, instead of a proper error in logging or similar.

To provide an better experience, we've opted to change this, so errors are caught earlier.

Minor Changes

  • c7e554e: Update to Playwright 1.30.0
  • 8b2ed78: Merge passed options with default options