Skip to content

Commit

Permalink
Docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
edemaine committed Mar 4, 2022
1 parent 700fb99 commit fab6c7c
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 56 deletions.
10 changes: 5 additions & 5 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### V2.0.0

* Major rewrite, with three significant breaking changes
* Major rewrite, with three significant breaking changes:
* BREAKING CHANGE: No more file locking, under the assumption that you write
files once during upload and henceforth do concurrent reads.
Make sure your app doesn't require locking.
Expand All @@ -14,11 +14,11 @@
`insert` method has been replaced by `insertEmpty`.
Relatedly, `allow` no longer has a `write` option; instead,
POST/PUT and Resumable use `insert` permissions.
* In the new `insertStream`, `options.range.end` is exclusive.
(By contrast, `upsertStream`'s corresponding option was inclusive.)
* BREAKING CHANGE: In `readOneStream` and the new `insertStream`,
`options.range.end` is exclusive (before it was inclusive).
This won't affect you if you're using the built-in GET handler, which
converts from inclusive to exclusive. If you've written your own GET
handler, you'll want to offset by 1.
converts from HTTP's inclusive Range to exclusive.
If you've written your own GET handler, you'll want to offset by 1.
* Upgrade to MongoDB's v4 drivers, in particular the modern
[GridFSBucket interface](https://mongodb.github.io/node-mongodb-native/4.4/classes/GridFSBucket.html)
* No more `gridfs-locking-stream` dependency
Expand Down
Loading

0 comments on commit fab6c7c

Please sign in to comment.