@wordpress/url 3.30.0 → 3.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/README.md +8 -21
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -18,9 +18,7 @@ _This package assumes that your code will run in an **ES2015+** environment. If
|
|
|
18
18
|
|
|
19
19
|
### addQueryArgs
|
|
20
20
|
|
|
21
|
-
Appends arguments as querystring to the provided URL. If the URL already
|
|
22
|
-
includes query arguments, the arguments are merged with (and take precedent
|
|
23
|
-
over) the existing set.
|
|
21
|
+
Appends arguments as querystring to the provided URL. If the URL already includes query arguments, the arguments are merged with (and take precedent over) the existing set.
|
|
24
22
|
|
|
25
23
|
_Usage_
|
|
26
24
|
|
|
@@ -41,8 +39,7 @@ _Returns_
|
|
|
41
39
|
|
|
42
40
|
Generates URL-encoded query string using input query data.
|
|
43
41
|
|
|
44
|
-
It is intended to behave equivalent as PHP's `http_build_query`, configured
|
|
45
|
-
with encoding type PHP_QUERY_RFC3986 (spaces as `%20`).
|
|
42
|
+
It is intended to behave equivalent as PHP's `http_build_query`, configured with encoding type PHP_QUERY_RFC3986 (spaces as `%20`).
|
|
46
43
|
|
|
47
44
|
_Usage_
|
|
48
45
|
|
|
@@ -71,14 +68,9 @@ _Returns_
|
|
|
71
68
|
|
|
72
69
|
Performs some basic cleanup of a string for use as a post slug.
|
|
73
70
|
|
|
74
|
-
This replicates some of what `sanitize_title()` does in WordPress core, but
|
|
75
|
-
is only designed to approximate what the slug will be.
|
|
71
|
+
This replicates some of what `sanitize_title()` does in WordPress core, but is only designed to approximate what the slug will be.
|
|
76
72
|
|
|
77
|
-
Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin
|
|
78
|
-
letters. Removes combining diacritical marks. Converts whitespace, periods,
|
|
79
|
-
and forward slashes to hyphens. Removes any remaining non-word characters
|
|
80
|
-
except hyphens. Converts remaining string to lowercase. It does not account
|
|
81
|
-
for octets, HTML entities, or other encoded characters.
|
|
73
|
+
Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin letters. Removes combining diacritical marks. Converts whitespace, periods, and forward slashes to hyphens. Removes any remaining non-word characters except hyphens. Converts remaining string to lowercase. It does not account for octets, HTML entities, or other encoded characters.
|
|
82
74
|
|
|
83
75
|
_Parameters_
|
|
84
76
|
|
|
@@ -256,8 +248,7 @@ _Returns_
|
|
|
256
248
|
|
|
257
249
|
### getQueryArgs
|
|
258
250
|
|
|
259
|
-
Returns an object of query arguments of the given URL. If the given URL is
|
|
260
|
-
invalid or has no querystring, an empty object is returned.
|
|
251
|
+
Returns an object of query arguments of the given URL. If the given URL is invalid or has no querystring, an empty object is returned.
|
|
261
252
|
|
|
262
253
|
_Usage_
|
|
263
254
|
|
|
@@ -451,9 +442,7 @@ _Returns_
|
|
|
451
442
|
|
|
452
443
|
### normalizePath
|
|
453
444
|
|
|
454
|
-
Given a path, returns a normalized path where equal query parameter values
|
|
455
|
-
will be treated as identical, regardless of order they appear in the original
|
|
456
|
-
text.
|
|
445
|
+
Given a path, returns a normalized path where equal query parameter values will be treated as identical, regardless of order they appear in the original text.
|
|
457
446
|
|
|
458
447
|
_Parameters_
|
|
459
448
|
|
|
@@ -526,8 +515,7 @@ _Returns_
|
|
|
526
515
|
|
|
527
516
|
### safeDecodeURI
|
|
528
517
|
|
|
529
|
-
Safely decodes a URI with `decodeURI`. Returns the URI unmodified if
|
|
530
|
-
`decodeURI` throws an error.
|
|
518
|
+
Safely decodes a URI with `decodeURI`. Returns the URI unmodified if `decodeURI` throws an error.
|
|
531
519
|
|
|
532
520
|
_Usage_
|
|
533
521
|
|
|
@@ -545,8 +533,7 @@ _Returns_
|
|
|
545
533
|
|
|
546
534
|
### safeDecodeURIComponent
|
|
547
535
|
|
|
548
|
-
Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if
|
|
549
|
-
`decodeURIComponent` throws an error.
|
|
536
|
+
Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if `decodeURIComponent` throws an error.
|
|
550
537
|
|
|
551
538
|
_Parameters_
|
|
552
539
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/url",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.0",
|
|
4
4
|
"description": "WordPress URL utilities.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "d61700b9f1c72ba0b030fc815ef1685b4f4031ec"
|
|
37
37
|
}
|