diff --git a/index.js b/index.js index 2b76d5fa..f23d65e9 100644 --- a/index.js +++ b/index.js @@ -7,6 +7,7 @@ module.exports = ShareDbMongo; function ShareDbMongo(mongo, options) { // use without new if (!(this instanceof ShareDbMongo)) { + console.warn('Deprecated: ShareDbMongo is not a function, use new'); return new ShareDbMongo(mongo, options); }