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 5.8.1 to 5.9.0

7

lib/index.js

@@ -127,2 +127,3 @@ "use strict";

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;
var USER_AGENT = 'neo4j-javascript/' + version_1.default;
function isAuthTokenManager(value) {

@@ -327,2 +328,3 @@ return typeof value === 'object' &&

config.userAgent = config.userAgent || USER_AGENT;
config.boltAgent = neo4j_driver_core_1.internal.boltAgent.fromVersion('neo4j-javascript/' + version_1.default);
var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);

@@ -346,2 +348,3 @@ var meta = {

userAgent: config.userAgent,
boltAgent: config.boltAgent,
routingContext: parsedUrl.query

@@ -362,3 +365,4 @@ });

address: address,
userAgent: config.userAgent
userAgent: config.userAgent,
boltAgent: config.boltAgent
});

@@ -404,3 +408,2 @@ };

exports.hasReachableServer = hasReachableServer;
var USER_AGENT = 'neo4j-javascript/' + version_1.default;
/**

@@ -407,0 +410,0 @@ * Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.

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

// system to control version names at packaging time.
exports.default = '5.8.1';
exports.default = '5.9.0';
{
"name": "neo4j-driver",
"version": "5.8.1",
"version": "5.9.0",
"description": "The official Neo4j driver for Javascript",

@@ -76,13 +76,14 @@ "author": "Neo4j",

"semver": "^7.3.8",
"source-map": "0.7.4",
"tmp": "0.2.1",
"typescript": "^4.9.5",
"vinyl-buffer": "^1.0.1",
"webpack": "^5.75.0"
"webpack": "^5.83.1"
},
"dependencies": {
"neo4j-driver-bolt-connection": "5.8.1",
"neo4j-driver-core": "5.8.1",
"neo4j-driver-bolt-connection": "5.9.0",
"neo4j-driver-core": "5.9.0",
"rxjs": "^7.8.0"
},
"gitHead": "6307f27309468d9327aafe6ca759c60ef76346fe"
"gitHead": "a4393a415ed28a3818effe5a9d320f78f91dc10c"
}

@@ -506,88 +506,1 @@ # Neo4j Driver for JavaScript

```
## Building
```
npm ci
npm run build
```
This produces browser-compatible standalone files under `lib/browser` and a Node.js module version under `lib/`.
See files under `examples/` on how to use.
## Testing
Tests **require** latest [Testkit 4.3](https://github.com/neo4j-drivers/testkit/tree/4.3), Python3 and Docker.
Testkit is needed to be cloned and configured to run against the Javascript Lite Driver. Use the following steps to configure Testkit.
1. Clone the Testkit repository
```
git clone https://github.com/neo4j-drivers/testkit.git
```
2. Under the Testkit folder, install the requirements.
```
pip3 install -r requirements.txt
```
3. Define some enviroment variables to configure Testkit
```
export TEST_DRIVER_NAME=javascript
export TEST_DRIVER_REPO=<path for the root folder of driver repository>
unset TEST_DRIVER_LITE
```
To run test against against some Neo4j version:
```
python3 main.py
```
More details about how to use Teskit could be found on [its repository](https://github.com/neo4j-drivers/testkit/tree/4.3)
## Testing (Legacy)
Tests **require** latest [Boltkit](https://github.com/neo4j-contrib/boltkit) and [Firefox](https://www.mozilla.org/firefox/) to be installed in the system.
Boltkit is needed to start, stop and configure local test database. Boltkit can be installed with the following command:
```
pip3 install --upgrade boltkit
```
To run tests against "default" Neo4j version:
```
./runTests.sh
```
To run tests against specified Neo4j version:
```
./runTests.sh '-e 4.2.0'
```
Simple `npm test` can also be used if you already have a running version of a compatible Neo4j server.
For development, you can have the build tool rerun the tests each time you change
the source code:
```
gulp watch-n-test
```
If the `gulp` command line tool is not available, you might need to install this globally:
```
npm install -g gulp-cli
```
### Testing on windows
To run the same test suite, run `.\runTest.ps1` instead in powershell with admin right.
The admin right is required to start/stop Neo4j properly as a system service.
While there is no need to grab admin right if you are running tests against an existing Neo4j server using `npm test`.

@@ -125,3 +125,3 @@ /**

url: string,
authToken?: AuthToken,
authToken?: AuthToken | AuthTokenManager,
config?: Config

@@ -128,0 +128,0 @@ ): Driver

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