Upgrade MongoDB Node.js driver to 7.6+ for full MongoDB 9.0 compatibility
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, mongodb, node.js
調査の方向性
まず mongodb 依存関係とそのロックファイルのエントリを見つけ、次に #10750 と #10751 で追加された MongoDB の CI カバレッジを確認してください。依存関係を 7.7.0 にアップグレードし、サポート対象の MongoDB バージョンに対して関連するテストスイートを実行してください。テストに合格し、MongoDB 9.0 との互換性が確認されれば、アップグレードは完了です。
索引モデルが issue の本文から書いたものです。
説明
New Feature / Enhancement Checklist
- Report security issues confidentially.
- Any contribution is under this license.
- Before posting search existing issues.
Current Limitation
Parse Server pins the MongoDB Node.js driver at [email protected] (unchanged in 9.10.3). MongoDB 9.0 is generally available, including on Atlas, and #10750 / #10751 add it to the CI matrix, but deployments on MongoDB 9.0 still talk to the database through a driver that MongoDB has not tested against 9.0.
According to MongoDB's official client library compatibility tables (Node.js driver vs MongoDB Server):
| Node.js driver | MongoDB 9.0 | MongoDB 8.0 | MongoDB 7.0 |
|---|---|---|---|
| 7.6 to 7.7 | ✓ fully compatible | ✓ | ✓ |
| 7.3 to 7.5 | ⊛ partially compatible | ✓ | ✓ |
| 6.9 to 7.2 (incl. 7.1.0) | not tested | ✓ | ✓ |
The same page states:
If your application doesn't work with MongoDB 9.0, we recommend upgrading to a driver version that is fully compatible (✓) with it. For the Node.js driver, this includes version 7.6 or later.
Feature / Enhancement Description
Upgrade mongodb from 7.1.0 to 7.7.0, the latest 7.x release and fully compatible with MongoDB 9.0, 8.0 and 7.0.
- Same major version, so no breaking API change is expected for the storage adapter.
[email protected]requires Node.js>=20.19.0, which Parse Server'senginesalready requires.- Lockfile impact is small:
bson7.3.1 → 7.3.3,@mongodb-js/saslprep1.4.12 → 1.6.0, and the separate[email protected]copy nested undermongodb-runneris deduplicated.
Example Use Case
- A Parse Server deployment runs on a MongoDB Atlas cluster.
- The cluster is upgraded from MongoDB 8.0 to 9.0.
- Parse Server keeps working with a driver that MongoDB officially lists as fully compatible with 9.0, instead of an untested combination.
Alternatives / Workarounds
Applications can force the driver version with npm overrides in their own package.json:
"overrides": {
"parse-server": { "mongodb": "7.7.0" }
}
This works, but it runs Parse Server with a driver version its own test suite does not cover, so an upstream upgrade is preferable.
3rd Party References
- 主要言語
- JavaScript
- スター
- 21.4k
- フォーク
- 4.8k
- 平均マージ
- 8時間 6分
- マージ済み PR(30日)
- 62
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
parse-community/parse-server のほかの issue
-
Add MongoDB 9 support対応中かも @ga262 が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
parse-community/parse-server#10750 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
parse-community/parse-server#10720 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
parse-community/parse-server#10710 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Node.js version in `.nvmrc` does not satisfy `engines.node`対応中かも @kokokoXUY が 11 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
parse-community/parse-server#10699 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
RedisCacheAdapter put, del and clear reject on a Redis outage, producing unhandled rejections対応中かも @AdrianCurtin が 55 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
parse-community/parse-server#10634 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
parse-community/parse-server の issue をすべて見る
似ている issue
-
clawsweeper:needs-product-decision clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
openclaw/openclaw#166870 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
⚠ needs intervention document structure changed
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Bug pulumi/pulumi
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
uoftblueprint/canada-basketball#32 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
andromarces/agent-loops#571 ·
メンテナーはふだん 1 日以内に返信