basic-auth
3.1.0 · 4 Nov 2026MIT28.2M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
- 3.x · latest line
3.1.0
4 Nov 2026Handle missing Authorization header in README examples
Align base64 implementations
Fixed
Handle missing Authorization header in README examples
Align base64 implementations
Validates base64 before decoding, aligning the
BufferandUint8ArrayimplementationsAligns more closely with the RFC by only accepting valid base64 (with or without padding)
3.0.0
3 Aug 2026- Removed
Removes the default export in favor of
parse(str)#94 Publish package as ESM #99
Add
format({ name, pass })method #65
This release switches the package to ESM.
Changed
Publish package as ESM #99
Add
format({ name, pass })method #65Bump supported node versions >=22 #102
The
parsemethod expects a string
Added
Cross platform base64 support #95
Removed
- Removed
Removes the default export in favor of
parse(str)#94Do
parse(req.headers.authorization ?? '')instead
Improvements
Parse performance improved by ~15% #96
- 2.x · maintenance
2.0.1
20 Sep 2018Only updates a dependency:safe-buffer 5.1.2
Dependency tracking · free for 3 projects
Know when your own dependencies move
basic-auth shipped a new major in the last 12 months, among 2 releases. inlinr shows which of your projects are behind, and what the upgrade breaks.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Reading releases, release notes and advisories…
Registry facts last checked 10 Nov 2026. Releases and advisories last read 10 Nov 2026.