title: express throws error as `body-parser deprecated undefined extended`
body: <p>In my node app, I am using express. all works fine, But i am getting error in the <code>cmd</code>. I use all are updated modules...</p>
  
  <p><strong>my code :</strong></p>
  
  <pre><code>var express = require('express');
  var bodyParser = require('body-parser');
  var jade = require('jade');
  var app = express();
  app.set('view engine', 'jade');
  app.set('views', __dirname + '/views');
  app.use(express.static(__dirname + '/public'));
  
  
  app.use(bodyParser.json()); // to support JSON-encoded bodies
  app.use(bodyParser.urlencoded()); // to support URL-encoded bodies
  
  
  app.get('/',function(req,res){
      res.render('index.jade');
  });
  
  app.get('/login',function(req,res){
      res.render('index.jade');
  });
  
  app.post('/login',function(req,res){
      console.log(req.body);
  });
  
  app.get('/signup',function(req,res){
      res.render('signup.jade');
  });
  
  var env = process.env.PORT || 3000;
  
  
  app.listen(env, function(req, res){
      console.log('i am working!');
  });
  </code></pre>
  
  <p><strong>Error:</strong></p>
  
  <pre><code>D:\myLogin&gt;node app
  body-parser deprecated undefined extended: provide extended option app.js:11:20 //why i am getting this?
  i am working!
  { username: 'jbarif@gmail.com', password: 'pass' } // i am getting response
  </code></pre>
  
  <p>Can any help me to understand this issue please?</p>