neo4j-driver 5.6.0 → 5.7.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/examples/neo4j.html +1 -1
- package/examples/node.js +3 -3
- package/lib/browser/neo4j-web.esm.js +1808 -825
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +1808 -825
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/docs.js +4 -3
- package/lib/driver.js +3 -2
- package/lib/index.js +15 -3
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/types/index.d.ts +25 -3
package/lib/docs.js
CHANGED
|
@@ -30,7 +30,8 @@
|
|
|
30
30
|
* @property {number} timeout - the transaction timeout in **milliseconds**. Transactions that execute longer than the configured timeout will
|
|
31
31
|
* be terminated by the database. This functionality allows to limit query/transaction execution time. Specified timeout overrides the default timeout
|
|
32
32
|
* configured in the database using `dbms.transaction.timeout` setting. Value should not represent a duration of zero or negative duration.
|
|
33
|
-
* @property {Object} metadata - the transaction metadata. Specified metadata will be attached to the executing transaction and visible in the output
|
|
34
|
-
* `
|
|
35
|
-
*
|
|
33
|
+
* @property {Object} metadata - the transaction metadata. Specified metadata will be attached to the executing transaction and visible in the output
|
|
34
|
+
* of `SHOW TRANSACTIONS YIELD *`. It will also get logged to the `query.log` file. This functionality makes it easier to tag transactions and is
|
|
35
|
+
* equivalent to the `dbms.setTXMetaData` procedure, see https://neo4j.com/docs/cypher-manual/current/clauses/transaction-clauses/#query-listing-transactions
|
|
36
|
+
* and https://neo4j.com/docs/operations-manual/current/reference/procedures/ for reference.
|
|
36
37
|
*/
|
package/lib/driver.js
CHANGED
|
@@ -74,7 +74,7 @@ var Driver = /** @class */ (function (_super) {
|
|
|
74
74
|
* @returns {RxSession} new reactive session.
|
|
75
75
|
*/
|
|
76
76
|
Driver.prototype.rxSession = function (_a) {
|
|
77
|
-
var _b = _a === void 0 ? {} : _a, _c = _b.defaultAccessMode, defaultAccessMode = _c === void 0 ? WRITE : _c, bookmarks = _b.bookmarks, _d = _b.database, database = _d === void 0 ? '' : _d, fetchSize = _b.fetchSize, impersonatedUser = _b.impersonatedUser, bookmarkManager = _b.bookmarkManager;
|
|
77
|
+
var _b = _a === void 0 ? {} : _a, _c = _b.defaultAccessMode, defaultAccessMode = _c === void 0 ? WRITE : _c, bookmarks = _b.bookmarks, _d = _b.database, database = _d === void 0 ? '' : _d, fetchSize = _b.fetchSize, impersonatedUser = _b.impersonatedUser, bookmarkManager = _b.bookmarkManager, notificationFilter = _b.notificationFilter;
|
|
78
78
|
return new session_rx_1.default({
|
|
79
79
|
session: this._newSession({
|
|
80
80
|
defaultAccessMode: defaultAccessMode,
|
|
@@ -83,7 +83,8 @@ var Driver = /** @class */ (function (_super) {
|
|
|
83
83
|
impersonatedUser: impersonatedUser,
|
|
84
84
|
reactive: false,
|
|
85
85
|
fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize),
|
|
86
|
-
bookmarkManager: bookmarkManager
|
|
86
|
+
bookmarkManager: bookmarkManager,
|
|
87
|
+
notificationFilter: notificationFilter
|
|
87
88
|
}),
|
|
88
89
|
config: this._config
|
|
89
90
|
});
|
package/lib/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
42
|
exports.PathSegment = exports.Path = exports.UnboundRelationship = exports.Relationship = exports.Node = exports.Record = exports.ServerInfo = 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.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 = void 0;
|
|
43
|
-
exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = void 0;
|
|
43
|
+
exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = void 0;
|
|
44
44
|
/**
|
|
45
45
|
* Copyright (c) "Neo4j"
|
|
46
46
|
* Neo4j Sweden AB [http://neo4j.com]
|
|
@@ -109,6 +109,10 @@ Object.defineProperty(exports, "ManagedTransaction", { enumerable: true, get: fu
|
|
|
109
109
|
Object.defineProperty(exports, "bookmarkManager", { enumerable: true, get: function () { return neo4j_driver_core_1.bookmarkManager; } });
|
|
110
110
|
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return neo4j_driver_core_1.routing; } });
|
|
111
111
|
Object.defineProperty(exports, "resultTransformers", { enumerable: true, get: function () { return neo4j_driver_core_1.resultTransformers; } });
|
|
112
|
+
Object.defineProperty(exports, "notificationCategory", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationCategory; } });
|
|
113
|
+
Object.defineProperty(exports, "notificationSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationSeverityLevel; } });
|
|
114
|
+
Object.defineProperty(exports, "notificationFilterDisabledCategory", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterDisabledCategory; } });
|
|
115
|
+
Object.defineProperty(exports, "notificationFilterMinimumSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterMinimumSeverityLevel; } });
|
|
112
116
|
var neo4j_driver_bolt_connection_1 = require("neo4j-driver-bolt-connection");
|
|
113
117
|
var session_rx_1 = __importDefault(require("./session-rx"));
|
|
114
118
|
exports.RxSession = session_rx_1.default;
|
|
@@ -240,7 +244,11 @@ var _a = neo4j_driver_core_1.internal.util, ENCRYPTION_ON = _a.ENCRYPTION_ON, as
|
|
|
240
244
|
* return ['127.0.0.1:8888', 'fallback.db.com:7687'];
|
|
241
245
|
* },
|
|
242
246
|
*
|
|
243
|
-
*
|
|
247
|
+
* // Configure filter for Notification objects returned in ResultSummary#notifications.
|
|
248
|
+
* // See SessionConfig#notificationFilter for usage instructions.
|
|
249
|
+
* notificationFilter: undefined,
|
|
250
|
+
*
|
|
251
|
+
* // Optionally override the default user agent name.
|
|
244
252
|
* userAgent: USER_AGENT
|
|
245
253
|
* }
|
|
246
254
|
*
|
|
@@ -522,6 +530,10 @@ var forExport = {
|
|
|
522
530
|
LocalDateTime: neo4j_driver_core_1.LocalDateTime,
|
|
523
531
|
DateTime: neo4j_driver_core_1.DateTime,
|
|
524
532
|
bookmarkManager: neo4j_driver_core_1.bookmarkManager,
|
|
525
|
-
resultTransformers: neo4j_driver_core_1.resultTransformers
|
|
533
|
+
resultTransformers: neo4j_driver_core_1.resultTransformers,
|
|
534
|
+
notificationCategory: neo4j_driver_core_1.notificationCategory,
|
|
535
|
+
notificationSeverityLevel: neo4j_driver_core_1.notificationSeverityLevel,
|
|
536
|
+
notificationFilterDisabledCategory: neo4j_driver_core_1.notificationFilterDisabledCategory,
|
|
537
|
+
notificationFilterMinimumSeverityLevel: neo4j_driver_core_1.notificationFilterMinimumSeverityLevel
|
|
526
538
|
};
|
|
527
539
|
exports.default = forExport;
|
package/lib/version.js
CHANGED
|
@@ -26,4 +26,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
// This is set up this way to keep the version in the code in
|
|
27
27
|
// sync with the npm package version, and to allow the build
|
|
28
28
|
// system to control version names at packaging time.
|
|
29
|
-
exports.default = '5.
|
|
29
|
+
exports.default = '5.7.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo4j-driver",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "The official Neo4j driver for Javascript",
|
|
5
5
|
"author": "Neo4j",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"rollup-plugin-polyfill-node": "^0.11.0",
|
|
75
75
|
"semver": "^7.3.8",
|
|
76
76
|
"tmp": "0.2.1",
|
|
77
|
-
"typescript": "^4.9.
|
|
77
|
+
"typescript": "^4.9.5",
|
|
78
78
|
"vinyl-buffer": "^1.0.1",
|
|
79
79
|
"webpack": "^5.75.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"neo4j-driver-bolt-connection": "^5.
|
|
83
|
-
"neo4j-driver-core": "^5.
|
|
82
|
+
"neo4j-driver-bolt-connection": "^5.7.0",
|
|
83
|
+
"neo4j-driver-core": "^5.7.0",
|
|
84
84
|
"rxjs": "^7.8.0"
|
|
85
85
|
},
|
|
86
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "dd93e78d7b189c59765fe6bc0104c5d4a5fbd15d"
|
|
87
87
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -74,7 +74,16 @@ import {
|
|
|
74
74
|
RoutingControl,
|
|
75
75
|
routing,
|
|
76
76
|
resultTransformers,
|
|
77
|
-
ResultTransformer
|
|
77
|
+
ResultTransformer,
|
|
78
|
+
notificationCategory,
|
|
79
|
+
notificationSeverityLevel,
|
|
80
|
+
NotificationCategory,
|
|
81
|
+
NotificationSeverityLevel,
|
|
82
|
+
NotificationFilter,
|
|
83
|
+
NotificationFilterDisabledCategory,
|
|
84
|
+
NotificationFilterMinimumSeverityLevel,
|
|
85
|
+
notificationFilterDisabledCategory,
|
|
86
|
+
notificationFilterMinimumSeverityLevel
|
|
78
87
|
} from 'neo4j-driver-core'
|
|
79
88
|
import {
|
|
80
89
|
AuthToken,
|
|
@@ -252,6 +261,10 @@ declare const forExport: {
|
|
|
252
261
|
isUnboundRelationship: typeof isUnboundRelationship
|
|
253
262
|
bookmarkManager: typeof bookmarkManager
|
|
254
263
|
resultTransformers: typeof resultTransformers
|
|
264
|
+
notificationCategory: typeof notificationCategory
|
|
265
|
+
notificationSeverityLevel: typeof notificationSeverityLevel
|
|
266
|
+
notificationFilterDisabledCategory: typeof notificationFilterDisabledCategory
|
|
267
|
+
notificationFilterMinimumSeverityLevel: typeof notificationFilterMinimumSeverityLevel
|
|
255
268
|
}
|
|
256
269
|
|
|
257
270
|
export {
|
|
@@ -321,7 +334,11 @@ export {
|
|
|
321
334
|
isRelationship,
|
|
322
335
|
isUnboundRelationship,
|
|
323
336
|
bookmarkManager,
|
|
324
|
-
resultTransformers
|
|
337
|
+
resultTransformers,
|
|
338
|
+
notificationCategory,
|
|
339
|
+
notificationSeverityLevel,
|
|
340
|
+
notificationFilterDisabledCategory,
|
|
341
|
+
notificationFilterMinimumSeverityLevel
|
|
325
342
|
}
|
|
326
343
|
|
|
327
344
|
export type {
|
|
@@ -330,7 +347,12 @@ export type {
|
|
|
330
347
|
SessionConfig,
|
|
331
348
|
QueryConfig,
|
|
332
349
|
RoutingControl,
|
|
333
|
-
ResultTransformer
|
|
350
|
+
ResultTransformer,
|
|
351
|
+
NotificationCategory,
|
|
352
|
+
NotificationSeverityLevel,
|
|
353
|
+
NotificationFilter,
|
|
354
|
+
NotificationFilterDisabledCategory,
|
|
355
|
+
NotificationFilterMinimumSeverityLevel
|
|
334
356
|
}
|
|
335
357
|
|
|
336
358
|
export default forExport
|