From b028dc8502bbefdf9bd5edab3b0604fe8ee1168d Mon Sep 17 00:00:00 2001 From: ci <61233757+MaxAake@users.noreply.github.com> Date: Wed, 1 Oct 2025 14:05:29 +0200 Subject: [PATCH 1/2] move ProtocolVersion from internal --- packages/core/src/connection-provider.ts | 2 +- packages/core/src/connection.ts | 2 +- packages/core/src/driver.ts | 2 +- packages/core/src/index.ts | 4 +- packages/core/src/internal/constants.ts | 2 +- .../core/src/internal/protocol-version.ts | 50 --------- packages/core/src/protocol-version.ts | 106 ++++++++++++++++++ packages/core/src/result-summary.ts | 2 +- packages/core/test/driver.test.ts | 2 +- packages/core/test/result-summary.test.ts | 2 +- packages/core/test/result.test.ts | 2 +- packages/core/test/utils/connection.fake.ts | 2 +- .../lib/core/connection-provider.ts | 2 +- .../neo4j-driver-deno/lib/core/connection.ts | 2 +- packages/neo4j-driver-deno/lib/core/driver.ts | 2 +- packages/neo4j-driver-deno/lib/core/index.ts | 2 +- .../lib/core/internal/constants.ts | 2 +- .../lib/core/internal/protocol-version.ts | 50 --------- .../lib/core/protocol-version.ts | 106 ++++++++++++++++++ .../lib/core/result-summary.ts | 2 +- packages/neo4j-driver-deno/lib/mod.ts | 9 +- packages/neo4j-driver-lite/src/index.ts | 9 +- packages/neo4j-driver/src/index.js | 12 +- 23 files changed, 249 insertions(+), 127 deletions(-) delete mode 100644 packages/core/src/internal/protocol-version.ts create mode 100644 packages/core/src/protocol-version.ts delete mode 100644 packages/neo4j-driver-deno/lib/core/internal/protocol-version.ts create mode 100644 packages/neo4j-driver-deno/lib/core/protocol-version.ts diff --git a/packages/core/src/connection-provider.ts b/packages/core/src/connection-provider.ts index a393026ef..6aa9d81fa 100644 --- a/packages/core/src/connection-provider.ts +++ b/packages/core/src/connection-provider.ts @@ -18,7 +18,7 @@ import Connection from './connection' import { bookmarks } from './internal' -import { ProtocolVersion } from './internal/protocol-version' +import { ProtocolVersion } from './protocol-version' import { ServerInfo } from './result-summary' import { AuthToken } from './types' diff --git a/packages/core/src/connection.ts b/packages/core/src/connection.ts index 188d24be1..ea1bed9c6 100644 --- a/packages/core/src/connection.ts +++ b/packages/core/src/connection.ts @@ -19,7 +19,7 @@ import { Bookmarks } from './internal/bookmarks' import { AccessMode, TelemetryApis } from './internal/constants' import { ResultStreamObserver } from './internal/observers' -import { ProtocolVersion } from './internal/protocol-version' +import { ProtocolVersion } from './protocol-version' import { TxConfig } from './internal/tx-config' import NotificationFilter from './notification-filter' diff --git a/packages/core/src/driver.ts b/packages/core/src/driver.ts index f7c870c49..261d6860c 100644 --- a/packages/core/src/driver.ts +++ b/packages/core/src/driver.ts @@ -48,7 +48,7 @@ import { newError } from './error' import NotificationFilter from './notification-filter' import HomeDatabaseCache from './internal/homedb-cache' import { cacheKey } from './internal/auth-util' -import { ProtocolVersion } from './internal/protocol-version' +import { ProtocolVersion } from './protocol-version' const DEFAULT_MAX_CONNECTION_LIFETIME: number = 60 * 60 * 1000 // 1 hour diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index 6bfd45f4e..09706cdd1 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -102,7 +102,7 @@ import * as json from './json' import resultTransformers, { ResultTransformer } from './result-transformers' import ClientCertificate, { clientCertificateProviders, ClientCertificateProvider, ClientCertificateProviders, RotatingClientCertificateProvider, resolveCertificateProvider } from './client-certificate' import * as internal from './internal' // todo: removed afterwards -import { ProtocolVersion } from './internal/protocol-version' +import { ProtocolVersion } from './protocol-version' import Vector, { VectorType, vector, isVector } from './vector' import { StandardCase } from './mapping.nameconventions' import { Rule, Rules, RecordObjectMapping } from './mapping.highlevel' @@ -292,7 +292,7 @@ export { RecordObjectMapping, StandardCase, UnsupportedType, - isUnsupportedType, + isUnsupportedType } export type { diff --git a/packages/core/src/internal/constants.ts b/packages/core/src/internal/constants.ts index 032e81a6e..6a5b1da26 100644 --- a/packages/core/src/internal/constants.ts +++ b/packages/core/src/internal/constants.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { ProtocolVersion } from './protocol-version' +import { ProtocolVersion } from '../protocol-version' const FETCH_ALL = -1 const DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000 // 60 seconds diff --git a/packages/core/src/internal/protocol-version.ts b/packages/core/src/internal/protocol-version.ts deleted file mode 100644 index d92cf72d1..000000000 --- a/packages/core/src/internal/protocol-version.ts +++ /dev/null @@ -1,50 +0,0 @@ -export class ProtocolVersion { - private readonly major: number - private readonly minor: number - constructor (major: number, minor: number) { - this.major = major - this.minor = minor - } - - getMajor (): number { - return this.major - } - - getMinor (): number { - return this.major - } - - isLessThan (other: ProtocolVersion): boolean { - if (this.major < other.major) { - return true - } else if (this.major === other.major && this.minor < other.minor) { - return true - } - return false - } - - isGreaterThan (other: ProtocolVersion): boolean { - if (this.major > other.major) { - return true - } else if (this.major === other.major && this.minor > other.minor) { - return true - } - return false - } - - isGreaterOrEqualTo (other: ProtocolVersion): boolean { - return !this.isLessThan(other) - } - - isLessOrEqualTo (other: ProtocolVersion): boolean { - return !this.isGreaterThan(other) - } - - isEqualTo (other: ProtocolVersion): boolean { - return this.major === other.major && this.minor === other.minor - } - - toString (): string { - return this.major.toString() + '.' + this.minor.toString() - } -} diff --git a/packages/core/src/protocol-version.ts b/packages/core/src/protocol-version.ts new file mode 100644 index 000000000..14f091af9 --- /dev/null +++ b/packages/core/src/protocol-version.ts @@ -0,0 +1,106 @@ +/** + * Copyright (c) "Neo4j" + * Neo4j Sweden AB [https://neo4j.com] + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * + * @access public + * @class A class representing a protocol version the driver is using to communicate with the server. + * @param {number} major the major version of the protocol. + * @param {number} minor the minor version of the protocol. + */ +export class ProtocolVersion { + private readonly major: number + private readonly minor: number + constructor (major: number, minor: number) { + this.major = major + this.minor = minor + } + + /** + * + * @returns {number} The major version of the protocol + */ + getMajor (): number { + return this.major + } + + /** + * @returns {number} The minor version of the protocol + */ + getMinor (): number { + return this.major + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} If this version semantically smaller than the other version. + */ + isLessThan (other: ProtocolVersion): boolean { + if (this.major < other.major) { + return true + } else if (this.major === other.major && this.minor < other.minor) { + return true + } + return false + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} If this version is semantically larger than the other version. + */ + isGreaterThan (other: ProtocolVersion): boolean { + if (this.major > other.major) { + return true + } else if (this.major === other.major && this.minor > other.minor) { + return true + } + return false + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} if this version is semantically larger or equal to the other version. + */ + isGreaterOrEqualTo (other: ProtocolVersion): boolean { + return !this.isLessThan(other) + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} if this version is semantically smaller or equal to the other version. + */ + isLessOrEqualTo (other: ProtocolVersion): boolean { + return !this.isGreaterThan(other) + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} If this version is the equal to the other version. + */ + isEqualTo (other: ProtocolVersion): boolean { + return this.major === other.major && this.minor === other.minor + } + + toString (): string { + return this.major.toString() + '.' + this.minor.toString() + } +} diff --git a/packages/core/src/result-summary.ts b/packages/core/src/result-summary.ts index f4a7c6e1b..f1e80a085 100644 --- a/packages/core/src/result-summary.ts +++ b/packages/core/src/result-summary.ts @@ -19,7 +19,7 @@ import Integer from './integer' import { NumberOrInteger } from './graph-types' import { util } from './internal' import GqlStatusObject, { Notification, buildGqlStatusObjectFromMetadata, buildNotificationsFromMetadata } from './notification' -import { ProtocolVersion } from './internal/protocol-version' +import { ProtocolVersion } from './protocol-version' /** * A ResultSummary instance contains structured metadata for a {@link Result}. diff --git a/packages/core/test/driver.test.ts b/packages/core/test/driver.test.ts index 8b45f1714..53177c99e 100644 --- a/packages/core/test/driver.test.ts +++ b/packages/core/test/driver.test.ts @@ -25,7 +25,7 @@ import { LogLevel } from '../src/types' import resultTransformers from '../src/result-transformers' import Record, { RecordShape } from '../src/record' import { invalidNotificationFilters, validNotificationFilters } from './utils/notification-filters.fixtures' -import { ProtocolVersion } from '../src/internal/protocol-version' +import { ProtocolVersion } from '../src/protocol-version' describe('Driver', () => { let driver: Driver | null diff --git a/packages/core/test/result-summary.test.ts b/packages/core/test/result-summary.test.ts index 051970c58..ec59f70f3 100644 --- a/packages/core/test/result-summary.test.ts +++ b/packages/core/test/result-summary.test.ts @@ -16,7 +16,7 @@ */ import { int } from '../src' -import { ProtocolVersion } from '../src/internal/protocol-version' +import { ProtocolVersion } from '../src/protocol-version' import { ServerInfo, ProfiledPlan, diff --git a/packages/core/test/result.test.ts b/packages/core/test/result.test.ts index 4cbc08950..9b06cae5e 100644 --- a/packages/core/test/result.test.ts +++ b/packages/core/test/result.test.ts @@ -26,7 +26,7 @@ import ResultStreamObserverMock from './utils/result-stream-observer.mock' import Result from '../src/result' import FakeConnection from './utils/connection.fake' import { Logger } from '../src/internal/logger' -import { ProtocolVersion } from '../src/internal/protocol-version' +import { ProtocolVersion } from '../src/protocol-version' interface AB { a: number diff --git a/packages/core/test/utils/connection.fake.ts b/packages/core/test/utils/connection.fake.ts index ef5fb176f..96bab8e66 100644 --- a/packages/core/test/utils/connection.fake.ts +++ b/packages/core/test/utils/connection.fake.ts @@ -18,7 +18,7 @@ import { Connection, ResultObserver, ResultSummary } from '../../src' import { BeginTransactionConfig, CommitTransactionConfig, RollbackConnectionConfig, RunQueryConfig } from '../../src/connection' import { ResultStreamObserver } from '../../src/internal/observers' -import { ProtocolVersion } from '../../src/internal/protocol-version' +import { ProtocolVersion } from '../../src/protocol-version' /** * This class is like a mock of {@link Connection} that tracks invocations count. diff --git a/packages/neo4j-driver-deno/lib/core/connection-provider.ts b/packages/neo4j-driver-deno/lib/core/connection-provider.ts index 4f165500d..96b05cf14 100644 --- a/packages/neo4j-driver-deno/lib/core/connection-provider.ts +++ b/packages/neo4j-driver-deno/lib/core/connection-provider.ts @@ -18,7 +18,7 @@ import Connection from './connection.ts' import { bookmarks } from './internal/index.ts' -import { ProtocolVersion } from './internal/protocol-version.ts' +import { ProtocolVersion } from './protocol-version.ts' import { ServerInfo } from './result-summary.ts' import { AuthToken } from './types.ts' diff --git a/packages/neo4j-driver-deno/lib/core/connection.ts b/packages/neo4j-driver-deno/lib/core/connection.ts index 40bee0ecf..7c95d266e 100644 --- a/packages/neo4j-driver-deno/lib/core/connection.ts +++ b/packages/neo4j-driver-deno/lib/core/connection.ts @@ -19,7 +19,7 @@ import { Bookmarks } from './internal/bookmarks.ts' import { AccessMode, TelemetryApis } from './internal/constants.ts' import { ResultStreamObserver } from './internal/observers.ts' -import { ProtocolVersion } from './internal/protocol-version.ts' +import { ProtocolVersion } from './protocol-version.ts' import { TxConfig } from './internal/tx-config.ts' import NotificationFilter from './notification-filter.ts' diff --git a/packages/neo4j-driver-deno/lib/core/driver.ts b/packages/neo4j-driver-deno/lib/core/driver.ts index 516f560e0..b4db89fb7 100644 --- a/packages/neo4j-driver-deno/lib/core/driver.ts +++ b/packages/neo4j-driver-deno/lib/core/driver.ts @@ -48,7 +48,7 @@ import { newError } from './error.ts' import NotificationFilter from './notification-filter.ts' import HomeDatabaseCache from './internal/homedb-cache.ts' import { cacheKey } from './internal/auth-util.ts' -import { ProtocolVersion } from './internal/protocol-version.ts' +import { ProtocolVersion } from './protocol-version.ts' const DEFAULT_MAX_CONNECTION_LIFETIME: number = 60 * 60 * 1000 // 1 hour diff --git a/packages/neo4j-driver-deno/lib/core/index.ts b/packages/neo4j-driver-deno/lib/core/index.ts index 5c901dc56..b09dbbedd 100644 --- a/packages/neo4j-driver-deno/lib/core/index.ts +++ b/packages/neo4j-driver-deno/lib/core/index.ts @@ -102,7 +102,7 @@ import * as json from './json.ts' import resultTransformers, { ResultTransformer } from './result-transformers.ts' import ClientCertificate, { clientCertificateProviders, ClientCertificateProvider, ClientCertificateProviders, RotatingClientCertificateProvider, resolveCertificateProvider } from './client-certificate.ts' import * as internal from './internal/index.ts' -import { ProtocolVersion } from './internal/protocol-version.ts' +import { ProtocolVersion } from './protocol-version.ts' import Vector, { VectorType, vector, isVector } from './vector.ts' import { StandardCase } from './mapping.nameconventions.ts' import { Rule, Rules, RecordObjectMapping } from './mapping.highlevel.ts' diff --git a/packages/neo4j-driver-deno/lib/core/internal/constants.ts b/packages/neo4j-driver-deno/lib/core/internal/constants.ts index b709889e3..5b4bc8ae8 100644 --- a/packages/neo4j-driver-deno/lib/core/internal/constants.ts +++ b/packages/neo4j-driver-deno/lib/core/internal/constants.ts @@ -15,7 +15,7 @@ * limitations under the License. */ -import { ProtocolVersion } from './protocol-version.ts' +import { ProtocolVersion } from '../protocol-version.ts' const FETCH_ALL = -1 const DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000 // 60 seconds diff --git a/packages/neo4j-driver-deno/lib/core/internal/protocol-version.ts b/packages/neo4j-driver-deno/lib/core/internal/protocol-version.ts deleted file mode 100644 index d92cf72d1..000000000 --- a/packages/neo4j-driver-deno/lib/core/internal/protocol-version.ts +++ /dev/null @@ -1,50 +0,0 @@ -export class ProtocolVersion { - private readonly major: number - private readonly minor: number - constructor (major: number, minor: number) { - this.major = major - this.minor = minor - } - - getMajor (): number { - return this.major - } - - getMinor (): number { - return this.major - } - - isLessThan (other: ProtocolVersion): boolean { - if (this.major < other.major) { - return true - } else if (this.major === other.major && this.minor < other.minor) { - return true - } - return false - } - - isGreaterThan (other: ProtocolVersion): boolean { - if (this.major > other.major) { - return true - } else if (this.major === other.major && this.minor > other.minor) { - return true - } - return false - } - - isGreaterOrEqualTo (other: ProtocolVersion): boolean { - return !this.isLessThan(other) - } - - isLessOrEqualTo (other: ProtocolVersion): boolean { - return !this.isGreaterThan(other) - } - - isEqualTo (other: ProtocolVersion): boolean { - return this.major === other.major && this.minor === other.minor - } - - toString (): string { - return this.major.toString() + '.' + this.minor.toString() - } -} diff --git a/packages/neo4j-driver-deno/lib/core/protocol-version.ts b/packages/neo4j-driver-deno/lib/core/protocol-version.ts new file mode 100644 index 000000000..01a812cbd --- /dev/null +++ b/packages/neo4j-driver-deno/lib/core/protocol-version.ts @@ -0,0 +1,106 @@ +/** + * Copyright (c) "Neo4j" + * Neo4j Sweden AB [https://neo4j.com] + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * + * @access public + * @class A class representing a protocol version the driver is using to communicate with the server. + * @param {number} major the major version of the protocol. + * @param {number} minor the minor version of the protocol. + */ +export class ProtocolVersion { + private readonly major: number + private readonly minor: number + constructor (major: number, minor: number) { + this.major = major + this.minor = minor + } + + /** + * + * @returns {number} The major version of the protocol + */ + getMajor (): number { + return this.major + } + + /** + * @returns {number} The minor version of the protocol + */ + getMinor (): number { + return this.major + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} If this version semantically smaller than the other version. + */ + isLessThan (other: ProtocolVersion): boolean { + if (this.major < other.major) { + return true + } else if (this.major === other.major && this.minor < other.minor) { + return true + } + return false + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} If this version is semantically larger than the other version. + */ + isGreaterThan (other: ProtocolVersion): boolean { + if (this.major > other.major) { + return true + } else if (this.major === other.major && this.minor > other.minor) { + return true + } + return false + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} if this version is semantically larger or equal to the other version. + */ + isGreaterOrEqualTo (other: ProtocolVersion): boolean { + return !this.isLessThan(other) + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} if this version is semantically smaller or equal to the other version. + */ + isLessOrEqualTo (other: ProtocolVersion): boolean { + return !this.isGreaterThan(other) + } + + /** + * + * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to + * @returns {boolean} If this version is the equal to the other version. + */ + isEqualTo (other: ProtocolVersion): boolean { + return this.major === other.major && this.minor === other.minor + } + + toString (): string { + return this.major.toString() + '.' + this.minor.toString() + } +} diff --git a/packages/neo4j-driver-deno/lib/core/result-summary.ts b/packages/neo4j-driver-deno/lib/core/result-summary.ts index fb2e74780..687eda218 100644 --- a/packages/neo4j-driver-deno/lib/core/result-summary.ts +++ b/packages/neo4j-driver-deno/lib/core/result-summary.ts @@ -19,7 +19,7 @@ import Integer from './integer.ts' import { NumberOrInteger } from './graph-types.ts' import { util } from './internal/index.ts' import GqlStatusObject, { Notification, buildGqlStatusObjectFromMetadata, buildNotificationsFromMetadata } from './notification.ts' -import { ProtocolVersion } from './internal/protocol-version.ts' +import { ProtocolVersion } from './protocol-version.ts' /** * A ResultSummary instance contains structured metadata for a {@link Result}. diff --git a/packages/neo4j-driver-deno/lib/mod.ts b/packages/neo4j-driver-deno/lib/mod.ts index d0faac4df..c918d20b7 100644 --- a/packages/neo4j-driver-deno/lib/mod.ts +++ b/packages/neo4j-driver-deno/lib/mod.ts @@ -119,7 +119,8 @@ import { rule, RecordObjectMapping, StandardCase, - MappedQueryResult + MappedQueryResult, + ProtocolVersion } from './core/index.ts' // @deno-types=./bolt-connection/types/index.d.ts import { DirectConnectionProvider, RoutingConnectionProvider } from './bolt-connection/index.js' @@ -458,7 +459,8 @@ const forExport = { vector, rule, RecordObjectMapping, - StandardCase + StandardCase, + ProtocolVersion } export { @@ -571,6 +573,7 @@ export type { VectorType, Rule, Rules, - MappedQueryResult + MappedQueryResult, + ProtocolVersion } export default forExport diff --git a/packages/neo4j-driver-lite/src/index.ts b/packages/neo4j-driver-lite/src/index.ts index d29e1c68a..96b99dc65 100644 --- a/packages/neo4j-driver-lite/src/index.ts +++ b/packages/neo4j-driver-lite/src/index.ts @@ -119,7 +119,8 @@ import { rule, RecordObjectMapping, StandardCase, - MappedQueryResult + MappedQueryResult, + ProtocolVersion } from 'neo4j-driver-core' import { DirectConnectionProvider, RoutingConnectionProvider } from 'neo4j-driver-bolt-connection' @@ -457,7 +458,8 @@ const forExport = { vector, rule, RecordObjectMapping, - StandardCase + StandardCase, + ProtocolVersion } export { @@ -570,6 +572,7 @@ export type { VectorType, Rule, Rules, - MappedQueryResult + MappedQueryResult, + ProtocolVersion } export default forExport diff --git a/packages/neo4j-driver/src/index.js b/packages/neo4j-driver/src/index.js index 48d18aad7..62cc05d84 100644 --- a/packages/neo4j-driver/src/index.js +++ b/packages/neo4j-driver/src/index.js @@ -90,7 +90,8 @@ import { rule, mappingDecorators, RecordObjectMapping, - StandardCase + StandardCase, + ProtocolVersion } from 'neo4j-driver-core' import { DirectConnectionProvider, @@ -298,7 +299,8 @@ const types = { Vector, VectorType, Rule, - Rules + Rules, + ProtocolVersion } /** @@ -426,7 +428,8 @@ const forExport = { rule, mappingDecorators, RecordObjectMapping, - StandardCase + StandardCase, + ProtocolVersion } export { @@ -510,6 +513,7 @@ export { rule, mappingDecorators, RecordObjectMapping, - StandardCase + StandardCase, + ProtocolVersion } export default forExport From ba7f6b1796df2e8f71b693ad891700cff527fa9a Mon Sep 17 00:00:00 2001 From: ci <61233757+MaxAake@users.noreply.github.com> Date: Wed, 1 Oct 2025 14:06:02 +0200 Subject: [PATCH 2/2] deno sync --- packages/neo4j-driver-deno/lib/core/index.ts | 2 +- .../neo4j-driver-deno/lib/core/protocol-version.ts | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/neo4j-driver-deno/lib/core/index.ts b/packages/neo4j-driver-deno/lib/core/index.ts index b09dbbedd..f7952eaee 100644 --- a/packages/neo4j-driver-deno/lib/core/index.ts +++ b/packages/neo4j-driver-deno/lib/core/index.ts @@ -292,7 +292,7 @@ export { RecordObjectMapping, StandardCase, UnsupportedType, - isUnsupportedType, + isUnsupportedType } export type { diff --git a/packages/neo4j-driver-deno/lib/core/protocol-version.ts b/packages/neo4j-driver-deno/lib/core/protocol-version.ts index 01a812cbd..14f091af9 100644 --- a/packages/neo4j-driver-deno/lib/core/protocol-version.ts +++ b/packages/neo4j-driver-deno/lib/core/protocol-version.ts @@ -16,7 +16,7 @@ */ /** - * + * * @access public * @class A class representing a protocol version the driver is using to communicate with the server. * @param {number} major the major version of the protocol. @@ -31,7 +31,7 @@ export class ProtocolVersion { } /** - * + * * @returns {number} The major version of the protocol */ getMajor (): number { @@ -46,7 +46,7 @@ export class ProtocolVersion { } /** - * + * * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to * @returns {boolean} If this version semantically smaller than the other version. */ @@ -60,7 +60,7 @@ export class ProtocolVersion { } /** - * + * * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to * @returns {boolean} If this version is semantically larger than the other version. */ @@ -74,7 +74,7 @@ export class ProtocolVersion { } /** - * + * * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to * @returns {boolean} if this version is semantically larger or equal to the other version. */ @@ -83,7 +83,7 @@ export class ProtocolVersion { } /** - * + * * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to * @returns {boolean} if this version is semantically smaller or equal to the other version. */ @@ -92,7 +92,7 @@ export class ProtocolVersion { } /** - * + * * @param {ProtocolVersion | {major: number, minor: number}} other the protocol version to compare to * @returns {boolean} If this version is the equal to the other version. */