unstale

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 init

@unstale/cli on npm

basic-auth 37 changes

Breaking changes 4

  • Removes the default export; use parse(str) instead.

    3.0.0release notes

  • The package is published as ESM, changing the module format developers use when consuming it.

    3.0.0release notes

  • The supported Node.js versions are now >=22.

    3.0.0release notes

  • The parse method now expects a string.

    3.0.0release notes

New APIs and options 1

  • Adds a format method that accepts name and pass.

    3.0.0release notes

Performance 1

  • Parse performance improved by approximately 15%.

    3.0.0release notes

Fixes and other changes 1