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.
Files changed (80) hide show
  1. package/CHANGELOG.md +31 -4
  2. package/MIGRATING.md +7 -0
  3. package/README.md +1 -1
  4. package/analyzer.d.ts +950 -0
  5. package/analyzer.d.ts.map +1 -0
  6. package/aql.d.ts +289 -0
  7. package/aql.d.ts.map +1 -0
  8. package/cjs/collection.d.ts +10 -878
  9. package/cjs/collection.d.ts.map +1 -1
  10. package/cjs/collection.js +2 -134
  11. package/cjs/collection.js.map +1 -1
  12. package/cjs/connection.js +1 -1
  13. package/cjs/graph.d.ts +1 -34
  14. package/cjs/graph.d.ts.map +1 -1
  15. package/cjs/graph.js +0 -43
  16. package/cjs/graph.js.map +1 -1
  17. package/cjs/indexes.d.ts +12 -0
  18. package/cjs/indexes.d.ts.map +1 -1
  19. package/cjs/indexes.js.map +1 -1
  20. package/cjs/job.d.ts +4 -0
  21. package/cjs/job.d.ts.map +1 -1
  22. package/cjs/job.js +6 -0
  23. package/cjs/job.js.map +1 -1
  24. package/collection.d.ts +2479 -0
  25. package/collection.d.ts.map +1 -0
  26. package/connection.d.ts +509 -0
  27. package/connection.d.ts.map +1 -0
  28. package/cursor.d.ts +862 -0
  29. package/cursor.d.ts.map +1 -0
  30. package/database.d.ts +4632 -0
  31. package/database.d.ts.map +1 -0
  32. package/documents.d.ts +98 -0
  33. package/documents.d.ts.map +1 -0
  34. package/error.d.ts +94 -0
  35. package/error.d.ts.map +1 -0
  36. package/esm/collection.d.ts +10 -878
  37. package/esm/collection.d.ts.map +1 -1
  38. package/esm/collection.js +2 -134
  39. package/esm/collection.js.map +1 -1
  40. package/esm/connection.js +1 -1
  41. package/esm/graph.d.ts +1 -34
  42. package/esm/graph.d.ts.map +1 -1
  43. package/esm/graph.js +0 -43
  44. package/esm/graph.js.map +1 -1
  45. package/esm/indexes.d.ts +12 -0
  46. package/esm/indexes.d.ts.map +1 -1
  47. package/esm/indexes.js.map +1 -1
  48. package/esm/job.d.ts +4 -0
  49. package/esm/job.d.ts.map +1 -1
  50. package/esm/job.js +6 -0
  51. package/esm/job.js.map +1 -1
  52. package/foxx-manifest.d.ts +155 -0
  53. package/foxx-manifest.d.ts.map +1 -0
  54. package/graph.d.ts +1137 -0
  55. package/graph.d.ts.map +1 -0
  56. package/index.d.ts +52 -0
  57. package/index.d.ts.map +1 -0
  58. package/indexes.d.ts +666 -0
  59. package/indexes.d.ts.map +1 -0
  60. package/job.d.ts +73 -0
  61. package/job.d.ts.map +1 -0
  62. package/lib/codes.d.ts +18 -0
  63. package/lib/codes.d.ts.map +1 -0
  64. package/lib/joinPath.d.ts +11 -0
  65. package/lib/joinPath.d.ts.map +1 -0
  66. package/lib/linkedList.d.ts +328 -0
  67. package/lib/linkedList.d.ts.map +1 -0
  68. package/lib/mergeHeaders.d.ts +12 -0
  69. package/lib/mergeHeaders.d.ts.map +1 -0
  70. package/lib/normalizeUrl.d.ts +11 -0
  71. package/lib/normalizeUrl.d.ts.map +1 -0
  72. package/lib/request.d.ts +66 -0
  73. package/lib/request.d.ts.map +1 -0
  74. package/package.json +6 -5
  75. package/route.d.ts +273 -0
  76. package/route.d.ts.map +1 -0
  77. package/transaction.d.ts +314 -0
  78. package/transaction.d.ts.map +1 -0
  79. package/view.d.ts +567 -0
  80. 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.2]
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 pokemons, let me show you them:");
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
  }