neo4j-driver 5.0.0-alpha01 → 5.0.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/README.md +6 -6
- package/lib/browser/neo4j-web.js +22340 -21901
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/driver.js +5 -8
- package/lib/index.js +302 -18
- package/lib/internal/retry-logic-rx.js +11 -8
- package/lib/internal/server-version.js +2 -2
- package/lib/result-rx.js +56 -11
- package/lib/session-rx.js +69 -7
- package/lib/transaction-managed-rx.js +86 -0
- package/lib/transaction-rx.js +11 -0
- package/lib/version.js +1 -1
- package/package.json +32 -58
- package/tsconfig.json +3 -1
- package/types/driver.d.ts +3 -14
- package/types/index.d.ts +40 -11
- package/types/query-runner.d.ts +1 -1
- package/types/result-rx.d.ts +6 -6
- package/types/session-rx.d.ts +25 -10
- package/types/transaction-managed-rx.d.ts +26 -0
- package/types/transaction-rx.d.ts +6 -4
- package/.eslintrc.json +0 -21
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@ Resources to get you started:
|
|
|
8
8
|
- [Neo4j Manual](https://neo4j.com/docs/)
|
|
9
9
|
- [Neo4j Refcard](https://neo4j.com/docs/cypher-refcard/current/)
|
|
10
10
|
|
|
11
|
-
## What's New in
|
|
11
|
+
## What's New in 5.0
|
|
12
12
|
|
|
13
|
-
- [Changelog](https://github.com/neo4j/neo4j-javascript-driver/wiki/
|
|
13
|
+
- [Changelog](https://github.com/neo4j/neo4j-javascript-driver/wiki/5.0-changelog)
|
|
14
14
|
|
|
15
15
|
## Including the Driver
|
|
16
16
|
|
|
@@ -222,7 +222,7 @@ rxSession
|
|
|
222
222
|
.records()
|
|
223
223
|
.pipe(
|
|
224
224
|
map(record => record.get('name')),
|
|
225
|
-
|
|
225
|
+
concatWith(rxSession.close())
|
|
226
226
|
)
|
|
227
227
|
.subscribe({
|
|
228
228
|
next: data => console.log(data),
|
|
@@ -373,8 +373,8 @@ try {
|
|
|
373
373
|
rxSession
|
|
374
374
|
.beginTransaction()
|
|
375
375
|
.pipe(
|
|
376
|
-
|
|
377
|
-
|
|
376
|
+
mergeMap(txc =>
|
|
377
|
+
concatWith(
|
|
378
378
|
txc
|
|
379
379
|
.run(
|
|
380
380
|
'MERGE (bob:Person {name: $nameParam}) RETURN bob.name AS name',
|
|
@@ -397,7 +397,7 @@ rxSession
|
|
|
397
397
|
of('Second query completed'),
|
|
398
398
|
txc.commit(),
|
|
399
399
|
of('committed')
|
|
400
|
-
).pipe(catchError(err => txc.rollback().pipe(throwError(err))))
|
|
400
|
+
).pipe(catchError(err => txc.rollback().pipe(throwError(() => err))))
|
|
401
401
|
)
|
|
402
402
|
)
|
|
403
403
|
.subscribe({
|