Skip to content

Commit 7e95dc8

Browse files
authored
Deprecate NotificationCategory types (#1344)
1 parent cc2d730 commit 7e95dc8

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

packages/core/src/notification-filter.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ const notificationFilterMinimumSeverityLevel: EnumRecord<NotificationFilterMinim
3737
INFORMATION: 'INFORMATION'
3838
}
3939
Object.freeze(notificationFilterMinimumSeverityLevel)
40-
40+
/**
41+
* @deprecated use {@link NotificationFilterDisabledClassification} instead.
42+
*/
4143
type NotificationFilterDisabledCategory = ExcludeUnknown<NotificationCategory>
4244
/**
4345
* @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA'} NotificationFilterDisabledCategory

packages/core/src/notification.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ const notificationSeverityLevel: { [key in NotificationSeverityLevel]: key } = {
6161
Object.freeze(notificationSeverityLevel)
6262
const severityLevels = Object.values(notificationSeverityLevel)
6363

64+
/**
65+
* @deprecated use {@link NotificationClassification} instead.
66+
*/
6467
type NotificationCategory = 'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' | 'PERFORMANCE' |
6568
'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'SCHEMA' | 'UNKNOWN'
6669
/**

packages/neo4j-driver-deno/lib/core/notification-filter.ts

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/neo4j-driver-deno/lib/core/notification.ts

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)