Skip to content

Conversation

@durran
Copy link
Member

@durran durran commented Nov 19, 2025

Description

exports NumberUtils so it can now be used by the driver.

Summary of Changes

  • Exports NumberUtils
  • Updates export test

What is the motivation for this change?

NODE-7316

Release Highlight

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 can change at any time.

Double check the following

  • Lint is passing (npm run check:lint)
  • Self-review completed using the steps outlined here
  • PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • Changes are covered by tests
  • New TODOs have a related JIRA ticket

@durran durran marked this pull request as ready for review November 19, 2025 21:22
@durran durran requested a review from a team as a code owner November 19, 2025 21:22
@nbbeeken
Copy link
Contributor

https://github.com/mongodb/node-mongodb-native/blob/main/src%2Fbson.ts#L40

Just sharing in case it was missed, it's already accessible, I assume this is just to not have it be nested under ondemand

@baileympearson baileympearson merged commit a23e788 into main Nov 21, 2025
9 checks passed
@baileympearson baileympearson deleted the NODE-7316 branch November 21, 2025 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants