neo4j-driver 6.0.0 → 6.0.1
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/lib/browser/neo4j-web.esm.js +68 -6
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +68 -6
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +7 -5
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/types/index.d.ts +12 -3
|
@@ -4594,19 +4594,54 @@ var constants$1 = {};
|
|
|
4594
4594
|
|
|
4595
4595
|
var protocolVersion = {};
|
|
4596
4596
|
|
|
4597
|
+
/**
|
|
4598
|
+
* Copyright (c) "Neo4j"
|
|
4599
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
4600
|
+
*
|
|
4601
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4602
|
+
* you may not use this file except in compliance with the License.
|
|
4603
|
+
* You may obtain a copy of the License at
|
|
4604
|
+
*
|
|
4605
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4606
|
+
*
|
|
4607
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4608
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4609
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4610
|
+
* See the License for the specific language governing permissions and
|
|
4611
|
+
* limitations under the License.
|
|
4612
|
+
*/
|
|
4597
4613
|
Object.defineProperty(protocolVersion, "__esModule", { value: true });
|
|
4598
4614
|
protocolVersion.ProtocolVersion = void 0;
|
|
4615
|
+
/**
|
|
4616
|
+
*
|
|
4617
|
+
* @access public
|
|
4618
|
+
* @class A class representing a protocol version the driver is using to communicate with the server.
|
|
4619
|
+
* @param {number} major the major version of the protocol.
|
|
4620
|
+
* @param {number} minor the minor version of the protocol.
|
|
4621
|
+
*/
|
|
4599
4622
|
var ProtocolVersion = /** @class */ (function () {
|
|
4600
4623
|
function ProtocolVersion(major, minor) {
|
|
4601
4624
|
this.major = major;
|
|
4602
4625
|
this.minor = minor;
|
|
4603
4626
|
}
|
|
4627
|
+
/**
|
|
4628
|
+
*
|
|
4629
|
+
* @returns {number} The major version of the protocol
|
|
4630
|
+
*/
|
|
4604
4631
|
ProtocolVersion.prototype.getMajor = function () {
|
|
4605
4632
|
return this.major;
|
|
4606
4633
|
};
|
|
4634
|
+
/**
|
|
4635
|
+
* @returns {number} The minor version of the protocol
|
|
4636
|
+
*/
|
|
4607
4637
|
ProtocolVersion.prototype.getMinor = function () {
|
|
4608
4638
|
return this.major;
|
|
4609
4639
|
};
|
|
4640
|
+
/**
|
|
4641
|
+
*
|
|
4642
|
+
* @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
|
|
4643
|
+
* @returns {boolean} If this version semantically smaller than the other version.
|
|
4644
|
+
*/
|
|
4610
4645
|
ProtocolVersion.prototype.isLessThan = function (other) {
|
|
4611
4646
|
if (this.major < other.major) {
|
|
4612
4647
|
return true;
|
|
@@ -4616,6 +4651,11 @@ var ProtocolVersion = /** @class */ (function () {
|
|
|
4616
4651
|
}
|
|
4617
4652
|
return false;
|
|
4618
4653
|
};
|
|
4654
|
+
/**
|
|
4655
|
+
*
|
|
4656
|
+
* @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
|
|
4657
|
+
* @returns {boolean} If this version is semantically larger than the other version.
|
|
4658
|
+
*/
|
|
4619
4659
|
ProtocolVersion.prototype.isGreaterThan = function (other) {
|
|
4620
4660
|
if (this.major > other.major) {
|
|
4621
4661
|
return true;
|
|
@@ -4625,12 +4665,27 @@ var ProtocolVersion = /** @class */ (function () {
|
|
|
4625
4665
|
}
|
|
4626
4666
|
return false;
|
|
4627
4667
|
};
|
|
4668
|
+
/**
|
|
4669
|
+
*
|
|
4670
|
+
* @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
|
|
4671
|
+
* @returns {boolean} if this version is semantically larger or equal to the other version.
|
|
4672
|
+
*/
|
|
4628
4673
|
ProtocolVersion.prototype.isGreaterOrEqualTo = function (other) {
|
|
4629
4674
|
return !this.isLessThan(other);
|
|
4630
4675
|
};
|
|
4676
|
+
/**
|
|
4677
|
+
*
|
|
4678
|
+
* @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
|
|
4679
|
+
* @returns {boolean} if this version is semantically smaller or equal to the other version.
|
|
4680
|
+
*/
|
|
4631
4681
|
ProtocolVersion.prototype.isLessOrEqualTo = function (other) {
|
|
4632
4682
|
return !this.isGreaterThan(other);
|
|
4633
4683
|
};
|
|
4684
|
+
/**
|
|
4685
|
+
*
|
|
4686
|
+
* @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
|
|
4687
|
+
* @returns {boolean} If this version is the equal to the other version.
|
|
4688
|
+
*/
|
|
4634
4689
|
ProtocolVersion.prototype.isEqualTo = function (other) {
|
|
4635
4690
|
return this.major === other.major && this.minor === other.minor;
|
|
4636
4691
|
};
|
|
@@ -23604,7 +23659,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
23604
23659
|
// This is set up this way to keep the version in the code in
|
|
23605
23660
|
// sync with the npm package version, and to allow the build
|
|
23606
23661
|
// system to control version names at packaging time.
|
|
23607
|
-
version$1.default = '6.0.
|
|
23662
|
+
version$1.default = '6.0.1';
|
|
23608
23663
|
|
|
23609
23664
|
var lib = {};
|
|
23610
23665
|
|
|
@@ -30853,6 +30908,11 @@ var Transformer = /** @class */ (function () {
|
|
|
30853
30908
|
* @returns {<T>|structure.Structure} The structure or the object, if any transformer was found
|
|
30854
30909
|
*/
|
|
30855
30910
|
Transformer.prototype.toStructure = function (type) {
|
|
30911
|
+
var valueType = typeof type;
|
|
30912
|
+
// captures 'string' | 'boolean' | 'bigint' | 'number' | 'undefined' | null
|
|
30913
|
+
if ((valueType !== 'object' && valueType !== 'function' && valueType !== 'symbol') || type === null) {
|
|
30914
|
+
return type;
|
|
30915
|
+
}
|
|
30856
30916
|
var transformer = this._transformers.find(function (_a) {
|
|
30857
30917
|
var isTypeInstance = _a.isTypeInstance;
|
|
30858
30918
|
return isTypeInstance(type);
|
|
@@ -39052,7 +39112,7 @@ var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || func
|
|
|
39052
39112
|
};
|
|
39053
39113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39054
39114
|
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.isRetryableError = exports.isRetriableError = exports.Neo4jError = exports.integer = exports.isUnsupportedType = 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.authTokenManagers = void 0;
|
|
39055
|
-
exports.StandardCase = exports.RecordObjectMapping = exports.mappingDecorators = exports.rule = exports.Rules = exports.Rule = exports.
|
|
39115
|
+
exports.ProtocolVersion = exports.StandardCase = exports.RecordObjectMapping = exports.mappingDecorators = exports.rule = exports.Rules = exports.Rule = exports.Vector = exports.vector = exports.isVector = 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;
|
|
39056
39116
|
exports.driver = driver;
|
|
39057
39117
|
exports.hasReachableServer = hasReachableServer;
|
|
39058
39118
|
/**
|
|
@@ -39134,7 +39194,6 @@ Object.defineProperty(exports, "notificationFilterMinimumSeverityLevel", { enume
|
|
|
39134
39194
|
Object.defineProperty(exports, "clientCertificateProviders", { enumerable: true, get: function () { return neo4j_driver_core_1.clientCertificateProviders; } });
|
|
39135
39195
|
Object.defineProperty(exports, "isVector", { enumerable: true, get: function () { return neo4j_driver_core_1.isVector; } });
|
|
39136
39196
|
Object.defineProperty(exports, "Vector", { enumerable: true, get: function () { return neo4j_driver_core_1.Vector; } });
|
|
39137
|
-
Object.defineProperty(exports, "VectorType", { enumerable: true, get: function () { return neo4j_driver_core_1.VectorType; } });
|
|
39138
39197
|
Object.defineProperty(exports, "vector", { enumerable: true, get: function () { return neo4j_driver_core_1.vector; } });
|
|
39139
39198
|
Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return neo4j_driver_core_1.Rule; } });
|
|
39140
39199
|
Object.defineProperty(exports, "Rules", { enumerable: true, get: function () { return neo4j_driver_core_1.Rules; } });
|
|
@@ -39142,6 +39201,7 @@ Object.defineProperty(exports, "rule", { enumerable: true, get: function () { re
|
|
|
39142
39201
|
Object.defineProperty(exports, "mappingDecorators", { enumerable: true, get: function () { return neo4j_driver_core_1.mappingDecorators; } });
|
|
39143
39202
|
Object.defineProperty(exports, "RecordObjectMapping", { enumerable: true, get: function () { return neo4j_driver_core_1.RecordObjectMapping; } });
|
|
39144
39203
|
Object.defineProperty(exports, "StandardCase", { enumerable: true, get: function () { return neo4j_driver_core_1.StandardCase; } });
|
|
39204
|
+
Object.defineProperty(exports, "ProtocolVersion", { enumerable: true, get: function () { return neo4j_driver_core_1.ProtocolVersion; } });
|
|
39145
39205
|
var neo4j_driver_bolt_connection_1 = lib;
|
|
39146
39206
|
var session_rx_1 = __importDefault(sessionRx);
|
|
39147
39207
|
exports.RxSession = session_rx_1.default;
|
|
@@ -39341,9 +39401,9 @@ var types = {
|
|
|
39341
39401
|
Time: neo4j_driver_core_1.Time,
|
|
39342
39402
|
Integer: neo4j_driver_core_1.Integer,
|
|
39343
39403
|
Vector: neo4j_driver_core_1.Vector,
|
|
39344
|
-
VectorType: neo4j_driver_core_1.VectorType,
|
|
39345
39404
|
Rule: neo4j_driver_core_1.Rule,
|
|
39346
|
-
Rules: neo4j_driver_core_1.Rules
|
|
39405
|
+
Rules: neo4j_driver_core_1.Rules,
|
|
39406
|
+
ProtocolVersion: neo4j_driver_core_1.ProtocolVersion
|
|
39347
39407
|
};
|
|
39348
39408
|
exports.types = types;
|
|
39349
39409
|
/**
|
|
@@ -39468,10 +39528,12 @@ var forExport = {
|
|
|
39468
39528
|
clientCertificateProviders: neo4j_driver_core_1.clientCertificateProviders,
|
|
39469
39529
|
isVector: neo4j_driver_core_1.isVector,
|
|
39470
39530
|
vector: neo4j_driver_core_1.vector,
|
|
39531
|
+
Vector: neo4j_driver_core_1.Vector,
|
|
39471
39532
|
rule: neo4j_driver_core_1.rule,
|
|
39472
39533
|
mappingDecorators: neo4j_driver_core_1.mappingDecorators,
|
|
39473
39534
|
RecordObjectMapping: neo4j_driver_core_1.RecordObjectMapping,
|
|
39474
|
-
StandardCase: neo4j_driver_core_1.StandardCase
|
|
39535
|
+
StandardCase: neo4j_driver_core_1.StandardCase,
|
|
39536
|
+
ProtocolVersion: neo4j_driver_core_1.ProtocolVersion
|
|
39475
39537
|
};
|
|
39476
39538
|
exports.default = forExport;
|
|
39477
39539
|
}(lib$2));
|