neo4j-driver 5.4.0 → 5.6.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/index.js CHANGED
@@ -39,8 +39,8 @@ 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.Integer = exports.Point = 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.Result = exports.ManagedTransaction = exports.Transaction = exports.Session = exports.Driver = exports.temporal = exports.spatial = exports.graph = exports.error = 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.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = void 0;
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;
44
44
  /**
45
45
  * Copyright (c) "Neo4j"
46
46
  * Neo4j Sweden AB [http://neo4j.com]
@@ -101,11 +101,14 @@ Object.defineProperty(exports, "QueryStatistics", { enumerable: true, get: funct
101
101
  Object.defineProperty(exports, "Notification", { enumerable: true, get: function () { return neo4j_driver_core_1.Notification; } });
102
102
  Object.defineProperty(exports, "ServerInfo", { enumerable: true, get: function () { return neo4j_driver_core_1.ServerInfo; } });
103
103
  Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return neo4j_driver_core_1.Result; } });
104
+ Object.defineProperty(exports, "EagerResult", { enumerable: true, get: function () { return neo4j_driver_core_1.EagerResult; } });
104
105
  Object.defineProperty(exports, "auth", { enumerable: true, get: function () { return neo4j_driver_core_1.auth; } });
105
106
  Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return neo4j_driver_core_1.Session; } });
106
107
  Object.defineProperty(exports, "Transaction", { enumerable: true, get: function () { return neo4j_driver_core_1.Transaction; } });
107
108
  Object.defineProperty(exports, "ManagedTransaction", { enumerable: true, get: function () { return neo4j_driver_core_1.ManagedTransaction; } });
108
109
  Object.defineProperty(exports, "bookmarkManager", { enumerable: true, get: function () { return neo4j_driver_core_1.bookmarkManager; } });
110
+ Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return neo4j_driver_core_1.routing; } });
111
+ Object.defineProperty(exports, "resultTransformers", { enumerable: true, get: function () { return neo4j_driver_core_1.resultTransformers; } });
109
112
  var neo4j_driver_bolt_connection_1 = require("neo4j-driver-bolt-connection");
110
113
  var session_rx_1 = __importDefault(require("./session-rx"));
111
114
  exports.RxSession = session_rx_1.default;
@@ -396,6 +399,7 @@ var types = {
396
399
  PathSegment: neo4j_driver_core_1.PathSegment,
397
400
  Path: neo4j_driver_core_1.Path,
398
401
  Result: neo4j_driver_core_1.Result,
402
+ EagerResult: neo4j_driver_core_1.EagerResult,
399
403
  ResultSummary: neo4j_driver_core_1.ResultSummary,
400
404
  Record: neo4j_driver_core_1.Record,
401
405
  Point: neo4j_driver_core_1.Point,
@@ -482,6 +486,7 @@ var forExport = {
482
486
  logging: logging,
483
487
  types: types,
484
488
  session: session,
489
+ routing: neo4j_driver_core_1.routing,
485
490
  error: neo4j_driver_core_1.error,
486
491
  graph: graph,
487
492
  spatial: spatial,
@@ -491,6 +496,7 @@ var forExport = {
491
496
  Transaction: neo4j_driver_core_1.Transaction,
492
497
  ManagedTransaction: neo4j_driver_core_1.ManagedTransaction,
493
498
  Result: neo4j_driver_core_1.Result,
499
+ EagerResult: neo4j_driver_core_1.EagerResult,
494
500
  RxSession: session_rx_1.default,
495
501
  RxTransaction: transaction_rx_1.default,
496
502
  RxManagedTransaction: transaction_managed_rx_1.default,
@@ -515,6 +521,7 @@ var forExport = {
515
521
  Date: neo4j_driver_core_1.Date,
516
522
  LocalDateTime: neo4j_driver_core_1.LocalDateTime,
517
523
  DateTime: neo4j_driver_core_1.DateTime,
518
- bookmarkManager: neo4j_driver_core_1.bookmarkManager
524
+ bookmarkManager: neo4j_driver_core_1.bookmarkManager,
525
+ resultTransformers: neo4j_driver_core_1.resultTransformers
519
526
  };
520
527
  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.4.0';
29
+ exports.default = '5.6.0';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "neo4j-driver",
3
- "version": "5.4.0",
4
- "description": "Connect to Neo4j 3.5.0 and up from JavaScript",
3
+ "version": "5.6.0",
4
+ "description": "The official Neo4j driver for Javascript",
5
5
  "author": "Neo4j",
6
6
  "license": "Apache-2.0",
7
7
  "repository": {
@@ -79,9 +79,9 @@
79
79
  "webpack": "^5.75.0"
80
80
  },
81
81
  "dependencies": {
82
- "neo4j-driver-bolt-connection": "^5.4.0",
83
- "neo4j-driver-core": "^5.4.0",
82
+ "neo4j-driver-bolt-connection": "^5.6.0",
83
+ "neo4j-driver-core": "^5.6.0",
84
84
  "rxjs": "^7.8.0"
85
85
  },
86
- "gitHead": "45e424cc2e17e6f1d561326cbde2d6f537bf249c"
86
+ "gitHead": "d6a6cf797a071485dd95015f689f396837a007c5"
87
87
  }
package/types/index.d.ts CHANGED
@@ -60,6 +60,7 @@ import {
60
60
  ServerInfo,
61
61
  QueryStatistics,
62
62
  Result,
63
+ EagerResult,
63
64
  ResultObserver,
64
65
  QueryResult,
65
66
  Transaction,
@@ -68,7 +69,12 @@ import {
68
69
  BookmarkManager,
69
70
  bookmarkManager,
70
71
  BookmarkManagerConfig,
71
- SessionConfig
72
+ SessionConfig,
73
+ QueryConfig,
74
+ RoutingControl,
75
+ routing,
76
+ resultTransformers,
77
+ ResultTransformer
72
78
  } from 'neo4j-driver-core'
73
79
  import {
74
80
  AuthToken,
@@ -120,6 +126,7 @@ declare const types: {
120
126
  PathSegment: typeof PathSegment
121
127
  Path: typeof Path
122
128
  Result: typeof Result
129
+ EagerResult: typeof EagerResult
123
130
  ResultSummary: typeof ResultSummary
124
131
  Record: typeof Record
125
132
  Point: typeof Point
@@ -186,6 +193,7 @@ declare const forExport: {
186
193
  auth: typeof auth
187
194
  types: typeof types
188
195
  session: typeof session
196
+ routing: typeof routing
189
197
  error: typeof error
190
198
  graph: typeof graph
191
199
  spatial: typeof spatial
@@ -206,6 +214,7 @@ declare const forExport: {
206
214
  Integer: typeof Integer
207
215
  Record: typeof Record
208
216
  Result: typeof Result
217
+ EagerResult: typeof EagerResult
209
218
  QueryResult: QueryResult
210
219
  ResultObserver: ResultObserver
211
220
  ResultSummary: typeof ResultSummary
@@ -242,6 +251,7 @@ declare const forExport: {
242
251
  isRelationship: typeof isRelationship
243
252
  isUnboundRelationship: typeof isUnboundRelationship
244
253
  bookmarkManager: typeof bookmarkManager
254
+ resultTransformers: typeof resultTransformers
245
255
  }
246
256
 
247
257
  export {
@@ -253,6 +263,7 @@ export {
253
263
  auth,
254
264
  types,
255
265
  session,
266
+ routing,
256
267
  error,
257
268
  graph,
258
269
  spatial,
@@ -273,6 +284,7 @@ export {
273
284
  Integer,
274
285
  Record,
275
286
  Result,
287
+ EagerResult,
276
288
  QueryResult,
277
289
  ResultObserver,
278
290
  ResultSummary,
@@ -308,13 +320,17 @@ export {
308
320
  isPathSegment,
309
321
  isRelationship,
310
322
  isUnboundRelationship,
311
- bookmarkManager
323
+ bookmarkManager,
324
+ resultTransformers
312
325
  }
313
326
 
314
327
  export type {
315
328
  BookmarkManager,
316
329
  BookmarkManagerConfig,
317
- SessionConfig
330
+ SessionConfig,
331
+ QueryConfig,
332
+ RoutingControl,
333
+ ResultTransformer
318
334
  }
319
335
 
320
336
  export default forExport