Skip to content

Commit 88df234

Browse files
committedFeb 16, 2022
[doc] Add soft deprecation notice
1 parent 78e9f2f commit 88df234

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44

55
[![Sauce Test Status](https://saucelabs.com/browser-matrix/url-parse.svg)](https://saucelabs.com/u/url-parse)
66

7+
**`url-parse` was created in 2014 when the WHATWG URL API was not available in
8+
Node.js and the `URL` interface was supported only in some browsers. Today this
9+
is no longer true. The `URL` interface is available in all supported Node.js
10+
release lines and basically all browsers. Consider using it for better security
11+
and accuracy.**
12+
713
The `url-parse` method exposes two different API interfaces. The
814
[`url`](https://nodejs.org/api/url.html) interface that you know from Node.js
915
and the new [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL/URL)

0 commit comments

Comments
 (0)
Please sign in to comment.