From 3b42b85207a00a96a48f23554d898ccb3820134d Mon Sep 17 00:00:00 2001 From: Max Gustafsson <61233757+MaxAake@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:45:24 +0000 Subject: [PATCH] mTLS functionality taken out of preview (#1237) --- packages/core/src/client-certificate.ts | 15 +++++---------- packages/core/src/types.ts | 3 +-- .../lib/core/client-certificate.ts | 15 +++++---------- packages/neo4j-driver-deno/lib/core/types.ts | 3 +-- 4 files changed, 12 insertions(+), 24 deletions(-) diff --git a/packages/core/src/client-certificate.ts b/packages/core/src/client-certificate.ts index e78daa1a0..0163d9623 100644 --- a/packages/core/src/client-certificate.ts +++ b/packages/core/src/client-certificate.ts @@ -39,8 +39,7 @@ type KeyFile = string | { path: string, password?: string } * * @interface * @see https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ export default class ClientCertificate { public readonly certfile: string | string[] @@ -87,8 +86,7 @@ export default class ClientCertificate { * Should fetching the certificate be particularly slow, it might be necessary to increase the timeout. * * @interface - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ export class ClientCertificateProvider { /** @@ -116,8 +114,7 @@ export class ClientCertificateProvider { /** * Interface for {@link ClientCertificateProvider} which provides update certificate function. * @interface - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ export class RotatingClientCertificateProvider extends ClientCertificateProvider { /** @@ -136,8 +133,7 @@ export class RotatingClientCertificateProvider extends ClientCertificateProvider /** * Defines the object which holds the common {@link ClientCertificateProviders} used in the Driver * - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ class ClientCertificateProviders { /** @@ -161,8 +157,7 @@ class ClientCertificateProviders { /** * Holds the common {@link ClientCertificateProviders} used in the Driver. * - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ const clientCertificateProviders: ClientCertificateProviders = new ClientCertificateProviders() diff --git a/packages/core/src/types.ts b/packages/core/src/types.ts index 348eef2c9..cd7d4b6fd 100644 --- a/packages/core/src/types.ts +++ b/packages/core/src/types.ts @@ -350,8 +350,7 @@ export class Config { * where the {@link ClientCertificate} might change over time. * * @type {ClientCertificate|ClientCertificateProvider|undefined} - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ this.clientCertificate = undefined } diff --git a/packages/neo4j-driver-deno/lib/core/client-certificate.ts b/packages/neo4j-driver-deno/lib/core/client-certificate.ts index 144b2c12b..7d1ebb350 100644 --- a/packages/neo4j-driver-deno/lib/core/client-certificate.ts +++ b/packages/neo4j-driver-deno/lib/core/client-certificate.ts @@ -39,8 +39,7 @@ type KeyFile = string | { path: string, password?: string } * * @interface * @see https://nodejs.org/api/tls.html#tlscreatesecurecontextoptions - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ export default class ClientCertificate { public readonly certfile: string | string[] @@ -87,8 +86,7 @@ export default class ClientCertificate { * Should fetching the certificate be particularly slow, it might be necessary to increase the timeout. * * @interface - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ export class ClientCertificateProvider { /** @@ -116,8 +114,7 @@ export class ClientCertificateProvider { /** * Interface for {@link ClientCertificateProvider} which provides update certificate function. * @interface - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ export class RotatingClientCertificateProvider extends ClientCertificateProvider { /** @@ -136,8 +133,7 @@ export class RotatingClientCertificateProvider extends ClientCertificateProvider /** * Defines the object which holds the common {@link ClientCertificateProviders} used in the Driver * - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ class ClientCertificateProviders { /** @@ -161,8 +157,7 @@ class ClientCertificateProviders { /** * Holds the common {@link ClientCertificateProviders} used in the Driver. * - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ const clientCertificateProviders: ClientCertificateProviders = new ClientCertificateProviders() diff --git a/packages/neo4j-driver-deno/lib/core/types.ts b/packages/neo4j-driver-deno/lib/core/types.ts index 91d652fc8..7d9d4c427 100644 --- a/packages/neo4j-driver-deno/lib/core/types.ts +++ b/packages/neo4j-driver-deno/lib/core/types.ts @@ -350,8 +350,7 @@ export class Config { * where the {@link ClientCertificate} might change over time. * * @type {ClientCertificate|ClientCertificateProvider|undefined} - * @experimental Exposed as preview feature. - * @since 5.19 + * @since 5.27 */ this.clientCertificate = undefined }