Upgrade MongoDB Node.js driver to 7.6+ for full MongoDB 9.0 compatibility
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, mongodb, node.js
Hướng nghiên cứu
Bắt đầu bằng cách xác định dependency mongodb và các mục tương ứng trong tệp khóa, sau đó xem xét phạm vi CI cho MongoDB được bổ sung trong #10750 và #10751. Nâng cấp dependency lên phiên bản 7.7.0 và chạy bộ kiểm thử liên quan với các phiên bản MongoDB được hỗ trợ; công việc được xem là hoàn tất khi bản nâng cấp được kiểm chứng bằng các bài kiểm thử đạt yêu cầu và tương thích với MongoDB 9.0.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 21.4k
- Fork
- 4.8k
- Merge trung bình
- 14 giờ 32 phút
- Pull request đã merge (30 ngày)
- 62
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của parse-community/parse-server
-
Add MongoDB 9 to CI test matrixCó thể đã có người làm @ga262 đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
parse-community/parse-server#10750 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
parse-community/parse-server#10720 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
parse-community/parse-server#10710 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Node.js version in `.nvmrc` does not satisfy `engines.node`Có thể đã có người làm @kokokoXUY đã nhận 10 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
parse-community/parse-server#10699 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
RedisCacheAdapter put, del and clear reject on a Redis outage, producing unhandled rejectionsCó thể đã có người làm @AdrianCurtin đã nhận 54 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
parse-community/parse-server#10634 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của parse-community/parse-server
Issue tương tự
-
macOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
beyondcode/herd-community#1761 ·
-
Make a dry lesson funĐang mởcontent good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
vieanderes/understory#19 ·
-
automated issue report
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
lirantal/discoprint#37 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
tauri-apps/tauri#16219 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[aw] Upgrade availableĐang mởagentic-workflows
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
githubnext/gh-aw-cao#16599 ·
Maintainer thường phản hồi trong vòng 1 ngày