mongoose-multitenant
mongoose-multitenant copied to clipboard
Compatibility with Nodejs v4.x
I included mongoose-multitenant in a project for which I'm using nodejs v4. Upon requiring the module I get this output in the console:
[Error: Module version mismatch. Expected 46, got 14.]
>> js-bson: Failed to load c++ bson extension, using pure JS version
I haven't looked deeply into what's outputting that (i.e. is it a dependency of mongoose-multitenant) but is it something that's likely to cause problems at run-time, do you think?
I've previously used mongoose-multitenant against nodejs v0.12.7, which doesn't produce the same output, and works great.
@matt-barton It has been a long time, for sure you came up with a solution already. But since there has been no answer to your question, yet: you could try https://github.com/craftup/node-mongo-tenant. It is tested with node 4-8 and mongoose 4 and 5. Cheers :)
I've obviously moved on from this project but if anyone would like to take over and update it to use the latest versions of Node, Mongoose, etc that would be great. Just let me know.