Comparing version 7.0.1 to 7.0.2
@@ -17,2 +17,16 @@ # Changelog | ||
## [7.0.2] - 2020-09-25 | ||
### Fixed | ||
- Fixed incorrect HTTP method call in `patch` method ([#687](https://github.com/arangodb/arangojs/pull/687)) | ||
- Fixed empty query results containing `[undefined]` ([#687](https://github.com/arangodb/arangojs/issues/683)) | ||
- Fixed `updateByExample` and `replaceByExample` new value parameter name | ||
Note that these methods are still deprecated. Previously the `newValue` | ||
parameter was incorrectly called `newData`, which prevented the methods from | ||
working at all. | ||
## [7.0.1] - 2020-08-21 | ||
@@ -1093,2 +1107,3 @@ | ||
[7.0.2]: https://github.com/arangodb/arangojs/compare/v7.0.1...v7.0.2 | ||
[7.0.1]: https://github.com/arangodb/arangojs/compare/v7.0.0...v7.0.1 | ||
@@ -1095,0 +1110,0 @@ [7.0.0]: https://github.com/arangodb/arangojs/compare/v6.14.1...v7.0.0 |
@@ -383,3 +383,3 @@ "use strict"; | ||
} | ||
replaceByExample(example, newData, options) { | ||
replaceByExample(example, newValue, options) { | ||
return this._db.request({ | ||
@@ -391,3 +391,3 @@ method: "PUT", | ||
example, | ||
newData, | ||
newValue, | ||
collection: this._name, | ||
@@ -397,3 +397,3 @@ }, | ||
} | ||
updateByExample(example, newData, options) { | ||
updateByExample(example, newValue, options) { | ||
return this._db.request({ | ||
@@ -405,3 +405,3 @@ method: "PUT", | ||
example, | ||
newData, | ||
newValue, | ||
collection: this._name, | ||
@@ -408,0 +408,0 @@ }, |
@@ -49,4 +49,3 @@ "use strict"; | ||
constructor(db, body, host, allowDirtyRead) { | ||
const initialBatch = new x3_linkedlist_1.LinkedList(body.result); | ||
const batches = new x3_linkedlist_1.LinkedList([initialBatch]); | ||
const batches = new x3_linkedlist_1.LinkedList(body.result.length ? [new x3_linkedlist_1.LinkedList(body.result)] : []); | ||
this._db = db; | ||
@@ -53,0 +52,0 @@ this._batches = batches; |
@@ -43,3 +43,3 @@ # Migrating | ||
-await collection.createGeoIndex(["lat", "lng"]); | ||
+await collection.createIndex({ type: "geo", fields: ["lat", "lng"] }); | ||
+await collection.ensureIndex({ type: "geo", fields: ["lat", "lng"] }); | ||
``` | ||
@@ -89,5 +89,4 @@ | ||
-const edges = db.edgeCollection("edges"); | ||
-const edge = await edges.edge("my-edge"); | ||
+const edges = db.collection("edges"); | ||
-const edge = await edges.edge("my-edge"); | ||
+const edge = await edges.document("my-edge"); | ||
@@ -94,0 +93,0 @@ ``` |
{ | ||
"name": "arangojs", | ||
"version": "7.0.1", | ||
"version": "7.0.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=10" |
@@ -10,2 +10,10 @@ # ArangoDB JavaScript Driver | ||
## Links | ||
* [API Documentation](https://arangodb.github.io/arangojs/latest/modules/_index_.html) | ||
* [Changelog](https://arangodb.github.io/arangojs/CHANGELOG) | ||
* [Migration Guide](http://arangodb.github.io/arangojs/MIGRATING) | ||
## Install | ||
@@ -91,3 +99,3 @@ | ||
url: "http://localhost:8529", | ||
database: "pancakes", | ||
databaseName: "pancakes", | ||
auth: { username: "root", password: "hunter2" }, | ||
@@ -94,0 +102,0 @@ }); |
@@ -96,3 +96,3 @@ "use strict"; | ||
const [body, qs, headers] = args; | ||
return this.request({ method: "DELETE", path, body, qs, headers }); | ||
return this.request({ method: "PATCH", path, body, qs, headers }); | ||
} | ||
@@ -99,0 +99,0 @@ post(...args) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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 not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2065015
18112
350