Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upfix: address deprecation warning on startup #1497
Conversation
Trott
referenced this pull request
Mar 12, 2019
Closed
expressjs/body-parser `extended` option #1476
ctrom
reviewed
Apr 1, 2019
| @@ -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.
ctrom
approved these changes
Apr 2, 2019
This comment has been minimized.
This comment has been minimized.
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? |
This comment has been minimized.
This comment has been minimized.
@mistydemeo and @technicalpickles are the only people who have merged commits this year, so maybe one or both of them can make this happen? |
This comment has been minimized.
This comment has been minimized.
dfang
commented
Apr 17, 2019
•
|
it seems this warning fails heroku deploy
could you merge this fix and release a new version on npm ? |
mistydemeo
approved these changes
Apr 17, 2019
|
Thanks! Sorry for not addressing this sooner. |
mistydemeo
merged commit 7795fe5
into
hubotio:master
Apr 17, 2019
1 check passed
This comment has been minimized.
This comment has been minimized.
hubotbot
commented
Apr 17, 2019
|
The release is available on: Your semantic-release bot |
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