Skip to content

Commit 40e166b

Browse files
authored
Remove Severity From Notification (#1289)
1 parent bee5eff commit 40e166b

File tree

5 files changed

+2
-25
lines changed

5 files changed

+2
-25
lines changed

packages/core/src/notification.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ class Notification {
104104
code: string
105105
title: string
106106
description: string
107-
severity: string
108107
position: NotificationPosition | {}
109108
severityLevel: NotificationSeverityLevel
110109
category: NotificationCategory
@@ -135,16 +134,6 @@ class Notification {
135134
* @public
136135
*/
137136
this.description = notification.description
138-
/**
139-
* The raw severity
140-
*
141-
* Use {@link Notification#rawSeverityLevel} for the raw value or {@link Notification#severityLevel} for an enumerated value.
142-
*
143-
* @type {string}
144-
* @public
145-
* @deprecated This property will be removed in 6.0.
146-
*/
147-
this.severity = notification.severity
148137
/**
149138
* The position which the notification had occur.
150139
*

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

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

packages/neo4j-driver/test/rx/summary.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ describe('#integration-rx summary', () => {
679679
)
680680
expect(summary.notifications[0].title).toContain('label')
681681
expect(summary.notifications[0].description).toContain('label')
682-
expect(summary.notifications[0].severity).toBe('WARNING')
682+
expect(summary.notifications[0].rawSeverityLevel).toBe('WARNING')
683683
}
684684

685685
/**

packages/neo4j-driver/test/summary.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('#integration result summary', () => {
175175
expect(notification.code).toBeDefined()
176176
expect(notification.title).toBeDefined()
177177
expect(notification.description).toBeDefined()
178-
expect(notification.severity).toBeDefined()
178+
expect(notification.rawSeverityLevel).toBeDefined()
179179
expect(notification.position).toBeDefined()
180180

181181
done()

packages/neo4j-driver/test/types/result-summary.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ const notification: Notification = notifications[0]
8686
const code: string = notification.code
8787
const title: string = notification.title
8888
const description: string = notification.description
89-
const severity: string = notification.severity
9089
const position1: NotificationPosition | {} = notification.position
9190
const position2: NotificationPosition = notification.position as NotificationPosition
9291

0 commit comments

Comments
 (0)