pull/37/head
Timothée Rebours 2 years ago
parent bbb1638c24
commit 182956b1ce
  1. 2
      API.md
  2. 4
      CHANGELOG.md
  3. 2
      lib/datastore.js

@ -684,7 +684,7 @@ We return the [Cursor](#Cursor) that the user can either <code>await</code> dire
<li>If <code>options.returnUpdatedDocs</code> is <code>true</code>: <li>If <code>options.returnUpdatedDocs</code> is <code>true</code>:
<ul> <ul>
<li>If <code>options.multi</code> is <code>false</code>, the updated document;</li> <li>If <code>options.multi</code> is <code>false</code>, the updated document;</li>
<li>If <code>options.multi</code> is <code>false</code>, the array of updated documents.</li> <li>If <code>options.multi</code> is <code>true</code>, the array of updated documents.</li>
</ul> </ul>
</li> </li>
</ul> </ul>

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [4.0.2] - 2023-05-05
### Fixed
- Fixed typo in documentation [#32](https://github.com/seald/nedb/pull/36)
## [4.0.1] - 2023-02-08 ## [4.0.1] - 2023-02-08
### Fixed ### Fixed
- Replace `$stat` from documentation with `$exists` [#32](https://github.com/seald/nedb/pull/32) - Replace `$stat` from documentation with `$exists` [#32](https://github.com/seald/nedb/pull/32)

@ -1062,7 +1062,7 @@ class Datastore extends EventEmitter {
* - If `options.returnUpdatedDocs` is `false`, `null`; * - If `options.returnUpdatedDocs` is `false`, `null`;
* - If `options.returnUpdatedDocs` is `true`: * - If `options.returnUpdatedDocs` is `true`:
* - If `options.multi` is `false`, the updated document; * - If `options.multi` is `false`, the updated document;
* - If `options.multi` is `false`, the array of updated documents. * - If `options.multi` is `true`, the array of updated documents.
* @async * @async
*/ */
updateAsync (query, update, options = {}) { updateAsync (query, update, options = {}) {

Loading…
Cancel
Save