- Fixed: Solved bug when not using the client parameter and the topology is not present in the db object #377
- Update: Updated dependencies
- Fixed: Updated ObjectID reference to ObjectId to allow compatibility with mongodb4.
- Feature: Module rewritten in Typescript. Separate definition files are no longer required.
- Fixed: If using the
fromStream
method the readable source emits an error the promise is rejected. #205 - Fixed: Attached events to
MongoClient
orDb
object depending on the installed mongo version. - Fixed: Replaced mongoose reference with mongoose like object to avoid version conflicts.
- Update: Updated dependencies.
- Feature: Added the
fromFile
andfromStream
public methods - Update: Documented the
generateBytes
method - Update: Updated dependencies
- Breaking change: Removed Node 8 support
- Update: Updated dependencies
- Update: Updated dependencies
- Update: Updated dependencies
- Fix: Moved multer from dependencies to peerDependencies
- Fix: Removed xo from dependencies
- Update: Updated
pump
dependency
- Feature: Added the
client
option to the constructor - Feature: Supported
client
as a promise - Update: Removed the
connectionOpts
setting - Breaking change: Removed Node 6 support
- Breaking change: The
ready
method and theconnection
event now produces an object with thedb
and theclient
- Update: Removed compatibility with Node 4
- Fix: Solved bug in mongodb@2 and mongoose compatibility
- Fix: Removed multer extra dependency from
package.json
- Feature: Added
aliases
anddisableMD5
properties to file naming configuration
- Feature: Support for Mongoose connections
- Feature: Ready method to wait for the MongoDb connection
- Breaking change: Deprecated "connectionOpts" in favor of "options"
- Feature: Added caching feature
- Fix: Updated dependencies
- Fix: Moved multer to peer dependencies
- Breaking change: Dropped support for node 0.x
- Breaking change: Removed es6-promise dependency
- Breaking change: Added lodash.isplainobject dependency
- Fix: Changed mongodb dependency version from 3 to >=2
- Feature: Added support for mongodb version 3 in url connection string
- Feature: Added
client
property to storage object
- Feature: Allowed strings, numbers and null values as file configuration
- Fix: Added examples to the readme
- Breaking change: Removed gridfs-stream dependency
- Breaking change: Removed all old file configuration options
- Breaking change: Removed logging functions
- Breaking change: The grid property in the file object was removed and its properties merged directly with the file object
- Feature: Simplified api by adding a new option
file
to control file configuration - Feature: Added delayed file storage after successful connection instead of failing with an error
- Fix: Renamed 'error' event to 'streamError' to prevent a bug where the the user does not set any listener for that event and emitting it causes the program to crash.
- Feature: Added 'dbError' event
- Fix: Call log function in 'error' event
- Feature: Added 'error' event
- Feature: Added generator function support
- Feature: Allow to use promises in configuration options instead of callbacks
- Fix: Fixed UnhandledPromiseRejection error
- Feature: Added support for connection promises
- Feature: Added file size information
- Feature: Allow the api to be called with the
new
operator - Feature: Added Typescript support
- Fix: Fixed code coverage
- Feature: Changed log option to accept a function
- Fix: Added validation for options
- Initial stable release
- Feature: Added support for changing the default collection with the root option
- Feature: Added support for changing the chunk size
- First release