Skip to content

Update MongoConnectionOptions properties #10642

@hanc2006

Description

@hanc2006

Issue description

Some SSL properties in mongoDB connection are deprecated

Expected Behavior

No deprecation messages when the application starts.

Actual Behavior

The latest version of typeORM requires a mongoDB version 5.8.0 or higher. The following properties have been deprecated (and replaced) in the mongoDB connection interface:

sslValidate => tlsAllowInvalidCertificates
sslCA => tlsCAFile

CleanShot 2024-01-18 at 20 34 04@2x

Steps to reproduce

update using nmp i the typeORM to the latest version and use ssl options in the connection object.

My Environment

Dependency Version
Operating System
Node.js version 16.14.0
Typescript version 5.1.6
TypeORM version 0.3.19

Additional Context

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

Are you willing to resolve this issue by submitting a Pull Request?

Yes, I have the time, and I know how to start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions