Skip to content

v7.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 05 Nov 17:47
14bd969

7.0.0 (2025-11-05)

The MongoDB Node.js team is pleased to announce version 7.0.0 of the kerberos package!

Note

There are no major versions 3.x to 6.x of the kerberos package. The major version of this package has been aligned with the major version of the mongodb package to make it clearer which versions are intended to be used together.

Release Notes

Platform and runtime updates

Minimum supported Node.js version now 20.19.0

The minimum supported Node.js version is now v20.19.0. We strive to keep our minimum supported Node.js version in sync with the runtime's release cadence to keep up with the latest security updates and modern language features.

Node-API version increased to 9

The minimum Node-API version for the kerberos package is now 9, which corresponds to the highest Node-API version supported on Node.js 20.19.0.

macOS deployment target set to macOS 11

Kerberos now targets macOS 11.

Add support for FreeBSD

FreeBSD is now an unofficially supported platform. Thank you to tagattie for the contribution.

Bump prebuild-install to ^7.1.3

This fixes an undefined Node-API target issue with 7.1.2

Breaking API changes

Callback support removed from the public API

Callback overloads have been removed from all APIs in favor of APIs that return promises. In keeping with modern JS best practices,
we recommend adopting the promise-based APIs and async-await wherever possible.

If callback support is necessary, Node.js' callbackify method can be used:

callbackify(initializeClient)(serviceName, options, (error, client) => {
    // application logic
})

Kerberos no longer exported from the package

The kerberos package exported an undocumented named export, Kerberos, which was used for compatibility with unsupported (<4.x) MongoDB drivers. This export has been removed.

If you are relying on this export, import it from the kerberos package directly:

// before
const initializeClient = require('kerberos').Kerberos.initializeClient;

// after
const initializeClient = require('kerberos').initializeClient;

kerberos now ships with TypeScript types!

The TypeScript types are now included in the kerberos package, and usage of @types/kerberos is no longer necessary.

⚠ BREAKING CHANGES

Features

Bug Fixes

Documentation