Socket
Socket
Sign inDemoInstall

neo4j-driver

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neo4j-driver - npm Package Compare versions

Comparing version 3.4.0-alpha01 to 3.8.0

6

examples/node.js

@@ -23,5 +23,5 @@ /**

var query = [
'MERGE (alice:Person {name:{name_a},age:{age_a}})',
'MERGE (bob:Person {name:{name_b},age:{age_b}})',
'CREATE UNIQUE (alice)-[alice_knows_bob:KNOWS]->(bob)',
'MERGE (alice:Person {name:$name_a}) ON CREATE SET alice.age = $age_a',
'MERGE (bob:Person {name:$name_b}) ON CREATE SET bob.age = $age_b',
'MERGE (alice)-[alice_knows_bob:KNOWS]->(bob)',
'RETURN alice, bob, alice_knows_bob'

@@ -28,0 +28,0 @@ ]

@@ -33,5 +33,6 @@ /**

* configured in the database using `dbms.transaction.timeout` setting. Value should not represent a duration of zero or negative duration.
* @property {Object} metadata - the transaction metadata. Specified metadata will be attached to the executing transaction and visible in the output of
* `dbms.listQueries` and `dbms.listTransactions` procedures. It will also get logged to the `query.log`. This functionality makes it easier to tag
* transactions and is equivalent to `dbms.setTXMetaData` procedure.
* @property {Object} metadata - the transaction metadata. Specified metadata will be attached to the executing transaction and visible in the output
* of `SHOW TRANSACTIONS YIELD *`. It will also get logged to the `query.log` file. This functionality makes it easier to tag transactions and is
* equivalent to the `dbms.setTXMetaData` procedure, see https://neo4j.com/docs/cypher-manual/current/clauses/transaction-clauses/#query-listing-transactions
* and https://neo4j.com/docs/operations-manual/current/reference/procedures/ for reference.
*/

@@ -77,3 +77,3 @@ "use strict";

