These are chat archives for LearnBoost/mongoose

6th
Mar 2015
Christoph Werner
@codepunkt
Mar 06 2015 09:28
ugh. forget what i just wrote.
This message was deleted
Alex
@whitecolor
Mar 06 2015 14:38
@vkarpov15 when it it planned to release stable verson of 4?
Danny Arnold
@despairblue
Mar 06 2015 14:43
@jrthib just do that, you only need a git repo where you host the module and the application server would need read access to it, in the package.json you can reference the repository and a git tag.
Joseph Thibeault
@jrthib
Mar 06 2015 14:43
ah perfect
Valeri Karpov
@vkarpov15
Mar 06 2015 14:55
@whitecolor I'm hoping March 13, next friday. I've had a few people use it in prod and it seems to work well modulo the new relic crashes, which new relic has fixed. I think that's the general idea unless some critical issue is opened up between now and then
Ilan Biala
@ilanbiala
Mar 06 2015 14:56
@vkarpov15 is there a changelog that's going to summarize all the changes going into 4.0.0 compared to 3.8.x?
Valeri Karpov
@vkarpov15
Mar 06 2015 15:22
@whitecolor also depends on when the mongodb node driver gets marked stable in npm
hard for me to indicate that mongoose is stable without the underlying driver being entirely stable :)
Alex
@whitecolor
Mar 06 2015 16:09
@vkarpov15 I've installed rc-3, launched my app and got some error about listeners limit (, roll back to 3.9.7 which is seem to work well
Joseph Thibeault
@jrthib
Mar 06 2015 17:13
Does Model.update not return promises?
Valeri Karpov
@vkarpov15
Mar 06 2015 20:02
@jrthib need to use .exec(), like yield Model.update({}, { $set: { name: 'mongoose' } }).exec()
Joseph Thibeault
@jrthib
Mar 06 2015 20:02
ah thanks for the tip
Valeri Karpov
@vkarpov15
Mar 06 2015 20:02
@whitecolor what sort of errors?
Alex
@whitecolor
Mar 06 2015 20:52
@vkarpov15 https://gist.github.com/whitecolor/877afbce9bdc9bb2bba2 something mentioning connect-mongo, but why it messes here?
Valeri Karpov
@vkarpov15
Mar 06 2015 22:06
Can you open up an issue for this? I'll take a look.
Also, connect-mongo is a massive tangle of bugs and the maintainer is unresponsive. I would highly recommend switching over to https://www.npmjs.com/package/connect-mongodb-session, which is more actively maintained, less janky, and offers a mostly equivalent API
Alex
@whitecolor
Mar 06 2015 22:24
@vkarpov15 ok thanks, I've created issue. Question about connect-mongodb-session it is need to initialize express app in new MongoDBStore callcback? I've also heard that is better to initialize express app after mongoose is connected to db, is it correct and what are the reasons?
Alex
@whitecolor
Mar 06 2015 22:43
@vkarpov15 I've updated to connect-mongodb-sessionand it seem to work fine with mongoose 4rc-3. One more question about settiongs - should old sessions be manually deleted from db?
Ilan Biala
@ilanbiala
Mar 06 2015 23:59
@vkarpov15 actually connect-mongo has come back to life thanks to @jdesboeufs. He might be able to help @whitecolor out.