From ae4ebbc60390dce50d4714b04bf6bc778493d74e Mon Sep 17 00:00:00 2001 From: Bryan English Date: Wed, 4 May 2016 22:50:03 -0700 Subject: [PATCH 1/2] doc: add `added:` information for querystring Module introduced in 7ff04c1f8. Ref: https://github.com/nodejs/node/issues/6578 --- doc/api/querystring.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/api/querystring.md b/doc/api/querystring.md index 3a864e2d4fa1fe..263f44e1990b44 100644 --- a/doc/api/querystring.md +++ b/doc/api/querystring.md @@ -8,11 +8,17 @@ This module provides utilities for dealing with query strings. It provides the following methods: ## querystring.escape + The escape function used by `querystring.stringify`, provided so that it could be overridden if necessary. ## querystring.parse(str[, sep][, eq][, options]) + Deserialize a query string to an object. Optionally override the default separator (`'&'`) and assignment (`'='`) @@ -38,6 +44,9 @@ querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, ``` ## querystring.stringify(obj[, sep][, eq][, options]) + Serialize an object to a query string. Optionally override the default separator (`'&'`) and assignment (`'='`) @@ -63,6 +72,9 @@ querystring.stringify({ w: '中文', foo: 'bar' }, null, null, ``` ## querystring.unescape + The unescape function used by `querystring.parse`, provided so that it could be overridden if necessary. From 876d11e923cf9f54fc7e44df47080b294a6ccbf8 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Wed, 4 May 2016 22:52:42 -0700 Subject: [PATCH 2/2] doc: add `added:` information for url Module introduced in 7ff04c1f8. Ref: https://github.com/nodejs/node/issues/6578 --- doc/api/url.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/api/url.md b/doc/api/url.md index ab29c500d80335..f8c2980bd568bc 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -80,6 +80,9 @@ properties of URL objects: The following methods are provided by the URL module: ## url.format(urlObj) + Take a parsed URL object, and return a formatted URL string. @@ -106,6 +109,9 @@ Here's how the formatting process works: * `hash` is treated the same with or without the leading `#` (pound sign, anchor). ## url.parse(urlStr[, parseQueryString][, slashesDenoteHost]) + Take a URL string, and return an object. @@ -120,6 +126,9 @@ Pass `true` as the third argument to treat `//foo/bar` as `{ pathname: '//foo/bar' }`. Defaults to `false`. ## url.resolve(from, to) + Take a base URL, and a href URL, and resolve them as a browser would for an anchor tag. Examples: