Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix: address deprecation warning on startup #1497
Conversation
| @@ -444,7 +444,7 @@ class Robot { | |||
| app.use(express.query()) | |||
|
|
|||
| app.use(express.json()) | |||
| app.use(express.urlencoded({ limit, parameterLimit: paramLimit })) | |||
| app.use(express.urlencoded({ limit, parameterLimit: paramLimit, extended: false })) | |||
This comment has been minimized.
This comment has been minimized.
ctrom
Apr 1, 2019
It looks like the default value is true (https://expressjs.com/en/api.html#express.urlencoded). Why change the value to false?
This comment has been minimized.
This comment has been minimized.
Trott
Apr 1, 2019
Author
Contributor
Not sure why I chose false but I'm going to guess that I misunderstood the express docs which say (about extended): "Using the default is deprecated." I think they mean "not specifying a value and relying on the default value is deprecated" but I interpreted it as "The default is true and using that value is deprecated."
At least that's my story now.
I'll switch it to true.
hews
commented
Apr 15, 2019
|
This would be a great small change to merge in. Seems like @ctrom 's review isn't enough to merge, is there someone we can ping to expedite this? |
@mistydemeo and @technicalpickles are the only people who have merged commits this year, so maybe one or both of them can make this happen? |
dfang
commented
Apr 17, 2019
•
|
it seems this warning fails heroku deploy
could you merge this fix and release a new version on npm ? |
|
Thanks! Sorry for not addressing this sooner. |
hubotbot
commented
Apr 17, 2019
|
The release is available on: Your semantic-release bot |
This comment has been minimized.
This comment has been minimized.
almajedy
commented on 39b8d59
Sep 10, 2019
|
if($text){ |
Trott commentedMar 12, 2019
The
body-parserdeprecation warning on startup is due toexpress.urlencode()requiring an
extendedproperty in the options argument in Express 4.x.Fixes: #1476