Skip to content

perf: Upgrade MongoDB driver to 6.20.0 - #9887

Merged
mtrezza merged 4 commits into
parse-community:alphafrom
mtrezza:feat/upgrade-monodb-driver
Nov 8, 2025
Merged

mtrezza merged 4 commits into
parse-community:alphafrom
mtrezza:feat/upgrade-monodb-driver

Conversation

@mtrezza

@mtrezza mtrezza commented Oct 26, 2025 •

Copy link
Copy Markdown
Member

Pull Request

Issue

MongoDB driver contains various bug fixes and perf improvements, see change log.

Approach

Upgrade.

Summary by CodeRabbit

  • Chores
    • Upgraded MongoDB client dependency to version 6.20.0. This is a maintenance dependency update and is not expected to introduce any user-facing functional changes.

@parse-github-assistant

parse-github-assistant Bot commented Oct 26, 2025 •

Copy link
Copy Markdown

🚀 Thanks for opening this pull request!

@coderabbitai

coderabbitai Bot commented Oct 26, 2025 •

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Updated mongodb dependency in package.json from 6.17.0 to 6.20.0. No other files, exports, or public API changes were made.

Changes

Cohort / File(s) Summary
Dependency Version Bump
package.json
Updated mongodb dependency from 6.17.0 → 6.20.0. No other edits.

Sequence Diagram(s)

(Skipped — change is a single dependency version bump, no control-flow or feature changes to visualize.)

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

  • Review package.json change and check for a corresponding lockfile or CI references elsewhere in the repo.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description check ❓ Inconclusive The description provides context (changelog reference) but lacks a specific issue link and leaves approach/tasks mostly as unchecked placeholders without detail. Link to a specific GitHub issue that this PR closes and provide more detail on which tasks apply (tests, docs, security checks) rather than leaving them as generic placeholders.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: upgrading the MongoDB driver to version 6.20.0, aligning with the changeset's single modification.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ade09a7 and 5609c14.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (15)
  • GitHub Check: Node 18
  • GitHub Check: Redis Cache
  • GitHub Check: Node 22
  • GitHub Check: MongoDB 6, ReplicaSet
  • GitHub Check: MongoDB 7, ReplicaSet
  • GitHub Check: Node 20
  • GitHub Check: PostgreSQL 18, PostGIS 3.6
  • GitHub Check: MongoDB 8, ReplicaSet
  • GitHub Check: PostgreSQL 17, PostGIS 3.5
  • GitHub Check: PostgreSQL 16, PostGIS 3.5
  • GitHub Check: Docker Build
  • GitHub Check: PostgreSQL 15, PostGIS 3.5
  • GitHub Check: Lint
  • GitHub Check: PostgreSQL 15, PostGIS 3.4
  • GitHub Check: PostgreSQL 15, PostGIS 3.3

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@parseplatformorg

parseplatformorg commented Oct 26, 2025 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@mtrezza mtrezza changed the title perf: Upgrade mongodb driver to 6.20.0 perf: Upgrade MongoDB driver to 6.20.0 Oct 26, 2025
@codecov

codecov Bot commented Oct 26, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.08%. Comparing base (d3d4003) to head (5609c14).
⚠️ Report is 38 commits behind head on alpha.

Additional details and impacted files
@@            Coverage Diff             @@
##            alpha    #9887      +/-   ##
==========================================
+ Coverage   93.07%   93.08%   +0.01%     
==========================================
  Files         187      187              
  Lines       15224    15224              
  Branches      177      177              
==========================================
+ Hits        14170    14172       +2     
+ Misses       1042     1040       -2     
  Partials       12       12              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@mtrezza

mtrezza commented Oct 26, 2025 •

Copy link
Copy Markdown
Member Author

MongoDB 8 job keeps failing with:

1) Cloud Code Logger should log cloud function execution using the silent log level
  - Unhandled promise rejection: ParseError: 1 Database adapter error

Needs investigation.

@mtrezza

mtrezza commented Nov 5, 2025

Copy link
Copy Markdown
Member Author

This seems to be a flaky test, also observed in other PRs.

@mtrezza
mtrezza merged commit 3c9af48 into parse-community:alpha Nov 8, 2025
26 of 27 checks passed
parseplatformorg pushed a commit that referenced this pull request Nov 8, 2025
# [8.5.0-alpha.7](8.5.0-alpha.6...8.5.0-alpha.7) (2025-11-08)

### Performance Improvements

* Upgrade MongoDB driver to 6.20.0 ([#9887](#9887)) ([3c9af48](3c9af48))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 8.5.0-alpha.7

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Nov 8, 2025
parseplatformorg pushed a commit that referenced this pull request Dec 1, 2025
# [8.5.0](8.4.0...8.5.0) (2025-12-01)

### Bug Fixes

* `GridFSBucketAdapter` throws when using some Parse Server specific options in MongoDB database options ([#9915](#9915)) ([d3d4003](d3d4003))
* Deprecation warning logged at server launch for nested Parse Server option even if option is explicitly set ([#9934](#9934)) ([c22cb0a](c22cb0a))
* Parse Server option `rateLimit.zone` does not use default value `ip` ([#9941](#9941)) ([12beb8f](12beb8f))
* Queries with object field `authData.provider.id` are incorrectly transformed to `_auth_data_provider.id` for custom classes ([#9932](#9932)) ([7b9fa18](7b9fa18))
* Race condition can cause multiple Apollo server initializations under load ([#9929](#9929)) ([7d5e9fc](7d5e9fc))
* Server internal error details leaking in error messages returned to clients ([#9937](#9937)) ([50edb5a](50edb5a))

### Features

* Add `beforePasswordResetRequest` hook ([#9906](#9906)) ([94cee5b](94cee5b))
* Add MongoDB client event logging via database option `logClientEvents` ([#9914](#9914)) ([b760733](b760733))
* Add Parse Server option `allowPublicExplain` to allow `Parse.Query.explain` without master key ([#9890](#9890)) ([4456b02](4456b02))
* Add Parse Server option `enableSanitizedErrorResponse` to remove detailed error messages from responses sent to clients ([#9944](#9944)) ([4752197](4752197))
* Add support for MongoDB driver options `serverSelectionTimeoutMS`, `maxIdleTimeMS`, `heartbeatFrequencyMS` ([#9910](#9910)) ([1b661e9](1b661e9))
* Add support for more MongoDB driver options ([#9911](#9911)) ([cff451e](cff451e))
* Allow option `publicServerURL` to be set dynamically as asynchronous function ([#9803](#9803)) ([460a65c](460a65c))
* Upgrade to parse 7.1.1 ([#9954](#9954)) ([fa57d69](fa57d69))
* Upgrade to parse 7.1.2 ([#9955](#9955)) ([5c644a5](5c644a5))

### Performance Improvements

* `Parse.Query.include` now fetches pointers at same level in parallel ([#9861](#9861)) ([dafea21](dafea21))
* Remove unused dependencies ([#9943](#9943)) ([d4c6de0](d4c6de0))
* Upgrade MongoDB driver to 6.20.0 ([#9887](#9887)) ([3c9af48](3c9af48))
@parseplatformorg

Copy link
Copy Markdown
Contributor

🎉 This change has been released in version 8.5.0

@parseplatformorg parseplatformorg added the state:released Released as stable version label Dec 1, 2025
@mtrezza
mtrezza deleted the feat/upgrade-monodb-driver branch December 14, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released Released as stable version state:released-alpha Released as alpha version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants