neo4j-driver 5.9.2 → 5.11.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/lib/browser/neo4j-web.esm.js +355 -343
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +355 -343
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/driver.js +4 -2
- package/lib/session-rx.js +3 -2
- package/lib/version.js +1 -1
- package/package.json +9 -9
- package/types/index.d.ts +19 -2
package/lib/driver.js
CHANGED
|
@@ -85,9 +85,11 @@ var Driver = /** @class */ (function (_super) {
|
|
|
85
85
|
reactive: false,
|
|
86
86
|
fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize),
|
|
87
87
|
bookmarkManager: bookmarkManager,
|
|
88
|
-
notificationFilter: notificationFilter
|
|
88
|
+
notificationFilter: notificationFilter,
|
|
89
|
+
log: this._log
|
|
89
90
|
}),
|
|
90
|
-
config: this._config
|
|
91
|
+
config: this._config,
|
|
92
|
+
log: this._log
|
|
91
93
|
});
|
|
92
94
|
};
|
|
93
95
|
return Driver;
|
package/lib/session-rx.js
CHANGED
|
@@ -42,9 +42,10 @@ var RxSession = /** @class */ (function () {
|
|
|
42
42
|
* @param {Session} param.session - The underlying session instance to relay requests
|
|
43
43
|
*/
|
|
44
44
|
function RxSession(_a) {
|
|
45
|
-
var _b = _a === void 0 ? {} : _a, session = _b.session, config = _b.config;
|
|
45
|
+
var _b = _a === void 0 ? {} : _a, session = _b.session, config = _b.config, log = _b.log;
|
|
46
46
|
this._session = session;
|
|
47
47
|
this._retryLogic = _createRetryLogic(config);
|
|
48
|
+
this._log = log;
|
|
48
49
|
}
|
|
49
50
|
/**
|
|
50
51
|
* Creates a reactive result that will execute the query with the provided parameters and the provided
|
|
@@ -191,7 +192,7 @@ var RxSession = /** @class */ (function () {
|
|
|
191
192
|
var _this = this;
|
|
192
193
|
var txConfig = TxConfig.empty();
|
|
193
194
|
if (transactionConfig) {
|
|
194
|
-
txConfig = new TxConfig(transactionConfig);
|
|
195
|
+
txConfig = new TxConfig(transactionConfig, this._log);
|
|
195
196
|
}
|
|
196
197
|
return new rxjs_1.Observable(function (observer) {
|
|
197
198
|
try {
|
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.11.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo4j-driver",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.11.0",
|
|
4
4
|
"description": "The official Neo4j driver for Javascript",
|
|
5
5
|
"author": "Neo4j",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"esdoc-importpath-plugin": "^1.0.2",
|
|
46
46
|
"esdoc-standard-plugin": "^1.0.0",
|
|
47
47
|
"fancy-log": "^2.0.0",
|
|
48
|
-
"fs-extra": "^
|
|
48
|
+
"fs-extra": "^11.1.1",
|
|
49
49
|
"gulp": "^4.0.2",
|
|
50
50
|
"gulp-batch": "^1.0.5",
|
|
51
51
|
"gulp-decompress": "^3.0.0",
|
|
@@ -69,20 +69,20 @@
|
|
|
69
69
|
"karma-typescript": "^5.5.3",
|
|
70
70
|
"karma-typescript-es6-transform": "^5.5.3",
|
|
71
71
|
"lolex": "^6.0.0",
|
|
72
|
-
"minimist": "^1.2.
|
|
72
|
+
"minimist": "^1.2.8",
|
|
73
73
|
"rollup": "^2.77.4-1",
|
|
74
74
|
"rollup-plugin-polyfill-node": "^0.11.0",
|
|
75
|
-
"semver": "^7.3
|
|
75
|
+
"semver": "^7.5.3",
|
|
76
76
|
"source-map": "0.7.4",
|
|
77
77
|
"tmp": "0.2.1",
|
|
78
78
|
"typescript": "^4.9.5",
|
|
79
79
|
"vinyl-buffer": "^1.0.1",
|
|
80
|
-
"webpack": "^5.
|
|
80
|
+
"webpack": "^5.88.0"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"neo4j-driver-bolt-connection": "5.
|
|
84
|
-
"neo4j-driver-core": "5.
|
|
85
|
-
"rxjs": "^7.8.
|
|
83
|
+
"neo4j-driver-bolt-connection": "5.11.0",
|
|
84
|
+
"neo4j-driver-core": "5.11.0",
|
|
85
|
+
"rxjs": "^7.8.1"
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "f20b9a86650000e8366b22e57520512909b5089f"
|
|
88
88
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ import {
|
|
|
52
52
|
Relationship,
|
|
53
53
|
UnboundRelationship,
|
|
54
54
|
Record,
|
|
55
|
+
RecordShape,
|
|
55
56
|
ResultSummary,
|
|
56
57
|
Notification,
|
|
57
58
|
NotificationPosition,
|
|
@@ -86,7 +87,8 @@ import {
|
|
|
86
87
|
notificationFilterMinimumSeverityLevel,
|
|
87
88
|
AuthTokenManager,
|
|
88
89
|
AuthTokenAndExpiration,
|
|
89
|
-
expirationBasedAuthTokenManager
|
|
90
|
+
expirationBasedAuthTokenManager,
|
|
91
|
+
types as coreTypes
|
|
90
92
|
} from 'neo4j-driver-core'
|
|
91
93
|
import {
|
|
92
94
|
AuthToken,
|
|
@@ -120,6 +122,18 @@ declare const auth: {
|
|
|
120
122
|
) => AuthToken
|
|
121
123
|
}
|
|
122
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
|
|
127
|
+
* @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
|
|
128
|
+
* timestamp, level and message. It takes an optional `level` parameter which represents the maximum log level to be logged. Default value is 'info'.
|
|
129
|
+
*/
|
|
130
|
+
declare const logging: {
|
|
131
|
+
console: (level: coreTypes.LogLevel) => {
|
|
132
|
+
level: coreTypes.LogLevel
|
|
133
|
+
logger: (level: coreTypes.LogLevel, message: string) => void
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
123
137
|
declare function driver (
|
|
124
138
|
url: string,
|
|
125
139
|
authToken?: AuthToken | AuthTokenManager,
|
|
@@ -269,6 +283,7 @@ declare const forExport: {
|
|
|
269
283
|
notificationFilterDisabledCategory: typeof notificationFilterDisabledCategory
|
|
270
284
|
notificationFilterMinimumSeverityLevel: typeof notificationFilterMinimumSeverityLevel
|
|
271
285
|
expirationBasedAuthTokenManager: typeof expirationBasedAuthTokenManager
|
|
286
|
+
logging: typeof logging
|
|
272
287
|
}
|
|
273
288
|
|
|
274
289
|
export {
|
|
@@ -343,7 +358,8 @@ export {
|
|
|
343
358
|
notificationSeverityLevel,
|
|
344
359
|
notificationFilterDisabledCategory,
|
|
345
360
|
notificationFilterMinimumSeverityLevel,
|
|
346
|
-
expirationBasedAuthTokenManager
|
|
361
|
+
expirationBasedAuthTokenManager,
|
|
362
|
+
logging
|
|
347
363
|
}
|
|
348
364
|
|
|
349
365
|
export type {
|
|
@@ -352,6 +368,7 @@ export type {
|
|
|
352
368
|
SessionConfig,
|
|
353
369
|
QueryConfig,
|
|
354
370
|
RoutingControl,
|
|
371
|
+
RecordShape,
|
|
355
372
|
ResultTransformer,
|
|
356
373
|
NotificationCategory,
|
|
357
374
|
NotificationSeverityLevel,
|