Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8.9 #15083

Merged
merged 46 commits into from
Dec 13, 2024
Merged

8.9 #15083

merged 46 commits into from
Dec 13, 2024

Conversation

vkarpov15
Copy link
Collaborator

Summary

Uses MongoDB node driver 6.11, adds support for int32 and double as built-in types (thanks @aditi-khare-mongoDB and team), Connection-level bulk write, and some other smaller new features.

Examples

vkarpov15 and others added 14 commits November 25, 2024 17:35
feat: add forceRepopulate option for populate() to allow avoiding repopulating already populated docs
feat(connection): add support for Connection.prototype.bulkWrite() with MongoDB server 8.0
feat: allow specifying error message override for duplicate key errors `unique: true`
feat(NODE-6504): Add Double as a SchemaType
Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

bson dependency needs to be updated, otherwise mismatched types are returned in typegoose (but somehow not in mongoose's tests itself).

Example:

    expect(received).toBeInstanceOf(expected)

    Expected constructor: ObjectId
    Received constructor: ObjectId

      422 |
      423 |   found.mapped.forEach((v) => {
    > 424 |     expect(v).toBeInstanceOf(mongoose.Types.ObjectId);
          |               ^
      425 |   });
      426 |
      427 |   await found.populate('mapped.$*');

package.json Outdated Show resolved Hide resolved
@vkarpov15
Copy link
Collaborator Author

@hasezoey good catch. I updated to new MongoDB Node driver version 6.12, and bumped bson to ^6.10.1 to match.

Copy link
Collaborator

@hasezoey hasezoey left a comment

Choose a reason for hiding this comment

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

Now the update looks good (re-tested, and works without errors or changes needed)

@vkarpov15 vkarpov15 merged commit 5ad2c33 into master Dec 13, 2024
81 checks passed
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.

3 participants