telefonicaid / iotagent-node-lib

Module to enable IoT Agent developers to build custom agents for their devices that can easily connect to NGSI Context Brokers
https://iotagent-node-lib.rtfd.io/
GNU Affero General Public License v3.0
60 stars 85 forks source link

set useUnifiedTopology = true to remove warn #1462

Closed AlvaroVega closed 11 months ago

AlvaroVega commented 11 months ago

remove warn about

(node:1) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.

related with some warns reported in https://github.com/telefonicaid/iotagent-json/issues/645

AlvaroVega commented 11 months ago

@fgalan make sense ?

fgalan commented 11 months ago

@fgalan make sense ?

I think removing that deprecation warning is a good idea.

What I'm not sure is if this should be mentioned in CNR. Probably yes.