Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dartess
Copy link
Contributor

@dartess dartess commented Jun 30, 2025

Initially, I wanted to update the base64-js library to avoid duplication in my project (it's currently fixed here while the rest of the project uses latest version,1.5.1).

Then I realized that updating the dependency wasn't a stable solution. Instead, I wanted to move base64-js to devDependencies by removing the runtime decoding entirely — since the decoding can be done at the data preparation stage.

Finally, I realized there's no need to generate, read, or decode base64 at all. We can directly write the "raw" Uint8Array to a generated file. With this approach, base64-js becomes completely unnecessary.

@blikblum
Copy link
Member

Great work

@blikblum blikblum merged commit dc9603e into foliojs:master Jun 30, 2025
4 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.

2 participants