File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -40,9 +40,13 @@ The stability indices are as follows:
40
40
41
41
<!-- separator -->
42
42
43
- > Stability: 3 - Legacy. The feature is no longer recommended for use. While it
44
- > likely will not be removed, and is still covered by semantic-versioning
45
- > guarantees, use of the feature should be avoided.
43
+ > Stability 3 - Legacy. Although this feature is unlikely to be removed and is
44
+ > still covered by semantic-versioning guarantees, it is no longer actively
45
+ > maintained, and other alternatives are available.
46
+
47
+ Features are marked as legacy rather than being deprecated if their use does no
48
+ harm, and they are widely relied upon within the npm ecosystem. Bugs found in
49
+ legacy features are unlikely to be fixed.
46
50
47
51
Use caution when making use of Experimental features, particularly within
48
52
modules. Users may not be aware that experimental features are being used.
Original file line number Diff line number Diff line change @@ -1535,11 +1535,18 @@ A `TypeError` is thrown if `urlString` is not a string.
1535
1535
1536
1536
A ` URIError` is thrown if the ` auth` property is present but cannot be decoded.
1537
1537
1538
- Use of the legacy ` url.parse()` method is discouraged . Users should
1539
- use the WHATWG ` URL` API . Because the ` url.parse()` method uses a
1540
- lenient, non- standard algorithm for parsing URL strings, security
1541
- issues can be introduced . Specifically , issues with [host name spoofing][] and
1542
- incorrect handling of usernames and passwords have been identified.
1538
+ ` url.parse()` uses a lenient, non- standard algorithm for parsing URL
1539
+ strings . It is prone to security issues such as [host name spoofing][]
1540
+ and incorrect handling of usernames and passwords.
1541
+
1542
+ ` url.parse()` is an exception to most of the legacy APIs . Despite its security
1543
+ concerns, it is legacy and not deprecated because it is:
1544
+
1545
+ * Faster than the alternative WHATWG ` URL` parser.
1546
+ * Easier to use with regards to relative URLs than the alternative WHATWG ` URL` API .
1547
+ * Widely relied upon within the npm ecosystem.
1548
+
1549
+ Use with caution.
1543
1550
1544
1551
### ` url.resolve(from, to)`
1545
1552
You can’t perform that action at this time.
0 commit comments