Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

query: deprecate extended query parser #4208

Closed
wants to merge 8 commits into from
2 changes: 2 additions & 0 deletions lib/middleware/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
var merge = require('utils-merge')
var parseUrl = require('parseurl');
var qs = require('qs');
var deprecate = require('depd')('query');
dougwilson marked this conversation as resolved.
Show resolved Hide resolved

/**
* @param {Object} options
Expand All @@ -23,6 +24,7 @@ var qs = require('qs');
*/

module.exports = function query(options) {
deprecate('default extended query parser is deprecated, set explicitly to override');
dougwilson marked this conversation as resolved.
Show resolved Hide resolved
var opts = merge({}, options)
var queryparse = qs.parse;

Expand Down