highcharts-export-server
Advanced tools
Changelog
4.0.0
Breaking Changes:
error
and info
arguments in the callback of the startExport
function.Environment Variables
section).HIGHCHARTS_MODULES
environment variable to HIGHCHARTS_MODULE_SCRIPTS
.HIGHCHARTS_INDICATORS
environment variables to HIGHCHARTS_INDICATOR_SCRIPTS
.POOL_LISTEN_TO_PROCESS_EXITS
environment variable to OTHER_LISTEN_TO_PROCESS_EXITS
.customCode
section of the options config to the customLogic
in order to avoid confusion with the existing customCode
property within.scripts
property in the highcharts
section of the options config to the customScripts
.initPool
function to initExport
in the main module.init
function to initPool
in the pool module.New Features:
HIGHCHARTS_CACHE_PATH
option available through .env
to set a custom directory for the fetched files.Enhancements:
ExportError
for functionality-related errors and HttpError
for server-related errors.logWithStack
.defaultViewport
to null and optimized code to trigger setViewport
only once, reducing performance impact during export.waitForInitialPage
and the --no-startup-window
Chrome flag.highcharts.js
.clearPage
function to ensure content cleaning is only performed once, during resource release.hardResetPage
option for resetting the page's content (including Highcharts scripts) each time the page is released to the pool (defaulting to false
).browserShellMode
option for controlling the mode in which the browser runs (new or old, shell
mode).createImage
and createPDF
functions with faster execution options including optimizeForSpeed
and quality
.waitUntil
to 'domcontentloaded' for setContent
and goto
functions to improve performance.isConnected()
with the connected
property.listenToProcessExits
from the pool
to the other
section of the options.body-parser
package (already implemented in Express v4.16+).zod
package.shutdownCleanUp
function for resource release (ending intervals, closing servers, destroying the pool and browser) on shutdown. It will be called in the process exit handlers.HIGHCHARTS_ADMIN_TOKEN
, SERVER_BENCHMARKING
, and OTHER_NODE_ENV
) to the .env.sample
file, along with their descriptions in the README.proxy
, along with corresponding environment variables.highcharts-export-server
module, including initPool
, logWithStack
, setLogLevel
, enableFileLogging
, manualConfig
, printLogo
, and printUsage
.initLogging
function where the setLogLevel
and enableFileLogging
logic are consolidated into one place.isObjectEmpty
.5
) for benchmarking logs.defaultConfig
and mapToNewConfig
function in order to support the old, PhantomJS-based structure of options.SIGHUP
signal.mapChart
and ganttChart
constructors in the exporting UI (#503).config.js
file.killPool
function.uncaughtException
handler now kills the pool, browser, and terminates the process with exit code 1, when enabled./change_hc_version.js
route.handleResources
function.Puppeteer
from v21.1.1
to latest.Debugging
, Available Endpoints
, Examples
, and a Note about Deprecated Options
.Samples
section.Fixes:
multer
related error: 'Field value too long'.foreignObject
elements issue.pairArgumentValue
function, arising from CLI string arguments.https-proxy-agent
module.multiselect
type of values in prompt functionality triggered by the --createConfig
option.postWork
function which resulted in doubled errors.generic-pool
to tarn
notation, triggered by the getPoolInfo
and getPoolInfoJSON
functions.Changelog
3.1.1
/health
when running as a node module.minWorkers
and maxWorkers
as CLI arguments.px
suffixed width.Changelog
3.1.0
initialWorkers
option to the minWorkers
.queueSize
option, which doesn't have an equivalent in tarn
resource pool.timeoutThreshold
option and added the idleTimeout
option in its place.reaper
options, as tarn doesn't allow to enable/disable idle resources checking.createTimeout
and destroyTimeout
options for the resource pool.reaperInterval
option to set the interval for checking idle resources to destroy.createRetryInterval
option to set how long to idle after failed resource creation before trying again.rasterizationTimeout
option for setting the wait time for an image to be created..env.sample
file with new environment variables corresponding to above options.Changelog
3.0.2