#15

fix: remove Buffer dependency from core runtime

OpenSanoy24wants to merge intofrom

Summary

  • replace Node-specific Buffer usage with @better-auth/utils/base64 for standard Base64 and unpadded Base64URL
  • measure execution and runner byte limits with TextEncoder instead of Buffer.byteLength
  • add regression tests that run with Buffer unavailable
  • add Unicode encoding coverage

Note: Base64.decode now throws on characters outside the Base64 alphabet instead of silently skipping them like Buffer did.

Testing

  • pnpm --filter callscript test — 275 tests passed
  • pnpm --filter callscript typecheck
  • pnpm --filter callscript build
  • Biome checks passed for all changed files

Closes #14

Activity

4
vercel[bot]1mo ago

@Sanoy24 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

socket-security[bot]1mo ago

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

DiffPackageSupply Chain
Security
VulnerabilityQualityMaintenanceLicense
npm/​@​better-auth/​utils@​0.5.0

View full report