Skip to content

Conversation

@addaleax
Copy link
Collaborator

@addaleax addaleax commented Nov 6, 2025

This is a breaking change in the 7.x bson package that we should hide from mongosh users.

This is a breaking change in the 7.x bson package that we should
hide from mongosh users.
@addaleax addaleax requested a review from a team as a code owner November 6, 2025 14:21
Copilot AI review requested due to automatic review settings November 6, 2025 14:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a breaking change in BSON 7.x where the ObjectId constructor no longer accepts numeric timestamps directly. The fix ensures backward compatibility by intercepting numeric inputs and routing them through createFromTime() instead.

Key Changes:

  • Added special handling for numeric ObjectId constructor arguments to maintain API compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@addaleax addaleax added the no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion) label Nov 6, 2025
@addaleax addaleax merged commit cb6b160 into main Nov 6, 2025
153 of 156 checks passed
@addaleax addaleax deleted the objectid-createfromtime branch November 6, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-title-validation Skips validation of PR titles (conventional commit adherence + JIRA ticket inclusion)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants