What happened to mongoose.connect method in v4.4.7? <p>After updating up to mongoose <strong>v4.4.7</strong> mongoose.connect returns only a bunch of some setters and Promise. Before updating it returned other object. Couldn't find any info in documentation.</p> <p>--- UPDATE ---</p> <pre><code>let mongoose = require('mongoose'); let config = require('./config/env/test'); // config.db === 'mongodb://localhost/testdb' let db = mongoose.connect(config.db); console.log(db); </code></pre> <p>The problem is that in v4.4.7 I'm getting <em>Mongoose</em> object instead of <em>MongooseThenable</em>.</p> <p>As an example, <em>gridfs-stream</em> doesn't work:</p> <pre><code>let gfs = new Grid(db.connection.db, db.mongo); </code></pre> <p>It throws an error:</p> <pre><code>Error stack Error: missing db argument new Grid(db, mongo) </code></pre>