From 5f1d078eb94421161e0d0a9d3fb3fd646da2d77a Mon Sep 17 00:00:00 2001 From: ci <61233757+MaxAake@users.noreply.github.com> Date: Tue, 30 Sep 2025 12:18:57 +0200 Subject: [PATCH] deprecate notification category types --- packages/core/src/notification-filter.ts | 4 +++- packages/core/src/notification.ts | 3 +++ packages/neo4j-driver-deno/lib/core/notification-filter.ts | 4 +++- packages/neo4j-driver-deno/lib/core/notification.ts | 3 +++ 4 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/core/src/notification-filter.ts b/packages/core/src/notification-filter.ts index a7313b6a8..16907ba1b 100644 --- a/packages/core/src/notification-filter.ts +++ b/packages/core/src/notification-filter.ts @@ -37,7 +37,9 @@ const notificationFilterMinimumSeverityLevel: EnumRecord /** * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA'} NotificationFilterDisabledCategory diff --git a/packages/core/src/notification.ts b/packages/core/src/notification.ts index 4c06e9be0..0a4da3ae6 100644 --- a/packages/core/src/notification.ts +++ b/packages/core/src/notification.ts @@ -61,6 +61,9 @@ const notificationSeverityLevel: { [key in NotificationSeverityLevel]: key } = { Object.freeze(notificationSeverityLevel) const severityLevels = Object.values(notificationSeverityLevel) +/** + * @deprecated use {@link NotificationClassification} instead. + */ type NotificationCategory = 'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' | 'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA' | 'UNKNOWN' /** diff --git a/packages/neo4j-driver-deno/lib/core/notification-filter.ts b/packages/neo4j-driver-deno/lib/core/notification-filter.ts index a46839b05..889dc4ce6 100644 --- a/packages/neo4j-driver-deno/lib/core/notification-filter.ts +++ b/packages/neo4j-driver-deno/lib/core/notification-filter.ts @@ -37,7 +37,9 @@ const notificationFilterMinimumSeverityLevel: EnumRecord /** * @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA'} NotificationFilterDisabledCategory diff --git a/packages/neo4j-driver-deno/lib/core/notification.ts b/packages/neo4j-driver-deno/lib/core/notification.ts index f101fd337..715d7fa5c 100644 --- a/packages/neo4j-driver-deno/lib/core/notification.ts +++ b/packages/neo4j-driver-deno/lib/core/notification.ts @@ -61,6 +61,9 @@ const notificationSeverityLevel: { [key in NotificationSeverityLevel]: key } = { Object.freeze(notificationSeverityLevel) const severityLevels = Object.values(notificationSeverityLevel) +/** + * @deprecated use {@link NotificationClassification} instead. + */ type NotificationCategory = 'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' | 'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA' | 'UNKNOWN' /**