neo4j-driver 5.28.0 → 5.28.2
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.
- package/README.md +2 -2
- package/lib/browser/neo4j-web.esm.js +62 -29
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +62 -29
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +3 -3
- package/lib/version.js +1 -1
- package/package.json +5 -5
package/lib/browser/neo4j-web.js
CHANGED
|
@@ -342,6 +342,13 @@
|
|
|
342
342
|
* @public
|
|
343
343
|
*/
|
|
344
344
|
_this.rawClassification = (_a = diagnosticRecord === null || diagnosticRecord === void 0 ? void 0 : diagnosticRecord._classification) !== null && _a !== void 0 ? _a : undefined;
|
|
345
|
+
/**
|
|
346
|
+
* Represents the name for the type of error, inherited from base JavaScript {@link Error}.
|
|
347
|
+
* Will be 'GQLError' for {@link GQLError}s and 'Neo4jError' for {@link Neo4jError}s.
|
|
348
|
+
*
|
|
349
|
+
* @type {string}
|
|
350
|
+
* @public
|
|
351
|
+
*/
|
|
345
352
|
_this.name = 'GQLError';
|
|
346
353
|
return _this;
|
|
347
354
|
}
|
|
@@ -389,7 +396,20 @@
|
|
|
389
396
|
* @public
|
|
390
397
|
*/
|
|
391
398
|
_this.code = code;
|
|
399
|
+
/**
|
|
400
|
+
* The name of the type of error.
|
|
401
|
+
*
|
|
402
|
+
* @type {string}
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
392
405
|
_this.name = 'Neo4jError';
|
|
406
|
+
/**
|
|
407
|
+
* If the error is considered retriable.
|
|
408
|
+
* This does not apply when running auto-commit transactions using {@link Session#run}
|
|
409
|
+
*
|
|
410
|
+
* @type {boolean}
|
|
411
|
+
* @public
|
|
412
|
+
*/
|
|
393
413
|
_this.retriable = _isRetriableCode(code);
|
|
394
414
|
return _this;
|
|
395
415
|
}
|
|
@@ -7811,7 +7831,7 @@
|
|
|
7811
7831
|
/**
|
|
7812
7832
|
* Provides a async iterator over the records in the result.
|
|
7813
7833
|
*
|
|
7814
|
-
* *Should not be combined with {@link Result#subscribe} or
|
|
7834
|
+
* *Should not be combined with {@link Result#subscribe} or {@link Result#then} functions.*
|
|
7815
7835
|
*
|
|
7816
7836
|
* @public
|
|
7817
7837
|
* @returns {PeekableAsyncIterator<Record<R>, ResultSummary>} The async iterator for the Results
|
|
@@ -11605,6 +11625,12 @@
|
|
|
11605
11625
|
/**
|
|
11606
11626
|
* Close all open sessions and other associated resources. You should
|
|
11607
11627
|
* make sure to use this when you are done with this driver instance.
|
|
11628
|
+
*
|
|
11629
|
+
* This will interrupt any running connections.
|
|
11630
|
+
* Make sure you are done using the driver object and any resources
|
|
11631
|
+
* spawned from it (such as sessions or transactions) while calling
|
|
11632
|
+
* this method. Failing to do so will result in unspecified behavior.
|
|
11633
|
+
*
|
|
11608
11634
|
* @public
|
|
11609
11635
|
* @return {Promise<void>} promise resolved when the driver is closed.
|
|
11610
11636
|
*/
|
|
@@ -12308,7 +12334,7 @@
|
|
|
12308
12334
|
this.connectionAcquisitionTimeout = 60000; // 1 minute
|
|
12309
12335
|
/**
|
|
12310
12336
|
* Specify the maximum time in milliseconds transactions are allowed to retry via
|
|
12311
|
-
* {@link Session#executeRead}
|
|
12337
|
+
* {@link Session#executeRead}, {@link Session#executeWrite}, and {@link Driver#executeQuery} functions.
|
|
12312
12338
|
*
|
|
12313
12339
|
* These functions will retry the given unit of work on `ServiceUnavailable`, `SessionExpired` and transient
|
|
12314
12340
|
* errors with exponential backoff using an initial delay of 1 second.
|
|
@@ -15165,7 +15191,7 @@
|
|
|
15165
15191
|
return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);
|
|
15166
15192
|
}
|
|
15167
15193
|
var actions = scheduler.actions;
|
|
15168
|
-
if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
|
15194
|
+
if (id != null && id === scheduler._scheduled && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {
|
|
15169
15195
|
animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id);
|
|
15170
15196
|
scheduler._scheduled = undefined;
|
|
15171
15197
|
}
|
|
@@ -15202,8 +15228,14 @@
|
|
|
15202
15228
|
}
|
|
15203
15229
|
AnimationFrameScheduler.prototype.flush = function (action) {
|
|
15204
15230
|
this._active = true;
|
|
15205
|
-
var flushId
|
|
15206
|
-
|
|
15231
|
+
var flushId;
|
|
15232
|
+
if (action) {
|
|
15233
|
+
flushId = action.id;
|
|
15234
|
+
}
|
|
15235
|
+
else {
|
|
15236
|
+
flushId = this._scheduled;
|
|
15237
|
+
this._scheduled = undefined;
|
|
15238
|
+
}
|
|
15207
15239
|
var actions = this.actions;
|
|
15208
15240
|
var error;
|
|
15209
15241
|
action = action || actions.shift();
|
|
@@ -16116,11 +16148,13 @@
|
|
|
16116
16148
|
Object.defineProperty(EmptyError, "__esModule", { value: true });
|
|
16117
16149
|
EmptyError.EmptyError = void 0;
|
|
16118
16150
|
var createErrorClass_1$3 = createErrorClass$1;
|
|
16119
|
-
EmptyError.EmptyError = createErrorClass_1$3.createErrorClass(function (_super) {
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16123
|
-
|
|
16151
|
+
EmptyError.EmptyError = createErrorClass_1$3.createErrorClass(function (_super) {
|
|
16152
|
+
return function EmptyErrorImpl() {
|
|
16153
|
+
_super(this);
|
|
16154
|
+
this.name = 'EmptyError';
|
|
16155
|
+
this.message = 'no elements in sequence';
|
|
16156
|
+
};
|
|
16157
|
+
});
|
|
16124
16158
|
|
|
16125
16159
|
Object.defineProperty(lastValueFrom$1, "__esModule", { value: true });
|
|
16126
16160
|
lastValueFrom$1.lastValueFrom = void 0;
|
|
@@ -17114,7 +17148,7 @@
|
|
|
17114
17148
|
Object.defineProperty(onErrorResumeNext$1, "__esModule", { value: true });
|
|
17115
17149
|
onErrorResumeNext$1.onErrorResumeNext = void 0;
|
|
17116
17150
|
var Observable_1$6 = Observable$1;
|
|
17117
|
-
var argsOrArgArray_1$
|
|
17151
|
+
var argsOrArgArray_1$5 = argsOrArgArray$1;
|
|
17118
17152
|
var OperatorSubscriber_1$O = OperatorSubscriber$1;
|
|
17119
17153
|
var noop_1$c = noop$1;
|
|
17120
17154
|
var innerFrom_1$u = innerFrom$1;
|
|
@@ -17123,7 +17157,7 @@
|
|
|
17123
17157
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17124
17158
|
sources[_i] = arguments[_i];
|
|
17125
17159
|
}
|
|
17126
|
-
var nextSources = argsOrArgArray_1$
|
|
17160
|
+
var nextSources = argsOrArgArray_1$5.argsOrArgArray(sources);
|
|
17127
17161
|
return new Observable_1$6.Observable(function (subscriber) {
|
|
17128
17162
|
var sourceIndex = 0;
|
|
17129
17163
|
var subscribeNext = function () {
|
|
@@ -17200,14 +17234,14 @@
|
|
|
17200
17234
|
race$3.raceInit = race$3.race = void 0;
|
|
17201
17235
|
var Observable_1$5 = Observable$1;
|
|
17202
17236
|
var innerFrom_1$s = innerFrom$1;
|
|
17203
|
-
var argsOrArgArray_1$
|
|
17237
|
+
var argsOrArgArray_1$4 = argsOrArgArray$1;
|
|
17204
17238
|
var OperatorSubscriber_1$M = OperatorSubscriber$1;
|
|
17205
17239
|
function race$2() {
|
|
17206
17240
|
var sources = [];
|
|
17207
17241
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
17208
17242
|
sources[_i] = arguments[_i];
|
|
17209
17243
|
}
|
|
17210
|
-
sources = argsOrArgArray_1$
|
|
17244
|
+
sources = argsOrArgArray_1$4.argsOrArgArray(sources);
|
|
17211
17245
|
return sources.length === 1 ? innerFrom_1$s.innerFrom(sources[0]) : new Observable_1$5.Observable(raceInit(sources));
|
|
17212
17246
|
}
|
|
17213
17247
|
race$3.race = race$2;
|
|
@@ -17321,7 +17355,7 @@
|
|
|
17321
17355
|
zip$3.zip = void 0;
|
|
17322
17356
|
var Observable_1$2 = Observable$1;
|
|
17323
17357
|
var innerFrom_1$q = innerFrom$1;
|
|
17324
|
-
var argsOrArgArray_1$
|
|
17358
|
+
var argsOrArgArray_1$3 = argsOrArgArray$1;
|
|
17325
17359
|
var empty_1$3 = empty;
|
|
17326
17360
|
var OperatorSubscriber_1$L = OperatorSubscriber$1;
|
|
17327
17361
|
var args_1$7 = args;
|
|
@@ -17331,7 +17365,7 @@
|
|
|
17331
17365
|
args[_i] = arguments[_i];
|
|
17332
17366
|
}
|
|
17333
17367
|
var resultSelector = args_1$7.popResultSelector(args);
|
|
17334
|
-
var sources = argsOrArgArray_1$
|
|
17368
|
+
var sources = argsOrArgArray_1$3.argsOrArgArray(args);
|
|
17335
17369
|
return sources.length
|
|
17336
17370
|
? new Observable_1$2.Observable(function (subscriber) {
|
|
17337
17371
|
var buffers = sources.map(function () { return []; });
|
|
@@ -17862,7 +17896,7 @@
|
|
|
17862
17896
|
combineLatest$1.combineLatest = void 0;
|
|
17863
17897
|
var combineLatest_1$1 = combineLatest$3;
|
|
17864
17898
|
var lift_1$Q = lift;
|
|
17865
|
-
var argsOrArgArray_1$
|
|
17899
|
+
var argsOrArgArray_1$2 = argsOrArgArray$1;
|
|
17866
17900
|
var mapOneOrManyArgs_1 = mapOneOrManyArgs$1;
|
|
17867
17901
|
var pipe_1 = pipe$1;
|
|
17868
17902
|
var args_1$5 = args;
|
|
@@ -17875,7 +17909,7 @@
|
|
|
17875
17909
|
return resultSelector
|
|
17876
17910
|
? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray$f([], __read$k(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector))
|
|
17877
17911
|
: lift_1$Q.operate(function (source, subscriber) {
|
|
17878
|
-
combineLatest_1$1.combineLatestInit(__spreadArray$f([source], __read$k(argsOrArgArray_1$
|
|
17912
|
+
combineLatest_1$1.combineLatestInit(__spreadArray$f([source], __read$k(argsOrArgArray_1$2.argsOrArgArray(args))))(subscriber);
|
|
17879
17913
|
});
|
|
17880
17914
|
}
|
|
17881
17915
|
combineLatest$1.combineLatest = combineLatest;
|
|
@@ -18317,7 +18351,7 @@
|
|
|
18317
18351
|
distinctUntilKeyChanged$1.distinctUntilKeyChanged = void 0;
|
|
18318
18352
|
var distinctUntilChanged_1 = distinctUntilChanged$1;
|
|
18319
18353
|
function distinctUntilKeyChanged(key, compare) {
|
|
18320
|
-
return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });
|
|
18354
|
+
return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return (compare ? compare(x[key], y[key]) : x[key] === y[key]); });
|
|
18321
18355
|
}
|
|
18322
18356
|
distinctUntilKeyChanged$1.distinctUntilKeyChanged = distinctUntilKeyChanged;
|
|
18323
18357
|
|
|
@@ -18819,7 +18853,6 @@
|
|
|
18819
18853
|
Object.defineProperty(merge$1, "__esModule", { value: true });
|
|
18820
18854
|
merge$1.merge = void 0;
|
|
18821
18855
|
var lift_1$t = lift;
|
|
18822
|
-
var argsOrArgArray_1$2 = argsOrArgArray$1;
|
|
18823
18856
|
var mergeAll_1 = mergeAll$1;
|
|
18824
18857
|
var args_1$3 = args;
|
|
18825
18858
|
var from_1 = from$1;
|
|
@@ -18830,7 +18863,6 @@
|
|
|
18830
18863
|
}
|
|
18831
18864
|
var scheduler = args_1$3.popScheduler(args);
|
|
18832
18865
|
var concurrent = args_1$3.popNumber(args, Infinity);
|
|
18833
|
-
args = argsOrArgArray_1$2.argsOrArgArray(args);
|
|
18834
18866
|
return lift_1$t.operate(function (source, subscriber) {
|
|
18835
18867
|
mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray$a([source], __read$f(args)), scheduler)).subscribe(subscriber);
|
|
18836
18868
|
});
|
|
@@ -22099,7 +22131,7 @@
|
|
|
22099
22131
|
// This is set up this way to keep the version in the code in
|
|
22100
22132
|
// sync with the npm package version, and to allow the build
|
|
22101
22133
|
// system to control version names at packaging time.
|
|
22102
|
-
version$1.default = '5.28.
|
|
22134
|
+
version$1.default = '5.28.2';
|
|
22103
22135
|
|
|
22104
22136
|
var lib = {};
|
|
22105
22137
|
|
|
@@ -25368,7 +25400,7 @@
|
|
|
25368
25400
|
}
|
|
25369
25401
|
else {
|
|
25370
25402
|
// Some other error occured
|
|
25371
|
-
throw error;
|
|
25403
|
+
throw (0, neo4j_driver_core_1$I.newError)('unexpected failure to write.', undefined, error);
|
|
25372
25404
|
}
|
|
25373
25405
|
}
|
|
25374
25406
|
}
|
|
@@ -26646,7 +26678,7 @@
|
|
|
26646
26678
|
var channel_1$4 = channel;
|
|
26647
26679
|
var neo4j_driver_core_1$E = lib$1;
|
|
26648
26680
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
26649
|
-
var AVAILABLE_BOLT_PROTOCOLS = [5.8, 5.7, 5.6, 5.4, 5.3, 5.2, 5.1, 5.0, 4.4, 4.3, 4.2, 3.0]; // bolt protocols the client will accept, ordered by preference
|
|
26681
|
+
var AVAILABLE_BOLT_PROTOCOLS = ['5.8', '5.7', '5.6', '5.4', '5.3', '5.2', '5.1', '5.0', '4.4', '4.3', '4.2', '3.0']; // bolt protocols the client will accept, ordered by preference
|
|
26650
26682
|
var DESIRED_CAPABILITES = 0;
|
|
26651
26683
|
function version(major, minor) {
|
|
26652
26684
|
return {
|
|
@@ -26715,7 +26747,7 @@
|
|
|
26715
26747
|
});
|
|
26716
26748
|
for (var i = 0; i < versions.length; i++) {
|
|
26717
26749
|
var version_1 = versions[i];
|
|
26718
|
-
if (AVAILABLE_BOLT_PROTOCOLS.includes(
|
|
26750
|
+
if (AVAILABLE_BOLT_PROTOCOLS.includes(version_1.major + '.' + version_1.minor)) {
|
|
26719
26751
|
major = version_1.major;
|
|
26720
26752
|
minor = version_1.minor;
|
|
26721
26753
|
break;
|
|
@@ -37095,7 +37127,8 @@
|
|
|
37095
37127
|
].includes(error.code);
|
|
37096
37128
|
}
|
|
37097
37129
|
function _isFailFastSecurityError(error) {
|
|
37098
|
-
|
|
37130
|
+
var _a;
|
|
37131
|
+
return ((_a = error.code) === null || _a === void 0 ? void 0 : _a.startsWith('Neo.ClientError.Security.')) &&
|
|
37099
37132
|
![
|
|
37100
37133
|
AUTHORIZATION_EXPIRED_CODE
|
|
37101
37134
|
].includes(error.code);
|
|
@@ -37227,7 +37260,7 @@
|
|
|
37227
37260
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37228
37261
|
};
|
|
37229
37262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37230
|
-
exports.UnboundRelationship = exports.Relationship = exports.Node = exports.Record = exports.ServerInfo = exports.GqlStatusObject = exports.Notification = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.ResultSummary = exports.RxResult = exports.RxManagedTransaction = exports.RxTransaction = exports.RxSession = exports.EagerResult = exports.Result = exports.ManagedTransaction = exports.Transaction = exports.Session = exports.Driver = exports.temporal = exports.spatial = exports.graph = exports.error = exports.routing = exports.session = exports.types = exports.logging = exports.auth = exports.
|
|
37263
|
+
exports.UnboundRelationship = exports.Relationship = exports.Node = exports.Record = exports.ServerInfo = exports.GqlStatusObject = exports.Notification = exports.QueryStatistics = exports.ProfiledPlan = exports.Plan = exports.ResultSummary = exports.RxResult = exports.RxManagedTransaction = exports.RxTransaction = exports.RxSession = exports.EagerResult = exports.Result = exports.ManagedTransaction = exports.Transaction = exports.Session = exports.Driver = exports.temporal = exports.spatial = exports.graph = exports.error = exports.routing = exports.session = exports.types = exports.logging = exports.auth = exports.isRetriableError = exports.Neo4jError = exports.integer = exports.isUnboundRelationship = exports.isRelationship = exports.isPathSegment = exports.isPath = exports.isNode = exports.isDateTime = exports.isLocalDateTime = exports.isDate = exports.isTime = exports.isLocalTime = exports.isDuration = exports.isPoint = exports.isInt = exports.int = exports.hasReachableServer = exports.driver = exports.authTokenManagers = void 0;
|
|
37231
37264
|
exports.clientCertificateProviders = exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledClassification = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationClassification = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = exports.PathSegment = exports.Path = void 0;
|
|
37232
37265
|
/**
|
|
37233
37266
|
* Copyright (c) "Neo4j"
|
|
@@ -37251,7 +37284,7 @@
|
|
|
37251
37284
|
var neo4j_driver_core_1 = lib$1;
|
|
37252
37285
|
Object.defineProperty(exports, "authTokenManagers", { enumerable: true, get: function () { return neo4j_driver_core_1.authTokenManagers; } });
|
|
37253
37286
|
Object.defineProperty(exports, "Neo4jError", { enumerable: true, get: function () { return neo4j_driver_core_1.Neo4jError; } });
|
|
37254
|
-
Object.defineProperty(exports, "
|
|
37287
|
+
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return neo4j_driver_core_1.isRetriableError; } });
|
|
37255
37288
|
Object.defineProperty(exports, "error", { enumerable: true, get: function () { return neo4j_driver_core_1.error; } });
|
|
37256
37289
|
Object.defineProperty(exports, "Integer", { enumerable: true, get: function () { return neo4j_driver_core_1.Integer; } });
|
|
37257
37290
|
Object.defineProperty(exports, "int", { enumerable: true, get: function () { return neo4j_driver_core_1.int; } });
|
|
@@ -37576,7 +37609,7 @@
|
|
|
37576
37609
|
isUnboundRelationship: neo4j_driver_core_1.isUnboundRelationship,
|
|
37577
37610
|
integer: integer,
|
|
37578
37611
|
Neo4jError: neo4j_driver_core_1.Neo4jError,
|
|
37579
|
-
|
|
37612
|
+
isRetriableError: neo4j_driver_core_1.isRetriableError,
|
|
37580
37613
|
auth: neo4j_driver_core_1.auth,
|
|
37581
37614
|
logging: logging,
|
|
37582
37615
|
types: types,
|