Skip to content

Commit c82951f

Browse files
include node-url-to-whatwg-url
1 parent c893717 commit c82951f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

doc/api/deprecations.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2635,6 +2635,12 @@ The [legacy URL API][] is deprecated. This includes [`url.format()`][],
26352635
[`url.parse()`][], [`url.resolve()`][], and the [legacy `urlObject`][]. Please
26362636
use the [WHATWG URL API][] instead.
26372637

2638+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)).
2639+
2640+
```bash
2641+
npx codemod@latest @nodejs/node-url-to-whatwg-url
2642+
```
2643+
26382644
### DEP0117: Native crypto handles
26392645

26402646
<!-- YAML

doc/api/url.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,12 @@ The formatting process operates as follows:
17941794
string, an [`Error`][] is thrown.
17951795
* `result` is returned.
17961796
1797+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)).
1798+
1799+
```bash
1800+
npx codemod@latest @nodejs/node-url-to-whatwg-url
1801+
```
1802+
17971803
### `url.parse(urlString[, parseQueryString[, slashesDenoteHost]])`
17981804
17991805
<!-- YAML
@@ -1867,6 +1873,12 @@ function getURL(req) {
18671873
}
18681874
```
18691875
1876+
An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)).
1877+
1878+
```bash
1879+
npx codemod@latest @nodejs/node-url-to-whatwg-url
1880+
```
1881+
18701882
### `url.resolve(from, to)`
18711883
18721884
<!-- YAML

0 commit comments

Comments
 (0)