Repository navigation
chore: declare side effects and Node engine range - #19
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
CONFIRMED-FINDINGS.mditems 8 and 9 (package metadata).package.json: adds"sideEffects": ["*.css"]so bundlers can skip the single runtime bundle when none of its exports are used, while keeping the explicit stylesheet import side-effectful.package.json: adds"engines": { "node": ">=20.19.0" }, the lowest Node version supported by the runtime and dev toolchain. Node 22 remains the CI/release environment; it is not a runtime requirement.CHANGELOG.md: records both metadata changes under[Unreleased] / Changed.Side-effect audit
The built
dist/sankey-plus.jsimports only React packages, has no stylesheet import, and its top-level statements are declarations/exports plus pureIntl.NumberFormat,forwardRef, effect feature detection and adisplayNameassignment. It has no DOM reads/writes, listeners, global writes or other externally observable import-time work. The stylesheet is copied separately and imported explicitly by consumers.Verification
npm run format— passednpm run typecheck— passednpm run lint— passednpm test— 152 tests passednpm run build— passednpm run verify:package— passed (packed, fresh consumer, strict NodeNext typecheck, runtime exports and stylesheet)npm pack --dry-run— 12 files; archive contents unchanged apart from package metadata20.19.0floor: build, 152 tests, lint andverify:packagepass; runtime import/validateGraph/server rendering pass. Webpack 5 and Rollup/node-resolve retaindist/style.csswith the actual packed package.Notes
Browser tests were not run to avoid the shared Playwright port.
enginesis declarative only; noengine-strictor workflow changes. CI still targets Node 22.