session icon indicating copy to clipboard operation
session copied to clipboard

Resave and saveUninitialized defaults

Open a00andos opened this issue 11 years ago • 4 comments

I'm still getting a warning if not explicitly declaring resave and saveUninitialized options. How long will you keep this warning and when will the defaults change?

a00andos avatar Jan 15 '15 13:01 a00andos

When version, 2.0 comes out the defaults should change and the warnings will go away. You can set the options explicitly if you don't want to see the warnings.

joewagner avatar Jan 15 '15 14:01 joewagner

The defaults will change and messages go away in 2.0. I don't know exactly when that is, as I wanted to change the engine with 2.0, but it seems like the engine change may just wait for 3.0.

dougwilson avatar Jan 15 '15 14:01 dougwilson

Why don't you just shut them off in the current version, if they're deprecated?

faiq avatar Jan 15 '15 16:01 faiq

Why don't you just shut them off in the current version, if they're deprecated?

I'm not 100% sure what this means. We cannot remove them in the current version, as people's code will break. They are deprecated, which is why there is a warning. You can disable warnings if you set the environment NO_DEPRECATION=express-session, or start node with --no-deprecation.

dougwilson avatar Jan 15 '15 16:01 dougwilson