Skip to content

Commit 7725d12

Browse files
committed
Consolidate v7 changelog
1 parent de7762b commit 7725d12

File tree

1 file changed

+103
-138
lines changed

1 file changed

+103
-138
lines changed

CHANGELOG.md

Lines changed: 103 additions & 138 deletions
Original file line numberDiff line numberDiff line change
@@ -14,137 +14,13 @@ 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-
## [7.0.0-rc.2] - 2020-08-20
18-
19-
### Fixed
20-
21-
- Renamed `validation` option to `schema` ([#681](https://github.com/arangodb/arangojs/issues/681))
22-
23-
### Added
24-
25-
- Added support for `isDisjoint` option in Graph API
26-
27-
- Added support for values `"ignore"` and `"conflict"` in `overwriteMode`
28-
option when saving documents using the Collection API
29-
30-
- Added support for `primarySortCompression` and `storedValues` options in
31-
View API
32-
33-
## [7.0.0-rc.1] - 2020-07-11
34-
35-
### Fixed
36-
37-
- Fixed `export is not defined` error in the browser build
38-
39-
## [7.0.0-rc.0] - 2020-07-10
40-
41-
### Removed
42-
43-
- Removed `statusCode` properties of `ArangoError` and `HttpError`
44-
45-
Both of these error types still expose the HTTP status code as the `code`
46-
property. For `ArangoError` the true HTTP status code may be different and
47-
can still be accessed using the `response.statusCode` property.
48-
49-
- Removed `ArangoError` re-export
50-
51-
The type can still be imported directly from the `error` module.
52-
53-
### Changed
54-
55-
- Renamed `cursor.nextBatch` to `cursor.batches.next`
56-
57-
- Renamed `cursor.hasMore` to `cursor.batches.hasMore`
58-
59-
- Renamed `db.createArangoSearchView` to `db.createView`
60-
61-
- Renamed `transaction.run` to `transaction.step`
62-
63-
This should hopefully make it more obvious that sequential calls to arangojs
64-
methods should be split into separate calls of this method.
65-
66-
- Added support for `View` in `aql` templates ([#667](https://github.com/arangodb/arangojs/issues/667))
67-
68-
`View` (or `ArangoSearchView`) objects can now be passed into `aql` templates
69-
like `ArangoCollection` objects.
70-
71-
- Graph methods now also accept `ArangoCollection` instances instead of names
72-
73-
This brings these methods behavior in line with that of the `beginTransaction`
74-
and `executeTransaction` methods of `Database` objects.
75-
76-
- Moved `collectionToString` helper into `collection` module
77-
78-
- Moved `Dict` type into `connection` module
79-
80-
- Moved `Patch` type into `documents` module
81-
82-
- Removed `Errback` type from public API
83-
84-
- Renamed `util/foxx-manifest` module to `foxx-manifest`
85-
86-
- Removed `Collection` type from public API
87-
88-
All public APIs reference `DocumentCollection` and `EdgeCollection` directly.
89-
90-
### Added
91-
92-
- Added `precaptureStackTraces` configuration option ([#599](https://github.com/arangodb/arangojs/issues/599))
93-
94-
This option can be used to get more useful stack traces but results in a
95-
performance hit on every request.
96-
97-
- Added `cursor.batches` to provide a batch-wise cursor API
98-
99-
- Added `before` and `after` to the `agentOptions` configuration option ([#585](https://github.com/arangodb/arangojs/issues/585))
100-
101-
These methods can be used to track performance metrics for outgoing requests.
102-
103-
## [7.0.0-preview.1] - 2020-05-13
104-
105-
### Removed
106-
107-
- Removed `collection.edge` method
108-
109-
This method was previously an alias for `collection.document`.
110-
111-
The method `graphEdgeCollection.edge` is unaffected by this change.
112-
113-
- Removed `graphName` option for `edgeCollection.traversal`
114-
115-
Graph traversals can still be performed via `graph.traversal`.
116-
117-
- Removed `ViewResponse` type
118-
119-
The type `ViewDescription` represents the same structure.
120-
121-
- Removed `ArangoSearchViewPropertiesResponse` type
122-
123-
The type `ArangoSearchViewProperties & ViewDescription` can be used
124-
to represent the same structure.
125-
126-
### Changed
127-
128-
- Removed `CollectionMetadata` fields from `CollectionProperties` type
129-
130-
Methods that previously returned `CollectionProperties` now return
131-
`CollectionMetadata & CollectionProperties`.
132-
133-
### Added
134-
135-
- Added `auth` option to configuration
136-
137-
It is now possible to pass authentication credentials using the `auth`
138-
option in addition to calling `db.useBasicAuth` or `db.useBearerAuth`.
139-
140-
### Fixed
141-
142-
- Changed async return type of `collection.index` from `Index[]` to `Index`
143-
144-
## [7.0.0-preview.0] - 2020-05-01
17+
## [Unreleased]
14518

14619
This is a major release and breaks backwards compatibility.
14720

21+
For a detailed list of changes between pre-release versions of v7 see the
22+
[Changelog of the final v7 release candidate](https://github.com/arangodb/arangojs/blob/v7.0.0-rc.2/CHANGELOG.md).
23+
14824
### Removed
14925

15026
#### General
@@ -163,6 +39,16 @@ This is a major release and breaks backwards compatibility.
16339

16440
This removes the `isAbsolute` option from the arangojs configuration.
16541

42+
- Removed `ArangoError` re-export
43+
44+
The type can still be imported directly from the `error` module.
45+
46+
- Removed `statusCode` properties of `ArangoError` and `HttpError`
47+
48+
Both of these error types still expose the HTTP status code as the `code`
49+
property. For `ArangoError` the true HTTP status code may be different and
50+
can still be accessed using the `response.statusCode` property.
51+
16652
#### Database API
16753

16854
- Removed `db.edgeCollection` method
@@ -196,6 +82,16 @@ This is a major release and breaks backwards compatibility.
19682

19783
The new method `collection.updateAll` now provides this functionality.
19884

85+
- Removed `collection.edge` method
86+
87+
This method was previously an alias for `collection.document`.
88+
89+
The method `graphEdgeCollection.edge` is unaffected by this change.
90+
91+
- Removed `graphName` option for `edgeCollection.traversal`
92+
93+
Graph traversals can still be performed via `graph.traversal`.
94+
19995
#### Graph API
20096

20197
- Removed generic collection methods from `GraphVertexCollection`
@@ -221,6 +117,17 @@ This is a major release and breaks backwards compatibility.
221117
or iterating over the cursor using the `forEach` method or the `for await`
222118
syntax.
223119

120+
#### View API
121+
122+
- Removed `ViewResponse` type
123+
124+
The type `ViewDescription` represents the same structure.
125+
126+
- Removed `ArangoSearchViewPropertiesResponse` type
127+
128+
The type `ArangoSearchViewProperties & ViewDescription` can be used
129+
to represent the same structure.
130+
224131
### Deprecated
225132

226133
#### Database API
@@ -274,10 +181,27 @@ This is a major release and breaks backwards compatibility.
274181
are memoized per-database. Using `useDatabase` de-memoizes the database
275182
object to prevent unexpected behavior.
276183

184+
- Added support for `View` in `aql` templates ([#667](https://github.com/arangodb/arangojs/issues/667))
185+
186+
`View` (or `ArangoSearchView`) objects can now be passed into `aql` templates
187+
like `ArangoCollection` objects.
188+
189+
- Moved `collectionToString` helper into `collection` module
190+
191+
- Moved `Dict` type into `connection` module
192+
193+
- Moved `Patch` type into `documents` module
194+
195+
- Removed `Errback` type from public API
196+
197+
- Renamed `util/foxx-manifest` module to `foxx-manifest`
198+
277199
#### Database API
278200

279201
- Renamed method `db.arangoSearchView` to `db.view`
280202

203+
- Renamed method `db.createArangoSearchView` to `db.createView`
204+
281205
- Replaced methods `db.enableServiceDevelopmentMode` and
282206
`db.disableServiceDevelopmentMode` with `db.setServiceDevelopmentMode`
283207

@@ -319,16 +243,21 @@ This is a major release and breaks backwards compatibility.
319243

320244
#### Collection API
321245

246+
- Merged `DocumentCollection` and `EdgeCollection` APIs
247+
248+
All collections are now implemented as generic `Collection` objects.
249+
In TypeScript the generic collection object can still be explicitly cast to
250+
`DocumentCollection` or `EdgeCollection` for stricter type safety.
251+
322252
- Renamed `collection.setProperties` to `collection.properties`
323253

324254
The method will now return the existing properties or set the properties
325255
depending on whether an argument is provided.
326256

327-
- Merged `DocumentCollection` and `EdgeCollection` APIs
257+
- Removed `CollectionMetadata` fields from `CollectionProperties` type
328258

329-
All collections are now implemented as generic `Collection` objects.
330-
In TypeScript the generic collection object can still be explicitly cast to
331-
`DocumentCollection` or `EdgeCollection` for stricter type safety.
259+
Methods that previously returned `CollectionProperties` now return
260+
`CollectionMetadata & CollectionProperties`.
332261

333262
- Collection methods `save`, `update`, `replace` and `remove` no longer take
334263
arrays as input
@@ -373,6 +302,11 @@ This is a major release and breaks backwards compatibility.
373302

374303
#### Graph API
375304

305+
- Graph methods now also accept `ArangoCollection` instances instead of names
306+
307+
This brings these methods behavior in line with that of the `beginTransaction`
308+
and `executeTransaction` methods of `Database` objects.
309+
376310
- Graph `create` method (and `db.createGraph`) signature changed
377311

378312
The `graph.create` method now takes an array of edge definitions as the
@@ -440,6 +374,10 @@ This is a major release and breaks backwards compatibility.
440374

441375
- Renamed `ArrayCursor` method `each` to `forEach`
442376

377+
- Renamed `cursor.nextBatch` to `cursor.batches.next`
378+
379+
- Renamed `cursor.hasMore` to `cursor.batches.hasMore`
380+
443381
- In TypeScript `ArrayCursor` is now a generic type
444382

445383
TypeScript users can now cast cursor instances to use a specific type for
@@ -459,6 +397,11 @@ This is a major release and breaks backwards compatibility.
459397

460398
- Renamed type `ArangoTransaction` to `Transaction`
461399

400+
- Renamed `transaction.run` to `transaction.step`
401+
402+
This should hopefully make it more obvious that sequential calls to arangojs
403+
methods should be split into separate calls of this method.
404+
462405
- Transactions no longer take a positional `params` argument
463406

464407
The argument can still be specified using the `opts.params` argument.
@@ -467,11 +410,25 @@ This is a major release and breaks backwards compatibility.
467410

468411
#### General
469412

470-
- Added `databaseName` option to arangojs config
413+
- Added `databaseName` configuration option
471414

472415
Setting this option to a database name will result in the initial `Database`
473416
object using this database instead of the default `_system` database.
474417

418+
- Added `auth` configuration option
419+
420+
It is now possible to pass authentication credentials using the `auth`
421+
option in addition to calling `db.useBasicAuth` or `db.useBearerAuth`.
422+
423+
- Added `precaptureStackTraces` configuration option ([#599](https://github.com/arangodb/arangojs/issues/599))
424+
425+
This option can be used to get more useful stack traces but results in a
426+
performance hit on every request.
427+
428+
- Added `before` and `after` to the `agentOptions` configuration option ([#585](https://github.com/arangodb/arangojs/issues/585))
429+
430+
These methods can be used to track performance metrics for outgoing requests.
431+
475432
- Improved type signatures for TypeScript and inline documentation
476433

477434
Most methods should now provide full type signatures for options and response
@@ -525,6 +482,9 @@ This is a major release and breaks backwards compatibility.
525482
The method takes a document or a document key and returns a fully qualified
526483
document ID string for the document in the current collection.
527484

485+
- Added support for values `"ignore"` and `"conflict"` in `overwriteMode`
486+
option when saving documents using the Collection API
487+
528488
#### Graph API
529489

530490
- Added `graphVertexCollection.vertexExists` and
@@ -540,18 +500,27 @@ This is a major release and breaks backwards compatibility.
540500
operations not available within the context of a graph (e.g. bulk imports
541501
or modifying the collection itself).
542502

503+
- Added support for `isDisjoint` option in Graph API
504+
543505
#### Cursor API
544506

545507
- Added `cursor.flatMap` method
546508

547509
This method behaves similarly to the `Array` method `flatMap` but operates
548510
on the cursor directly like `cursor.map` does.
549511

512+
- Added `cursor.batches` to provide a batch-wise cursor API
513+
550514
- Added support for `for await` in `ArrayCursor` ([#616](https://github.com/arangodb/arangojs/pull/616))
551515

552516
It is now possible to use `for await` to iterate over each item in a cursor
553517
asynchronously.
554518

519+
#### View API
520+
521+
- Added support for `primarySortCompression` and `storedValues` options in
522+
View API
523+
555524
### Fixed
556525

557526
#### General
@@ -1111,11 +1080,7 @@ This is a major release and breaks backwards compatibility.
11111080

11121081
Graph methods now only return the relevant part of the response body.
11131082

1114-
[7.0.0-rc.2]: https://github.com/arangodb/arangojs/compare/v7.0.0-rc.1...v7.0.0-rc.2
1115-
[7.0.0-rc.1]: https://github.com/arangodb/arangojs/compare/v7.0.0-rc.0...v7.0.0-rc.1
1116-
[7.0.0-rc.0]: https://github.com/arangodb/arangojs/compare/v7.0.0-preview.1...v7.0.0-rc.0
1117-
[7.0.0-preview.1]: https://github.com/arangodb/arangojs/compare/v7.0.0-preview.0...v7.0.0-preview.1
1118-
[7.0.0-preview.0]: https://github.com/arangodb/arangojs/compare/v6.14.1...v7.0.0-preview.0
1083+
[unreleased]: https://github.com/arangodb/arangojs/compare/v6.14.1...HEAD
11191084
[6.14.1]: https://github.com/arangodb/arangojs/compare/v6.14.0...v6.14.1
11201085
[6.14.0]: https://github.com/arangodb/arangojs/compare/v6.13.0...v6.14.0
11211086
[6.13.0]: https://github.com/arangodb/arangojs/compare/v6.12.0...v6.13.0

0 commit comments

Comments
 (0)