Skip to content

Commit 349b5f1

Browse files
author
wafuwafu13
committed
docs(node/querystring): Use legacy instead of deprecated
1 parent 7d04d5f commit 349b5f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

node/querystring.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { ERR_INVALID_URI } from "./_errors.ts";
44

55
/**
66
* Alias of querystring.parse()
7-
* @deprecated
7+
* @legacy
88
*/
99
export const decode = parse;
1010

1111
/**
1212
* Alias of querystring.stringify()
13-
* @deprecated
13+
* @legacy
1414
*/
1515
export const encode = stringify;
1616

@@ -96,7 +96,7 @@ function qsEscape(str: unknown): string {
9696
* Performs URL percent-encoding on the given `str` in a manner that is optimized for the specific requirements of URL query strings.
9797
* Used by `querystring.stringify()` and is generally not expected to be used directly.
9898
* It is exported primarily to allow application code to provide a replacement percent-encoding implementation if necessary by assigning `querystring.escape` to an alternative function.
99-
* @deprecated
99+
* @legacy
100100
* @see Tested in `test-querystring-escape.js`
101101
*/
102102
export const escape = qsEscape;
@@ -178,7 +178,7 @@ function addKeyVal(
178178
* @param options The parse options
179179
* @param options.decodeURIComponent The function to use when decoding percent-encoded characters in the query string. Default: `querystring.unescape()`.
180180
* @param options.maxKeys Specifies the maximum number of keys to parse. Specify `0` to remove key counting limitations. Default: `1000`.
181-
* @deprecated
181+
* @legacy
182182
* @see Tested in test-querystring.js
183183
*/
184184
export function parse(
@@ -421,7 +421,7 @@ function encodeStringified(v: any, encode: (string: string) => string): string {
421421
* @param eq The substring used to delimit keys and values in the query string. Default: '='.
422422
* @param options The stringify options
423423
* @param options.encodeURIComponent The function to use when converting URL-unsafe characters to percent-encoding in the query string. Default: `querystring.escape()`.
424-
* @deprecated
424+
* @legacy
425425
* @see Tested in `test-querystring.js`
426426
*/
427427
export function stringify(
@@ -549,7 +549,7 @@ function qsUnescape(s: string): string {
549549
* Performs decoding of URL percent-encoded characters on the given `str`.
550550
* Used by `querystring.parse()` and is generally not expected to be used directly.
551551
* It is exported primarily to allow application code to provide a replacement decoding implementation if necessary by assigning `querystring.unescape` to an alternative function.
552-
* @deprecated
552+
* @legacy
553553
* @see Tested in `test-querystring-escape.js`
554554
*/
555555
export const unescape = qsUnescape;

0 commit comments

Comments
 (0)