npm passport-custom 1.2.0

4 hours ago

Highlights

  • Adds explicit { passOptionsToCallback: true } behavior while preserving
    legacy two-argument verify callbacks by default.
  • Tests every change on Node.js 18, 20, 22, and 24.
  • Adds staged npm publishing under the next distribution tag.
  • Repairs TypeScript declarations for CommonJS, default, and named imports.
  • Enforces 100% line and function coverage and at least 90% branch coverage.
  • Updates Chai and chai-passport-strategy.
  • Modernizes package metadata, documentation, and release infrastructure.

Compatibility

Existing new CustomStrategy(function (req, done) { ... }) consumers retain
the legacy callback convention. Applications that need Passport authentication
options must explicitly enable passOptionsToCallback.

The candidate has also passed the passport-related and full test suites for the
UV services that consume this package.

npm publication

The release workflow tests this source on every supported Node.js version and
submits it to npm staged publishing under the next distribution tag. The
existing latest release remains unchanged until the staged candidate is
reviewed and explicitly approved.

Don't miss a new passport-custom release

NewReleases is sending notifications on new releases.