CHANGELOG.md in pdfgen-0.6.0 vs CHANGELOG.md in pdfgen-0.7.0

- old
+ new

@@ -1,44 +1,53 @@ +## Pdfgen 0.7.0 (June 14, 2019) + +* Revert to using setContent but require Puppeteer >= 1.11.0. + + This version of Puppeteer added support to setContent for waiting until browser + events fire. The original reason for transitioning away from setContent was lack + of that feature and navigating to a data URL is limited to a maximum of 2 megabytes + of HTML as that is Chromium's URL length limit. + ## Pdfgen 0.6.0 (June 14, 2019) -* Use capture3 to also capture stderror which is where Node error messages are output. +- Use capture3 to also capture stderror which is where Node error messages are output. This allows Pdfgen to include the error from Node in the exception that is raised. ## Pdfgen 0.5.0 (September 3, 2018) -* Changes how the wait for timeout works slightly. +- Changes how the wait for timeout works slightly. This new way starts the wait prior to putting the HTML in the page. Now that we can utilize the waitUntil navigation feature in Puppeteer, we might as well start the clock before waiting for that amount of time. This way, the maximum wait time should be roughly the timeout instead of the timeout + how long the page takes to load. -* Changes how static HTML is put into the page. +- Changes how static HTML is put into the page. This new method allows us to use the navigation wait helpers so there should be almost no need for timeout waiting if passing Pdfgen HTML instead of a URL. Sadly, this still does not load assets on the page so inlining your assets is still required. -* Moves emulateMedia and setViewport steps to be before setting content or navigation +- Moves emulateMedia and setViewport steps to be before setting content or navigation so that the browser won't need to rerender the content and hopefully we improve performance some. ## Pdfgen 0.4.2 (June 8, 2018) -* Adds checking of minimum Node version required. +- Adds checking of minimum Node version required. Need to soon add testing for different versions of Node to discover what the compatible versions are. -- Adds handling of any unhandled rejection by logging the error and then exiting. +* Adds handling of any unhandled rejection by logging the error and then exiting. This change provides better error messaged from Node and also prevents the process from hanging and not exiting when there was an error. -- Fixes bug where launch options were no longer being passed to the Javascript. +* Fixes bug where launch options were no longer being passed to the Javascript. ## Pdfgen 0.4.1 (May 15, 2018) - Fixes bug with regex that checks if a URL was passed.