diff --git a/CHANGELOG.md b/CHANGELOG.md index 86ab12c..3cb7c1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,11 @@ Notable changes to `@bwin/sankey-plus`. Versions follow semantic versioning. See - Non-throwing `validateGraph(graph: unknown)` preflight that returns all semantic `SankeyIssue` values for structurally well-shaped graphs and `invalid-graph` for malformed top-level or nested entries, without weakening the component's throw-on-invalid rendering behavior. - Validation demo tab with valid, cycle, unknown-endpoint and total-too-small variants, showing returned issue codes, messages and affected keys. +### Changed + +- Mark the package as side-effect-free except for its stylesheet, so bundlers can skip the single runtime bundle when none of its exports are used. The stylesheet remains an explicit import. +- Declare Node.js 20.19 or later in `engines`. + ### Fixed - Edge-node placement validation no longer spreads large stage arrays, so graphs with very many incident links validate without a `RangeError`. diff --git a/package.json b/package.json index 0699b0f..a1ab4af 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,12 @@ "license": "MIT", "author": "Benjamin Winkler | bwin", "type": "module", + "engines": { + "node": ">=20.19.0" + }, + "sideEffects": [ + "*.css" + ], "publishConfig": { "access": "public", "registry": "https://registry.npmjs.org/"