neo4j-driver 4.4.0-beta02 → 4.4.3

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/driver.js CHANGED
@@ -88,7 +88,7 @@ var Driver = /*#__PURE__*/function (_CoreDriver) {
88
88
  return new _sessionRx["default"]({
89
89
  session: this._newSession({
90
90
  defaultAccessMode: defaultAccessMode,
91
- bookmarks: bookmarks,
91
+ bookmarkOrBookmarks: bookmarks,
92
92
  database: database,
93
93
  impersonatedUser: impersonatedUser,
94
94
  reactive: true,
@@ -115,6 +115,27 @@ var RxTransaction = /*#__PURE__*/function () {
115
115
  });
116
116
  });
117
117
  }
118
+ /**
119
+ * Closes the transaction
120
+ *
121
+ * This method will roll back the transaction if it is not already committed or rolled back.
122
+ *
123
+ * @returns {Observable} - An empty observable
124
+ */
125
+
126
+ }, {
127
+ key: "close",
128
+ value: function close() {
129
+ var _this4 = this;
130
+
131
+ return new _rxjs.Observable(function (observer) {
132
+ _this4._txc.close().then(function () {
133
+ observer.complete();
134
+ })["catch"](function (err) {
135
+ return observer.error(err);
136
+ });
137
+ });
138
+ }
118
139
  }]);
119
140
  return RxTransaction;
120
141
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo4j-driver",
3
- "version": "4.4.0-beta02",
3
+ "version": "4.4.3",
4
4
  "description": "Connect to Neo4j 3.5.0 and up from JavaScript",
5
5
  "author": "Neo4j",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,6 @@
21
21
  "stop-neo4j": "gulp stop-neo4j",
22
22
  "run-stress-tests": "gulp run-stress-tests-without-jasmine",
23
23
  "run-ts-declaration-tests": "gulp run-ts-declaration-tests",
24
- "predocs": "cd core && npm run docs",
25
24
  "docs": "esdoc -c esdoc.json",
26
25
  "versionRelease": "gulp set --x $VERSION && npm version $VERSION --no-git-tag-version",
27
26
  "browser": "gulp browser && gulp test-browser",
@@ -112,9 +111,9 @@
112
111
  },
113
112
  "dependencies": {
114
113
  "@babel/runtime": "^7.5.5",
115
- "neo4j-driver-bolt-connection": "^4.4.0-beta02",
116
- "neo4j-driver-core": "^4.4.0-beta02",
114
+ "neo4j-driver-bolt-connection": "^4.4.3",
115
+ "neo4j-driver-core": "^4.4.3",
117
116
  "rxjs": "^6.6.3"
118
117
  },
119
- "gitHead": "cf2272c39d5038f42391a09646ac8241f00b81e5"
118
+ "gitHead": "ef025439564ead9bec658e1458e8b421ac165fc0"
120
119
  }
@@ -33,7 +33,7 @@ declare interface RxSession {
33
33
 
34
34
  beginTransaction(config?: TransactionConfig): Observable<RxTransaction>
35
35
 
36
- lastBookmark(): string | null
36
+ lastBookmark(): string[]
37
37
 
38
38
  readTransaction<T>(
39
39
  work: RxTransactionWork<T>,
@@ -26,6 +26,8 @@ declare interface RxTransaction {
26
26
  commit(): Observable<any>
27
27
 
28
28
  rollback(): Observable<any>
29
+
30
+ close(): Observable<any>
29
31
  }
30
32
 
31
33
  export default RxTransaction