-
Type: Task
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: None
Iam getting the following warning after connection has been made:
(node:9204) [MONGODB DRIVER] Warning: tlsCertificateFile is a deprecated option: tlsCertificateFile is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.
(Use node --trace-warnings ... to show where the warning was created)
const mongoClient = new MongoClient(mongoUrl, { tlsCertificateKeyFile: certificateFile, minPoolSize: 5, maxPoolSize: 20, compressors: ['zstd'] }
This is my connection options and Iam only using tlsCertificateKeyFile as required.
Please look into this.
AC
- Stop transforming tlsCertificateKeyFile cert file to tlsCertificateFile
- Verify that the deprecation no longer emits when using the non-deprecated option
- Verify that we're not mapping any other non-deprecated options to deprecated options
- Fix in 5.x and 6.x (Suggestion: Do for 5.x before 6.x)