OptimalBits / node_acl

Access control lists for node applications
2.62k stars 369 forks source link

Deprecation warnings given for mongodb-backend.js #270

Open bazconz opened 5 years ago

bazconz commented 5 years ago

mongodb@2.2.36 deprecation warnings as follows:

DeprecationWarning: collection.update is deprecated. Use updateOne, updateMany, or bulkWrite instead.
    at ~node_modules\acl\lib\mongodb-backend.js:128:20

DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.
    at ~node_modules\acl\lib\mongodb-backend.js:138:20
ThienTranDuy commented 4 years ago

In my library, no change the commit of bazconz? @bazconz