Skip to content

perf: drop base64-js dependency, smaller bundle#57

Merged
alexvictoor merged 1 commit into
masterfrom
perf/drop-base64-js
Jul 5, 2026
Merged

perf: drop base64-js dependency, smaller bundle#57
alexvictoor merged 1 commit into
masterfrom
perf/drop-base64-js

Conversation

@alexvictoor

Copy link
Copy Markdown
Member

Replace the base64-js npm package with a tiny dependency-free codec (src/base64.ts) built on the standard btoa/atob globals, available in Node >= 16 (this project requires >= 22) and all modern browsers. The wire format is unchanged (standard base64), so encoded histograms stay interoperable.

This removes HdrHistogramJS's last runtime dependency — the package now has zero production dependencies. Companion to the earlier pako removal.

Replace the `base64-js` npm package with a tiny dependency-free codec
(src/base64.ts) built on the standard `btoa`/`atob` globals, available in
Node >= 16 (this project requires >= 22) and all modern browsers. The wire
format is unchanged (standard base64), so encoded histograms stay
interoperable.

This removes HdrHistogramJS's last runtime dependency — the package now has
zero production dependencies. Companion to the earlier pako removal.
@alexvictoor alexvictoor merged commit 6ac2718 into master Jul 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant