neo4j-driver 5.13.0 → 5.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3907,7 +3907,7 @@ resultSummary.notificationSeverityLevel = notificationSeverityLevel;
|
|
|
3907
3907
|
Object.freeze(notificationSeverityLevel);
|
|
3908
3908
|
var severityLevels = Object.values(notificationSeverityLevel);
|
|
3909
3909
|
/**
|
|
3910
|
-
* @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'DEPRECATION' | 'GENERIC' | 'UNKNOWN'} NotificationCategory
|
|
3910
|
+
* @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC' | 'UNKNOWN' } NotificationCategory
|
|
3911
3911
|
*/
|
|
3912
3912
|
/**
|
|
3913
3913
|
* Constants that represents the Category in the {@link Notification}
|
|
@@ -3918,6 +3918,8 @@ var notificationCategory = {
|
|
|
3918
3918
|
UNSUPPORTED: 'UNSUPPORTED',
|
|
3919
3919
|
PERFORMANCE: 'PERFORMANCE',
|
|
3920
3920
|
DEPRECATION: 'DEPRECATION',
|
|
3921
|
+
TOPOLOGY: 'TOPOLOGY',
|
|
3922
|
+
SECURITY: 'SECURITY',
|
|
3921
3923
|
GENERIC: 'GENERIC',
|
|
3922
3924
|
UNKNOWN: 'UNKNOWN'
|
|
3923
3925
|
};
|
|
@@ -4143,7 +4145,7 @@ var notificationFilterMinimumSeverityLevel = {
|
|
|
4143
4145
|
notificationFilter.notificationFilterMinimumSeverityLevel = notificationFilterMinimumSeverityLevel;
|
|
4144
4146
|
Object.freeze(notificationFilterMinimumSeverityLevel);
|
|
4145
4147
|
/**
|
|
4146
|
-
* @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'DEPRECATION' | 'GENERIC'
|
|
4148
|
+
* @typedef {'HINT' | 'UNRECOGNIZED' | 'UNSUPPORTED' |'PERFORMANCE' | 'TOPOLOGY' | 'SECURITY' | 'DEPRECATION' | 'GENERIC'} NotificationFilterDisabledCategory
|
|
4147
4149
|
*/
|
|
4148
4150
|
/**
|
|
4149
4151
|
* Constants that represents the disabled categories in the {@link NotificationFilter}
|
|
@@ -4153,6 +4155,8 @@ var notificationFilterDisabledCategory = {
|
|
|
4153
4155
|
UNRECOGNIZED: 'UNRECOGNIZED',
|
|
4154
4156
|
UNSUPPORTED: 'UNSUPPORTED',
|
|
4155
4157
|
PERFORMANCE: 'PERFORMANCE',
|
|
4158
|
+
TOPOLOGY: 'TOPOLOGY',
|
|
4159
|
+
SECURITY: 'SECURITY',
|
|
4156
4160
|
DEPRECATION: 'DEPRECATION',
|
|
4157
4161
|
GENERIC: 'GENERIC'
|
|
4158
4162
|
};
|
|
@@ -7349,12 +7353,22 @@ var Transaction = /** @class */ (function () {
|
|
|
7349
7353
|
});
|
|
7350
7354
|
});
|
|
7351
7355
|
};
|
|
7352
|
-
Transaction.prototype._onErrorCallback = function () {
|
|
7356
|
+
Transaction.prototype._onErrorCallback = function (error) {
|
|
7353
7357
|
// error will be "acknowledged" by sending a RESET message
|
|
7354
7358
|
// database will then forget about this transaction and cleanup all corresponding resources
|
|
7355
7359
|
// it is thus safe to move this transaction to a FAILED state and disallow any further interactions with it
|
|
7356
7360
|
this._state = _states$1.FAILED;
|
|
7357
7361
|
this._onClose();
|
|
7362
|
+
this._results.forEach(function (result) {
|
|
7363
|
+
if (result.isOpen()) {
|
|
7364
|
+
// @ts-expect-error
|
|
7365
|
+
result._streamObserverPromise
|
|
7366
|
+
.then(function (resultStreamObserver) { return resultStreamObserver.onError(error); })
|
|
7367
|
+
// Nothing to do since we don't have a observer to notify the error
|
|
7368
|
+
// the result will be already broke in other ways.
|
|
7369
|
+
.catch(function (_) { });
|
|
7370
|
+
}
|
|
7371
|
+
});
|
|
7358
7372
|
// release connection back to the pool
|
|
7359
7373
|
return this._connectionHolder.releaseConnection();
|
|
7360
7374
|
};
|
|
@@ -9170,7 +9184,6 @@ var SessionConfig = /** @class */ (function () {
|
|
|
9170
9184
|
* which supports Bolt 5.1 and onwards.
|
|
9171
9185
|
*
|
|
9172
9186
|
* @type {AuthToken|undefined}
|
|
9173
|
-
* @experimental Exposed as preview feature.
|
|
9174
9187
|
* @see {@link driver}
|
|
9175
9188
|
*/
|
|
9176
9189
|
this.auth = undefined;
|
|
@@ -9997,8 +10010,7 @@ var internal_1 = internal;
|
|
|
9997
10010
|
/**
|
|
9998
10011
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
9999
10012
|
* @interface
|
|
10000
|
-
* @
|
|
10001
|
-
* @since 5.8
|
|
10013
|
+
* @since 5.14
|
|
10002
10014
|
*/
|
|
10003
10015
|
var AuthTokenManager = /** @class */ (function () {
|
|
10004
10016
|
function AuthTokenManager() {
|
|
@@ -10030,8 +10042,7 @@ authTokenManager.default = AuthTokenManager;
|
|
|
10030
10042
|
/**
|
|
10031
10043
|
* Interface which defines an {@link AuthToken} with an expiration data time associated
|
|
10032
10044
|
* @interface
|
|
10033
|
-
* @
|
|
10034
|
-
* @since 5.8
|
|
10045
|
+
* @since 5.14
|
|
10035
10046
|
*/
|
|
10036
10047
|
var AuthTokenAndExpiration = /** @class */ (function () {
|
|
10037
10048
|
function AuthTokenAndExpiration() {
|
|
@@ -10074,7 +10085,6 @@ var AuthTokenManagers = /** @class */ (function () {
|
|
|
10074
10085
|
* @param {function(): Promise<AuthTokenAndExpiration>} param0.tokenProvider - Retrieves a new valid auth token.
|
|
10075
10086
|
* Must only ever return auth information belonging to the same identity.
|
|
10076
10087
|
* @returns {AuthTokenManager} The temporal auth data manager.
|
|
10077
|
-
* @experimental Exposed as preview feature.
|
|
10078
10088
|
*/
|
|
10079
10089
|
AuthTokenManagers.prototype.bearer = function (_a) {
|
|
10080
10090
|
var tokenProvider = _a.tokenProvider;
|
|
@@ -10096,7 +10106,6 @@ var AuthTokenManagers = /** @class */ (function () {
|
|
|
10096
10106
|
* @param {function(): Promise<AuthToken>} param0.tokenProvider - Retrieves a new valid auth token.
|
|
10097
10107
|
* Must only ever return auth information belonging to the same identity.
|
|
10098
10108
|
* @returns {AuthTokenManager} The basic auth data manager.
|
|
10099
|
-
* @experimental Exposed as preview feature.
|
|
10100
10109
|
*/
|
|
10101
10110
|
AuthTokenManagers.prototype.basic = function (_a) {
|
|
10102
10111
|
var _this = this;
|
|
@@ -10119,9 +10128,7 @@ var AuthTokenManagers = /** @class */ (function () {
|
|
|
10119
10128
|
return AuthTokenManagers;
|
|
10120
10129
|
}());
|
|
10121
10130
|
/**
|
|
10122
|
-
* Holds the common {@link AuthTokenManagers} used in the Driver
|
|
10123
|
-
*
|
|
10124
|
-
* @experimental Exposed as preview feature.
|
|
10131
|
+
* Holds the common {@link AuthTokenManagers} used in the Driver.
|
|
10125
10132
|
*/
|
|
10126
10133
|
var authTokenManagers = new AuthTokenManagers();
|
|
10127
10134
|
authTokenManager.authTokenManagers = authTokenManagers;
|
|
@@ -18842,7 +18849,7 @@ var RxResult = /** @class */ (function () {
|
|
|
18842
18849
|
/**
|
|
18843
18850
|
* Pauses the automatic streaming of records.
|
|
18844
18851
|
*
|
|
18845
|
-
* This method provides a way of
|
|
18852
|
+
* This method provides a way of control the flow of records
|
|
18846
18853
|
*
|
|
18847
18854
|
* @experimental
|
|
18848
18855
|
*/
|
|
@@ -19760,7 +19767,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
19760
19767
|
// This is set up this way to keep the version in the code in
|
|
19761
19768
|
// sync with the npm package version, and to allow the build
|
|
19762
19769
|
// system to control version names at packaging time.
|
|
19763
|
-
version$1.default = '5.
|
|
19770
|
+
version$1.default = '5.14.0';
|
|
19764
19771
|
|
|
19765
19772
|
var lib = {};
|
|
19766
19773
|
|