neo4j-driver 5.8.0 → 5.9.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
@@ -124,6 +124,7 @@ exports.RxManagedTransaction = transaction_managed_rx_1.default;
124
124
  var result_rx_1 = __importDefault(require("./result-rx"));
125
125
  exports.RxResult = result_rx_1.default;
126
126
  var _a = neo4j_driver_core_1.internal.util, ENCRYPTION_ON = _a.ENCRYPTION_ON, assertString = _a.assertString, isEmptyObjectOrNull = _a.isEmptyObjectOrNull, ServerAddress = neo4j_driver_core_1.internal.serverAddress.ServerAddress, urlUtil = neo4j_driver_core_1.internal.urlUtil;
127
+ var USER_AGENT = 'neo4j-javascript/' + version_1.default;
127
128
  function isAuthTokenManager(value) {
128
129
  return typeof value === 'object' &&
129
130
  value != null &&
@@ -323,6 +324,7 @@ function driver(url, authToken, config) {
323
324
  var authTokenManager = createAuthManager(authToken);
324
325
  // Use default user agent or user agent specified by user.
325
326
  config.userAgent = config.userAgent || USER_AGENT;
327
+ config.boltAgent = neo4j_driver_core_1.internal.boltAgent.fromVersion('neo4j-javascript/' + version_1.default);
326
328
  var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);
327
329
  var meta = {
328
330
  address: address,
@@ -341,6 +343,7 @@ function driver(url, authToken, config) {
341
343
  authTokenManager: authTokenManager,
342
344
  address: address,
343
345
  userAgent: config.userAgent,
346
+ boltAgent: config.boltAgent,
344
347
  routingContext: parsedUrl.query
345
348
  });
346
349
  };
@@ -356,7 +359,8 @@ function driver(url, authToken, config) {
356
359
  log: log,
357
360
  authTokenManager: authTokenManager,
358
361
  address: address,
359
- userAgent: config.userAgent
362
+ userAgent: config.userAgent,
363
+ boltAgent: config.boltAgent
360
364
  });
361
365
  };
362
366
  }
@@ -397,7 +401,6 @@ function hasReachableServer(url, config) {
397
401
  });
398
402
  }
399
403
  exports.hasReachableServer = hasReachableServer;
400
- var USER_AGENT = 'neo4j-javascript/' + version_1.default;
401
404
  /**
402
405
  * Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
403
406
  * @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with
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.8.0';
29
+ exports.default = '5.9.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo4j-driver",
3
- "version": "5.8.0",
3
+ "version": "5.9.0",
4
4
  "description": "The official Neo4j driver for Javascript",
5
5
  "author": "Neo4j",
6
6
  "license": "Apache-2.0",
@@ -73,15 +73,16 @@
73
73
  "rollup": "^2.77.4-1",
74
74
  "rollup-plugin-polyfill-node": "^0.11.0",
75
75
  "semver": "^7.3.8",
76
+ "source-map": "0.7.4",
76
77
  "tmp": "0.2.1",
77
78
  "typescript": "^4.9.5",
78
79
  "vinyl-buffer": "^1.0.1",
79
- "webpack": "^5.75.0"
80
+ "webpack": "^5.83.1"
80
81
  },
81
82
  "dependencies": {
82
- "neo4j-driver-bolt-connection": "^5.8.0",
83
- "neo4j-driver-core": "^5.8.0",
83
+ "neo4j-driver-bolt-connection": "5.9.0",
84
+ "neo4j-driver-core": "5.9.0",
84
85
  "rxjs": "^7.8.0"
85
86
  },
86
- "gitHead": "d8c4e0f4f9643f99da56bb8f1d179d0ec4b3b3ab"
87
+ "gitHead": "a4393a415ed28a3818effe5a9d320f78f91dc10c"
87
88
  }
package/types/index.d.ts CHANGED
@@ -122,7 +122,7 @@ declare const auth: {
122
122
 
123
123
  declare function driver (
124
124
  url: string,
125
- authToken?: AuthToken,
125
+ authToken?: AuthToken | AuthTokenManager,
126
126
  config?: Config
127
127
  ): Driver
128
128