MyGit

v6.8.2

mongodb/node-mongodb-native

版本发布时间: 2024-09-13 01:07:30

mongodb/node-mongodb-native最新发布版本:v6.9.0(2024-09-13 01:12:41)

6.8.2 (2024-09-12)

The MongoDB Node.js team is pleased to announce version 6.8.2 of the mongodb package!

Release Notes

Fixed mixed use of cursor.next() and cursor[Symbol.asyncIterator]

In 6.8.0, we inadvertently prevented the use of cursor.next() along with using for await syntax to iterate cursors. If your code made use of the following pattern and the call to cursor.next retrieved all your documents in the first batch, then the for-await loop would never be entered. This issue is now fixed.

const firstDoc = await cursor.next();

for await (const doc of cursor) {
    // process doc
    // ...
}

Bug Fixes

Documentation

We invite you to try the mongodb library immediately, and report any issues to the NODE project.

相关地址:原始地址 下载(tar) 下载(zip)

1、 mongodb-6.8.2.tgz 647.52KB

2、 mongodb-6.8.2.tgz.sig 833B

查看:2024-09-13发行的版本