Skip to content

Commit d95923b

Browse files
committed
feat: update to arangojs 10
Removes the "arangojs instrumentation" code, which was a copy of the core request processing classes of arangojs. The update to arangojs 10 would have required major changes to these files, and they were a code quality problem anyway. Instead of our custom patches, we now rely on beforeRequest and afterResponse. They can be specified once per Database, which is not sufficient for our use case, so we currently call request() directly instead of the proper executeTransaction(). Hopefully, arangojs will add a way to specify these hooks in executeTransaction() as well. See arangodb/arangojs#817 for the feature request. BREAKING CHANGE: arangojs 8 is no longer supported. Update to arangojs 10. BREAKING CHANGE: ArangoJSConfig is no longer exported. Import ConfigOptions from arangojs/configuration directly if needed.
1 parent ba5a0fb commit d95923b

File tree

22 files changed

+193
-908
lines changed

22 files changed

+193
-908
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Install [ArangoDB](https://www.arangodb.com/) and create a new database.
3737
import { ArangoDBAdapter } from 'cruddl';
3838
const db = new ArangoDBAdapter({
3939
databaseName: 'databaseName',
40-
url: 'http://root:@localhost:8529',
40+
url: 'http://localhost:8529',
4141
user: 'root',
4242
password: '',
4343
});

example/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ApolloServer } from 'apollo-server';
44
// arangodb --starter.local --starter.mode=single --starter.port=8529
55
const db = new ArangoDBAdapter({
66
databaseName: 'test',
7-
url: 'http+tcp://root:@localhost:8529',
7+
url: 'http://localhost:8529',
88
user: 'root',
99
password: '',
1010
});

0 commit comments

Comments
 (0)