Skip to content

chore(main): release 7.2.0#866

Merged
dariakp merged 1 commit intomainfrom
release-please--branches--main--components--bson
Feb 3, 2026
Merged

chore(main): release 7.2.0#866
dariakp merged 1 commit intomainfrom
release-please--branches--main--components--bson

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Jan 22, 2026

🌱 A new release!

7.2.0 (2026-01-29)

The MongoDB Node.js team is pleased to announce version 7.2.0 of the bson package!

Release Notes

EJSON now supports ignoreUndefined

serialize supports an option, ignoreUndefined, which instructs the serializer to skip any keys whose values are undefined.

This option has been added to EJSON:

> EJSON.stringify({ a: undefined }, { ignoreUndefined: true });
'{}'
> EJSON.stringify({ a: undefined }, { ignoreUndefined: false });
'{"a":null}'
> EJSON.serialize({ a: undefined }, { ignoreUndefined: true });
{}
> EJSON.serialize({ a: undefined }, { ignoreUndefined: false });
{ a: null }

This option defaults to false.

Buffer.copy() now present in ByteUtils

ByteUtils now contains a copy() method, we behaves identically to Nodejs' Buffer.copy() method.

Features

Documentation

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


@github-actions github-actions bot force-pushed the release-please--branches--main--components--bson branch from 5c32a16 to d508f28 Compare January 29, 2026 15:17
@baileympearson
Copy link
Contributor

run release_notes

@dariakp dariakp merged commit 0712bb1 into main Feb 3, 2026
6 checks passed
@dariakp dariakp deleted the release-please--branches--main--components--bson branch February 3, 2026 19:19
@github-actions
Copy link
Contributor Author

github-actions bot commented Feb 3, 2026

🤖 Created releases:

🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants