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.
@@ -4600,19 +4600,54 @@
4600
4600
 
4601
4601
  var protocolVersion = {};
4602
4602
 
4603
+ /**
4604
+ * Copyright (c) "Neo4j"
4605
+ * Neo4j Sweden AB [https://neo4j.com]
4606
+ *
4607
+ * Licensed under the Apache License, Version 2.0 (the "License");
4608
+ * you may not use this file except in compliance with the License.
4609
+ * You may obtain a copy of the License at
4610
+ *
4611
+ * http://www.apache.org/licenses/LICENSE-2.0
4612
+ *
4613
+ * Unless required by applicable law or agreed to in writing, software
4614
+ * distributed under the License is distributed on an "AS IS" BASIS,
4615
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
4616
+ * See the License for the specific language governing permissions and
4617
+ * limitations under the License.
4618
+ */
4603
4619
  Object.defineProperty(protocolVersion, "__esModule", { value: true });
4604
4620
  protocolVersion.ProtocolVersion = void 0;
4621
+ /**
4622
+ *
4623
+ * @access public
4624
+ * @class A class representing a protocol version the driver is using to communicate with the server.
4625
+ * @param {number} major the major version of the protocol.
4626
+ * @param {number} minor the minor version of the protocol.
4627
+ */
4605
4628
  var ProtocolVersion = /** @class */ (function () {
4606
4629
  function ProtocolVersion(major, minor) {
4607
4630
  this.major = major;
4608
4631
  this.minor = minor;
4609
4632
  }
4633
+ /**
4634
+ *
4635
+ * @returns {number} The major version of the protocol
4636
+ */
4610
4637
  ProtocolVersion.prototype.getMajor = function () {
4611
4638
  return this.major;
4612
4639
  };
4640
+ /**
4641
+ * @returns {number} The minor version of the protocol
4642
+ */
4613
4643
  ProtocolVersion.prototype.getMinor = function () {
4614
4644
  return this.major;
4615
4645
  };
4646
+ /**
4647
+ *
4648
+ * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
4649
+ * @returns {boolean} If this version semantically smaller than the other version.
4650
+ */
4616
4651
  ProtocolVersion.prototype.isLessThan = function (other) {
4617
4652
  if (this.major < other.major) {
4618
4653
  return true;
@@ -4622,6 +4657,11 @@
4622
4657
  }
4623
4658
  return false;
4624
4659
  };
4660
+ /**
4661
+ *
4662
+ * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
4663
+ * @returns {boolean} If this version is semantically larger than the other version.
4664
+ */
4625
4665
  ProtocolVersion.prototype.isGreaterThan = function (other) {
4626
4666
  if (this.major > other.major) {
4627
4667
  return true;
@@ -4631,12 +4671,27 @@
4631
4671
  }
4632
4672
  return false;
4633
4673
  };
4674
+ /**
4675
+ *
4676
+ * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
4677
+ * @returns {boolean} if this version is semantically larger or equal to the other version.
4678
+ */
4634
4679
  ProtocolVersion.prototype.isGreaterOrEqualTo = function (other) {
4635
4680
  return !this.isLessThan(other);
4636
4681
  };
4682
+ /**
4683
+ *
4684
+ * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
4685
+ * @returns {boolean} if this version is semantically smaller or equal to the other version.
4686
+ */
4637
4687
  ProtocolVersion.prototype.isLessOrEqualTo = function (other) {
4638
4688
  return !this.isGreaterThan(other);
4639
4689
  };
4690
+ /**
4691
+ *
4692
+ * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to
4693
+ * @returns {boolean} If this version is the equal to the other version.
4694
+ */
4640
4695
  ProtocolVersion.prototype.isEqualTo = function (other) {
4641
4696
  return this.major === other.major && this.minor === other.minor;
4642
4697
  };
@@ -23610,7 +23665,7 @@
23610
23665
  // This is set up this way to keep the version in the code in
23611
23666
  // sync with the npm package version, and to allow the build
23612
23667
  // system to control version names at packaging time.
23613
- version$1.default = '6.0.0';
23668
+ version$1.default = '6.0.1';
23614
23669
 
23615
23670
  var lib = {};
23616
23671
 
@@ -30859,6 +30914,11 @@
30859
30914
  * @returns {<T>|structure.Structure} The structure or the object, if any transformer was found
30860
30915
  */
30861
30916
  Transformer.prototype.toStructure = function (type) {
30917
+ var valueType = typeof type;
30918
+ // captures 'string' | 'boolean' | 'bigint' | 'number' | 'undefined' | null
30919
+ if ((valueType !== 'object' && valueType !== 'function' && valueType !== 'symbol') || type === null) {
30920
+ return type;
30921
+ }
30862
30922
  var transformer = this._transformers.find(function (_a) {
30863
30923
  var isTypeInstance = _a.isTypeInstance;
30864
30924
  return isTypeInstance(type);
@@ -39058,7 +39118,7 @@
39058
39118
  };
39059
39119
  Object.defineProperty(exports, "__esModule", { value: true });
39060
39120
  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;
39061
- exports.StandardCase = exports.RecordObjectMapping = exports.mappingDecorators = exports.rule = exports.Rules = exports.Rule = exports.VectorType = 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;
39121
+ 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;
39062
39122
  exports.driver = driver;
39063
39123
  exports.hasReachableServer = hasReachableServer;
39064
39124
  /**
@@ -39140,7 +39200,6 @@
39140
39200
  Object.defineProperty(exports, "clientCertificateProviders", { enumerable: true, get: function () { return neo4j_driver_core_1.clientCertificateProviders; } });
39141
39201
  Object.defineProperty(exports, "isVector", { enumerable: true, get: function () { return neo4j_driver_core_1.isVector; } });
39142
39202
  Object.defineProperty(exports, "Vector", { enumerable: true, get: function () { return neo4j_driver_core_1.Vector; } });
39143
- Object.defineProperty(exports, "VectorType", { enumerable: true, get: function () { return neo4j_driver_core_1.VectorType; } });
39144
39203
  Object.defineProperty(exports, "vector", { enumerable: true, get: function () { return neo4j_driver_core_1.vector; } });
39145
39204
  Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return neo4j_driver_core_1.Rule; } });
39146
39205
  Object.defineProperty(exports, "Rules", { enumerable: true, get: function () { return neo4j_driver_core_1.Rules; } });
@@ -39148,6 +39207,7 @@
39148
39207
  Object.defineProperty(exports, "mappingDecorators", { enumerable: true, get: function () { return neo4j_driver_core_1.mappingDecorators; } });
39149
39208
  Object.defineProperty(exports, "RecordObjectMapping", { enumerable: true, get: function () { return neo4j_driver_core_1.RecordObjectMapping; } });
39150
39209
  Object.defineProperty(exports, "StandardCase", { enumerable: true, get: function () { return neo4j_driver_core_1.StandardCase; } });
39210
+ Object.defineProperty(exports, "ProtocolVersion", { enumerable: true, get: function () { return neo4j_driver_core_1.ProtocolVersion; } });
39151
39211
  var neo4j_driver_bolt_connection_1 = lib;
39152
39212
  var session_rx_1 = __importDefault(sessionRx);
39153
39213
  exports.RxSession = session_rx_1.default;
@@ -39347,9 +39407,9 @@
39347
39407
  Time: neo4j_driver_core_1.Time,
39348
39408
  Integer: neo4j_driver_core_1.Integer,
39349
39409
  Vector: neo4j_driver_core_1.Vector,
39350
- VectorType: neo4j_driver_core_1.VectorType,
39351
39410
  Rule: neo4j_driver_core_1.Rule,
39352
- Rules: neo4j_driver_core_1.Rules
39411
+ Rules: neo4j_driver_core_1.Rules,
39412
+ ProtocolVersion: neo4j_driver_core_1.ProtocolVersion
39353
39413
  };
39354
39414
  exports.types = types;
39355
39415
  /**
@@ -39474,10 +39534,12 @@
39474
39534
  clientCertificateProviders: neo4j_driver_core_1.clientCertificateProviders,
39475
39535
  isVector: neo4j_driver_core_1.isVector,
39476
39536
  vector: neo4j_driver_core_1.vector,
39537
+ Vector: neo4j_driver_core_1.Vector,
39477
39538
  rule: neo4j_driver_core_1.rule,
39478
39539
  mappingDecorators: neo4j_driver_core_1.mappingDecorators,
39479
39540
  RecordObjectMapping: neo4j_driver_core_1.RecordObjectMapping,
39480
- StandardCase: neo4j_driver_core_1.StandardCase
39541
+ StandardCase: neo4j_driver_core_1.StandardCase,
39542
+ ProtocolVersion: neo4j_driver_core_1.ProtocolVersion
39481
39543
  };
39482
39544
  exports.default = forExport;
39483
39545
  }(lib$2));