Driver.prototype.rxSession = function (_a) {
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;
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, auth = _b.auth;
return new session_rx_1.default({

@@ -85,5 +85,7 @@ session: this._newSession({

impersonatedUser: impersonatedUser,
auth: auth,
reactive: false,
fetchSize: validateFetchSizeValue(fetchSize, this._config.fetchSize),
bookmarkManager: bookmarkManager
bookmarkManager: bookmarkManager,
notificationFilter: notificationFilter
}),

@@ -90,0 +92,0 @@ config: this._config

@@ -42,4 +42,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
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;
exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = void 0;
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;
exports.expirationBasedAuthTokenManager = 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;
/**

@@ -105,2 +105,3 @@ * Copyright (c) "Neo4j"

Object.defineProperty(exports, "Result", { enumerable: true, get: function () { return neo4j_driver_core_1.Result; } });
Object.defineProperty(exports, "EagerResult", { enumerable: true, get: function () { return neo4j_driver_core_1.EagerResult; } });
Object.defineProperty(exports, "auth", { enumerable: true, get: function () { return neo4j_driver_core_1.auth; } });

@@ -111,2 +112,9 @@ Object.defineProperty(exports, "Session", { enumerable: true, get: function () { return neo4j_driver_core_1.Session; } });

Object.defineProperty(exports, "bookmarkManager", { enumerable: true, get: function () { return neo4j_driver_core_1.bookmarkManager; } });
Object.defineProperty(exports, "routing", { enumerable: true, get: function () { return neo4j_driver_core_1.routing; } });
Object.defineProperty(exports, "resultTransformers", { enumerable: true, get: function () { return neo4j_driver_core_1.resultTransformers; } });
Object.defineProperty(exports, "notificationCategory", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationCategory; } });
Object.defineProperty(exports, "notificationSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationSeverityLevel; } });
Object.defineProperty(exports, "notificationFilterDisabledCategory", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterDisabledCategory; } });
Object.defineProperty(exports, "notificationFilterMinimumSeverityLevel", { enumerable: true, get: function () { return neo4j_driver_core_1.notificationFilterMinimumSeverityLevel; } });
Object.defineProperty(exports, "expirationBasedAuthTokenManager", { enumerable: true, get: function () { return neo4j_driver_core_1.expirationBasedAuthTokenManager; } });
var neo4j_driver_bolt_connection_1 = require("neo4j-driver-bolt-connection");

@@ -122,2 +130,20 @@ var session_rx_1 = __importDefault(require("./session-rx"));

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;
function isAuthTokenManager(value) {
return typeof value === 'object' &&
value != null &&
'getToken' in value &&
'onTokenExpired' in value &&
typeof value.getToken === 'function' &&
typeof value.onTokenExpired === 'function';
}
function createAuthManager(authTokenOrManager) {
if (isAuthTokenManager(authTokenOrManager)) {
return authTokenOrManager;
}
var authToken = authTokenOrManager;
// Sanitize authority token. Nicer error from server when a scheme is set.
authToken = authToken || {};
authToken.scheme = authToken.scheme || 'none';
return (0, neo4j_driver_core_1.staticAuthTokenManager)({ authToken: authToken });
}
/**

@@ -244,3 +270,7 @@ * Construct a new Neo4j Driver. This is your main entry point for this

*
* // Optionally override the default user agent name.
* // Configure filter for Notification objects returned in ResultSummary#notifications.
* // See SessionConfig#notificationFilter for usage instructions.
* notificationFilter: undefined,
*
* // Optionally override the default user agent name.
* userAgent: USER_AGENT

@@ -298,5 +328,3 @@ * }

}
// Sanitize authority token. Nicer error from server when a scheme is set.
authToken = authToken || {};
authToken.scheme = authToken.scheme || 'none';
var authTokenManager = createAuthManager(authToken);
// Use default user agent or user agent specified by user.

@@ -319,3 +347,3 @@ config.userAgent = config.userAgent || USER_AGENT;

hostNameResolver: hostNameResolver,
authToken: authToken,
authTokenManager: authTokenManager,
address: address,

@@ -336,3 +364,3 @@ userAgent: config.userAgent,

log: log,
authToken: authToken,
authTokenManager: authTokenManager,
address: address,

@@ -407,2 +435,3 @@ userAgent: config.userAgent

Result: neo4j_driver_core_1.Result,
EagerResult: neo4j_driver_core_1.EagerResult,
ResultSummary: neo4j_driver_core_1.ResultSummary,

@@ -494,2 +523,3 @@ Record: neo4j_driver_core_1.Record,

session: session,
routing: neo4j_driver_core_1.routing,
error: neo4j_driver_core_1.error,

@@ -504,2 +534,3 @@ graph: graph,

Result: neo4j_driver_core_1.Result,
EagerResult: neo4j_driver_core_1.EagerResult,
RxSession: session_rx_1.default,

@@ -529,4 +560,10 @@ RxTransaction: transaction_rx_1.default,

DateTime: neo4j_driver_core_1.DateTime,
bookmarkManager: neo4j_driver_core_1.bookmarkManager
bookmarkManager: neo4j_driver_core_1.bookmarkManager,
resultTransformers: neo4j_driver_core_1.resultTransformers,
notificationCategory: neo4j_driver_core_1.notificationCategory,
notificationSeverityLevel: neo4j_driver_core_1.notificationSeverityLevel,
notificationFilterDisabledCategory: neo4j_driver_core_1.notificationFilterDisabledCategory,
notificationFilterMinimumSeverityLevel: neo4j_driver_core_1.notificationFilterMinimumSeverityLevel,
expirationBasedAuthTokenManager: neo4j_driver_core_1.expirationBasedAuthTokenManager
};
exports.default = forExport;

@@ -29,2 +29,2 @@ "use strict";

// system to control version names at packaging time.
exports.default = '3.4.0-alpha01';
exports.default = '3.8.0';
{
"name": "neo4j-driver",
"version": "3.4.0-alpha01",
"description": "Connect to Neo4j 3.5.0 and up from JavaScript",
"version": "3.8.0",
"description": "The official Neo4j driver for Javascript",
"author": "Neo4j",

@@ -77,3 +77,3 @@ "license": "Apache-2.0",

"tmp": "0.2.1",
"typescript": "^4.9.4",
"typescript": "^4.9.5",
"vinyl-buffer": "^1.0.1",

@@ -83,7 +83,7 @@ "webpack": "^5.75.0"

"dependencies": {
"neo4j-driver-bolt-connection": "^3.4.0-alpha01",
"neo4j-driver-core": "^3.4.0-alpha01",
"neo4j-driver-bolt-connection": "^3.8.0",
"neo4j-driver-core": "^3.8.0",
"rxjs": "^7.8.0"
},
"gitHead": "b41b355eeb88c7db83a75f6917a3ba9782637e18"
"gitHead": "a18add07c2b6781554faa343427c4d246a5e6b0c"
}

@@ -89,6 +89,6 @@ # Neo4j Driver for JavaScript

// unpkg CDN non-minified , version X.Y.Z where X.Y.Z >= 5.4.0
import neo4j from 'https://unpkg.com/browse/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.js'
import neo4j from 'https://unpkg.com/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.js'
// unpkg CDN minified for production use, version X.Y.Z where X.Y.Z >= 5.4.0
import neo4j from 'https://unpkg.com/browse/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.min.js'
import neo4j from 'https://unpkg.com/neo4j-driver@X.Y.Z/lib/browser/neo4j-web.esm.min.js'

@@ -95,0 +95,0 @@ // jsDelivr CDN non-minified, version X.Y.Z where X.Y.Z >= 5.4.0

@@ -63,2 +63,3 @@ /**

Result,
EagerResult,
ResultObserver,

@@ -72,3 +73,20 @@ QueryResult,

BookmarkManagerConfig,
SessionConfig
SessionConfig,
QueryConfig,
RoutingControl,
routing,
resultTransformers,
ResultTransformer,
notificationCategory,
notificationSeverityLevel,
NotificationCategory,
NotificationSeverityLevel,
NotificationFilter,
NotificationFilterDisabledCategory,
NotificationFilterMinimumSeverityLevel,
notificationFilterDisabledCategory,
notificationFilterMinimumSeverityLevel,
AuthTokenManager,
AuthTokenAndExpiration,
expirationBasedAuthTokenManager
} from 'neo4j-driver-core'

@@ -125,2 +143,3 @@ import {

Result: typeof Result
EagerResult: typeof EagerResult
ResultSummary: typeof ResultSummary

@@ -192,2 +211,3 @@ Record: typeof Record

session: typeof session
routing: typeof routing
error: typeof error

@@ -213,2 +233,3 @@ graph: typeof graph

Result: typeof Result
EagerResult: typeof EagerResult
QueryResult: QueryResult

@@ -250,2 +271,8 @@ ResultObserver: ResultObserver

bookmarkManager: typeof bookmarkManager
resultTransformers: typeof resultTransformers
notificationCategory: typeof notificationCategory
notificationSeverityLevel: typeof notificationSeverityLevel
notificationFilterDisabledCategory: typeof notificationFilterDisabledCategory
notificationFilterMinimumSeverityLevel: typeof notificationFilterMinimumSeverityLevel
expirationBasedAuthTokenManager: typeof expirationBasedAuthTokenManager
}

@@ -262,2 +289,3 @@

session,
routing,
error,

@@ -283,2 +311,3 @@ graph,

Result,
EagerResult,
QueryResult,

@@ -319,3 +348,9 @@ ResultObserver,

isUnboundRelationship,
bookmarkManager
bookmarkManager,
resultTransformers,
notificationCategory,
notificationSeverityLevel,
notificationFilterDisabledCategory,
notificationFilterMinimumSeverityLevel,
expirationBasedAuthTokenManager
}

@@ -326,5 +361,15 @@

BookmarkManagerConfig,
SessionConfig
SessionConfig,
QueryConfig,
RoutingControl,
ResultTransformer,
NotificationCategory,
NotificationSeverityLevel,
NotificationFilter,
NotificationFilterDisabledCategory,
NotificationFilterMinimumSeverityLevel,
AuthTokenManager,
AuthTokenAndExpiration
}
export default forExport

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc