Node: Deprecate querystring for URLSearchParams

Created on 19 Oct 2016  路  5Comments  路  Source: nodejs/node

URLSearchParams provides almost the same functionality of querystring. My suggestion to deprecate querystring in favour of URLSearchParams, to keep a uniformed API you only have to learn once for both front-end and back-end work.

querystring

Most helpful comment

Isn't that getting ahead of things a little? It's been in core for only a week. Give it a year to bake and then we'll talk about deprecating querystring.

All 5 comments

Isn't that getting ahead of things a little? It's been in core for only a week. Give it a year to bake and then we'll talk about deprecating querystring.

I agree with @bnoordhuis here

I'm confused, isn't URLSearchParams a DOM/browser thing? I don't think v8 itself has that... unless you're merely asking for the same API in node (and/or a URLSearchParams global)?

@mscdex URLSearchParams is included as part of the experimental WHATWG URL parser work.

@alnorris ... given that the new URL parser is still experimental and not yet considered a fully supported feature, it's a bit premature to talk about deprecating querystring. It's also worth noting that the current implementation of URLSearchParams _uses_ the querystring module.

I think this is decided so I'll go ahead and close.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mikeal picture mikeal  路  197Comments

ctavan picture ctavan  路  87Comments

aduh95 picture aduh95  路  104Comments

thecodingdude picture thecodingdude  路  158Comments

egoroof picture egoroof  路  90Comments