arangojs 9.0.0-preview.2 → 9.0.0-preview.4
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/CHANGELOG.md +31 -4
- package/MIGRATING.md +7 -0
- package/README.md +1 -1
- package/analyzer.d.ts +950 -0
- package/analyzer.d.ts.map +1 -0
- package/aql.d.ts +289 -0
- package/aql.d.ts.map +1 -0
- package/cjs/collection.d.ts +10 -878
- package/cjs/collection.d.ts.map +1 -1
- package/cjs/collection.js +2 -134
- package/cjs/collection.js.map +1 -1
- package/cjs/connection.js +1 -1
- package/cjs/graph.d.ts +1 -34
- package/cjs/graph.d.ts.map +1 -1
- package/cjs/graph.js +0 -43
- package/cjs/graph.js.map +1 -1
- package/cjs/indexes.d.ts +12 -0
- package/cjs/indexes.d.ts.map +1 -1
- package/cjs/indexes.js.map +1 -1
- package/cjs/job.d.ts +4 -0
- package/cjs/job.d.ts.map +1 -1
- package/cjs/job.js +6 -0
- package/cjs/job.js.map +1 -1
- package/collection.d.ts +2479 -0
- package/collection.d.ts.map +1 -0
- package/connection.d.ts +509 -0
- package/connection.d.ts.map +1 -0
- package/cursor.d.ts +862 -0
- package/cursor.d.ts.map +1 -0
- package/database.d.ts +4632 -0
- package/database.d.ts.map +1 -0
- package/documents.d.ts +98 -0
- package/documents.d.ts.map +1 -0
- package/error.d.ts +94 -0
- package/error.d.ts.map +1 -0
- package/esm/collection.d.ts +10 -878
- package/esm/collection.d.ts.map +1 -1
- package/esm/collection.js +2 -134
- package/esm/collection.js.map +1 -1
- package/esm/connection.js +1 -1
- package/esm/graph.d.ts +1 -34
- package/esm/graph.d.ts.map +1 -1
- package/esm/graph.js +0 -43
- package/esm/graph.js.map +1 -1
- package/esm/indexes.d.ts +12 -0
- package/esm/indexes.d.ts.map +1 -1
- package/esm/indexes.js.map +1 -1
- package/esm/job.d.ts +4 -0
- package/esm/job.d.ts.map +1 -1
- package/esm/job.js +6 -0
- package/esm/job.js.map +1 -1
- package/foxx-manifest.d.ts +155 -0
- package/foxx-manifest.d.ts.map +1 -0
- package/graph.d.ts +1137 -0
- package/graph.d.ts.map +1 -0
- package/index.d.ts +52 -0
- package/index.d.ts.map +1 -0
- package/indexes.d.ts +666 -0
- package/indexes.d.ts.map +1 -0
- package/job.d.ts +73 -0
- package/job.d.ts.map +1 -0
- package/lib/codes.d.ts +18 -0
- package/lib/codes.d.ts.map +1 -0
- package/lib/joinPath.d.ts +11 -0
- package/lib/joinPath.d.ts.map +1 -0
- package/lib/linkedList.d.ts +328 -0
- package/lib/linkedList.d.ts.map +1 -0
- package/lib/mergeHeaders.d.ts +12 -0
- package/lib/mergeHeaders.d.ts.map +1 -0
- package/lib/normalizeUrl.d.ts +11 -0
- package/lib/normalizeUrl.d.ts.map +1 -0
- package/lib/request.d.ts +66 -0
- package/lib/request.d.ts.map +1 -0
- package/package.json +6 -5
- package/route.d.ts +273 -0
- package/route.d.ts.map +1 -0
- package/transaction.d.ts +314 -0
- package/transaction.d.ts.map +1 -0
- package/view.d.ts +567 -0
- package/view.d.ts.map +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -14,7 +14,32 @@ This driver uses semantic versioning:
|
|
|
14
14
|
- A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
|
|
15
15
|
changes that require changes in your code to upgrade.
|
|
16
16
|
|
|
17
|
-
## [9.0.0-preview.
|
|
17
|
+
## [9.0.0-preview.4] - 2024-06-18
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Added readonly `Job#id` property
|
|
22
|
+
|
|
23
|
+
This property was not previously exposed.
|
|
24
|
+
|
|
25
|
+
## [9.0.0-preview.3] - 2024-06-12
|
|
26
|
+
|
|
27
|
+
### Removed
|
|
28
|
+
|
|
29
|
+
- Removed `Collection` methods for simple queries: `list`, `all`, `any`,
|
|
30
|
+
`byExample`, `firstExample`, `removeByExample`, `replaceByExample`,
|
|
31
|
+
`updateByExample`, `lookupByKeys`, `removeByKeys`, `fulltext`
|
|
32
|
+
|
|
33
|
+
Simple queries were deprecated in ArangoDB 3.4 and can be replicated with AQL.
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- Added support for `withStats` option in `collection.indexes`
|
|
38
|
+
|
|
39
|
+
This method now takes an object with `withStats` and `withHidden` options
|
|
40
|
+
instead of a boolean flag.
|
|
41
|
+
|
|
42
|
+
## [9.0.0-preview.2] - 2024-05-15
|
|
18
43
|
|
|
19
44
|
### Changed
|
|
20
45
|
|
|
@@ -29,7 +54,7 @@ This driver uses semantic versioning:
|
|
|
29
54
|
This option was introduced in ArangoDB 3.10.13 and 3.11.7 and allows
|
|
30
55
|
fetching the progress information of indexes that are in the building phase.
|
|
31
56
|
|
|
32
|
-
## [9.0.0-preview.1]
|
|
57
|
+
## [9.0.0-preview.1] - 2024-04-16
|
|
33
58
|
|
|
34
59
|
This is a major release and breaks backwards compatibility.
|
|
35
60
|
|
|
@@ -99,13 +124,13 @@ for upgrading your code to arangojs v9.
|
|
|
99
124
|
and provides exports for both types of environments. This change should be
|
|
100
125
|
backwards-compatible.
|
|
101
126
|
|
|
102
|
-
## [8.8.1]
|
|
127
|
+
## [8.8.1] - 2024-03-20
|
|
103
128
|
|
|
104
129
|
### Added
|
|
105
130
|
|
|
106
131
|
- Added the `versionAttribute` option to the document operation options types (DE-783)
|
|
107
132
|
|
|
108
|
-
## [8.8.0]
|
|
133
|
+
## [8.8.0] - 2024-03-12
|
|
109
134
|
|
|
110
135
|
### Changed
|
|
111
136
|
|
|
@@ -1879,6 +1904,8 @@ For a detailed list of changes between pre-release versions of v7 see the
|
|
|
1879
1904
|
|
|
1880
1905
|
Graph methods now only return the relevant part of the response body.
|
|
1881
1906
|
|
|
1907
|
+
[9.0.0-preview.4]: https://github.com/arangodb/arangojs/compare/v9.0.0-preview.3...v9.0.0-preview.4
|
|
1908
|
+
[9.0.0-preview.3]: https://github.com/arangodb/arangojs/compare/v9.0.0-preview.2...v9.0.0-preview.3
|
|
1882
1909
|
[9.0.0-preview.2]: https://github.com/arangodb/arangojs/compare/v9.0.0-preview.1...v9.0.0-preview.2
|
|
1883
1910
|
[9.0.0-preview.1]: https://github.com/arangodb/arangojs/compare/v8.8.1...v9.0.0-preview.1
|
|
1884
1911
|
[8.8.1]: https://github.com/arangodb/arangojs/compare/v8.8.0...v8.8.1
|
package/MIGRATING.md
CHANGED
|
@@ -21,6 +21,13 @@ Note that ArangoDB may reject non-normalized unicode names and identifiers.
|
|
|
21
21
|
This change is intended to make it easier to recognize normalization issues in
|
|
22
22
|
code interacting with ArangoDB that were previously masked by arangojs.
|
|
23
23
|
|
|
24
|
+
### Simple queries
|
|
25
|
+
|
|
26
|
+
Simple queries like the `removeByExample` and `firstExample` methods have been
|
|
27
|
+
removed from the collections API. These methods were deprecated in ArangoDB 3.4
|
|
28
|
+
and can be replaced with AQL queries. For examples for replicating each
|
|
29
|
+
method's behavior in AQL, see the documentation for these methods in ArangoJS 8.
|
|
30
|
+
|
|
24
31
|
### Request and Response changes
|
|
25
32
|
|
|
26
33
|
Version 9 now uses native `fetch` in all environments. This means that the
|
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ async function main() {
|
|
|
64
64
|
FILTER pokemon.type == "fire"
|
|
65
65
|
RETURN pokemon
|
|
66
66
|
`);
|
|
67
|
-
console.log("My
|
|
67
|
+
console.log("My pokemans, let me show you them:");
|
|
68
68
|
for await (const pokemon of pokemons) {
|
|
69
69
|
console.log(pokemon.name);
|
|
70
70
|
}
|