neo4j-driver 5.28.2 → 6.0.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.
- package/.eslintignore +1 -1
- package/.v8flags-2-10.2.154.26-node.28.d41d8cd98f00b204e9800998ecf8427e.json +1 -0
- package/README.md +7 -7
- package/examples/node.js +2 -2
- package/jest.browser.config.ts +8 -0
- package/jest.config.ts +201 -0
- package/jest.integration.config.ts +5 -0
- package/lib/browser/neo4j-web.esm.js +3328 -1507
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +3328 -1507
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/docs.js +2 -2
- package/lib/index.js +32 -8
- package/lib/internal/retry-logic-rx.js +1 -1
- package/lib/result-rx.js +2 -2
- package/lib/session-rx.js +0 -40
- package/lib/version.js +1 -1
- package/package.json +28 -15
- package/tsconfig.json +3 -2
- package/types/index.d.ts +24 -3
- package/types/session-rx.d.ts +0 -15
package/lib/docs.js
CHANGED
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
* Configuration is supported for:
|
|
21
21
|
* <ul>
|
|
22
22
|
* <li>queries executed in auto-commit transactions using {@link Session#run} and {@link RxSession#run}</li>
|
|
23
|
-
* <li>transactions started by transaction functions using {@link Session#
|
|
24
|
-
* {@link Session#
|
|
23
|
+
* <li>transactions started by transaction functions using {@link Session#executeRead}, {@link RxSession#executeRead},
|
|
24
|
+
* {@link Session#executeWrite} and {@link RxSession#executeWrite}</li>
|
|
25
25
|
* <li>explicit transactions using {@link Session#beginTransaction} and {@link RxSession#beginTransaction}</li>
|
|
26
26
|
* </ul>
|
|
27
27
|
* @typedef {Object} TransactionConfig
|
package/lib/index.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -39,8 +39,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
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.
|
|
43
|
-
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;
|
|
42
|
+
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;
|
|
43
|
+
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;
|
|
44
|
+
exports.driver = driver;
|
|
45
|
+
exports.hasReachableServer = hasReachableServer;
|
|
44
46
|
/**
|
|
45
47
|
* Copyright (c) "Neo4j"
|
|
46
48
|
* Neo4j Sweden AB [https://neo4j.com]
|
|
@@ -64,6 +66,7 @@ var neo4j_driver_core_1 = require("neo4j-driver-core");
|
|
|
64
66
|
Object.defineProperty(exports, "authTokenManagers", { enumerable: true, get: function () { return neo4j_driver_core_1.authTokenManagers; } });
|
|
65
67
|
Object.defineProperty(exports, "Neo4jError", { enumerable: true, get: function () { return neo4j_driver_core_1.Neo4jError; } });
|
|
66
68
|
Object.defineProperty(exports, "isRetriableError", { enumerable: true, get: function () { return neo4j_driver_core_1.isRetriableError; } });
|
|
69
|
+
Object.defineProperty(exports, "isRetryableError", { enumerable: true, get: function () { return neo4j_driver_core_1.isRetryableError; } });
|
|
67
70
|
Object.defineProperty(exports, "error", { enumerable: true, get: function () { return neo4j_driver_core_1.error; } });
|
|
68
71
|
Object.defineProperty(exports, "Integer", { enumerable: true, get: function () { return neo4j_driver_core_1.Integer; } });
|
|
69
72
|
Object.defineProperty(exports, "int", { enumerable: true, get: function () { return neo4j_driver_core_1.int; } });
|
|
@@ -84,6 +87,7 @@ Object.defineProperty(exports, "isPathSegment", { enumerable: true, get: functio
|
|
|
84
87
|
Object.defineProperty(exports, "isRelationship", { enumerable: true, get: function () { return neo4j_driver_core_1.isRelationship; } });
|
|
85
88
|
Object.defineProperty(exports, "isTime", { enumerable: true, get: function () { return neo4j_driver_core_1.isTime; } });
|
|
86
89
|
Object.defineProperty(exports, "isUnboundRelationship", { enumerable: true, get: function () { return neo4j_driver_core_1.isUnboundRelationship; } });
|
|
90
|
+
Object.defineProperty(exports, "isUnsupportedType", { enumerable: true, get: function () { return neo4j_driver_core_1.isUnsupportedType; } });
|
|
87
91
|
Object.defineProperty(exports, "LocalDateTime", { enumerable: true, get: function () { return neo4j_driver_core_1.LocalDateTime; } });
|
|
88
92
|
Object.defineProperty(exports, "LocalTime", { enumerable: true, get: function () { return neo4j_driver_core_1.LocalTime; } });
|
|
89
93
|
Object.defineProperty(exports, "Time", { enumerable: true, get: function () { return neo4j_driver_core_1.Time; } });
|
|
@@ -116,6 +120,16 @@ Object.defineProperty(exports, "notificationFilterDisabledCategory", { enumerabl
|
|
|
116
120
|
Object.defineProperty(exports, "notificationFilterDisabledClassification", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterDisabledClassification; } });
|
|
117
121
|
Object.defineProperty(exports, "notificationFilterMinimumSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterMinimumSeverityLevel; } });
|
|
118
122
|
Object.defineProperty(exports, "clientCertificateProviders", { enumerable: true, get: function () { return neo4j_driver_core_1.clientCertificateProviders; } });
|
|
123
|
+
Object.defineProperty(exports, "isVector", { enumerable: true, get: function () { return neo4j_driver_core_1.isVector; } });
|
|
124
|
+
Object.defineProperty(exports, "Vector", { enumerable: true, get: function () { return neo4j_driver_core_1.Vector; } });
|
|
125
|
+
Object.defineProperty(exports, "VectorType", { enumerable: true, get: function () { return neo4j_driver_core_1.VectorType; } });
|
|
126
|
+
Object.defineProperty(exports, "vector", { enumerable: true, get: function () { return neo4j_driver_core_1.vector; } });
|
|
127
|
+
Object.defineProperty(exports, "Rule", { enumerable: true, get: function () { return neo4j_driver_core_1.Rule; } });
|
|
128
|
+
Object.defineProperty(exports, "Rules", { enumerable: true, get: function () { return neo4j_driver_core_1.Rules; } });
|
|
129
|
+
Object.defineProperty(exports, "rule", { enumerable: true, get: function () { return neo4j_driver_core_1.rule; } });
|
|
130
|
+
Object.defineProperty(exports, "mappingDecorators", { enumerable: true, get: function () { return neo4j_driver_core_1.mappingDecorators; } });
|
|
131
|
+
Object.defineProperty(exports, "RecordObjectMapping", { enumerable: true, get: function () { return neo4j_driver_core_1.RecordObjectMapping; } });
|
|
132
|
+
Object.defineProperty(exports, "StandardCase", { enumerable: true, get: function () { return neo4j_driver_core_1.StandardCase; } });
|
|
119
133
|
var neo4j_driver_bolt_connection_1 = require("neo4j-driver-bolt-connection");
|
|
120
134
|
var session_rx_1 = __importDefault(require("./session-rx"));
|
|
121
135
|
exports.RxSession = session_rx_1.default;
|
|
@@ -244,7 +258,6 @@ function driver(url, authToken, config) {
|
|
|
244
258
|
}
|
|
245
259
|
}
|
|
246
260
|
}
|
|
247
|
-
exports.driver = driver;
|
|
248
261
|
/**
|
|
249
262
|
* Verifies if the driver can reach a server at the given url.
|
|
250
263
|
*
|
|
@@ -278,7 +291,6 @@ function hasReachableServer(url, config) {
|
|
|
278
291
|
});
|
|
279
292
|
});
|
|
280
293
|
}
|
|
281
|
-
exports.hasReachableServer = hasReachableServer;
|
|
282
294
|
/**
|
|
283
295
|
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
284
296
|
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|
|
@@ -315,7 +327,11 @@ var types = {
|
|
|
315
327
|
LocalDateTime: neo4j_driver_core_1.LocalDateTime,
|
|
316
328
|
LocalTime: neo4j_driver_core_1.LocalTime,
|
|
317
329
|
Time: neo4j_driver_core_1.Time,
|
|
318
|
-
Integer: neo4j_driver_core_1.Integer
|
|
330
|
+
Integer: neo4j_driver_core_1.Integer,
|
|
331
|
+
Vector: neo4j_driver_core_1.Vector,
|
|
332
|
+
VectorType: neo4j_driver_core_1.VectorType,
|
|
333
|
+
Rule: neo4j_driver_core_1.Rule,
|
|
334
|
+
Rules: neo4j_driver_core_1.Rules
|
|
319
335
|
};
|
|
320
336
|
exports.types = types;
|
|
321
337
|
/**
|
|
@@ -386,9 +402,11 @@ var forExport = {
|
|
|
386
402
|
isPathSegment: neo4j_driver_core_1.isPathSegment,
|
|
387
403
|
isRelationship: neo4j_driver_core_1.isRelationship,
|
|
388
404
|
isUnboundRelationship: neo4j_driver_core_1.isUnboundRelationship,
|
|
405
|
+
isUnsupportedType: neo4j_driver_core_1.isUnsupportedType,
|
|
389
406
|
integer: integer,
|
|
390
407
|
Neo4jError: neo4j_driver_core_1.Neo4jError,
|
|
391
408
|
isRetriableError: neo4j_driver_core_1.isRetriableError,
|
|
409
|
+
isRetryableError: neo4j_driver_core_1.isRetryableError,
|
|
392
410
|
auth: neo4j_driver_core_1.auth,
|
|
393
411
|
logging: logging,
|
|
394
412
|
types: types,
|
|
@@ -435,6 +453,12 @@ var forExport = {
|
|
|
435
453
|
notificationSeverityLevel: neo4j_driver_core_1.notificationSeverityLevel,
|
|
436
454
|
notificationFilterDisabledCategory: neo4j_driver_core_1.notificationFilterDisabledCategory,
|
|
437
455
|
notificationFilterMinimumSeverityLevel: neo4j_driver_core_1.notificationFilterMinimumSeverityLevel,
|
|
438
|
-
clientCertificateProviders: neo4j_driver_core_1.clientCertificateProviders
|
|
456
|
+
clientCertificateProviders: neo4j_driver_core_1.clientCertificateProviders,
|
|
457
|
+
isVector: neo4j_driver_core_1.isVector,
|
|
458
|
+
vector: neo4j_driver_core_1.vector,
|
|
459
|
+
rule: neo4j_driver_core_1.rule,
|
|
460
|
+
mappingDecorators: neo4j_driver_core_1.mappingDecorators,
|
|
461
|
+
RecordObjectMapping: neo4j_driver_core_1.RecordObjectMapping,
|
|
462
|
+
StandardCase: neo4j_driver_core_1.StandardCase
|
|
439
463
|
};
|
|
440
464
|
exports.default = forExport;
|
|
@@ -54,7 +54,7 @@ var RxRetryLogic = /** @class */ (function () {
|
|
|
54
54
|
var retryCount = 1;
|
|
55
55
|
var delayDuration = _this._initialDelay;
|
|
56
56
|
return failedWork.pipe((0, operators_1.mergeMap)(function (err) {
|
|
57
|
-
if (!(0, neo4j_driver_core_1.
|
|
57
|
+
if (!(0, neo4j_driver_core_1.isRetryableError)(err)) {
|
|
58
58
|
return (0, rxjs_1.throwError)(function () { return err; });
|
|
59
59
|
}
|
|
60
60
|
handledExceptions.push(err);
|
package/lib/result-rx.js
CHANGED
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
package/lib/session-rx.js
CHANGED
|
@@ -78,30 +78,6 @@ var RxSession = /** @class */ (function () {
|
|
|
78
78
|
RxSession.prototype.beginTransaction = function (transactionConfig) {
|
|
79
79
|
return this._beginTransaction(this._session._mode, transactionConfig, { api: TELEMETRY_APIS.UNMANAGED_TRANSACTION });
|
|
80
80
|
};
|
|
81
|
-
/**
|
|
82
|
-
* Executes the provided unit of work in a {@link READ} reactive transaction which is created with the provided
|
|
83
|
-
* transaction configuration.
|
|
84
|
-
* @public
|
|
85
|
-
* @deprecated This method will be removed in version 6.0. Please, use {@link RxSession#executeRead} instead.
|
|
86
|
-
* @param {function(txc: RxTransaction): Observable} work - A unit of work to be executed.
|
|
87
|
-
* @param {TransactionConfig} transactionConfig - Configuration for the enclosing transaction created by the driver.
|
|
88
|
-
* @returns {Observable} - A reactive stream returned by the unit of work.
|
|
89
|
-
*/
|
|
90
|
-
RxSession.prototype.readTransaction = function (work, transactionConfig) {
|
|
91
|
-
return this._runTransaction(ACCESS_MODE_READ, work, transactionConfig);
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Executes the provided unit of work in a {@link WRITE} reactive transaction which is created with the provided
|
|
95
|
-
* transaction configuration.
|
|
96
|
-
* @public
|
|
97
|
-
* @deprecated This method will be removed in version 6.0. Please, use {@link RxSession#executeWrite} instead.
|
|
98
|
-
* @param {function(txc: RxTransaction): Observable} work - A unit of work to be executed.
|
|
99
|
-
* @param {TransactionConfig} transactionConfig - Configuration for the enclosing transaction created by the driver.
|
|
100
|
-
* @returns {Observable} - A reactive stream returned by the unit of work.
|
|
101
|
-
*/
|
|
102
|
-
RxSession.prototype.writeTransaction = function (work, transactionConfig) {
|
|
103
|
-
return this._runTransaction(ACCESS_MODE_WRITE, work, transactionConfig);
|
|
104
|
-
};
|
|
105
81
|
/**
|
|
106
82
|
* Executes the provided unit of work in a {@link READ} reactive transaction which is created with the provided
|
|
107
83
|
* transaction configuration.
|
|
@@ -156,22 +132,6 @@ var RxSession = /** @class */ (function () {
|
|
|
156
132
|
RxSession.prototype[Symbol.asyncDispose] = function () {
|
|
157
133
|
return this.close();
|
|
158
134
|
};
|
|
159
|
-
/**
|
|
160
|
-
* Returns the bookmarks received following the last successfully completed query, which is executed
|
|
161
|
-
* either in an {@link RxTransaction} obtained from this session instance or directly through one of
|
|
162
|
-
* the {@link RxSession#run} method of this session instance.
|
|
163
|
-
*
|
|
164
|
-
* If no bookmarks were received or if this transaction was rolled back, the bookmarks value will not be
|
|
165
|
-
* changed.
|
|
166
|
-
*
|
|
167
|
-
* @deprecated This method will be removed in 6.0 version. Please, use {@link RxSession#lastBookmarks} instead.
|
|
168
|
-
*
|
|
169
|
-
* @public
|
|
170
|
-
* @returns {string[]}
|
|
171
|
-
*/
|
|
172
|
-
RxSession.prototype.lastBookmark = function () {
|
|
173
|
-
return this.lastBookmarks();
|
|
174
|
-
};
|
|
175
135
|
/**
|
|
176
136
|
* Returns the bookmarks received following the last successfully completed query, which is executed
|
|
177
137
|
* either in an {@link RxTransaction} obtained from this session instance or directly through one of
|
package/lib/version.js
CHANGED
|
@@ -24,4 +24,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
24
24
|
// This is set up this way to keep the version in the code in
|
|
25
25
|
// sync with the npm package version, and to allow the build
|
|
26
26
|
// system to control version names at packaging time.
|
|
27
|
-
exports.default = '
|
|
27
|
+
exports.default = '6.0.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo4j-driver",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "The official Neo4j driver for Javascript",
|
|
5
5
|
"author": "Neo4j",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -8,11 +8,21 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git://github.com/neo4j/neo4j-javascript-driver.git"
|
|
10
10
|
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=18.0.0"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"ts-standard": {
|
|
16
|
+
"ignore": [
|
|
17
|
+
"test/*.ts",
|
|
18
|
+
"*.ts"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
11
21
|
"scripts": {
|
|
12
22
|
"lint": "eslint --fix --ext .js ./",
|
|
13
23
|
"test": "gulp test",
|
|
14
24
|
"test::unit": "gulp test-nodejs-unit && gulp run-ts-declaration-tests",
|
|
15
|
-
"test::browser": "
|
|
25
|
+
"test::browser": "jest -c jest.browser.config.ts",
|
|
16
26
|
"test::integration": "gulp test-nodejs-integration",
|
|
17
27
|
"test::stress": "gulp run-stress-tests-without-jasmine",
|
|
18
28
|
"build": "gulp all",
|
|
@@ -36,11 +46,17 @@
|
|
|
36
46
|
"devDependencies": {
|
|
37
47
|
"@babel/core": "^7.20.7",
|
|
38
48
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
49
|
+
"@babel/preset-env": "^7.20.7",
|
|
39
50
|
"@babel/register": "^7.18.9",
|
|
51
|
+
"@babel/runtime": "^7.20.7",
|
|
40
52
|
"@rollup/plugin-commonjs": "^21.1.0",
|
|
41
53
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
42
54
|
"@types/jasmine": "^4.3.1",
|
|
55
|
+
"@types/jest": "^29.5.10",
|
|
56
|
+
"@types/node": "^24.3.0",
|
|
57
|
+
"@types/vinyl": "^2.0.12",
|
|
43
58
|
"async": "^3.2.5",
|
|
59
|
+
"browser-resolve": "^2.0.0",
|
|
44
60
|
"browserify-sign": "^4.2.2",
|
|
45
61
|
"esdoc": "^1.1.0",
|
|
46
62
|
"esdoc-importpath-plugin": "^1.0.2",
|
|
@@ -58,15 +74,9 @@
|
|
|
58
74
|
"gulp-typescript": "^5.0.1",
|
|
59
75
|
"gulp-uglify": "^3.0.2",
|
|
60
76
|
"gulp-watch": "^5.0.1",
|
|
77
|
+
"isomorphic-ws": "^4.0.1",
|
|
61
78
|
"jasmine-spec-reporter": "^7.0.0",
|
|
62
|
-
"
|
|
63
|
-
"karma-chrome-launcher": "^3.2.0",
|
|
64
|
-
"karma-firefox-launcher": "^2.1.2",
|
|
65
|
-
"karma-jasmine": "^5.1.0",
|
|
66
|
-
"karma-source-map-support": "^1.4.0",
|
|
67
|
-
"karma-spec-reporter": "^0.0.36",
|
|
68
|
-
"karma-typescript": "^5.5.4",
|
|
69
|
-
"karma-typescript-es6-transform": "^5.5.4",
|
|
79
|
+
"jest": "^29.7.0",
|
|
70
80
|
"lolex": "^6.0.0",
|
|
71
81
|
"minimist": "^1.2.8",
|
|
72
82
|
"rollup": "^2.77.4-1",
|
|
@@ -75,14 +85,17 @@
|
|
|
75
85
|
"source-map": "0.7.4",
|
|
76
86
|
"testcontainers": "^8.16.0",
|
|
77
87
|
"tmp": "0.2.1",
|
|
78
|
-
"
|
|
88
|
+
"ts-jest": "^29.1.1",
|
|
89
|
+
"ts-node": "^10.9.1",
|
|
90
|
+
"typescript": "^5.9.2",
|
|
79
91
|
"vinyl-buffer": "^1.0.1",
|
|
80
|
-
"webpack": "^5.89.0"
|
|
92
|
+
"webpack": "^5.89.0",
|
|
93
|
+
"ws": "^8.14.2"
|
|
81
94
|
},
|
|
82
95
|
"dependencies": {
|
|
83
|
-
"neo4j-driver-bolt-connection": "
|
|
84
|
-
"neo4j-driver-core": "
|
|
96
|
+
"neo4j-driver-bolt-connection": "6.0.0",
|
|
97
|
+
"neo4j-driver-core": "6.0.0",
|
|
85
98
|
"rxjs": "^7.8.2"
|
|
86
99
|
},
|
|
87
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "e1e81af9a46805c9f279f139d5575b19ba42c83c"
|
|
88
101
|
}
|
package/tsconfig.json
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"noImplicitReturns": true,
|
|
7
7
|
"strictNullChecks": true,
|
|
8
8
|
"moduleResolution": "node",
|
|
9
|
-
"
|
|
9
|
+
"esModuleInterop": true,
|
|
10
|
+
"allowJs": true
|
|
10
11
|
},
|
|
11
|
-
"include": ["types/**/*.ts", "test/types/**/*.ts"]
|
|
12
|
+
"include": ["types/**/*.ts", "test/types/**/*.ts", "*.ts"]
|
|
12
13
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
AuthTokenManagers,
|
|
21
21
|
Neo4jError,
|
|
22
22
|
isRetriableError,
|
|
23
|
+
isRetryableError,
|
|
23
24
|
error,
|
|
24
25
|
Integer,
|
|
25
26
|
inSafeRange,
|
|
@@ -43,6 +44,7 @@ import {
|
|
|
43
44
|
isPathSegment,
|
|
44
45
|
isRelationship,
|
|
45
46
|
isUnboundRelationship,
|
|
47
|
+
isUnsupportedType,
|
|
46
48
|
LocalDateTime,
|
|
47
49
|
LocalTime,
|
|
48
50
|
Time,
|
|
@@ -97,7 +99,14 @@ import {
|
|
|
97
99
|
ClientCertificateProviders,
|
|
98
100
|
RotatingClientCertificateProvider,
|
|
99
101
|
clientCertificateProviders,
|
|
100
|
-
|
|
102
|
+
Rule,
|
|
103
|
+
Rules,
|
|
104
|
+
rule,
|
|
105
|
+
RecordObjectMapping,
|
|
106
|
+
StandardCase,
|
|
107
|
+
MappedQueryResult,
|
|
108
|
+
types as coreTypes,
|
|
109
|
+
isVector
|
|
101
110
|
} from 'neo4j-driver-core'
|
|
102
111
|
import {
|
|
103
112
|
AuthToken,
|
|
@@ -242,6 +251,7 @@ declare const forExport: {
|
|
|
242
251
|
SessionMode: SessionMode
|
|
243
252
|
Neo4jError: typeof Neo4jError
|
|
244
253
|
isRetriableError: typeof isRetriableError
|
|
254
|
+
isRetryableError: typeof isRetryableError
|
|
245
255
|
Node: typeof Node
|
|
246
256
|
Relationship: typeof Relationship
|
|
247
257
|
UnboundRelationship: typeof UnboundRelationship
|
|
@@ -287,6 +297,7 @@ declare const forExport: {
|
|
|
287
297
|
isPathSegment: typeof isPathSegment
|
|
288
298
|
isRelationship: typeof isRelationship
|
|
289
299
|
isUnboundRelationship: typeof isUnboundRelationship
|
|
300
|
+
isUnsupportedType: typeof isUnsupportedType
|
|
290
301
|
bookmarkManager: typeof bookmarkManager
|
|
291
302
|
resultTransformers: typeof resultTransformers
|
|
292
303
|
notificationCategory: typeof notificationCategory
|
|
@@ -297,6 +308,7 @@ declare const forExport: {
|
|
|
297
308
|
notificationFilterMinimumSeverityLevel: typeof notificationFilterMinimumSeverityLevel
|
|
298
309
|
logging: typeof logging
|
|
299
310
|
clientCertificateProviders: typeof clientCertificateProviders
|
|
311
|
+
isVector: typeof isVector
|
|
300
312
|
}
|
|
301
313
|
|
|
302
314
|
export {
|
|
@@ -322,6 +334,7 @@ export {
|
|
|
322
334
|
SessionMode,
|
|
323
335
|
Neo4jError,
|
|
324
336
|
isRetriableError,
|
|
337
|
+
isRetryableError,
|
|
325
338
|
Node,
|
|
326
339
|
Relationship,
|
|
327
340
|
UnboundRelationship,
|
|
@@ -367,6 +380,7 @@ export {
|
|
|
367
380
|
isPathSegment,
|
|
368
381
|
isRelationship,
|
|
369
382
|
isUnboundRelationship,
|
|
383
|
+
isUnsupportedType,
|
|
370
384
|
bookmarkManager,
|
|
371
385
|
resultTransformers,
|
|
372
386
|
notificationCategory,
|
|
@@ -376,7 +390,8 @@ export {
|
|
|
376
390
|
notificationFilterDisabledClassification,
|
|
377
391
|
notificationFilterMinimumSeverityLevel,
|
|
378
392
|
logging,
|
|
379
|
-
clientCertificateProviders
|
|
393
|
+
clientCertificateProviders,
|
|
394
|
+
isVector
|
|
380
395
|
}
|
|
381
396
|
|
|
382
397
|
export type {
|
|
@@ -400,7 +415,13 @@ export type {
|
|
|
400
415
|
ClientCertificate,
|
|
401
416
|
ClientCertificateProvider,
|
|
402
417
|
ClientCertificateProviders,
|
|
403
|
-
RotatingClientCertificateProvider
|
|
418
|
+
RotatingClientCertificateProvider,
|
|
419
|
+
Rule,
|
|
420
|
+
Rules,
|
|
421
|
+
rule,
|
|
422
|
+
RecordObjectMapping,
|
|
423
|
+
StandardCase,
|
|
424
|
+
MappedQueryResult
|
|
404
425
|
}
|
|
405
426
|
|
|
406
427
|
export default forExport
|
package/types/session-rx.d.ts
CHANGED
|
@@ -33,21 +33,6 @@ declare class RxSession {
|
|
|
33
33
|
|
|
34
34
|
lastBookmarks: () => string[]
|
|
35
35
|
lastBookmark: () => string[]
|
|
36
|
-
/**
|
|
37
|
-
* @deprecated This method will be removed in version 6.0. Please, use {@link RxSession#executeRead} instead.
|
|
38
|
-
*/
|
|
39
|
-
readTransaction: <T>(
|
|
40
|
-
work: RxTransactionWork<T>,
|
|
41
|
-
config?: TransactionConfig
|
|
42
|
-
) => Observable<T>
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated This method will be removed in version 6.0. Please, use {@link RxSession#executeWrite} instead.
|
|
46
|
-
*/
|
|
47
|
-
writeTransaction: <T>(
|
|
48
|
-
work: RxTransactionWork<T>,
|
|
49
|
-
config?: TransactionConfig
|
|
50
|
-
) => Observable<T>
|
|
51
36
|
|
|
52
37
|
executeRead: <T>(
|
|
53
38
|
work: RxTransactionWork<T>,
|