Skip to content

Commit 36615fc

Browse files
committed
Disable traversal tests in 3.12
1 parent 7b82407 commit 36615fc

File tree

6 files changed

+21
-9
lines changed

6 files changed

+21
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ This driver uses semantic versioning:
1414
- A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
1515
changes that require changes in your code to upgrade.
1616

17+
## [Unreleased]
18+
19+
## Changed
20+
21+
- Added note that Simple Queries traversals are removed in ArangoDB 3.12.
22+
1723
## [8.3.0] - 2023-05-11
1824

1925
## Fixed

src/collection.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1124,8 +1124,8 @@ export type SimpleQueryFulltextOptions = {
11241124
/**
11251125
* Options for performing a graph traversal.
11261126
*
1127-
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and can be
1128-
* replaced with AQL queries.
1127+
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and are
1128+
* no longer supported in ArangoDB 3.12. They can be replaced with AQL queries.
11291129
*/
11301130
export type TraversalOptions = {
11311131
/**
@@ -3417,8 +3417,8 @@ export interface EdgeCollection<T extends Record<string, any> = any>
34173417
* properties (e.g. a document from this collection).
34183418
* @param options - Options for performing the traversal.
34193419
*
3420-
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and can be
3421-
* replaced with AQL queries.
3420+
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and are
3421+
* no longer supported in ArangoDB 3.12. They can be replaced with AQL queries.
34223422
*
34233423
* @example
34243424
* ```js

src/graph.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,8 +1774,8 @@ export class Graph {
17741774
* @param startVertex - Document `_id` of a vertex in this graph.
17751775
* @param options - Options for performing the traversal.
17761776
*
1777-
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and can be
1778-
* replaced with AQL queries.
1777+
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and are
1778+
* no longer supported in ArangoDB 3.12. They can be replaced with AQL queries.
17791779
*
17801780
* @example
17811781
* ```js

src/test/15-edge-collections.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { Database } from "../database";
44
import { DocumentMetadata } from "../documents";
55
import { config } from "./_config";
66

7+
const describePre312 = config.arangoVersion < 31200 ? describe : describe.skip;
8+
79
describe("EdgeCollection API", function () {
810
const name = `testdb_${Date.now()}`;
911
let system: Database, db: Database;
@@ -173,7 +175,7 @@ describe("EdgeCollection API", function () {
173175
expect(doc._to).to.equal(data._to);
174176
});
175177
});
176-
describe("edgeCollection.traversal", () => {
178+
describePre312("edgeCollection.traversal", () => {
177179
let knows: EdgeCollection;
178180
beforeEach(async () => {
179181
let person: DocumentCollection;

src/test/18-graph-edges.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ import { Database } from "../database";
33
import { Graph } from "../graph";
44
import { config } from "./_config";
55

6+
const describePre312 = config.arangoVersion < 31200 ? describe : describe.skip;
7+
68
describe("Manipulating graph edges", function () {
79
const dbName = `testdb_${Date.now()}`;
810
const graphName = `testgraph_${Date.now()}`;
@@ -136,7 +138,7 @@ describe("Manipulating graph edges", function () {
136138
expect(info.edgeDefinitions.length).to.equal(0);
137139
});
138140
});
139-
describe("graph.traversal", () => {
141+
describePre312("graph.traversal", () => {
140142
beforeEach(async () => {
141143
const knows = graph.edgeCollection("knows");
142144
const person = graph.vertexCollection("person");

src/test/20-graph-edge-collections.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import { DocumentMetadata } from "../documents";
44
import { GraphEdgeCollection } from "../graph";
55
import { config } from "./_config";
66

7+
const describePre312 = config.arangoVersion < 31200 ? describe : describe.skip;
8+
79
describe("GraphEdgeCollection API", function () {
810
const dbName = `testdb_${Date.now()}`;
911
let system: Database, db: Database;
@@ -116,7 +118,7 @@ describe("GraphEdgeCollection API", function () {
116118
expect(doc._to).to.equal(data._to);
117119
});
118120
});
119-
describe("edgeCollection.traversal", () => {
121+
describePre312("edgeCollection.traversal", () => {
120122
beforeEach(async () => {
121123
await collection.collection.import([
122124
{ _from: "person/Alice", _to: "person/Bob" },

0 commit comments

Comments
 (0)