Skip to content

Commit

Permalink
BREAKING(path): remove deprecated APIs (#4016)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Dec 22, 2023
1 parent 3a3bf8d commit 5986688
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 104 deletions.
50 changes: 0 additions & 50 deletions path/posix.ts

This file was deleted.

2 changes: 1 addition & 1 deletion path/posix/from_file_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { assertArg } from "../_common/from_file_url.ts";
* Converts a file URL to a path string.
*
* ```ts
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/from_file_url.ts";
*
* fromFileUrl("file:///home/foo"); // "/home/foo"
* ```
Expand Down
2 changes: 1 addition & 1 deletion path/posix/to_file_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { isAbsolute } from "./is_absolute.ts";
* Converts a path string to a file URL.
*
* ```ts
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix.ts";
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/posix/to_file_url.ts";
*
* toFileUrl("/home/foo"); // new URL("file:///home/foo")
* ```
Expand Down
50 changes: 0 additions & 50 deletions path/win32.ts

This file was deleted.

2 changes: 1 addition & 1 deletion path/windows/from_file_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { assertArg } from "../_common/from_file_url.ts";
* Converts a file URL to a path string.
*
* ```ts
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
* import { fromFileUrl } from "https://deno.land/std@$STD_VERSION/path/windows/from_file_url.ts";
*
* fromFileUrl("file:///home/foo"); // "\\home\\foo"
* fromFileUrl("file:///C:/Users/foo"); // "C:\\Users\\foo"
Expand Down
2 changes: 1 addition & 1 deletion path/windows/to_file_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { isAbsolute } from "./is_absolute.ts";
* Converts a path string to a file URL.
*
* ```ts
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/win32.ts";
* import { toFileUrl } from "https://deno.land/std@$STD_VERSION/path/windows/to_file_url.ts";
*
* toFileUrl("\\home\\foo"); // new URL("file:///home/foo")
* toFileUrl("C:\\Users\\foo"); // new URL("file:///C:/Users/foo")
Expand Down

0 comments on commit 5986688

Please sign in to comment.