aheckmann / gridfs-stream

Easily stream files to and from MongoDB
MIT License
615 stars 120 forks source link

New signature for GridReadStream and GridWriteStream #16

Closed Reggino closed 11 years ago

Reggino commented 11 years ago

Since the use of filename and objectId are ambiguous, the signature of GridReadStream, GridWriteStream and remove() are updated so it takes a single options parameter. As discussed with @aheckmann in issue #11

Note that this change is NOT backwards compatible and thus the version is bumped to 0.4.0.

Reggino commented 11 years ago

This fixes issues #4, #6, #7, #10 and #11 .

15 is fixed too (more or less) by adding some documentation.

aheckmann commented 11 years ago

merged. Thanks! 0.4.0 is out.