Download Latest Version bson-7.1.1.tgz (369.7 kB)
Email in envelope

Get an email when there's a new version of BSON parser

Home / v7.1.0
Name Modified Size InfoDownloads / Week
Parent folder
bson-7.1.0.tgz 2026-01-16 369.5 kB
bson-7.1.0.tgz.sig 2026-01-16 833 Bytes
README.md 2026-01-16 2.3 kB
v7.1.0 source code.tar.gz 2026-01-16 5.5 MB
v7.1.0 source code.zip 2026-01-16 5.6 MB
Totals: 5 Items   11.4 MB 0

[!CAUTION] This release contains an inadvertent breaking change and has been deprecated on npm.

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.

:::ts
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 onDemand ns (#859) (92bbc34)

Bug Fixes

  • NODE-7397: Use type predicate for isUint8Array (#860) (89b3a2b)

Documentation

We invite you to try the bson library immediately, and report any issues to the NODE project.

Source: README.md, updated 2026-01-16