7.1.0 (2026-01-16)
The MongoDB Node.js team is pleased to announce version 7.1.0 of the bson package!
Release Notes
ByteUtils added as a binary utillity
ByteUtils are now public and provide set of platform-agnostic tools to manipulate binary data (using Buffer in nodejs-compatible environments and fallback to Uint8Array).
Note
This feature is experimental and may change at any time
NumberUtils is now exported in the library
BSON maintains a set of utilities for reading to and from buffers of bytes. This module is now exported from the BSON package.
import { NumberUtils } from 'bson';Note
NumberUtils is experimental and may change at any time.
ByteUtils and NumberUtils removed from onDemand namespace
The experimental ByteUtils and NumberUtils helpers have been moved from the onDemand namespace to the top-level package export.
Features
- NODE-7314: export byteUtils & add missing methods (#852) (a31c90e)
- NODE-7316: export number utils (#850) (a23e788)
- NODE-7334: remove ByteUtils and NumberUtils from the
onDemandns (#859) (92bbc34)
Bug Fixes
Documentation
We invite you to try the bson library immediately, and report any issues to the NODE project.