marklogic-community / slush-marklogic-node

Slush generator for a MarkLogic/node project
https://github.com/marklogic-community/slush-marklogic-node/wiki
Other
40 stars 28 forks source link

Deprecation warning at running gulp server #35

Closed grtjn closed 10 years ago

grtjn commented 10 years ago

Running gulp server shows warnings:

templates gjosten$ gulp server
[gulp] Using gulpfile ~/Projects/slush-marklogic-node/app/templates/gulpfile.js
[gulp] Starting 'server'...
express-session deprecated undefined resave option; provide resave option server.js:34:11
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option server.js:34:11
[gulp] Finished 'server' after 170 ms
grtjn commented 10 years ago

Googled for the message. The warnings are telling us they are changing defaults, and require you to pass explicit values for the resave and saveUninitialized option. For instance like this:

  app.use(expressSession({
    secret: '1234567890QWERTY',
    saveUninitialized: true,
    resave: true
  }));
grtjn commented 10 years ago

The true values are the current defaults. They are planning to change the defaults, hence the warning..