Skip to content

Conversation

@neSpecc
Copy link
Member

@neSpecc neSpecc commented Dec 20, 2025

After update of @hawk.so/types, TS started failing to be compiled because of inconsistency of "bson" ObjectId type.

  • Updated "MongoDB" driver
  • Removed left parts of old billing
  • insertOne() can't return inserted document anymore
  • Return format of insertOne() and similar methods changed to {acknowledged: boolean, insertedId :ObjectId}
  • returnOriginal: false option of findAndUpdate() removed. returnDocument: 'after' should used instead to get state after update.
  • Related TS issues fixed
  • useUnifiedTopology: true of Mongo Client removed. It works by default.

@neSpecc neSpecc merged commit 5913cbd into master Dec 24, 2025
10 checks passed
@neSpecc neSpecc deleted the upd-mongo branch December 24, 2025 12:56
neSpecc added a commit that referenced this pull request Dec 24, 2025
* update mongo driver

* fix tests

* fix integration tests, remove old billing

* Bump version up to 1.2.32

* lint

---------

Co-authored-by: Peter <specc.dev@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

2 participants