Breaking Changes
There are two breaking changes in v5.0.0
- xlink:href is now dissallowed in incoming SVG. This has adverse effects on exports with e.g. background images or other external resources, and is being done to prevent potential security issues. To allow this attribute, set OTHER_ALLOW_XLINK_HREF to true.
- There is now an active upload limit which defaults to 3MB (can be configured with SERVER_MAX_UPLOAD_SIZE/--maxUploadSize/maxUploadSize)
Changelog
Breaking Changes:
- Removed
xlink:hreffrom incoming SVGs in preperation for an upcoming Puppeteer update that will remove this option. To allow this attribute, setOTHER_ALLOW_XLINK_HREFtotrue. - Changed the upload file size limit to 3MB, and exposed settings for configuring it (
SERVER_MAX_UPLOAD_SIZE/--maxUploadSize/maxUploadSize). The rational behind this change is that in testing that seems like the most balanced limit along with other default values for pool sizing, timeouts and such to avoid attempting to process requests that would likely end up timing out due to its size.
Fixes:
- Fixed an issue where clip size for PDFs would on rare occation be invalid, causing the export to fail.
- Fixed an issue where the chart constructor was sometimes incorrectly set, causing the export to fail.
- Fixed an issue that would sometimes cause a crash due to fail due to
Accept-Rangesheaders. - Fixed the warning message when the the default
resources.jsonfile is not found. - Fixed the problem with the lack of the
instrvalue, when theoptionsis set instead. - Added referrers to CDN cache fetches on first startup/install.
- Wrapped the
clearPageResourcesfunction in a try-catch to handle potential page resources errors. - Secured against errors caused by
dev-toolsprotocol data size limitations. - Corrected the
Node.js Moduleexample in the README.
New Features: