From d6eac3109f5c7ddf5892440b953f2c20bc018b8b Mon Sep 17 00:00:00 2001 From: Durran Jordan Date: Wed, 23 Aug 2023 16:47:06 +0200 Subject: [PATCH] docs(NODE-5562): update upcoming crl option changes (#3836) --- src/connection_string.ts | 2 +- src/mongo_client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connection_string.ts b/src/connection_string.ts index c7ff1849de..0e9d189e69 100644 --- a/src/connection_string.ts +++ b/src/connection_string.ts @@ -1108,7 +1108,7 @@ export const OPTIONS = { }, sslCRL: { deprecated: - 'sslCRL is deprecated and will be removed in the next major version. Please use tlsCertificateKeyFile instead.', + 'sslCRL is deprecated and will be removed in the next major version and be replaced by tlsCRLFile in that release.', target: 'crl', transform({ values: [value] }) { return fs.readFileSync(String(value), { encoding: 'ascii' }); diff --git a/src/mongo_client.ts b/src/mongo_client.ts index 0422b6a532..f16ec0d405 100644 --- a/src/mongo_client.ts +++ b/src/mongo_client.ts @@ -814,7 +814,7 @@ export interface MongoOptions * | nodejs native option | driver spec compliant option name | legacy option name | driver option type | * |:----------------------|:----------------------------------------------|:-------------------|:-------------------| * | `ca` | `tlsCAFile` | `sslCA` | `string` | - * | `crl` | N/A | `sslCRL` | `string` | + * | `crl` | `tlsCRLFile` (next major version) | `sslCRL` | `string` | * | `cert` | `tlsCertificateFile`, `tlsCertificateKeyFile` | `sslCert` | `string` | * | `key` | `tlsCertificateKeyFile` | `sslKey` | `string` | * | `passphrase` | `tlsCertificateKeyFilePassword` | `sslPass` | `string` |