Skip to content

Commit

Permalink
docs(url): update deprecation docs (#5907)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k authored Sep 4, 2024
1 parent 5aa54ef commit b41c503
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions url/basename.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ import { strip } from "./_strip.ts";
* ```
*
* @deprecated Use
* {@linkcode https://jsr.io/@std/path/doc/posix/~/basename | @std/path/posix/basename}
* instead (examples included). `@std/url` will be removed in the future.
* {@linkcode https://jsr.io/@std/path/doc/~/basename | @std/path/basename}
* instead. `@std/url` will be removed in the future.
*/
export function basename(url: string | URL, suffix?: string): string {
url = new URL(url);
Expand Down
4 changes: 2 additions & 2 deletions url/dirname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import { strip } from "./_strip.ts";
* ```
*
* @deprecated Use
* {@linkcode https://jsr.io/@std/path/doc/posix/~/dirname | @std/path/posix/dirname}
* instead (examples included). `@std/url` will be removed in the future.
* {@linkcode https://jsr.io/@std/path/doc/~/dirname | @std/path/dirname}
* instead. `@std/url` will be removed in the future.
*/

export function dirname(url: string | URL): URL {
Expand Down
4 changes: 2 additions & 2 deletions url/extname.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ import { strip } from "./_strip.ts";
* ```
*
* @deprecated Use
* {@linkcode https://jsr.io/@std/path/doc/posix/~/extname | @std/path/posix/extname}
* instead (examples included). `@std/url` will be removed in the future.
* {@linkcode https://jsr.io/@std/path/doc/~/extname | @std/path/extname}
* instead. `@std/url` will be removed in the future.
*/
export function extname(url: string | URL): string {
url = new URL(url);
Expand Down
4 changes: 2 additions & 2 deletions url/join.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import { join as posixJoin } from "@std/path/posix/join";
* ```
*
* @deprecated Use
* {@linkcode https://jsr.io/@std/path/doc/posix/~/join | @std/path/posix/join}
* instead (examples included). `@std/url` will be removed in the future.
* {@linkcode https://jsr.io/@std/path/doc/~/join | @std/path/join}
* instead. `@std/url` will be removed in the future.
*/
export function join(url: string | URL, ...paths: string[]): URL {
url = new URL(url);
Expand Down
4 changes: 2 additions & 2 deletions url/normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import { normalize as posixNormalize } from "@std/path/posix/normalize";
* ```
*
* @deprecated Use
* {@linkcode https://jsr.io/@std/path/doc/posix/~/normalize | @std/path/posix/normalize}
* instead (examples included). `@std/url` will be removed in the future.
* {@linkcode https://jsr.io/@std/path/doc/~/normalize | @std/path/normalize}
* instead. `@std/url` will be removed in the future.
*/
export function normalize(url: string | URL): URL {
url = new URL(url);
Expand Down

0 comments on commit b41c503

Please sign in to comment.