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

doc: fix history info for URLSearchParams #55837

Closed
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions doc/api/url.md
Original file line number Diff line number Diff line change
@@ -775,6 +775,12 @@ Instantiate a new empty `URLSearchParams` object.

#### `new URLSearchParams(string)`

<!-- YAML
added:
- v7.5.0
- v6.13.0
-->

skyclouds2001 marked this conversation as resolved.
Show resolved Hide resolved
* `string` {string} A query string

Parse the `string` as a query string, and use it to instantiate a new
@@ -907,6 +913,12 @@ If `value` is not provided, removes all name-value pairs whose name is `name`.

#### `urlSearchParams.entries()`

<!-- YAML
added:
- v7.3.0
- v6.13.0
-->

* Returns: {Iterator}

Returns an ES6 `Iterator` over each of the name-value pairs in the query.
@@ -918,6 +930,9 @@ Alias for [`urlSearchParams[@@iterator]()`][`urlSearchParams@@iterator()`].
#### `urlSearchParams.forEach(fn[, thisArg])`

<!-- YAML
added:
- v7.3.0
- v6.13.0
changes:
- version: v18.0.0
pr-url: https://github.com/nodejs/node/pull/41678
@@ -984,6 +999,12 @@ pair whose name is `name`.

#### `urlSearchParams.keys()`

<!-- YAML
added:
- v7.3.0
- v6.13.0
-->

* Returns: {Iterator}

Returns an ES6 `Iterator` over the names of each name-value pair.
@@ -1062,6 +1083,12 @@ percent-encoded where necessary.

#### `urlSearchParams.values()`

<!-- YAML
added:
- v7.3.0
- v6.13.0
-->

* Returns: {Iterator}

Returns an ES6 `Iterator` over the values of each name-value pair.
Loading