neo4j-driver 5.8.1 → 5.9.1
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/README.md +0 -87
- package/lib/browser/neo4j-web.esm.js +1173 -766
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +1173 -766
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/index.js +7 -129
- package/lib/version.js +1 -1
- package/package.json +6 -5
- package/types/index.d.ts +1 -1
package/README.md
CHANGED
|
@@ -503,90 +503,3 @@ var driver = neo4j.driver(
|
|
|
503
503
|
{ disableLosslessIntegers: true }
|
|
504
504
|
)
|
|
505
505
|
```
|
|
506
|
-
|
|
507
|
-
## Building
|
|
508
|
-
|
|
509
|
-
```
|
|
510
|
-
npm ci
|
|
511
|
-
npm run build
|
|
512
|
-
```
|
|
513
|
-
|
|
514
|
-
This produces browser-compatible standalone files under `lib/browser` and a Node.js module version under `lib/`.
|
|
515
|
-
See files under `examples/` on how to use.
|
|
516
|
-
|
|
517
|
-
## Testing
|
|
518
|
-
|
|
519
|
-
Tests **require** latest [Testkit 4.3](https://github.com/neo4j-drivers/testkit/tree/4.3), Python3 and Docker.
|
|
520
|
-
|
|
521
|
-
Testkit is needed to be cloned and configured to run against the Javascript Lite Driver. Use the following steps to configure Testkit.
|
|
522
|
-
|
|
523
|
-
1. Clone the Testkit repository
|
|
524
|
-
|
|
525
|
-
```
|
|
526
|
-
git clone https://github.com/neo4j-drivers/testkit.git
|
|
527
|
-
```
|
|
528
|
-
|
|
529
|
-
2. Under the Testkit folder, install the requirements.
|
|
530
|
-
|
|
531
|
-
```
|
|
532
|
-
pip3 install -r requirements.txt
|
|
533
|
-
```
|
|
534
|
-
|
|
535
|
-
3. Define some enviroment variables to configure Testkit
|
|
536
|
-
|
|
537
|
-
```
|
|
538
|
-
export TEST_DRIVER_NAME=javascript
|
|
539
|
-
export TEST_DRIVER_REPO=<path for the root folder of driver repository>
|
|
540
|
-
unset TEST_DRIVER_LITE
|
|
541
|
-
```
|
|
542
|
-
|
|
543
|
-
To run test against against some Neo4j version:
|
|
544
|
-
|
|
545
|
-
```
|
|
546
|
-
python3 main.py
|
|
547
|
-
```
|
|
548
|
-
|
|
549
|
-
More details about how to use Teskit could be found on [its repository](https://github.com/neo4j-drivers/testkit/tree/4.3)
|
|
550
|
-
|
|
551
|
-
## Testing (Legacy)
|
|
552
|
-
|
|
553
|
-
Tests **require** latest [Boltkit](https://github.com/neo4j-contrib/boltkit) and [Firefox](https://www.mozilla.org/firefox/) to be installed in the system.
|
|
554
|
-
|
|
555
|
-
Boltkit is needed to start, stop and configure local test database. Boltkit can be installed with the following command:
|
|
556
|
-
|
|
557
|
-
```
|
|
558
|
-
pip3 install --upgrade boltkit
|
|
559
|
-
```
|
|
560
|
-
|
|
561
|
-
To run tests against "default" Neo4j version:
|
|
562
|
-
|
|
563
|
-
```
|
|
564
|
-
./runTests.sh
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
To run tests against specified Neo4j version:
|
|
568
|
-
|
|
569
|
-
```
|
|
570
|
-
./runTests.sh '-e 4.2.0'
|
|
571
|
-
```
|
|
572
|
-
|
|
573
|
-
Simple `npm test` can also be used if you already have a running version of a compatible Neo4j server.
|
|
574
|
-
|
|
575
|
-
For development, you can have the build tool rerun the tests each time you change
|
|
576
|
-
the source code:
|
|
577
|
-
|
|
578
|
-
```
|
|
579
|
-
gulp watch-n-test
|
|
580
|
-
```
|
|
581
|
-
|
|
582
|
-
If the `gulp` command line tool is not available, you might need to install this globally:
|
|
583
|
-
|
|
584
|
-
```
|
|
585
|
-
npm install -g gulp-cli
|
|
586
|
-
```
|
|
587
|
-
|
|
588
|
-
### Testing on windows
|
|
589
|
-
|
|
590
|
-
To run the same test suite, run `.\runTest.ps1` instead in powershell with admin right.
|
|
591
|
-
The admin right is required to start/stop Neo4j properly as a system service.
|
|
592
|
-
While there is no need to grab admin right if you are running tests against an existing Neo4j server using `npm test`.
|