npm / basic-auth
basic-auth
What changed in basic-auth 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.
4 breaking1 new APIs and options1 performance1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbasic-auth 37 changes
Breaking changes 4
Removes the default export; use parse(str) instead.
The package is published as ESM, changing the module format developers use when consuming it.
The supported Node.js versions are now >=22.
The parse method now expects a string.
New APIs and options 1
Adds a format method that accepts name and pass.
Performance 1
Parse performance improved by approximately 15%.
Fixes and other changes 1
Adds cross-platform base64 support.