Bump fast-png to ^8 to drop the pako dependency
What
[email protected] depends on fast-png@^6.2.0, which pulls in [email protected] and @types/[email protected].
[email protected] replaced pako with fflate (image-js/fast-png#64). jsPDF already depends on fflate@^0.8.1, so moving to fast-png@^8 removes two transitive packages and leaves a single compression library in the tree.
Why it matters
@types/pako is flagged End-of-Life by dependency scanners. Upstream has moved on: the current @types/[email protected] is published as a deprecated stub — "This is a stub types definition. pako provides its own type definitions, so you do not need this installed." — but fast-png's ^2.0.3 range can never resolve to it, so consumers stay pinned to 2.0.4, a version that will not be updated again.
There is no clean consumer-side fix: overriding the range just swaps a flagged package for a deprecated stub.
Known hurdles
[email protected]migrated to ESM-only. jsPDF bundles its dependencies intodist/, so this may not reach published consumers, but it does affect the build.[email protected]changed the zlib encoding options, so the PNG encoding path inaddImagewould need checking against the new API.
Ask
Would you consider bumping the fast-png range to ^8?
Versions: jspdf 4.2.1 · fast-png 6.4.0 (resolved) · pako 2.1.0 · @types/pako 2.0.4
Source: parallax/jsPDF