- update to Moleculer v0.15 compatibility
- update minimum Node.js version to 22
- update
moleculerdevDependency to^0.15.0
- allow only 12 character ObjectID strings #249
- add missing Bluebird dependency
- Fix issue in full-text searching #122
- Add
dbNameparameter to constructor. Example:adapter: new MongoAdapter("mongodb://127.0.0.1", { useNewUrlParser: true }, "moleculer-db-demo")
- fix wrong method name from
ojectIDToStringtoobjectIDToString
-
Update
mongodblib to v3.0.5 -
Changed constructor signature (compatible with mongodb driver)
Example with connection URI
new MongoDBAdapter("mongodb://127.0.0.1/moleculer-db")
Example with connection URI & options
new MongoDBAdapter("mongodb://db-server-hostname/my-db", { keepAlive: 1 })