Skip to content

Commit

Permalink
Merge branch 'master' into 563/async-example-readme
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulDalek authored Nov 25, 2024
2 parents c2e84bc + d61b462 commit c7717dd
Show file tree
Hide file tree
Showing 22 changed files with 838 additions and 627 deletions.
2 changes: 2 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ POOL_IDLE_TIMEOUT = 30000
POOL_CREATE_RETRY_INTERVAL = 200
POOL_REAPER_INTERVAL = 1000
POOL_BENCHMARKING = false
POOL_RESOURCES_INTERVAL = 30000

# LOGGING CONFIG
LOGGING_LEVEL = 4
Expand All @@ -75,6 +76,7 @@ OTHER_LISTEN_TO_PROCESS_EXITS = true
OTHER_NO_LOGO = false
OTHER_HARD_RESET_PAGE = false
OTHER_BROWSER_SHELL_MODE = true
OTHER_CONNECTION_OVER_PIPE = false

# DEBUG CONFIG
DEBUG_ENABLE = false
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
# 4.0.3

_Fixes:_
_New Features:_

- Added support for absolute paths in the `HIGHCHARTS_CACHE_PATH` option [(#562)](https://github.com/highcharts/node-export-server/issues/562).

_Fixes_:

- Improved status codes (user errors instead of 500) [(#577)](https://github.com/highcharts/node-export-server/pull/577).
- Improved memory management/usage [(#586)](https://github.com/highcharts/node-export-server/pull/586).
- Corrected the `Node.js Module` example in the README.

_Other:_

- Add fair usage policy note on the page [(#583)](https://github.com/highcharts/node-export-server/pull/583).

# 4.0.2

_Hotfix_:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**Note:** If you use the public Export Server at [https://export.highcharts.com](https://export.highcharts.com) you should read our [Terms of use and Fair Usage Policy](https://www.highcharts.com/docs/export-module/privacy-disclaimer-export). Note that a valid Highcharts License is required to do exports.

# Highcharts Node.js Export Server

Convert Highcharts.JS charts into static image files.
Expand Down Expand Up @@ -291,7 +293,7 @@ These variables are set in your environment and take precedence over options fro
- `HIGHCHARTS_MODULE_SCRIPTS`: Highcharts module scripts to fetch (defaults to ``).
- `HIGHCHARTS_INDICATOR_SCRIPTS`: Highcharts indicator scripts to fetch (defaults to ``).
- `HIGHCHARTS_FORCE_FETCH`: The flag that determines whether to refetch all scripts after each server rerun (defaults to `false`).
- `HIGHCHARTS_CACHE_PATH`: In which directory should the fetched Highcharts scripts be placed (defaults to `.cache`).
- `HIGHCHARTS_CACHE_PATH`: In which directory should the fetched Highcharts scripts be placed (defaults to `.cache`). Since v4.0.3 can be either absolute or relative path.
- `HIGHCHARTS_ADMIN_TOKEN`: An authentication token that is required to switch the Highcharts version on the server at runtime (defaults to ``).

### Export Config
Expand Down
3 changes: 2 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ const start = async () => {
}
} else {
throw new ExportError(
'[cli] No valid options provided. Please check your input and try again.'
'[cli] No valid options provided. Please check your input and try again.',
400
);
}
} catch (error) {
Expand Down
2 changes: 0 additions & 2 deletions dist/index.cjs

This file was deleted.

2 changes: 0 additions & 2 deletions dist/index.esm.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.esm.js.map

This file was deleted.

5 changes: 4 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
export default {
/** @type {import('jest').Config} */
const config = {
testEnvironment: 'jest-environment-node',
testMatch: ['**/tests/unit/**/*.test.js'],
transform: {
// '^.+\\.test.js?$': 'babel-jest'
}
};

export default config;
Loading

0 comments on commit c7717dd

Please sign in to comment.